# Marriage of Lisp and LaTeX - has it been done?

I like `LaTeX`, but I find its macro system and logic both complex and weak. languages such as Schem/Lisp/Clojure are very good at macros. I imagine the entire document written in a lisp family language, which, when run, would emit LaTeX code and produce a document. Has this been done before? Any links?

• Yes, a quick Google search reveals Lisp-Augmented TeX. There are probably dozens of others. The LaTeX macro system is actually quite powerful, although not for the faint of heart. You can build your own, copying the design of XML-in-Lisp packages. – Macneil Jul 10 '11 at 3:46
• Note there is a tex stackexchange as well: tex.stackexchange.com – Robert Anton Reese Jul 10 '11 at 23:05
• By the way, LaTeX pays homage to Lisp by calling alternative versions of operators that do something slightly different with a `*` suffix. Lisp has `let` and `let*` and so on, LaTeX has `\section` and `\section*`. – Kaz Dec 16 '15 at 2:05