From 82d69e4b04cd52c7e5eed464c550120081efa292 Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Thu, 23 Mar 2017 19:29:33 +0100 Subject: [PATCH] Set internal sections with light gray background /close #82 --- parser.py | 4 ++-- templates/protokoll2.cls | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/parser.py b/parser.py index e171107..c796f72 100644 --- a/parser.py +++ b/parser.py @@ -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.]}" diff --git a/templates/protokoll2.cls b/templates/protokoll2.cls index 7427c25..dd7f2f9 100644 --- a/templates/protokoll2.cls +++ b/templates/protokoll2.cls @@ -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)} -- GitLab