Skip to content

Commit

Permalink
ready for LaTeXML
Browse files Browse the repository at this point in the history
  • Loading branch information
teepeemm committed Oct 22, 2021
1 parent dabe1ef commit 547c6dd
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions headers/APEX_format.tex
Original file line number Diff line number Diff line change
Expand Up @@ -422,17 +422,17 @@
\makeatletter
\newcommand{\openenumerate}{%
\ifx\@currenvir\exerenv\else%
\begin{sectionexercises}
\ifbool{latexml}{%
\begin{sectionexercises}%[label=\arabic*.,ref=\arabic*]
\setcounter{sectionexercisesi}{\value{saveexercisenum}}%
}{%
\begin{sectionexercises}
}%
}{}%
\fi%
}
\newcommand{\closeenumerate}{
\ifx\@currenvir\exerenv%
\ifbool{latexml}{\setcounter{saveexercisenum}{\value{sectionexercisesi}}}{}%
\ifbool{latexml}{%
\setcounter{saveexercisenum}{\value{sectionexercisesi}}%
}{}%
\end{sectionexercises}
\fi%
}
Expand Down Expand Up @@ -523,6 +523,8 @@
\renewcommand{\questioncolumnbreak}{}%
\packageinanswersection%
\showexerciseanswers%
\setlist[enumerate,1]{label=\arabic*.}% for solutions
% LaTeX already does this, but LaTeXML doesn't
}%

\newtoggle{printoddanswersonly}
Expand Down Expand Up @@ -568,8 +570,10 @@
}
\newcommand*{\loadAnswers}[1]{%
% \stepcounter{answersection}%
\begin{enumerate}[leftmargin=1.5em]\input{#1}\end{enumerate}%
\bigbreak%
\begin{enumerate}[leftmargin=1.5em]%
\input{#1}
\end{enumerate}%
\bigbreak%
}


Expand Down

0 comments on commit 547c6dd

Please sign in to comment.