Tags » Latex

Building the MiniLatex the Parser

MiniLatex Demo App

In this article we discuss the overall design of the MiniLatex parser. Its function is to translate source text into an abstract syntax tree (AST). 1,618 more words

Latex

Using Macros in MiniLatex

User defined macros in math mode are totally legit in MiniLatex.  One way to insert them is like this:

$$
\newcommand{\bra}{\lbracket}
\newcommand{\ket|{\rbracket}
$$

That is, enclose the definitions in double dollar signs.  117 more words

Latex

Handling Latex Errors: Emulating Elm

One of the many things that I admire about Elm as a programming language is the quality of the compiler’s error messages.  The “hooks” for providing good error messages are provided by the… 159 more words

Latex