Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Adrian C. Hinrichs
LaTeX-templates
Commits
1726b62a
Verified
Commit
1726b62a
authored
Nov 03, 2016
by
Adrian C. Hinrichs
☕
Browse files
Add an optional parameter to \solution and \proof
parent
d9edb2e7
Changes
4
Hide whitespace changes
Inline
Side-by-side
HomeworkAssignment.cls
View file @
1726b62a
...
...
@@ -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
eg_assignment.pdf
View file @
1726b62a
No preview for this file type
eg_assignment.tex
View file @
1726b62a
...
...
@@ -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}
eg_assignment_2.pdf
View file @
1726b62a
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment