Mastering LaTeX Formatting: A Guide with Examples

Siva
2 min readApr 12, 2023

Introduction:

LaTeX is a powerful tool for document preparation, but mastering its formatting capabilities can be a challenge. In this guide, I’ll walk you through some of the essential LaTeX formatting techniques, complete with examples that you can try out for yourself.

Section 1: Basic Formatting Techniques

  • Bold and Italic Text: Use \textbf{} for bold and \textit{} for italicized text. Example: This is \textbf{bold} and this is \textit{italicized} text.
  • Underlined Text: Use \underline{}. Example: This is \underline{underlined} text.
  • Superscript and Subscript: Use ^{}for superscripts and _{} for subscripts. Example: H\textsubscript{2}O and E = mc\textsuperscript{2}.
  • Font Size: Use \fontsize{}{} for custom font sizes. Example: This text is {\fontsize{16}{18}\selectfont larger}than this text.
  • Bullet Points: Use \begin{itemize}and \itemfor bullet points. Example:
\begin{itemize} \item First item \item Second item \item Third item \end{itemize}

Section 2: Advanced Formatting Techniques

  • Tables: Use the tabular environment for tables. Example:
\begin{tabular}{|c|c|} \hline Column 1 & Column 2 \ \hline Row 1, Column 1 & Row 1, Column 2 \ \hline Row 2, Column 1 & Row 2, Column 2 \ \hline \end{tabular}

--

--

No responses yet