diff --git a/example/simple/tpl_example.tex b/example/simple/tpl_example.tex index 6519eb3..c02be2c 100644 --- a/example/simple/tpl_example.tex +++ b/example/simple/tpl_example.tex @@ -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} diff --git a/example/usecase/bopytex_config.py b/example/usecase/bopytex_config.py index 03a19e3..d8dd2b9 100644 --- a/example/usecase/bopytex_config.py +++ b/example/usecase/bopytex_config.py @@ -1 +1,4 @@ from mapytex import Expression +direct_access = { + "Expression": Expression + } diff --git a/example/usecase/tpl_example.tex b/example/usecase/tpl_example.tex index d5a90bc..c69211e 100644 --- a/example/usecase/tpl_example.tex +++ b/example/usecase/tpl_example.tex @@ -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}