Skip to content
Snippets Groups Projects
Commit 82d69e4b authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Set internal sections with light gray background

/close #82
parent 1b88d4a0
No related branches found
No related tags found
No related merge requests found
......@@ -356,10 +356,10 @@ class Fork(Element):
elif self.test_private(self.name):
if show_private:
# font: \fontfamily{lmr}\selectfont
return (r"\textit{Interner Abschnitt:" + "\n"
return (r"\colorbox{itemizebackground}{\parbox[t]{\linegoal}{Interner Abschnitt:" + "\n"
+ r"\begin{itemize}" + "\n"
+ content_lines + "\n"
+ r"\end{itemize}}")
+ r"\end{itemize}}}")
else:
# todo: bessere Formulierung finden
return r"\textit{[An dieser Stelle wurde intern protokolliert.]}"
......
......@@ -23,6 +23,9 @@
\RequirePackage[babel]{csquotes}
\RequirePackage{polyglossia}
\RequirePackage{enumitem}
\RequirePackage{color}
\RequirePackage{xcolor}
\RequirePackage{linegoal}
\setlistdepth{\VAR{maxdepth}}
\renewlist{itemize}{itemize}{\VAR{maxdepth}}
......@@ -30,6 +33,8 @@
\setlist[itemize,\VAR{index+1}]{label=\VAR{loop.cycle(*bulletpoints)}}
\ENV{endfor}
\definecolor{itemizebackground}{gray}{0.95}
\setmainlanguage[babelshorthands=true]{german}
\ENV{macro specify_font(font, name)}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment