Welcome to latest¶
latest
| A \(\LaTeX\)-oriented template engine
latest is lightweight templating engine for Python, designed for model documents. It has a simple, \(\LaTeX\)-compatible but completely customizable syntax.
\documentclass{article}
\title{\latest{$ title $}}
\begin{document}
\begin{latest}{content}
x = \latest{$ x $} so that $x^2$ = \latest{$ x**2 $}.
\end{latest}
\section{Prime Numbers}
\begin{itemize}
\begin{latest}{content.primes}[join_items={\n}]
\item \latest{$ n $}
\end{latest}
\end{itemize}
\section{Fibonacci}
\begin{latest}{content.fibonacci}[join_items={\n}]
\latest{$ _index $}. \latest{$ _value $}
\end{latest}
\end{document}
Features:
- \(\LaTeX\)-compatible
- customizable syntax
- lists without loops