Learn how to create your first LaTeX document from scratch. Step-by-step guide for beginners using LaTeX Cloud Studio.
article
class is perfect for:
report
- for longer documents with chaptersbook
- for books with parts, chapters, and sectionsletter
- for formal lettersbeamer
- for presentations\begin{document}
is the preamble. This is where you:
\begin{document}
and \end{document}
is your content. This includes:
\end{document}
- Every document must end with this\begin{document}
- Only setup goes in the preamble{
needs a matching }
” for quotes, not ” “%
to add comments that won’t appear in the output:
report
or book
\subsection
and \subsubsection
Command | Purpose | Example |
---|---|---|
\documentclass{} | Set document type | \documentclass{article} |
\begin{document} | Start document content | Required |
\end{document} | End document content | Required |
\title{} | Set document title | \title{My Report} |
\author{} | Set author name | \author{Jane Doe} |
\date{} | Set date | \date{\today} |
\maketitle | Create title block | Place after \begin{document} |
\section{} | Create a section | \section{Introduction} |
% | Comment | % This is a note |