add build script

main
tastytea 4 months ago
parent effbf8b573
commit 5ebf907b01
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

1
.gitignore vendored

@ -2,3 +2,4 @@
*.tex
auto/
*.html
/pdf/

@ -3,7 +3,8 @@
#+LANGUAGE: de
#+OPTIONS: toc:nil num:nil author:nil date:nil
#+LATEX_HEADER: \usepackage[a4paper, vmargin=1cm, nohead]{geometry} \usepackage{nopageno}
#+LATEX_HEADER: \usepackage{fontspec} \setmainfont{Source Serif Pro}
#+LATEX_HEADER: \usepackage{fontspec} \setmainfont{Source Serif 4}
#+LATEX_HEADER: \usepackage{titlesec} \newcommand{\sectionbreak}{\clearpage}
* Pommesauflauf
:PROPERTIES:

@ -3,7 +3,8 @@
#+LANGUAGE: de
#+OPTIONS: toc:nil num:nil author:nil date:nil
#+LATEX_HEADER: \usepackage[a4paper, vmargin=1cm, nohead]{geometry} \usepackage{nopageno}
#+LATEX_HEADER: \usepackage{fontspec} \setmainfont{Source Serif Pro}
#+LATEX_HEADER: \usepackage{fontspec} \setmainfont{Source Serif 4}
#+LATEX_HEADER: \usepackage{titlesec} \newcommand{\sectionbreak}{\clearpage}
* Hummus
:PROPERTIES:

@ -3,7 +3,8 @@
#+LANGUAGE: de
#+OPTIONS: toc:nil num:nil author:nil date:nil
#+LATEX_HEADER: \usepackage[a4paper, vmargin=1cm, nohead]{geometry} \usepackage{nopageno}
#+LATEX_HEADER: \usepackage{fontspec} \setmainfont{Source Serif Pro}
#+LATEX_HEADER: \usepackage{fontspec} \setmainfont{Source Serif 4}
#+LATEX_HEADER: \usepackage{titlesec} \newcommand{\sectionbreak}{\clearpage}
* Kartoffelgulasch
:PROPERTIES:

@ -3,7 +3,8 @@
#+LANGUAGE: de
#+OPTIONS: toc:nil num:nil author:nil date:nil
#+LATEX_HEADER: \usepackage[a4paper, vmargin=1cm, nohead]{geometry} \usepackage{nopageno}
#+LATEX_HEADER: \usepackage{fontspec} \setmainfont{Source Serif Pro}
#+LATEX_HEADER: \usepackage{fontspec} \setmainfont{Source Serif 4}
#+LATEX_HEADER: \usepackage{titlesec} \newcommand{\sectionbreak}{\clearpage}
* Doughnuts
:PROPERTIES:

@ -3,7 +3,8 @@
#+LANGUAGE: de
#+OPTIONS: toc:nil num:nil author:nil date:nil
#+LATEX_HEADER: \usepackage[a4paper, vmargin=1cm, nohead]{geometry} \usepackage{nopageno}
#+LATEX_HEADER: \usepackage{fontspec} \setmainfont{Source Serif Pro}
#+LATEX_HEADER: \usepackage{fontspec} \setmainfont{Source Serif 4}
#+LATEX_HEADER: \usepackage{titlesec} \newcommand{\sectionbreak}{\clearpage}
* Kleister
:PROPERTIES:

@ -3,7 +3,8 @@
#+LANGUAGE: de
#+OPTIONS: toc:nil num:nil author:nil date:nil
#+LATEX_HEADER: \usepackage[a4paper, vmargin=1cm, nohead]{geometry} \usepackage{nopageno}
#+LATEX_HEADER: \usepackage{fontspec} \setmainfont{Source Serif Pro}
#+LATEX_HEADER: \usepackage{fontspec} \setmainfont{Source Serif 4}
#+LATEX_HEADER: \usepackage{titlesec} \newcommand{\sectionbreak}{\clearpage}
* Nudelteig
:PROPERTIES:

@ -6,6 +6,15 @@ Ich sammle hier meine Rezepte in [[https://www.gnu.org/software/emacs/manual/htm
die einzelnen rezepte in passabler qualität über LaTeX in PDF exportiert werden
können.
Um alle rezepte in PDFs zu konvertieren, ein PDF pro kategorie, ein rezept pro
seite:
#+BEGIN_SRC
./build_pdf.sh
#+END_SRC
Zsh und pandoc werden benötigt.
* Dazugehöriger code
[[https://github.com/joaotavora/yasnippet][yasnippet]]-snippet, um ein neues rezept einzutragen:

@ -3,7 +3,8 @@
#+LANGUAGE: de
#+OPTIONS: toc:nil num:nil author:nil date:nil
#+LATEX_HEADER: \usepackage[a4paper, vmargin=1cm, nohead]{geometry} \usepackage{nopageno}
#+LATEX_HEADER: \usepackage{fontspec} \setmainfont{Source Serif Pro}
#+LATEX_HEADER: \usepackage{fontspec} \setmainfont{Source Serif 4}
#+LATEX_HEADER: \usepackage{titlesec} \newcommand{\sectionbreak}{\clearpage}
* Robuste schnitte
:PROPERTIES:

@ -3,7 +3,8 @@
#+LANGUAGE: de
#+OPTIONS: toc:nil num:nil author:nil date:nil
#+LATEX_HEADER: \usepackage[a4paper, vmargin=1cm, nohead]{geometry} \usepackage{nopageno}
#+LATEX_HEADER: \usepackage{fontspec} \setmainfont{Source Serif Pro}
#+LATEX_HEADER: \usepackage{fontspec} \setmainfont{Source Serif 4}
#+LATEX_HEADER: \usepackage{titlesec} \newcommand{\sectionbreak}{\clearpage}
* Geile Fettsoße
:PROPERTIES:

@ -0,0 +1,6 @@
#!/usr/bin/env zsh
mkdir -p pdf
for orgfile in *.org; do
pandoc ${orgfile} --output=pdf/${orgfile%.*}.pdf --pdf-engine=xelatex
done
Loading…
Cancel
Save