Added index of specials

This commit is contained in:
Sebastian 2021-11-07 22:46:26 +01:00
parent 7fea9d291f
commit ee6ff25a1e
3 changed files with 6 additions and 3 deletions

View File

@ -187,10 +187,11 @@ for column in ws.columns:
# Specials # Specials
content = (ws._get_cell(specials_row, cell.column).value) content = (ws._get_cell(specials_row, cell.column).value)
if content == "(vegan)": if content == "(vegan)" or content == "(Vegan)":
content="Vegan" content="Vegan"
if(content != "None\n" and content != None): if(content != "None\n" and content != None):
f_latex.write(str("\\faStar & \\textbf{Besonderheiten} & %s" % content)) f_latex.write(str("\\faStar & \\textbf{Besonderheiten} & %s" % content))
f_latex.write(str("\\index[specials]{\\textbf{%s}}" % content.replace(", ", "}} \\index[specials]{\\textbf{")))
f_latex.write("\\\\\n") f_latex.write("\\\\\n")
# Baking # Baking

BIN
main.pdf

Binary file not shown.

View File

@ -25,8 +25,9 @@
% Indices % Indices
\makeindex[title=Hauptzutaten,columns=1, intoc] \makeindex[title=Index: Hauptzutaten,columns=1, intoc]
\makeindex[name=formen, title=Formen und Plätzchenarten, columns=1, intoc] \makeindex[name=formen, title=Index: Formen und Plätzchenarten, columns=1, intoc]
\makeindex[name=specials, title=Index: Besonderheiten, columns=1, intoc]
\begin{document} \begin{document}
@ -41,5 +42,6 @@
\printindex \printindex
\printindex[formen] \printindex[formen]
\printindex[specials]
\end{document} \end{document}