\begin{codex} ... \end{codex} added to template