Text Formatting, Fonts & Environments
Master LaTeX font styles, semantic emphasis, font sizes, custom list environments, blockquotes, and typographic characters.
Text Styles & Formatting
Comprehensive syntax, arguments, options, and copyable snippets for text styles & formatting.
\textbf{text}
Bold text
Bold Font: Renders text in boldface weight. For bold math letters use \mathbf{...} or \boldsymbol{...} for bold Greek symbols.
\textbf{important}
\textit{text}
Italic text
Italic Font (Slanted): Renders text in slanted italic serif typeface. If text is nested inside already-italicized passages, prefer \emph{text}.
\textit{Physica Scripta}
\textsl{text}
Slanted text
\textsl{slanted note}
\textsc{text}
Small caps text
\textsc{Ramanuj Gupta College}
\texttt{text}
Monospace/typewriter text
\texttt{goscat.py}
\textrm{text}
Roman family text
\textrm{normal roman text}
\textsf{text}
Sans-serif text
\textsf{sans-serif text}
\textup{text}
Upright shape text
\textup{upright text}
\textmd{text}
Medium weight text
\textmd{medium weight text}
\emph{text}
Emphasized (usually italic) text
Context-Aware Semantic Emphasis: In upright text, \emph{...} produces italics. In italicized text, \emph{...} switches back to upright font automatically.
\emph{note this carefully}
\underline{text}
Underlined text
\underline{key result}
\uline{text}
Underlined text (soul/ulem package)
\uline{underlined phrase}
\sout{text}
Strikethrough text (ulem package)
\sout{deleted phrase}
\textsuperscript{text}
Superscript text
1\textsuperscript{st}
\textsubscript{text}
Subscript text
H\textsubscript{2}O
\tiny
Sets tiny font size
{\tiny tiny text}
\scriptsize
Sets script font size
{\scriptsize script text}
\footnotesize
Sets footnote font size
{\footnotesize footnote-sized text}
\small
Sets small font size
{\small small text}
\normalsize
Sets normal font size
{\normalsize normal text}
\large
Sets large font size
{\large large text}
\Large
Sets larger font size
{\Large larger text}
\LARGE
Sets even larger font size
{\LARGE even larger text}
\huge
Sets huge font size
{\huge huge text}
\Huge
Sets largest font size
{\Huge largest text}
\bfseries
Switches to bold series (declaration form)
{\bfseries bold text}
\itshape
Switches to italic shape (declaration form)
{\itshape italic text}
\slshape
Switches to slanted shape (declaration form)
{\slshape slanted text}
\scshape
Switches to small caps shape (declaration form)
{\scshape small caps text}
\ttfamily
Switches to typewriter family (declaration form)
{\ttfamily typewriter text}
\sffamily
Switches to sans-serif family (declaration form)
{\sffamily sans-serif text}
\rmfamily
Switches to roman family (declaration form)
{\rmfamily roman text}
\mdseries
Switches to medium series (declaration form)
{\mdseries medium text}
\upshape
Switches to upright shape (declaration form)
{\upshape upright text}
\normalfont
Resets to document's normal font
{\normalfont reset text}
\centering
Centers content (declaration form)
\centering Centered text
\raggedright
Left-aligns, ragged right
\raggedright Left aligned text
\raggedleft
Right-aligns, ragged left
\raggedleft Right aligned text
Lists, Quotes & Environments
Comprehensive syntax, arguments, options, and copyable snippets for lists, quotes & environments.
\begin{center}...\end{center}
Centers content
\begin{center}
Centered text
\end{center}
\begin{flushleft}...\end{flushleft}
Left-aligns content
\begin{flushleft}
Left text
\end{flushleft}
\begin{flushright}...\end{flushright}
Right-aligns content
\begin{flushright}
Right text
\end{flushright}
\begin{quote}...\end{quote}
Short quotation, indented both sides
\begin{quote}
A short quotation.
\end{quote}
\begin{quotation}...\end{quotation}
Longer quotation with paragraph indents
\begin{quotation}
A longer quotation with multiple paragraphs.
\end{quotation}
\begin{verse}...\end{verse}
Poetry formatting
\begin{verse}
Roses are red \\
Violets are blue
\end{verse}
\begin{itemize}...\end{itemize}
Bulleted list
Unordered Bullet List: Encloses \item entries with standard bullets or custom markers (\item[--]).
\begin{itemize}
\item First point
\item Second point
\end{itemize}
\begin{enumerate}...\end{enumerate}
Numbered list
Ordered Numbered List: Encloses numbered \item entries with automatic counter hierarchy (1., (a), (i), A.).
\begin{enumerate}
\item First step
\item Second step
\end{enumerate}
\begin{description}...\end{description}
Description list
Term-Definition List: Uses \item[Term] for bold title headers followed by indented descriptions.
\begin{description}
\item[Term] Explanation
\end{description}
\item
List item marker
\item First item
\item[label]
List item with custom label
\item[(a)] Custom labeled item
\begin{verbatim}...\end{verbatim}
Verbatim text (no interpretation)
\begin{verbatim}
print("hello")
\end{verbatim}
\begin{tabular}{cols}...\end{tabular}
Basic table environment
Column Alignment & Border Specifiers:
• l: Left-aligned column.
• c: Centered column.
• r: Right-aligned column.
• p{width}: Paragraph column with top-aligned text and automatic line wrapping (e.g. p{4cm}).
• m{width}: Paragraph column with vertically centered text (requires \usepackage{array}).
• b{width}: Paragraph column with bottom-aligned text.
• |: Single vertical grid line.
• ||: Double vertical grid line.
• @{text}: Replaces default column padding with custom text, or removes margin with @{}.
\begin{tabular}{cc}
A & B \\
1 & 2 \\
\end{tabular}
\begin{table}...\end{table}
Floating table wrapper
Float Placement Parameter [htbp]:
• h (here): Try placing the table at the exact current position in the source code.
• t (top): Place the table at the top of the current or next page.
• b (bottom): Place the table at the bottom of the page.
• p (page): Place the table on a separate page dedicated to floating objects.
• ! (override): Relaxes LaTeX internal float packing parameters (e.g. [!htbp]).
\begin{table}
\centering
\caption{Results}
\begin{tabular}{cc}
A & B\\
\end{tabular}
\end{table}
\begin{figure}...\end{figure}
Floating figure wrapper
Float Placement Parameter [htbp]:
• h: Place here at point of insertion.
• t: Top of page.
• b: Bottom of page.
• p: Float page.
• !: Overrides LaTeX restrictive float limits.
\begin{figure}
\centering
\includegraphics{plot.png}
\caption{A plot}
\end{figure}
\begin{minipage}{width}...\end{minipage}
Miniature page block
\begin{minipage}{0.5\textwidth}
Left column text
\end{minipage}
\begin{abstract}...\end{abstract}
Abstract section
\begin{abstract}
This paper presents...
\end{abstract}
\begin{titlepage}...\end{titlepage}
Custom title page
\begin{titlepage}
\centering
\Huge My Thesis
\end{titlepage}
\begin{array}{cols}...\end{array}
Math-mode array
$\begin{array}{cc} a & b \\ c & d \end{array}$
\begin{equation}...\end{equation}
Single numbered equation
\begin{equation}
E = mc^2
\end{equation}
\begin{equation*}...\end{equation*}
Single unnumbered equation (amsmath)
\begin{equation*}
E = mc^2
\end{equation*}
\begin{align}...\end{align}
Aligned multi-line equations (amsmath)
AMS Multiline Alignment: Place & before equality or relational operators to align equations vertically across lines. Use \\ to break lines. Each line is numbered individually; suppress numbers on specific lines using \nonumber or \notag.
\begin{align}
x &= a + b \\
y &= c + d
\end{align}
\begin{align*}...\end{align*}
Aligned unnumbered equations (amsmath)
\begin{align*}
x &= a + b \\
y &= c + d
\end{align*}
\begin{gather}...\end{gather}
Centered multi-line equations (amsmath)
\begin{gather}
x = a+b \\
y = c+d
\end{gather}
\begin{multline}...\end{multline}
Single long equation split across lines (amsmath)
\begin{multline}
a + b + c \\
+ d + e
\end{multline}
\begin{cases}...\end{cases}
Piecewise case definitions (amsmath)
Piecewise Function: Renders multiple mathematical condition branches enclosed by a large auto-scaling left curly brace.
$f(x)=\begin{cases}1 & x>0\\0 & x\le 0\end{cases}$
\begin{matrix}...\end{matrix}
Matrix without delimiters (amsmath)
$\begin{matrix}a & b\\ c & d\end{matrix}$
\begin{pmatrix}...\end{pmatrix}
Matrix with parentheses (amsmath)
$\begin{pmatrix}a & b\\ c & d\end{pmatrix}$
\begin{bmatrix}...\end{bmatrix}
Matrix with square brackets (amsmath)
$\begin{bmatrix}a & b\\ c & d\end{bmatrix}$
\begin{vmatrix}...\end{vmatrix}
Matrix with vertical bars (determinant, amsmath)
$\begin{vmatrix}a & b\\ c & d\end{vmatrix}$
\begin{Bmatrix}...\end{Bmatrix}
Matrix with curly braces (amsmath)
$\begin{Bmatrix}a & b\\ c & d\end{Bmatrix}$
\begin{theorem}...\end{theorem}
Theorem environment (amsthm)
\begin{theorem}
Every bounded sequence has a convergent subsequence.
\end{theorem}
\begin{proof}...\end{proof}
Proof environment (amsthm)
\begin{proof}
By construction...\qed
\end{proof}
\begin{lemma}...\end{lemma}
Lemma environment (amsthm)
\begin{lemma}
The function is continuous.
\end{lemma}
\begin{definition}...\end{definition}
Definition environment (amsthm)
\begin{definition}
A set is open if...
\end{definition}
Special Characters & Accents
Comprehensive syntax, arguments, options, and copyable snippets for special characters & accents.
\%
Escaped percent sign
50\% efficiency
\$
Escaped dollar sign
Cost: \$50
\&
Escaped ampersand
Smith \& Jones
\#
Escaped hash/pound sign
Item \#3
\_
Escaped underscore
file\_name
\{
Escaped left brace
\{x\}
\}
Escaped right brace
\{x\}
\textasciitilde
Tilde character
\textasciitilde
\textasciicircum
Circumflex character
\textasciicircum
\textbackslash
Backslash character
\textbackslash
\ldots (text mode)
Horizontal ellipsis in text mode
and so on\ldots
\dag
Dagger symbol (text mode)
Note\dag
\ddag
Double dagger symbol (text mode)
Note\ddag
\S
Section sign
\S 2.1
\P
Pilcrow/paragraph sign
\P 3
\copyright
Copyright symbol
\copyright\ 2026
\pounds
Pound sterling symbol
\pounds 50
\dots
Ellipsis (context-sensitive)
one, two, \dots
\ss
German sharp s (eszett)
stra\ss e
\ae
ae ligature
\ae sthetic
\oe
oe ligature
\oe uvre
\aa
Nordic a-ring
\aa ngstrom