chirun-ncl / chirun

A Python package providing the command line interface for building flexible and accessible content with Chirun.
https://chirun.org.uk/
Other
30 stars 4 forks source link

amsthm/proof not showing text #218

Closed IanHawke closed 10 months ago

IanHawke commented 10 months ago

With chirun 1.1.0 the document

\documentclass[a4paper]{report}
\usepackage{amsmath,amsthm,chirun}

\newtheorem{thm}{Theorem}

\begin{document}

\begin{thm}
  Hello world
\end{thm}
\begin{proof}
  Does this show?
\end{proof}

\end{document}

does not show the text in the proof in the HTML output. Tested as a local build on Mac and also with the web front end.

IanHawke commented 10 months ago

I can confirm that the problem didn't show up with version 1.0.

christianp commented 10 months ago

Thanks for reporting this! We had a real headache trying to work out how the template for proof environments should work: it seems that it behaves very differently if you define it with \newenvironment compared to having it defined by amsthm. I think I've fixed it now so it should work either way.