summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/exsol/exsol.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/exsol/exsol.sty')
-rw-r--r--Master/texmf-dist/tex/latex/exsol/exsol.sty5
1 files changed, 3 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/exsol/exsol.sty b/Master/texmf-dist/tex/latex/exsol/exsol.sty
index b8980fb5ca9..94f5fc2fc12 100644
--- a/Master/texmf-dist/tex/latex/exsol/exsol.sty
+++ b/Master/texmf-dist/tex/latex/exsol/exsol.sty
@@ -29,6 +29,7 @@
\DeclareStringOption[normalsize]{exercisesfontsize}
\DeclareBoolOption[false]{exerciseaslist}
\DeclareBoolOption[false]{copyexercisesinsolutions}
+\DeclareBoolOption[false]{minipage}
\ProcessKeyvalOptions*
\newcommand{\exercisesfontsize}{\csname \exsol@exercisesfontsize\endcsname}
\AtBeginDocument{
@@ -100,7 +101,7 @@
\DefineVerbatimEnvironment{exercise}{exercise}{}
\newenvironment{exsol@exercise}[0]
{%
- \begin{minipage}[t]{\textwidth}%
+ \ifthenelse{\boolean{exsol@minipage}}{\begin{minipage}[t]{\textwidth}}{}%
\ifthenelse{\boolean{exsol@exerciseaslist}}
{\begin{list}%
{%
@@ -122,7 +123,7 @@
{%
\ifthenelse{\boolean{exsol@exerciseaslist}}
{\end{list}}{}
- \end{minipage}
+ \ifthenelse{\boolean{exsol@minipage}}{\end{minipage}}{}
\vspace{1ex}\par
}
\def\solution{\FV@Environment{}{solution}}