FormaTeX

\begin{article}

draft — not published

LaTeX for Developers: What It Is and Why You Should Care

Most developers have never written LaTeX — but as soon as you need to generate professional PDFs programmatically, it becomes the best tool for the job.

·6 min read·
LaTeX for Developers: What It Is and Why You Should Care

If you have submitted an academic paper, downloaded a textbook, or received a well-formatted technical report, you have almost certainly read a PDF that LaTeX produced. LaTeX is the standard typesetting system for precision documents — but for most developers, it sits behind an invisible wall of installation complexity and unfamiliar syntax. This post tears down that wall.

What Is LaTeX?

LaTeX (pronounced "lah-tech" or "lay-tech") is a document preparation system built on top of TeX, a typesetting program created by Donald Knuth in 1978. Unlike Word, LaTeX is not a WYSIWYG editor — it is a markup language, much like HTML. You write plain text with commands, run it through a compiler, and get a PDF.

latex
\documentclass{article}
\title{My First Document}
\author{Jane Smith}
\date{2026-02-24}

\begin{document}
\maketitle

This is a paragraph. LaTeX handles line breaking, hyphenation,
and spacing automatically.

\end{document}

This compiles into a professionally typeset PDF. The analogy to web development is exact: LaTeX source is to PDF what HTML source is to a rendered webpage.

Why Developers Care About LaTeX

You might never write a research paper, but you will eventually need to generate PDFs that look good. Common scenarios:

  • Invoices — pixel-perfect tables with consistent spacing across clients
  • Resumes/CVs — the best-looking CVs are all LaTeX
  • Reports — data-driven documents with charts, tables, and formulas
  • Certificates — diplomas, completion certificates, awards
  • Academic papers — if you work at a research organization or submit to journals
  • Technical documentation — structured, long-form docs with cross-references and a table of contents

The alternatives — generating HTML and printing to PDF, or wrestling with Word automation — all produce lower-quality output and are harder to maintain than a LaTeX template.

Common Use Cases (With Code)

Invoices and Financial Documents

latex
\documentclass{article}
\usepackage{booktabs}
\usepackage{geometry}
\geometry{margin=2.5cm}

\begin{document}

\begin{tabular}{lrr}
\toprule
Description & Qty & Amount \\
\midrule
API Consulting & 10h & \$1{,}500.00 \\
Infrastructure Setup & 1 & \$500.00 \\
\midrule
\textbf{Total} & & \textbf{\$2{,}000.00} \\
\bottomrule
\end{tabular}

\end{document}

CVs and Resumes

The moderncv class produces industry-standard CVs with one line of configuration:

latex
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}

\name{Jane}{Smith}
\title{Senior Software Engineer}
\email{jane@example.com}
\homepage{github.com/janesmith}

Math-Heavy Reports

latex
\usepackage{amsmath}

The Fourier transform is defined as:
\begin{equation}
  \hat{f}(\xi) = \int_{-\infty}^{\infty} f(x)\, e^{-2\pi i x \xi}\, dx
\end{equation}

The Installation Problem

Here is the wall: to compile LaTeX locally, you install TeX Live. TeX Live is a 4 GB distribution that includes every package ever published to CTAN (the LaTeX package registry). It takes 20–40 minutes to install, needs occasional updates, and behaves differently across OS versions.

In CI/CD, it gets worse:

yaml
# The old way — painful
- name: Install TeX Live
  run: |
    sudo apt-get install -y texlive-full  # pulls ~2 GB
    # And then wait... and wait...

On servers, you either bake TeX Live into a Docker image (adding 4 GB to your image size) or install it at runtime (adding minutes to every build).

TeX Live base packages compile basic documents. For anything non-trivial — custom fonts, bibliography support, scientific notation — you need texlive-full, which is the full 4 GB distribution. There is no easy middle ground.

FormaTeX Solves It

FormaTeX is a multi-product LaTeX platform — Cloud Editor, REST API, AI Assistant, and Playground — that runs LaTeX compilation in the cloud. You can write LaTeX in the editor, send LaTeX source via API, or try it instantly in the Playground. No installation. No Docker images. No maintenance.

bash
# The FormaTeX way — one line
curl -X POST https://api.formatex.io/api/v1/compile \
  -H "X-API-Key: $FORMATEX_KEY" \
  -H "Content-Type: application/json" \
  -d '{"content":"...","engine":"pdflatex"}' \
  --output document.pdf

The API supports all four major LaTeX engines, handles package loading automatically, and returns the compiled PDF within seconds.

Your First API Call

Create a free account

Go to formatex.io/register. No credit card required. The free plan includes 15 compilations per month.

Generate an API key

In the dashboard, navigate to API Keys → New Key. Copy the key — it is shown only once. Store it in an environment variable:

bash
export FORMATEX_KEY=fxk_your_key_here

Compile your first document

bash
curl -X POST https://api.formatex.io/api/v1/compile \
  -H "X-API-Key: $FORMATEX_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "\\documentclass{article}\\begin{document}Hello from FormaTeX!\\end{document}",
    "engine": "pdflatex"
  }' \
  --output hello.pdf

Check the output

Open hello.pdf. You have a professionally typeset PDF compiled with TeX — no installation, no setup.

Choosing the Right Engine

EngineUse when
pdflatexStandard documents, fastest, widest package support
xelatexCustom fonts, Unicode, multilingual content
lualatexLua scripting, programmable documents
latexmkBibliography (BibTeX/Biber), multi-pass compilation

pdflatex is available on the free plan. All four engines are available on Pro plan and above. See the full comparison of pdfLaTeX vs XeLaTeX to pick the right one for your project.

Next Steps

\end{article}

Back to blog

\related{posts}

One quick thing

We track anonymous usage — page views, feature usage, compilation events — to understand what works and what doesn't. No ads, no personal data, no third-party sharing.

Cookie policy