Commit 5941fee8 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Use tcolorbox instead of colobox and parbox

/close #99
/close #91
parent 67ec10a9
......@@ -355,13 +355,12 @@ class Fork(Element):
return "\n".join([begin_line, content_lines, end_line])
elif self.test_private(self.name):
if show_private:
# font: \fontfamily{lmr}\selectfont
return (r"\colorbox{itemizebackground}{\parbox[t]{\linegoal}{Interner Abschnitt:" + "\n"
return (r"\begin{tcolorbox}[breakable,title=Interner Abschnitt]" + "\n"
+ r"\begin{itemize}" + "\n"
+ content_lines + "\n"
+ r"\end{itemize}}}")
+ r"\end{itemize}" + "\n"
+ r"\end{tcolorbox}")
else:
# todo: bessere Formulierung finden
return r"\textit{[An dieser Stelle wurde intern protokolliert.]}"
else:
return "\n".join([name_line, begin_line, content_lines, end_line])
......
......@@ -25,6 +25,7 @@
\RequirePackage{enumitem}
\RequirePackage{color}
\RequirePackage{xcolor}
\RequirePackage[breakable]{tcolorbox}
\RequirePackage{linegoal}
\setlistdepth{\VAR{maxdepth}}
......
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