Refact: move mapytex to usecase and build example

This commit is contained in:
Bertrand Benjamin 2022-07-19 16:37:14 +02:00
parent 473f554ebe
commit 3d54cce718
6 changed files with 16 additions and 8 deletions

View File

@ -1,7 +0,0 @@
from mapytex import Expression
from bopytex.jinja2_env.texenv import texenv
jinja2 = {
"environment": texenv,
}

Binary file not shown.

View File

@ -2,11 +2,25 @@
% %
\documentclass[12pt]{article} \documentclass[12pt]{article}
\title{Bopytex example -- {{ number }}} \title{Bopytex example -- \Var{ number }}
\begin{document} \begin{document}
\maketitle \maketitle
%- set a = 10
%- set n = 2
We have two variables
\begin{itemize}
\item a: \Var{a}
\item n: \Var{n}
\end{itemize}
%# We can use blocks
\begin{itemize}
%- for i in range(n)
\item \Var{a}
%- endfor
\end{itemize}
\end{document} \end{document}

View File

@ -0,0 +1 @@
from mapytex import Expression

Binary file not shown.