TUTORIAL
How to Write Chemistry Formulas in LaTeX (mhchem)
To typeset chemical formulas in LaTeX, load mhchem and write \ce{H2O} or \ce{2H2 + O2 -> 2H2O}. It handles subscripts, charges, and reaction arrows.
How to Color Text & Tables in LaTeX (xcolor)
To color text in LaTeX, load the xcolor package and use \textcolor{red}{text}. Color table rows, cells, and define custom colors with HTML hex codes.
Write a Cover Letter & Academic Email in LaTeX
To write a cover letter in LaTeX, use the letter class or moderncv's letter mode for an address block, date, salutation, and signature. Templates inside.
Headers & Footers in LaTeX with fancyhdr
To customize headers and footers in LaTeX, load the fancyhdr package, set the page style to fancy, and define left/center/right content for each. Full setup inside.
Insert PDF Pages into a LaTeX Document (pdfpages)
To insert PDF pages into LaTeX, load the pdfpages package and use \includepdf[pages=-]{file.pdf}. Select pages, add them to the TOC, and scale to the layout.
Cross-Referencing in LaTeX with \label and \ref
To cross-reference in LaTeX, mark targets with \label{key} and cite with \ref{key} for the number or \pageref{key} for the page. cleveref adds the type word.
Custom Commands & Macros in LaTeX (\newcommand)
Define custom commands in LaTeX with \newcommand to save typing and keep notation consistent. Add arguments, defaults, and environments — full guide inside.
Line Spacing & Double Spacing in LaTeX (setspace)
To double-space a LaTeX document, load the setspace package and use \doublespacing, or \onehalfspacing for 1.5. Apply spacing to the whole document or a section.
Numbered & Bulleted Lists in LaTeX (enumitem)
Make lists in LaTeX with the itemize and enumerate environments; use the enumitem package to customize labels, spacing, and numbering. Copy-paste examples inside.
LaTeX Page Layout: Margins with geometry
To set margins in LaTeX, load the geometry package and specify them, e.g. \usepackage[margin=1in]{geometry}. Control paper size, binding offset, and more.
How to Add an Appendix in LaTeX
To add an appendix in LaTeX, use the \appendix command before your appendix sections — it switches numbering to A, B, C automatically. Full setup inside.
hyperref: Clickable Links, Bookmarks & PDF Metadata
Load the hyperref package last to make every \ref, \cite, and URL clickable in the PDF, add bookmarks, and set document metadata. Setup and options inside.
How to Add Footnotes & Margin Notes in LaTeX
To add a footnote in LaTeX, use \footnote{text} where the mark should appear. Use \marginpar or the marginnote package for notes in the margin.
Two-Column Layout in LaTeX (multicol & twocolumn)
For a two-column LaTeX layout, use the twocolumn class option for the whole document or the multicol package for balanced columns in part of a page.
How to Write Algorithms & Pseudocode in LaTeX
To typeset pseudocode in LaTeX, use the algorithm float with algpseudocode (algorithmicx) or the algorithm2e package. Copy-paste templates for both inside.
Multi-File LaTeX Projects: \input vs \include
Use \input{file} to insert content inline and \include{file} for chapters on a new page with selective compilation via \includeonly. Here's when to use each.
How to Compile LaTeX Online (No Install Needed)
You can compile LaTeX online in the browser with LetX — paste your source, get an instant PDF, no TeX install. Here's how online compiling works vs a local setup.
LaTeX Beamer: Make Presentation Slides Like a Pro
Beamer turns LaTeX into slides: use \documentclass{beamer} and one frame environment per slide. Add themes, overlays, and columns for polished talks.
LaTeX Thesis Template: Format Your Dissertation Fast
A LaTeX thesis uses the report or book class with front matter, numbered chapters, and a bibliography. Copy this structure to format your dissertation fast.
Add a Table of Contents, List of Figures in LaTeX
To add a table of contents in LaTeX, place \tableofcontents after your title and compile twice. Add \listoffigures and \listoftables the same way.
How to Typeset Matrices & Vectors in LaTeX
To write a matrix in LaTeX, use the pmatrix, bmatrix, or vmatrix environment from amsmath. Vectors use \vec or \mathbf. Copy-paste templates for both inside.
How to Draw Diagrams in LaTeX With TikZ
TikZ is LaTeX's native drawing package. Draw inside a tikzpicture using coordinates, nodes, and edges to make flowcharts, graphs, and plots that scale perfectly.
LaTeX for Beginners: Your First Document in 10 Min
LaTeX is a typesetting system for technical documents. Your first file needs \documentclass and a document environment. Build a complete page in ten minutes.
How to Write Math Equations in LaTeX (Cheat Sheet)
Write math in LaTeX with inline $...$ or display \[...\]; use the align environment for multi-line equations. Full symbol and operator cheat sheet inside.
How to Insert and Position Images in LaTeX
To add an image in LaTeX, load graphicx and use \includegraphics inside a figure environment. Control placement with float specifiers h, t, b, and p.
How to Make Tables in LaTeX (Complete Guide)
To make a table in LaTeX, use the tabular environment with column specifiers, and add booktabs rules for clean lines. Copy-paste templates for every table type.
How to Write a Research Paper in LaTeX (2026 Guide)
To write a research paper in LaTeX, start from \documentclass{article}, structure with sections, cite with BibLaTeX, and compile to PDF in LetX for instant preview.