The quickest way to learn LaTeX. Create your first professional document in just 30 minutes with our beginner-friendly tutorial.
\begin{document}
): Document settings and package imports\begin{document}
and \end{document}
): Your actual content\
and are case-sensitive.\maketitle
command creates a nicely formatted title block using the information you provided in the preamble.
\\
to force a line break within a paragraph\newpage
to start a new page$...$
or as display equations with \[...\]
:
graphicx
package:
[h]
- here (approximately)[t]
- top of page[b]
- bottom of page[p]
- separate page for floatsl
- left alignedc
- centeredr
- right aligned|
- vertical line\tableofcontents
command automatically generates a table of contents based on your sections!
%
to add comments that won’t appear in the output:
$...$
\begin{document}
Command | Purpose | Example |
---|---|---|
\textbf{} | Bold text | \textbf{Important} |
\textit{} | Italic text | \textit{emphasis} |
\section{} | New section | \section{Introduction} |
$...$ | Inline math | $E = mc^2$ |
\[...\] | Display math | \[x = \frac{a}{b}\] |
\\ | Line break | First line\\Second line |
% | Comment | % This is a comment |