0% found this document useful (0 votes)
2 views

latex2

The document provides instructions on basic text formatting in LaTeX, including commands for bold, italic, underlined, and typewriter fonts. It also covers font sizes, paragraph formatting, text alignment, list creation, quoting, and citation methods. Additionally, it explains how to customize paragraphs with indentation and spacing options.

Uploaded by

unanimoushacker3
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

latex2

The document provides instructions on basic text formatting in LaTeX, including commands for bold, italic, underlined, and typewriter fonts. It also covers font sizes, paragraph formatting, text alignment, list creation, quoting, and citation methods. Additionally, it explains how to customize paragraphs with indentation and spacing options.

Uploaded by

unanimoushacker3
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

FORMATTING TEXT

AND
PARAGRAPHS
1. BASIC TEXT FORMATTING
BOLD TEXT
TO MAKE TEXT BOLD, USE THE COMMAND.
\TEXTBF{}

ITALIC TEXT
• TO ITALICIZE TEXT, USE THE COMMAND.
\TEXTIT{}

UNDERLINED TEXT
• TO UNDERLINE TEXT, USE THE COMMAND.
\UNDERLINE{}
TYPEWRITER (MONOSPACED) FONT
• To display text in a monospaced (typewriter) font, use the command.
\TEXTTT{}

SMALL CAPS
• To display text in small caps, use the command.
\textsc{}

EMPHASIZED TEXT
• To emphasize text (usually rendered as italicized), use the
command. this is typically used for emphasis in text.
\emph{}
2. FONT SIZE

• \tiny {this is tiny text.}


• \scriptsize {this is script-sized text.}
• \footnotesize {this is footnote-sized text.}
• \small {this is small text.}
• \normalsize {this is normal text.}
• \large {this is large text.}
• \Large {this is larger text.}
• \LARGE {this is even larger text.}
• \huge {this is huge text.}
• \Huge {this is the biggest text.}
3. PARAGRAPH FORMATTING
LINE BREAKS:
• To break a line within a paragraph, use \\
• This is the first line.\\
• This is the second line.

PARAGRAPH BREAK
• A paragraph is created by leaving a blank line between two blocks of text
• This is the first paragraph.

• This is the second paragraph.


INDENTING PARAGRAPHS
• By default, latex indents paragraphs. to change this, you can set \parindent to zero
or a different length:
• \setlength{\parindent}{0pt} % no indentation

CHANGING LINE SPACING


• To change the line spacing, you can use the setspace package:
• \usepackage{setspace}
• \singlespacing % Single spacing
• \onehalfspacing % 1.5 line spacing
• \doublespacing % Double spacing
4. ALIGNING TEXT
CENTERING TEXT
• use the center environment
\begin{center}
This text is centered.
\end{center}
LEFT-ALIGNING TEXT
• This is the default behavior, but you can use the flushleft
environment:
\begin{flushleft}
This text is left-aligned.
\end{flushleft}
RIGHT-ALIGNING TEXT:
• \begin{flushright}
• this text is right-aligned.
• \end{flushright}
5. LISTS
ITEMIZED LIST ENUMERATED LIST:
• \begin{itemize} \begin{description}
• \item first item \item[first] the first
item
• \item second item \item[second] the
second item
• \item third item \item[third] the third
item
• \end{itemize} \end{description}
DESCRIPTION LIST
• \begin{enumerate}
• \item first item
• \item second item
• \item third item
• \end{enumerate}
6. QUOTATION AND CITATIONS
QUOTING TEXT:
• \begin{quote}
• this is a blockquote.
• \end{quote}

• CITING REFERENCES:
• \cite{authoryear}
7. CUSTOMIZING PARAGRAPHS WITH \PAR AND \
NOINDENT
NO INDENTATION:
• \noindent this paragraph has no indentation.

MANUAL PARAGRAPH BREAK:


• This is the first part of the paragraph.\par
• This is the second part.

You might also like