Remove minipages breaking exercises (by more more or less undoing 68b43dcc5a, and thereby rendering the special characters exercise partly useless)

This commit is contained in:
Kremitzl 2022-09-23 16:40:26 +02:00
parent b5ad8b380b
commit 50914a0953
2 changed files with 13 additions and 17 deletions

View File

@ -276,37 +276,33 @@
% Exercise Material
% =================
% Takes a project-relative path, and inserts matching exercise material and/or solutions, depending on the exercise mode. The column width can be configured by an optional second argument
\newcommand{\exercisematerial}[2][]{
% Takes a project-relative path, and inserts matching exercise material and/or solutions, depending on the exercise mode.
\newcommand\exercisematerial[1]{
% Mode 'exercises': raw material only
\ifthenelse{\equal{\exercisemode}{exercises}}{
\IfFileExists{#2.raw.tex}{
\begin{minipage}{#1\linewidth}
\input{#2.raw.tex}
\end{minipage}
\IfFileExists{#1.raw.tex}{
\input{#1.raw.tex}
}{}
}{}
% Mode 'solutions': completed material only
\ifthenelse{\equal{\exercisemode}{solutions}}{
\IfFileExists{#2.done.tex}{
\input{#2.done.tex}
\IfFileExists{#1.done.tex}{
\input{#1.done.tex}
}{}
}{}
% Mode 'any': all existing material. If both raw and completed material exist, headings are added for each.
\ifthenelse{\equal{\exercisemode}{any}}{
\IfFileExists{#2.raw.tex}{
\IfFileExists{#2.done.tex}{
\IfFileExists{#1.raw.tex}{
\IfFileExists{#1.done.tex}{
\subsubsection*{Preview of the raw material}
}{}
\begin{minipage}{#1\linewidth}
\input{#2.raw.tex}
\end{minipage}
\input{#1.raw.tex}
}{}
\IfFileExists{#2.done.tex}{
\IfFileExists{#2.raw.tex}{
\IfFileExists{#1.done.tex}{
\IfFileExists{#1.raw.tex}{
\subsubsection*{Preview of the solution}
}{}
\input{#2.done.tex}
\input{#1.done.tex}
}{}
}{}
}

View File

@ -14,5 +14,5 @@ This applies for the subsequent tasks, as well.
\emph{Studi-Karte} using the \code{latex}{\textbackslash enquote} command.
\end{enumerate}
\exercisematerial[.63]{exercises/special-characters/special-characters}
\exercisematerial{exercises/special-characters/special-characters}