Creating documents using LaTeX involves a set of commands and syntax specific to LaTeX. Here’s a cheat sheet to help you get started with some commonly used LaTeX commands:
Document Structure
Document Class:
\documentclass{article}
Begin/End Document:
\begin{document}
...
\end{document}
Title and Author
Title:
\title{Document Title}
Author:
\author{Author Name}
Date:
\date{\today}
Create Title:
\maketitle
Sections and Subsections
Section:
\section{Section Title}
Subsection:
\subsection{Subsection Title}
Subsubsection:
\subsubsection{Subsubsection Title}
Text Formatting
Bold:
\textbf{Bold Text}
Italic:
\textit{Italic Text}
Underline:
\underline{Underlined Text}
Lists
Itemize:
\begin{itemize}
\item Item 1
\item Item 2
\end{itemize}
Enumerate:
\begin{enumerate}
\item Item 1
\item Item 2
\end{enumerate}
Math Mode
Inline Math:
$E=mc^2$
Display Math:
\[E=mc^2\]
Tables
Simple Table:
\begin{tabular}{|c|c|}
\hline
Cell 1 & Cell 2 \\
\hline
Cell 3 & Cell 4 \\
\hline
\end{tabular}
Figures
Include Image:
\includegraphics{image.jpg}
Caption and Label:
\caption{Figure Caption}
\label{fig:example}
References
Section Reference:
\ref{sec:example}
Figure Reference:
\ref{fig:example}
Footnotes
Insert Footnote:
\footnote{This is a footnote.}
Document Styles
Font Size:
\documentclass[12pt]{article}
Page Margins:
\usepackage[left=1in, right=1in, top=1in, bottom=1in]{geometry}
This LaTeX cheat sheet provides a starting point for creating documents. LaTeX has many more features and packages for specialized tasks, so refer to the LaTeX Wikibook or the Comprehensive LaTeX Symbol List for more detailed information.