summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/exsol
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-08-02 16:27:06 +0000
committerKarl Berry <karl@freefriends.org>2014-08-02 16:27:06 +0000
commitb2dceb8f871748f93317b82cf51ce3365fdc5e75 (patch)
treef9e7f5b6c363e0b3ef6e0fab8f2093ab43990e91 /Master/texmf-dist/source/latex/exsol
parent6934c3725b996c567056ee7c74ef52e1c3ca3f67 (diff)
exsol
git-svn-id: svn://tug.org/texlive/trunk@34799 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/exsol')
-rw-r--r--Master/texmf-dist/source/latex/exsol/exsol.dtx17
1 files changed, 15 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/latex/exsol/exsol.dtx b/Master/texmf-dist/source/latex/exsol/exsol.dtx
index 524cb631760..a0c1538c422 100644
--- a/Master/texmf-dist/source/latex/exsol/exsol.dtx
+++ b/Master/texmf-dist/source/latex/exsol/exsol.dtx
@@ -87,6 +87,8 @@
% \changes{v0.7}{2014/07/14}{. Fixed UTF8 compatibility issues}
% \changes{v0.8}{2014/07/15}{. Fixed missing babel tag and running out
% of write hanles}
+% \changes{v0.9}{2014/07/28}{. Changed default behavior
+% w.r.t. minipage-wraping of exercises}
%
% \DoNotIndex{\newcommand,\newenvironment}
% \setlength{\parindent}{0em}
@@ -400,6 +402,17 @@
% \end{macrocode}
% \end{macro}
%
+% \changes{v0.9}{2014/07/28}{. Changed default behavior
+% w.r.t. minipage-wraping of exercises}
+% \begin{macro}{minipage}
+% This boolean option (true, false) causes the exercises to be
+% wrapped in minipages. This avoids them getting split by a page
+% boundary.
+% \begin{macrocode}
+\DeclareBoolOption[false]{minipage}
+% \end{macrocode}
+% \end{macro}
+%
% The options are processed using:
% \begin{macrocode}
\ProcessKeyvalOptions*
@@ -539,7 +552,7 @@
% \begin{macrocode}
\newenvironment{exsol@exercise}[0]
{%
- \begin{minipage}[t]{\textwidth}%
+ \ifthenelse{\boolean{exsol@minipage}}{\begin{minipage}[t]{\textwidth}}{}%
\ifthenelse{\boolean{exsol@exerciseaslist}}
{\begin{list}%
{%
@@ -561,7 +574,7 @@
{%
\ifthenelse{\boolean{exsol@exerciseaslist}}
{\end{list}}{}
- \end{minipage}
+ \ifthenelse{\boolean{exsol@minipage}}{\end{minipage}}{}
\vspace{1ex}\par
}
% \end{macrocode}