Added index of specials
This commit is contained in:
parent
7fea9d291f
commit
ee6ff25a1e
3
kekse.py
3
kekse.py
@ -187,10 +187,11 @@ for column in ws.columns:
|
||||
|
||||
# Specials
|
||||
content = (ws._get_cell(specials_row, cell.column).value)
|
||||
if content == "(vegan)":
|
||||
if content == "(vegan)" or content == "(Vegan)":
|
||||
content="Vegan"
|
||||
if(content != "None\n" and content != None):
|
||||
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")
|
||||
|
||||
# Baking
|
||||
|
6
main.tex
6
main.tex
@ -25,8 +25,9 @@
|
||||
|
||||
|
||||
% Indices
|
||||
\makeindex[title=Hauptzutaten,columns=1, intoc]
|
||||
\makeindex[name=formen, title=Formen und Plätzchenarten, columns=1, intoc]
|
||||
\makeindex[title=Index: Hauptzutaten,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}
|
||||
|
||||
@ -41,5 +42,6 @@
|
||||
|
||||
\printindex
|
||||
\printindex[formen]
|
||||
\printindex[specials]
|
||||
|
||||
\end{document}
|
Loading…
Reference in New Issue
Block a user