Commit 82d69e4b authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Set internal sections with light gray background

/close #82
parent 1b88d4a0
...@@ -356,10 +356,10 @@ class Fork(Element): ...@@ -356,10 +356,10 @@ class Fork(Element):
elif self.test_private(self.name): elif self.test_private(self.name):
if show_private: if show_private:
# font: \fontfamily{lmr}\selectfont # font: \fontfamily{lmr}\selectfont
return (r"\textit{Interner Abschnitt:" + "\n" return (r"\colorbox{itemizebackground}{\parbox[t]{\linegoal}{Interner Abschnitt:" + "\n"
+ r"\begin{itemize}" + "\n" + r"\begin{itemize}" + "\n"
+ content_lines + "\n" + content_lines + "\n"
+ r"\end{itemize}}") + r"\end{itemize}}}")
else: else:
# todo: bessere Formulierung finden # todo: bessere Formulierung finden
return r"\textit{[An dieser Stelle wurde intern protokolliert.]}" return r"\textit{[An dieser Stelle wurde intern protokolliert.]}"
......
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
\RequirePackage[babel]{csquotes} \RequirePackage[babel]{csquotes}
\RequirePackage{polyglossia} \RequirePackage{polyglossia}
\RequirePackage{enumitem} \RequirePackage{enumitem}
\RequirePackage{color}
\RequirePackage{xcolor}
\RequirePackage{linegoal}
\setlistdepth{\VAR{maxdepth}} \setlistdepth{\VAR{maxdepth}}
\renewlist{itemize}{itemize}{\VAR{maxdepth}} \renewlist{itemize}{itemize}{\VAR{maxdepth}}
...@@ -30,6 +33,8 @@ ...@@ -30,6 +33,8 @@
\setlist[itemize,\VAR{index+1}]{label=\VAR{loop.cycle(*bulletpoints)}} \setlist[itemize,\VAR{index+1}]{label=\VAR{loop.cycle(*bulletpoints)}}
\ENV{endfor} \ENV{endfor}
\definecolor{itemizebackground}{gray}{0.95}
\setmainlanguage[babelshorthands=true]{german} \setmainlanguage[babelshorthands=true]{german}
\ENV{macro specify_font(font, name)} \ENV{macro specify_font(font, name)}
......
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