Skip to content
Transformer attention Markdown rendered as a PDF in the LaTeX Article theme

LaTeX Article theme

Markdown to LaTeX-style PDF

Use plain-text Markdown and get the quiet hierarchy, mathematical typography, margins, notes, and monochrome composition associated with a classic LaTeX article.

A composition, not a filter

The page is rebuilt around a coherent article system

The theme uses New Computer Modern, a monochrome palette, 44.35mm single-column side margins, restrained heading steps, indented quotations, plain code treatment, and LaTeX-like title and footnote spacing. Equations remain semantic typeset content rather than screenshots.

New Computer Modern

Body, headings, and mathematics are designed to read as one typographic voice.

Numbered mathematics

Inline and display equations support labels, numbering, and references within the document.

Print-focused proportions

Measure, leading, notes, lists, and title matter are tuned together instead of styled independently.

Transformer theory example

A technical page that begins as readable Markdown

The demonstration uses a scaled dot-product attention equation, a Mermaid architecture diagram, a context-length table, and an interpretation note. It is deliberately ordinary source text, not hand-positioned page content.

---
title: How a Transformer Chooses Context
author: Lemmafour Research Notes
theme: latex-article
toc: true
---
The transformer attention example open in Lemmafour with its typeset PDF visible
The actual browser editor and generated PDF, using the LaTeX Article theme.

LaTeX-like output, without a TeX build environment

The theme reproduces familiar article typography and composition through Lemmafour's Typst-based engine. It does not compile .tex files and is not byte-for-byte LaTeX output. Use a TeX distribution when your workflow depends on custom LaTeX packages, macros, or `.tex` source compatibility.

Try before export

The LaTeX Article output is part of the professional theme set

You can apply and inspect the theme in Pro Preview. Exporting with it requires a Day Pass or Pro; a free copy substitutes the free Modern Report theme without changing your content.