Browse Source

Added index of specials

master
Sebastian 3 weeks ago
parent
commit
ee6ff25a1e
3 changed files with 6 additions and 3 deletions
  1. +2
    -1
      kekse.py
  2. BIN
      main.pdf
  3. +4
    -2
      main.tex

+ 2
- 1
kekse.py View File

@ -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


BIN
main.pdf View File


+ 4
- 2
main.tex View File

@ -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…
Cancel
Save