Jumat, 30 Agustus 2024

Line Break And Paragraph In Latex ( Tutorial ) 1

Paragraph Alignment

type this following latex package code before \begin{document}:
% Allowing hyphenation of most Western European (and some Eastern European) languages,
% to load the fontenc package, type before\begin{document}
\usepackage[T1]{fontenc}

type this following latex code after \begin{document}:
% This following text in left alignment and first line indent

\textbackslash LaTex\{\} \textbackslash LaTex\{\} \textbackslash LaTex\{\}

The animals set to be take care include 75 elephants, 30 hippos, 280 buffalo, 50 hourse, 100 blue bear and 300 zebras, the country’s Ministry of Environment, Forestry and Tourism announced Monday.


% This following text in left alignment and without first line indent
\begin{flushleft}
% change the \LaTex{} \LaTex{} \LaTex{} to:

\textbackslash LaTex\{\} \textbackslash LaTex\{\} \textbackslash LaTex\{\}

The animals set to be take care include 75 elephants, 30 hippos, 280 buffalo, 50 hourse, 100 blue bear and 300 zebras, the country’s Ministry of Environment, Forestry and Tourism announced Monday.

\end{flushleft}

% This following text in right alignment and without first line indent

\begin{flushright}

\textbackslash LaTex\{\} \textbackslash LaTex\{\} \textbackslash LaTex\{\} The animals set to be take care include 75 elephants, 30 hippos, 280 buffalo, 50 hourse, 100 blue bear and 300 zebras, the country’s Ministry of Environment, Forestry and Tourism announced Monday.

\end{flushright}


% This following text in center alignment and without first line indent

\begin{center}

\textbackslash LaTex\{\} \textbackslash LaTex\{\} \textbackslash LaTex\{\} The animals set to be take care include 75 elephants, 30 hippos, 280 buffalo, 50 hourse, 100 blue bear and 300 zebras, the country’s Ministry of Environment, Forestry and Tourism announced Monday.

\end{center}


The full Latex code:

%Typeset/Build program

% !TEX TS-program = pdflatex

% !TEX encoding = UTF-8 Unicode

\documentclass[11pt]{article} % use larger type; default would be 10pt, max 12pt


%%% PAGE DIMENSIONS

\usepackage{geometry} % to change the page dimensions

\geometry{a4paper} % or letterpaper (US) or a5paper or....

% \geometry{margin=2in} % for example, change the margins to 2 inches all round

% \geometry{landscape} % set up the page for landscape

% read geometry.pdf for detailed page layout information


\usepackage[T1]{fontenc}


\title{Paragraph Alignment}

\author{Private Course and Tutor Course}

\date{September 9, 2023} % Activate to display a given date or no date (if empty),

% otherwise the current date is printed


\begin{document}

\maketitle


\section{Normal paragraph}

% This following text in left alignment and first line indent

\textbackslash LaTex\{\} \textbackslash LaTex\{\} \textbackslash LaTex\{\}

The animals set to be take care include 75 elephants, 30 hippos, 280 buffalo, 50 hourse, 100 blue bear and 300 zebras, the country’s Ministry of Environment, Forestry and Tourism announced Monday.


\section{Align Left Paragraph}

% This following text in left alignment and without first line indent

\begin{flushleft}

\textbackslash LaTex\{\} \textbackslash LaTex\{\} \textbackslash LaTex\{\}

The animals set to be take care include 75 elephants, 30 hippos, 280 buffalo, 50 hourse, 100 blue bear and 300 zebras, the country’s Ministry of Environment, Forestry and Tourism announced Monday.

\end{flushleft}


\section{Align Right Paragraph}

% This following text in right alignment and without first line indent

\begin{flushright}

\textbackslash LaTex\{\} \textbackslash LaTex\{\} \textbackslash LaTex\{\} The animals set to be take care include 75 elephants, 30 hippos, 280 buffalo, 50 hourse, 100 blue bear and 300 zebras, the country’s Ministry of Environment, Forestry and Tourism announced Monday.

\end{flushright}


\section{Align Center Paragraph}

% This following text in center alignment and without first line indent

\begin{center}

\textbackslash LaTex\{\} \textbackslash LaTex\{\} \textbackslash LaTex\{\} The animals set to be take care include 75 elephants, 30 hippos, 280 buffalo, 50 hourse, 100 blue bear and 300 zebras, the country’s Ministry of Environment, Forestry and Tourism announced Monday.


\end{center}


\end{document}


Result


Normal paragraph

\LaTex{} \LaTex{} \LaTex{} The animals set to be take care include 75 elephants,

30 hippos, 280 buffalo, 50 hourse, 100 blue bear and 300 zebras, the country’s Ministry

of Environment, Forestry and Tourism announced Monday.

Align Left Paragraph

\LaTex{} \LaTex{} \LaTex{} The animals set to be take care include 75 elephants, 30

hippos, 280 buffalo, 50 hourse, 100 blue bear and 300 zebras, the country’s Ministry of

Environment, Forestry and Tourism announced Monday.

Align Right Paragraph

\LaTex{} \LaTex{} \LaTex{} The animals set to be take care include 75 elephants, 30

hippos, 280 buffalo, 50 hourse, 100 blue bear and 300 zebras, the country’s Ministry of

Environment, Forestry and Tourism announced Monday.

Align Center Paragraph

\LaTex{} \LaTex{} \LaTex{} The animals set to be take care include 75 elephants, 30 hippos, 280 buffalo, 50 hourse, 100 blue bear and 300 zebras, the country’s Ministry of Environment, Forestry and Tourism announced Monday.


If you want to download Latex source code to type paragraph alignment in Latex, click https://www.studydrive.net/en/doc/paragraphalignmentlatex1/1845302?ref=3961484








Bibliography

https://latex.org/
https://www.uchicago.edu/ ( university )

Related Post

Tidak ada komentar:

Posting Komentar

Various Other Posts