Back to Documentation
Writing LaTeX
A brief guide to the most common LaTeX commands you'll use in Paperly.
Document Structure
Every LaTeX document starts with a preamble and a document environment:
\documentclass{article}
% Preamble: Add packages here
\usepackage{graphicx}
\begin{document}
% content goes here
\end{document}Text Formatting
Bold & Italic
\textbf{Bold Text}\textit{Italic Text} Sections
\section{Title}\subsection{Subtitle}Lists
Use itemize for bullet points and enumerate for numbered lists.
\begin{itemize}
\item First bullet
\item Second bullet
\end{itemize}Mathematics
LaTeX excels at typesetting math. Use $ for inline math and equation for display math.
The mass-energy equivalence is $E=mc^2$.
\begin{equation}
\int_{0}^{\infty} e^{-x^2} dx = \frac{\sqrt{\pi}}{2}
\end{equation}Images
To include images, make sure you use the graphicx package.
\begin{figure}[h]
\centering
\includegraphics[width=0.5\textwidth]{image.png}
\caption{My Figure}
\label{fig:myfigure}
\end{figure}Tip: You can upload images by dragging and dropping them into the file explorer on the left.