Verified Commit d9e8f205 authored by Sascha Brauer's avatar Sascha Brauer
Browse files

Expanded answer environment, such that it fills the rest of the page if the...

Expanded answer environment, such that it fills the rest of the page if the size parameter is omitted
parent c72f1b58
......@@ -107,6 +107,7 @@
}{}
\newtheorem{exam@exercise}{\ifenglish Exercise \else Aufgabe\fi}
\def\RestOfPage{\dimexpr\pagegoal-\pagetotal-\baselineskip\relax}
\ifanswers
\newenvironment{answer}[1][]
{\par\begin{framed}\begin{minipage}{0.9\columnwidth}}
......@@ -115,7 +116,11 @@
\newsavebox{\trashcan}
\newenvironment{answer}[1][]
{
\def\HeightOfBox{#1}
\ifx\relax#1\relax
\def\HeightOfBox{\RestOfPage}
\else
\def\HeightOfBox{#1}
\fi
\ifthenelse{\equal{\HeightOfBox}{nobox}}
{}
{\begin{framed}}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment