Bopytex/example/simple/tpl_example.tex

45 lines
679 B
TeX
Raw Permalink Normal View History

2022-05-04 16:00:54 +00:00
\documentclass[12pt]{article}
\title{Bopytex example -- \Var{ subject.number }}
2022-05-04 16:00:54 +00:00
\begin{document}
\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}
2022-05-04 16:00:54 +00:00
\section{Variables}
\subsection{subject}
\begin{itemize}
%- for k,v in subject.items()
\item
\begin{verbatim}
\Var{k}: \Var{v}
\end{verbatim}
%- endfor
\end{itemize}
\subsection{options}
\begin{itemize}
%- for k,v in options.items()
\item
\begin{verbatim}
\Var{k}: \Var{v}
\end{verbatim}
%- endfor
\end{itemize}
2022-05-04 16:00:54 +00:00
\end{document}