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

Merge branch 'master' of git.fsmpi.rwth-aachen.de:protokollsystem/proto3

parents a4351eb5 1c4a04a9
Branches
No related tags found
No related merge requests found
...@@ -611,7 +611,7 @@ class Todo(DatabaseModel): ...@@ -611,7 +611,7 @@ class Todo(DatabaseModel):
return " ".join(parts) return " ".join(parts)
def render_latex(self, current_protocol=None): def render_latex(self, current_protocol=None):
return r"\textbf{{{}}}: {}: {} -- {}".format( return r"\Todo{{{}}}{{{}}}{{{}}}{{{}}}".format(
"Neuer Todo" if self.is_new(current_protocol) else "Todo", "Neuer Todo" if self.is_new(current_protocol) else "Todo",
escape_tex(self.who), escape_tex(self.who),
escape_tex(self.description), escape_tex(self.description),
......
...@@ -221,12 +221,10 @@ class Tag: ...@@ -221,12 +221,10 @@ class Tag:
return "" return ""
return self.todo.render_latex(current_protocol=protocol) return self.todo.render_latex(current_protocol=protocol)
elif self.name == "beschluss": elif self.name == "beschluss":
parts = [r"\textbf{{Beschluss:}} {}".format(self.decision.content)]
if len(self.decision.categories): if len(self.decision.categories):
parts.append( return r"\Beschluss[{}]{{{}}}".format(self.decision.get_categories_str(),self.decision.content)
r"\textit{{({})}}".format(self.decision.get_categories_str()) else:
) return r"\Beschluss{{{}}}".format(self.decision.content)
return " ".join(parts)
elif self.name == "footnote": elif self.name == "footnote":
return r"\footnote{{{}}}".format(self.values[0]) return r"\footnote{{{}}}".format(self.values[0])
return r"\textbf{{{}:}} {}".format(escape_tex(self.name.capitalize()), escape_tex(";".join(self.values))) return r"\textbf{{{}:}} {}".format(escape_tex(self.name.capitalize()), escape_tex(";".join(self.values)))
......
...@@ -250,3 +250,6 @@ ...@@ -250,3 +250,6 @@
\newcommand{\PE}[2]{\textbf{Persönliche Erklärung von #1:}\\\emph{\glqq{}#2\grqq{}}\\} \newcommand{\PE}[2]{\textbf{Persönliche Erklärung von #1:}\\\emph{\glqq{}#2\grqq{}}\\}
% Styling der Todo und Beschlusstags im Protokoll
\newcommand{\Todo}[4]{\textbf{{#1}}: #2: #3 -- #4}
\newcommand{\Beschluss}[2][\empty]{\textbf{Beschluss:} #2 \def\temp{#1}\ifx\temp\empty\else\textit{(#1)}\fi}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment