jupyter-book / mystmd

Command line tools for working with MyST Markdown.
https://mystmd.org/guide
MIT License
214 stars 64 forks source link

Custom proof environments from LaTeX #1606

Open eugeniokisho opened 2 weeks ago

eugeniokisho commented 2 weeks ago

The following exemplaratory command defined the original LaTex document is not taken over by curvenote after deploying with CLI:

    \newcounter{Hypothesis}
    \setcounter{Hypothesis}{1}
    \newcommand{\Hypothesis}[0] { \textbf{Hypothesis \arabic{Hypothesis}: } }
    \renewcommand*{\Hypothesis} { \textbf{Hypothesis \arabic{Hypothesis}: } \addtocounter{Hypothesis}{1} 

Same issue if instead using:

\usepackage{amsthm}
\newtheorem{hypothesis}{Hypothesis}
\begin{document}
  Unnumbered theorem-like environments are also possible.
\begin{hypothesis}
This is my hypothesis
\end{hypothesis}
eugeniokisho commented 2 weeks ago

as discussed with Rowan Cocket from Curvenote