Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
5941fee8
Commit
5941fee8
authored
Apr 12, 2017
by
Robin Sonnabend
Browse files
Use tcolorbox instead of colobox and parbox
/close
#99
/close
#91
parent
67ec10a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
parser.py
View file @
5941fee8
...
...
@@ -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
])
...
...
templates/protokoll2.cls
View file @
5941fee8
...
...
@@ -25,6 +25,7 @@
\RequirePackage
{
enumitem
}
\RequirePackage
{
color
}
\RequirePackage
{
xcolor
}
\RequirePackage
[breakable]
{
tcolorbox
}
\RequirePackage
{
linegoal
}
\setlistdepth
{
\VAR
{
maxdepth
}}
...
...
Write
Preview
Supports
Markdown
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