🔗What is LaTeX and Who is it For?

Most people associate LaTeX (pronounced "Lay-tech" or "Lah-tech") with academic papers, mathematical formulas, and scientific journals. That reputation is earned: LaTeX handles complex notation and large documents better than any word processor. But the same qualities that make it useful for research also make it useful for everyday documents.

I started looking at LaTeX because I wanted a résumé that would not shift its layout when opened on a different machine. What I found was a typesetting system that handles spacing, fonts, and margins consistently without manual intervention. Once you have a template, the content is all you change. The PDF comes out the same every time, regardless of which machine compiled it.


🔗Why LaTeX Instead of a Word Processor?

Word processors are convenient for quick drafts, but they introduce formatting inconsistencies that accumulate over time. Spacing shifts, fonts substitute, and layouts change when a file moves between machines or versions. LaTeX avoids these problems because:

  • Formatting is defined once in the document preamble, not applied manually per paragraph.
  • Output is always a PDF compiled from plain text source, so it renders identically everywhere.
  • Templates are reusable: change the content, recompile, get the same clean result.
  • The source file is plain text, so it works well with version control.

🔗A Minimal Working Example

Copy the following into a file named first.tex. The sample text is original and provided for learning purposes.

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\begin{document}
\title{My First LaTeX Document}
\author{Jane Doe}
\date{\today}
\maketitle

\section{Introduction}
This is my first document written in \LaTeX. The layout is consistent
and the fonts are clean. I did not adjust spacing or margins by hand.

\section{A Short Paragraph}
The quick brown fox practices patience and clarity in every step.
This paragraph is provided for learning purposes.

\section{Why I Like LaTeX}
\begin{itemize}
  \item Consistent formatting across the entire document
  \item Easy to reuse templates for recurring document types
  \item High-quality PDFs that print reliably
\end{itemize}

\end{document}

With fewer than 25 lines of source, LaTeX produces a document with a title, author, date, sections, and a formatted list. No manual spacing or alignment required.

Note on inputenc: If you are using a modern TeX distribution (TeX Live 2018 or later), UTF-8 is the default input encoding and you can omit \usepackage[utf8]{inputenc}. It is harmless to include it explicitly, which is why it appears here for clarity.


🔗Getting Started: Editors and Distributions

To compile .tex files into PDFs, you need a LaTeX distribution and an editor.

🔗Installing a LaTeX Distribution

A LaTeX distribution provides the compiler, standard packages, and supporting tools.

TeX Live (Linux, macOS, Windows): The most complete and widely used distribution.

On Debian/Ubuntu:

sudo apt install texlive-full

On FreeBSD:

pkg install texlive-full

On macOS (using Homebrew):

brew install --cask mactex

On Windows: Download the installer from https://tug.org/texlive/.

MiKTeX (Windows, also available on Linux and macOS): Installs packages on demand, which keeps the initial install smaller. Download from https://miktex.org/.

🔗Editors

TeXstudio is a free, open source editor for Windows, macOS, and Linux. It is a solid choice for offline work, especially with private documents, because your files stay on your machine. It includes autocomplete, inline error highlighting, and a built-in PDF viewer that updates as you compile.

Download: https://www.texstudio.org/

Overleaf is a browser-based LaTeX editor that handles compilation in the cloud. It is convenient for experimenting without installing anything locally, and it supports real-time collaboration. It is not suitable for confidential documents since your files are stored on external servers.

Website: https://www.overleaf.com/


🔗Compiling to PDF

🔗Step 1: Write your .tex file

Save your LaTeX source as a .tex file, for example first.tex.

🔗Step 2: Choose a compiler

Two compilers cover almost all everyday use:

pdflatex: The standard compiler. Fast, widely supported, and compatible with nearly all CTAN packages. Use it for most documents.

xelatex: Required when you want to use system fonts (fonts installed on your operating system, such as Calibri, Georgia, or any OTF/TTF font). Also handles Unicode input better, making it useful for multilingual documents. Use it when you need a specific font or non-Latin scripts.

lualatex: A newer alternative to xelatex with LuaTeX scripting support. Use it if a package explicitly requires it, but pdflatex or xelatex cover most common needs.

A practical rule: start with pdflatex. Switch to xelatex only if you need system fonts or extended Unicode support.

🔗Step 3: Run the compiler

# Using pdflatex
pdflatex first.tex

# Using xelatex
xelatex first.tex

For documents with a table of contents, cross-references, or a bibliography, run the compiler twice. The first pass generates auxiliary files; the second pass reads them to resolve references:

pdflatex first.tex
pdflatex first.tex

The output is first.pdf in the same directory.


🔗Everyday Uses for LaTeX

You do not need to write a research paper to get value out of LaTeX. Some practical applications:

  • Resumes and cover letters: Consistent layout, clean typography, reliable printing across all PDF viewers.
  • Letters: Formal correspondence with proper date, address, and signature blocks.
  • Recipe collections: A personal or family cookbook with uniform headings and spacing.
  • Reports: For work, school, or clubs. Once you have a template, updating the content takes minutes.
  • Invoices and simple forms: Precise column alignment using the tabular environment.
  • Presentations: The beamer package produces slide decks directly from LaTeX source.

🔗A Simple Letter Template

The following example uses the standard letter document class:

\documentclass[11pt]{letter}
\usepackage[T1]{fontenc}

\signature{Alex Smith}
\address{123 Example Street \\ Sample Town, ST 00000}

\begin{document}

\begin{letter}{Pat Lee \\ 456 River Road \\ Sample City, ST 11111}

\opening{Dear Pat,}

Thank you for taking the time to read this letter. The layout is
consistent and prints cleanly without manual adjustments. This sample
text is provided for learning and may be used without restriction.

\closing{Sincerely,}

\end{letter}

\end{document}

The \\ in the address and recipient fields produces a line break within the address block.


🔗Useful Packages for Everyday Documents

PackagePurpose
geometrySet page margins: \usepackage[margin=1in]{geometry}
hyperrefClickable links and PDF metadata
graphicxInclude images: \includegraphics[width=\linewidth]{image.png}
enumitemCustomize list spacing and labels
fontawesome5Icons for resumes and documents (requires xelatex or lualatex)
microtypeSubtle typographic improvements (works with pdflatex)
babelMultilingual support: \usepackage[english]{babel}

🔗Closing Thoughts

LaTeX has a reputation for being intimidating, and the first compile feels like a leap of faith. But once the PDF comes out clean on the first try, something shifts. You start thinking about what else you can put into a template. The initial investment is real, but the output is consistently clean in a way that word processors rarely are. For documents you return to, format carefully, or share in print, LaTeX is genuinely the right tool.

🔗Learning Resources

If you want a structured path, these two courses are approachable starting points:

The official documentation for any package is available at https://ctan.org/. Search for the package name to find its full manual.