Let
X
Journal
Category Archive

TUTORIAL

·2 min read

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.

latexchemistry
Open →
·2 min read

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.

latexcolor
Open →
·2 min read

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.

latexcover-letter
Open →
·2 min read

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.

latexheaders
Open →
·2 min read

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.

latexpdf
Open →
·2 min read

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.

latexcross-reference
Open →
·2 min read

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.

latexmacros
Open →
·2 min read

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.

latexspacing
Open →
·2 min read

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.

latexlists
Open →
·2 min read

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.

latexlayout
Open →
·2 min read

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.

latexappendix
Open →
·2 min read

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.

latexhyperref
Open →
·2 min read

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.

latexfootnotes
Open →
·2 min read

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.

latexlayout
Open →
·2 min read

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.

latexalgorithms
Open →
·2 min read

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.

latexstructure
Open →
·2 min read

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.

latexcompile
Open →
·2 min read

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.

latexbeamer
Open →
·2 min read

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.

latexthesis
Open →
·2 min read

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.

latexstructure
Open →
·2 min read

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.

latexmath
Open →
·2 min read

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.

latextikz
Open →
·2 min read

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.

latexbeginners
Open →
·2 min read

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.

latexmath
Open →
·2 min read

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.

latexfigures
Open →
·2 min read

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.

latextables
Open →
·3 min read

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.

latexresearch
Open →