GeneralLaTeX Formal Grammar

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
bmiguel11
Posts: 2
Joined: Tue Jan 18, 2011 12:04 pm

LaTeX Formal Grammar

Post by bmiguel11 »

Good morning,

Does anyone know where can I find a list of all the regular expressions recognized by the LaTeX's lexer and the language's formal grammar?

Thank you very much.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: LaTeX Formal Grammar

Post by josephwright »

There isn't one. TeX's use of category codes means that the input does not necessarily conform to a rigid scheme. While the LaTeX kernel uses a broadly more restricted range of syntax, plain TeX macros and primitives are perfectly-valid LaTeX input and so the same situation applies.
Joseph Wright
Post Reply