Fix: adapt examples with the new variable access

This commit is contained in:
Bertrand Benjamin 2022-07-20 16:20:21 +02:00
parent 67656c2cf1
commit e6595b7041
3 changed files with 16 additions and 6 deletions

View File

@ -1,8 +1,6 @@
% vim:ft=tex:
%
\documentclass[12pt]{article}
\title{Bopytex example -- \Var{ number }}
\title{Bopytex example -- \Var{ subject.number }}
\begin{document}
@ -22,5 +20,11 @@ We have two variables
%- endfor
\end{itemize}
\section{Variables}
\subsection{subject}
\Var{subject}
\subsection{options}
\Var{options}
\end{document}

View File

@ -1 +1,4 @@
from mapytex import Expression
direct_access = {
"Expression": Expression
}

View File

@ -1,8 +1,6 @@
% vim:ft=tex:
%
\documentclass[12pt]{article}
\title{Bopytex with Mapytex example -- \Var{ number }}
\title{Bopytex with Mapytex example -- \Var{ subject.number }}
% solution/print = false
@ -15,5 +13,10 @@
\Var{e.simplify()}
\section{Variables}
\subsection{subject}
\Var{subject}
\subsection{options}
\Var{options}
\end{document}