This following symbol are line break, paragraph, and vertical white space or vertical blank spaces command in Latex:
Inserts a vertical spaces whose length is 5mm. Other LATEX units can be used with this command: \vspace{5mm}
Inserts a blank space that will stretch accordingly to fill the vertical space available: \vfill
Adds a 3pt space plus or minus 1pt depending on other factors (document type, available space, etc): \smallskip.
Adds a 6pt space plus or minus 2pt depending on other factors (document type, available space, etc): \medskip.
Adds a 12pt space plus or minus 4pt depending on other factors (document type, available space, etc): \bigskip.
Add a break lines is to create a new paragraph: an empty line in the code.
Or you can add a break lines to create a new paragraph: \par.
Add a line break:
\\ (two backslashes)
or
\newline
or
\hfill \break
Breaks the line at the point of the command and additionally prohibits a page break after the forced line break: \\* (two backslashes and an asterisk).
Paragraph Alignment
- flushleft environments is align left.
example:
\begin{flushleft}
% \LaTex{} \LaTex{} \LaTex{}
\end{flushleft}
- flushright environments
example:
\begin{flushright}
% \LaTex{} \LaTex{} \LaTex{}
\end{flushright}
- center environments
example:
\begin{center}
% \LaTex{} \LaTex{} \LaTex{}
\end{center}
Paragraph Indentation
\setlength{\parindent}{20pt}
\section*{This is a section}
\textbf{First paragraph} of a section which, as you can see, is not indented. This is more text in the paragraph. This is more text in the paragraph.
\textbf{Second paragraph}. As you can see it is indented. This is more text in the paragraph. This is more text in the paragraph.
\noindent\textbf{Third paragraph}. This too is not indented due to use of \texttt{\string\noindent}. This is more text in the paragraph. This is more text in the paragraph. The current value of \verb|\parindent| is \the\parindent. This is more text in the paragraph.
Notes on indentation-related commands
Paragraph indentation is controlled or influenced by these commands:- \parindent: a parameter which stores the current size of the paragraph indent.
- \indent: the effect of this command depends where it is used:
- in a horizontal mode (inside a paragraph or an \hbox) or math mode it inserts a space (an empty box) of width \setlength{\parindent}{20pt}.
- in a vertical mode (between paragraphs or in a \vbox) it triggers the start a new indented paragraph.
- \noindent: the effect of this command also depends where it is used:
- in a vertical mode (between paragraphs or in a \vbox) it also triggers a new non-indented paragraph.
- in a horizontal mode (inside a paragraph or an \hbox) or math mode it has no effect: it is ignored.
- at the beginning of the paragraph. Obviously, this will only have an effect when \parindent is not set to zero. If you want to indent the beginning of every section, you can use the indentfirst package: once loaded, the beginning of any chapter/section is indented by the usual paragraph indentation.
Tidak ada komentar:
Posting Komentar