Verified Commit 1726b62a authored by Adrian C. Hinrichs's avatar Adrian C. Hinrichs
Browse files

Add an optional parameter to \solution and \proof

parent d9edb2e7
......@@ -119,20 +119,28 @@ Abgabe: \@abgabe\\
\subproblem{\roman{subsubproblem})}
}
\newcommand{\solution}{\@startsection{solution}%Name
\newcommand{\solution}[1][]{\@startsection{solution}%Name
{4}%Level
{\parindent}%indent
{-.1em}%beforeskip
{\z@}%afterskip
{\normalfont\bfseries}%style
*{L\"osung:~~}}
\newcommand{\proof}{\@startsection{proof}%Name
*{L\"osung\ifthenelse{\equal{#1}{}}
{}
{ #1}:~~
}
}
\newcommand{\proof}[1][]{\@startsection{proof}%Name
{4}%Level
{\parindent}%indent
{-.1em}%beforeskip
{\z@}%afterskip
{\normalfont\bfseries}%style
*{Beweis:~~}}
*{Beweis\ifthenelse{\equal{#1} {} }
{}
{ #1}:~~
}
}
\endinput
%ToDo: Besipieldokument erstellen und ausgabe ansehehn
No preview for this file type
......@@ -11,8 +11,11 @@
\lipsum[1]
\newsubproblem
\lipsum[2]
\solution
\lipsum[3]
\solution
\lipsum[4]
\solution[i]
\lipsum[5]
\subproblem{Schlussfolgerung}
\newsubsubproblem
\lipsum[1]
......@@ -24,5 +27,6 @@
\lipsum[5]
\problem{Bonusaufgabe}
\lipsum[6]
\proof[durch vollst\"andige Induktion]
\lipsum[7]
\end{document}
No preview for this file type
Markdown is supported
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