Fix: adapt examples with the new variable access
This commit is contained in:
parent
67656c2cf1
commit
e6595b7041
@ -1,8 +1,6 @@
|
|||||||
% vim:ft=tex:
|
|
||||||
%
|
|
||||||
\documentclass[12pt]{article}
|
\documentclass[12pt]{article}
|
||||||
|
|
||||||
\title{Bopytex example -- \Var{ number }}
|
\title{Bopytex example -- \Var{ subject.number }}
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
|
|
||||||
@ -22,5 +20,11 @@ We have two variables
|
|||||||
%- endfor
|
%- endfor
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
|
|
||||||
|
\section{Variables}
|
||||||
|
\subsection{subject}
|
||||||
|
\Var{subject}
|
||||||
|
\subsection{options}
|
||||||
|
\Var{options}
|
||||||
|
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
|
@ -1 +1,4 @@
|
|||||||
from mapytex import Expression
|
from mapytex import Expression
|
||||||
|
direct_access = {
|
||||||
|
"Expression": Expression
|
||||||
|
}
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
% vim:ft=tex:
|
|
||||||
%
|
|
||||||
\documentclass[12pt]{article}
|
\documentclass[12pt]{article}
|
||||||
|
|
||||||
\title{Bopytex with Mapytex example -- \Var{ number }}
|
\title{Bopytex with Mapytex example -- \Var{ subject.number }}
|
||||||
|
|
||||||
% solution/print = false
|
% solution/print = false
|
||||||
|
|
||||||
@ -15,5 +13,10 @@
|
|||||||
|
|
||||||
\Var{e.simplify()}
|
\Var{e.simplify()}
|
||||||
|
|
||||||
|
\section{Variables}
|
||||||
|
\subsection{subject}
|
||||||
|
\Var{subject}
|
||||||
|
\subsection{options}
|
||||||
|
\Var{options}
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
|
Loading…
Reference in New Issue
Block a user