From bd285157976805c61cc151d82927054228e50d99 Mon Sep 17 00:00:00 2001
From: Wandmalfarbe <Wandmalfarbe@users.noreply.github.com>
Date: Fri, 10 Jan 2025 21:19:22 +0100
Subject: [PATCH] feat: create single file templates (latex and beamer)

---
 .github/workflows/build-examples.yml          |   2 +
 examples/basic-example/build.sh               |   2 +-
 examples/basic-example/document.pdf           | Bin 269826 -> 269826 bytes
 examples/beamer/build.sh                      |   2 +-
 examples/beamer/document.pdf                  | Bin 109251 -> 109251 bytes
 examples/book/build.sh                        |   2 +-
 examples/book/document.pdf                    | Bin 298515 -> 298515 bytes
 .../build.sh                                  |   2 +-
 .../document.pdf                              | Bin 298656 -> 298656 bytes
 .../build.sh                                  |   2 +-
 .../document.pdf                              | Bin 256352 -> 256352 bytes
 examples/code-blocks-listings/build.sh        |   2 +-
 examples/code-blocks-listings/document.pdf    | Bin 223719 -> 223719 bytes
 .../code-blocks-without-listings/build.sh     |   2 +-
 .../code-blocks-without-listings/document.pdf | Bin 225567 -> 225567 bytes
 examples/header-and-footer/build.sh           |   2 +-
 examples/header-and-footer/document.pdf       | Bin 269904 -> 269904 bytes
 examples/images-and-tables/build.sh           |   2 +-
 examples/images-and-tables/document.pdf       | Bin 398753 -> 398753 bytes
 examples/language-chinese/build.sh            |   2 +-
 examples/language-german/build.sh             |   2 +-
 examples/language-german/document.pdf         | Bin 269973 -> 269973 bytes
 examples/language-japanese/build.sh           |   2 +-
 examples/page-background/build.sh             |   2 +-
 examples/page-background/document.pdf         | Bin 270831 -> 270831 bytes
 examples/table-of-contents/build.sh           |   2 +-
 examples/table-of-contents/document.pdf       | Bin 297212 -> 297212 bytes
 examples/title-page-background/build.sh       |   2 +-
 examples/title-page-background/document.pdf   | Bin 271228 -> 271228 bytes
 examples/title-page-custom/build.sh           |   2 +-
 examples/title-page-custom/document.pdf       | Bin 271218 -> 271218 bytes
 examples/title-page-default/build.sh          |   2 +-
 examples/title-page-default/document.pdf      | Bin 270489 -> 270489 bytes
 examples/title-page-green/build.sh            |   2 +-
 examples/title-page-green/document.pdf        | Bin 270502 -> 270502 bytes
 examples/title-page-logo/build.sh             |   2 +-
 examples/title-page-logo/document.pdf         | Bin 271148 -> 271148 bytes
 .../after-header-includes.latex               |   0
 .../common.latex                              |   0
 .../eisvogel-added.latex                      |   0
 .../eisvogel-title-page.latex                 |   0
 .../eisvogel.beamer                           |   0
 .../eisvogel.latex                            |   2 +-
 {template => template-multi-file}/fonts.latex |   0
 .../hypersetup.latex                          |   0
 .../passoptions.latex                         |   0
 tools/release.sh                              |  57 +++++++++++++++---
 47 files changed, 69 insertions(+), 30 deletions(-)
 rename {template => template-multi-file}/after-header-includes.latex (100%)
 rename {template => template-multi-file}/common.latex (100%)
 rename {template => template-multi-file}/eisvogel-added.latex (100%)
 rename template/eisvogel-titlepage.latex => template-multi-file/eisvogel-title-page.latex (100%)
 rename {template => template-multi-file}/eisvogel.beamer (100%)
 rename {template => template-multi-file}/eisvogel.latex (99%)
 rename {template => template-multi-file}/fonts.latex (100%)
 rename {template => template-multi-file}/hypersetup.latex (100%)
 rename {template => template-multi-file}/passoptions.latex (100%)

diff --git a/.github/workflows/build-examples.yml b/.github/workflows/build-examples.yml
index cbd2b20..648a8f7 100644
--- a/.github/workflows/build-examples.yml
+++ b/.github/workflows/build-examples.yml
@@ -53,6 +53,8 @@ jobs:
         tlmgr install awesomebox fontawesome5
         # packages only needed for some examples (example boxes-with-pandoc-latex-environment-and-tcolorbox)
         tlmgr install tcolorbox pgf etoolbox environ trimspaces
+    - name: Generate a temporary release with single file template versions
+      run: bash ./tools/release.sh 0.0.0
     - name: Build examples
       run: cd examples && bash build-examples.sh && cd ..
     - name: Add generated example files
diff --git a/examples/basic-example/build.sh b/examples/basic-example/build.sh
index 69bb949..9529db2 100644
--- a/examples/basic-example/build.sh
+++ b/examples/basic-example/build.sh
@@ -1 +1 @@
-pandoc "document.md" -o "document.pdf" --from markdown --template "../../template/eisvogel.latex" --listings
+pandoc "document.md" -o "document.pdf" --from markdown --template "../../dist/eisvogel.latex" --listings
diff --git a/examples/basic-example/document.pdf b/examples/basic-example/document.pdf
index 54b3d98605d777b151bc7ec0f61f67d43b96c04d..b2d291fbd1bf7f8b69f70a835fcdfdd5f745137f 100644
GIT binary patch
delta 126
zcmZqLBha)*prM7ag{g&k3kwqux2b`lp@EU1p{b$KbY31731oro20SeP_?<0X&CQ*S
q+>FeP%$;4`T+NIvEKLneO%0umU5qU)EX?c_YzQgYUMRydkr4okl^whQ

delta 126
zcmZqLBha)*prM7ag{g&k3kwquw~3*Vk)@%DfvJ({bY31731oro20SeP_?_Jx4crXO
q&7BR*TpUeI4b3f04GoN(olG2!O`R;Ajm_;8YzQgYUMRydkr4oqG9AJI

diff --git a/examples/beamer/build.sh b/examples/beamer/build.sh
index 1a175eb..2d2b762 100644
--- a/examples/beamer/build.sh
+++ b/examples/beamer/build.sh
@@ -1 +1 @@
-pandoc "document.md" -o "document.pdf" --from markdown --to beamer --template "../../template/eisvogel.beamer" --listings
+pandoc "document.md" -o "document.pdf" --from markdown --to beamer --template "../../dist/eisvogel.beamer" --listings
diff --git a/examples/beamer/document.pdf b/examples/beamer/document.pdf
index a957e240bca1537b87eed3edc50ffaaedd334b02..ce172d593229250e4d5e5fba939d717bb4ecd02c 100644
GIT binary patch
delta 120
zcmX?nmF@6VwuUW?3+Hj08W<WH7#SLx8k$dEGmlXMSz!D5d5le5&Q7i-&Zf>5j+Q3I
lrlyWg#^$chj>cw27LG=SZZ4M27Iq3Ygp_QbvXW7s5dcR&AdCP2

delta 120
zcmX?nmF@6VwuUW?3+Hj07#bN_8k!iG8XHVsGmlXMSz!D5d5le5&Mt07#)g)T7G_Q+
l1}^3XE{=w7u1*H7mSz?%M&>5QW_AiTgp_QbvXW7s5dcFbAXWeX

diff --git a/examples/book/build.sh b/examples/book/build.sh
index c9d5154..0d38159 100644
--- a/examples/book/build.sh
+++ b/examples/book/build.sh
@@ -1 +1 @@
-pandoc "document.md" -o "document.pdf" --from markdown --template "../../template/eisvogel.latex" --listings --top-level-division="chapter"
+pandoc "document.md" -o "document.pdf" --from markdown --template "../../dist/eisvogel.latex" --listings --top-level-division="chapter"
diff --git a/examples/book/document.pdf b/examples/book/document.pdf
index a0fe460fbbf9b8a3b72b8465831af26c62a0f979..af413b2eb63b2630763bc91b1e326aafa87979e2 100644
GIT binary patch
delta 126
zcmbO{M`-dKp@tU57N!>FEi7T3+@=PGh6YB4hNeaa(-S*cB#;HRw{)`1XL2?-cX2f`
qGjK6AG%~QTaIrKnFmN+*b}=!rFfnj+b8@y*upy*mds+|6T1EgqbRZT0

delta 126
zcmbO{M`-dKp@tU57N!>FEi7T3+$M%bMwW&q2ByX)(-S*cB#;HRw{)`1XL2?%wlFX^
pH*qvDwRE#^GI4ZsaWyqIb#=0Ib9DkrIoc`M5K^)|t%qeTBLG+YAesOG

diff --git a/examples/boxes-with-pandoc-latex-environment-and-awesomebox/build.sh b/examples/boxes-with-pandoc-latex-environment-and-awesomebox/build.sh
index a05b8b8..6a52de3 100644
--- a/examples/boxes-with-pandoc-latex-environment-and-awesomebox/build.sh
+++ b/examples/boxes-with-pandoc-latex-environment-and-awesomebox/build.sh
@@ -1 +1 @@
-pandoc "document.md" -o "document.pdf" --from markdown --template "../../template/eisvogel.latex" --filter pandoc-latex-environment --listings
+pandoc "document.md" -o "document.pdf" --from markdown --template "../../dist/eisvogel.latex" --filter pandoc-latex-environment --listings
diff --git a/examples/boxes-with-pandoc-latex-environment-and-awesomebox/document.pdf b/examples/boxes-with-pandoc-latex-environment-and-awesomebox/document.pdf
index e228abb6288af310d38c52ec9d4db597ed4924d2..54d4ca3564fd1d4af70401d7673f72ca1a350c00 100644
GIT binary patch
delta 125
zcmZ25S7^app@tU57N!>FEi7B>xJ?ZV4GoM84NZ;ArXQ$dkw6yM{<w}sgwM&)$;{cp
q$kEl@+{nPy+|kg|#L~dc!raxu*wMw((!@@|#*l!L?UubP>5Kqv&>$xO

delta 125
zcmZ25S7^app@tU57N!>FEi7B>xJ?X=j4TaJ3`|W7rXQ$dkw6yM{<w}sgwM&;$imga
o%+%D($k^4z(A3D;#MsTq$<V~o6^!i^Y=DAzm29`{Wl3iQ0A*7j-2eap

diff --git a/examples/boxes-with-pandoc-latex-environment-and-tcolorbox/build.sh b/examples/boxes-with-pandoc-latex-environment-and-tcolorbox/build.sh
index a05b8b8..6a52de3 100644
--- a/examples/boxes-with-pandoc-latex-environment-and-tcolorbox/build.sh
+++ b/examples/boxes-with-pandoc-latex-environment-and-tcolorbox/build.sh
@@ -1 +1 @@
-pandoc "document.md" -o "document.pdf" --from markdown --template "../../template/eisvogel.latex" --filter pandoc-latex-environment --listings
+pandoc "document.md" -o "document.pdf" --from markdown --template "../../dist/eisvogel.latex" --filter pandoc-latex-environment --listings
diff --git a/examples/boxes-with-pandoc-latex-environment-and-tcolorbox/document.pdf b/examples/boxes-with-pandoc-latex-environment-and-tcolorbox/document.pdf
index d2b3e76147d42754ffa490bdf403e3aa1694cb53..38369b1fc0b1f7074c810b5403a25afc664653be 100644
GIT binary patch
delta 124
zcmaEGiT}YR{)QID7N#xCL3g-K4Gawpj0_D;jSZ*A-eHzN7TDf!hq;8?*~Q${#mL;i
o(%IbD#Msi+%+k!%+|te5z}3ji&A`~%$WFnAkdp1@FPJqM0l*p{<p2Nx

delta 124
zcmaEGiT}YR{)QID7N#xCL3g-K42_H|4NVM8P0Xjq-eHzN7TDf!hq;8?*~HDw*xAX@
o(a6xz)y>4n*vQGr$jQ*n$->0k)yUGt%ud0Ekdp1@FPJqM0p(92n*aa+

diff --git a/examples/code-blocks-listings/build.sh b/examples/code-blocks-listings/build.sh
index 69bb949..9529db2 100644
--- a/examples/code-blocks-listings/build.sh
+++ b/examples/code-blocks-listings/build.sh
@@ -1 +1 @@
-pandoc "document.md" -o "document.pdf" --from markdown --template "../../template/eisvogel.latex" --listings
+pandoc "document.md" -o "document.pdf" --from markdown --template "../../dist/eisvogel.latex" --listings
diff --git a/examples/code-blocks-listings/document.pdf b/examples/code-blocks-listings/document.pdf
index 7b34bd7f1e1f7ebd00eca1d58d728053d820f798..44cb821a008d62d393de6682ae266ee9590b9a4d 100644
GIT binary patch
delta 142
zcmaEUnfLi+-i8*&7N#xC>tpmx4Gawpj0_D;jZL);4Al(`)HS*Eee+XX5=&AQG+eBV
z42+PJY`+`BJcZlY&B(~r(#g`r$k5cy%)rga%-O=i#KO(l(9+Vv+||^{PQiwdlI>eE
Hn2i|$|HdT+

delta 142
zcmaEUnfLi+-i8*&7N#xC>tpmx42_H|4NVM8O^vk;4Al(`)HS*Eee+XX5=&AQG+eBV
z42+PJY`+`BJcZlY!o|YU%+1ln*vZ(y$<ol$!qC{!(9+G(z}e8m)yTrtPQiwdlI>eE
Hn2i|$0mUTg

diff --git a/examples/code-blocks-without-listings/build.sh b/examples/code-blocks-without-listings/build.sh
index 15e42c9..ad8af02 100644
--- a/examples/code-blocks-without-listings/build.sh
+++ b/examples/code-blocks-without-listings/build.sh
@@ -1 +1 @@
-pandoc "document.md" -o "document.pdf" --from markdown --template "../../template/eisvogel.latex" --highlight-style kate
+pandoc "document.md" -o "document.pdf" --from markdown --template "../../dist/eisvogel.latex" --highlight-style kate
diff --git a/examples/code-blocks-without-listings/document.pdf b/examples/code-blocks-without-listings/document.pdf
index 15787ec50e91a179151467a37d5db335ebc9a4b5..2f1cadc58f42339a661889e814699d1ba4e7180c 100644
GIT binary patch
delta 123
zcmbRLh<E-Y-i8*&7N#xCW@+4}28M<PMuvu_CI-_T)0icY1-7T8G3RqSnHw57TNpVx
oTDVvk897-PxfmHcJDNILnz|VqxSBef+bP%(P_kXLfSHRC0MSw&5dZ)H

delta 123
zcmbRLh<E-Y-i8*&7N#xCW@+3ehDJt~h9(B4rk2wk)0icY1-7T8G3RqS85+15Sh$)S
oSem&SxwsfQI$D?+JDHkUI2#!oxHub`+bP%(P_kXLfSHRC0Nvsq9RL6T

diff --git a/examples/header-and-footer/build.sh b/examples/header-and-footer/build.sh
index 69bb949..9529db2 100644
--- a/examples/header-and-footer/build.sh
+++ b/examples/header-and-footer/build.sh
@@ -1 +1 @@
-pandoc "document.md" -o "document.pdf" --from markdown --template "../../template/eisvogel.latex" --listings
+pandoc "document.md" -o "document.pdf" --from markdown --template "../../dist/eisvogel.latex" --listings
diff --git a/examples/header-and-footer/document.pdf b/examples/header-and-footer/document.pdf
index 82d16862ea96b0fa53489be17d070c8a37551321..d694b0c0a68b36164c8d15a1d290928e8762b74f 100644
GIT binary patch
delta 124
zcmcbxN8rL9frb{w7N!>FEi8#VT&4zwh6YB4hNdRdvw2t~k@(yDcvwF3JG)w1x;Z)<
px;mOWxmvn885tOun;N;87&sXk8#=nUncFGY5K^-Jhzv^)BLEyCAHx6u

delta 124
zcmcbxN8rL9frb{w7N!>FEi8#VTqcG_MwW&q24)7+vw2t~k@(yDcvwF3I~y3eI60bG
pnmfCgI-8jr7@51d8aNudI5{~wxtJSSI@>AO5K^-Jhzv^)BLE*uAMXGF

diff --git a/examples/images-and-tables/build.sh b/examples/images-and-tables/build.sh
index 69bb949..9529db2 100644
--- a/examples/images-and-tables/build.sh
+++ b/examples/images-and-tables/build.sh
@@ -1 +1 @@
-pandoc "document.md" -o "document.pdf" --from markdown --template "../../template/eisvogel.latex" --listings
+pandoc "document.md" -o "document.pdf" --from markdown --template "../../dist/eisvogel.latex" --listings
diff --git a/examples/images-and-tables/document.pdf b/examples/images-and-tables/document.pdf
index 1602b2d69a56f3b659121edf238622a309e471d3..b17dd2180a634a997c2ef76b54ec91a971d992da 100644
GIT binary patch
delta 147
zcmZ3uT4Ld9iG~)&7N!>F7M2#)Eo?iv^h^y54GoM84NXlfwG9l_4Gh#Zx%7SWQ(O{D
zQWZ2@tc(ndkd$nH&c#;A>1^U=W^Qa`U}Em(X5#2<YGiC+;ACN9U}5OwWNPSYYGkKi
MLrBT=#UgC~01G-K=l}o!

delta 147
zcmZ3uT4Ld9iG~)&7N!>F7M2#)Eo?iv^h^wmj4TaJ49pA-wG9l_4Gh#Zx%7SWQ(O{D
zQWZ2@tc(ndkd$nH&c#;A>1<}{<mBe&WNK_|WZ`1uWNz$a=IG*PZeU_z;9_oKZeXWi
MLrBT=#UgC~042&LZ~y=R

diff --git a/examples/language-chinese/build.sh b/examples/language-chinese/build.sh
index 6414351..ba6992c 100644
--- a/examples/language-chinese/build.sh
+++ b/examples/language-chinese/build.sh
@@ -1,2 +1,2 @@
 # No lang option (-V lang=zh) here because Chinese is unsupported in polyglossia and babel.
-pandoc "document.md" -o "document.pdf" --from markdown --template "../../template/eisvogel.latex" --listings --pdf-engine "xelatex" -V CJKmainfont="HiraginoSans-W4"
+pandoc "document.md" -o "document.pdf" --from markdown --template "../../dist/eisvogel.latex" --listings --pdf-engine "xelatex" -V CJKmainfont="HiraginoSans-W4"
diff --git a/examples/language-german/build.sh b/examples/language-german/build.sh
index 69bb949..9529db2 100644
--- a/examples/language-german/build.sh
+++ b/examples/language-german/build.sh
@@ -1 +1 @@
-pandoc "document.md" -o "document.pdf" --from markdown --template "../../template/eisvogel.latex" --listings
+pandoc "document.md" -o "document.pdf" --from markdown --template "../../dist/eisvogel.latex" --listings
diff --git a/examples/language-german/document.pdf b/examples/language-german/document.pdf
index b5bc63099e556e9d53b9cb09784bc87f67fe1fc6..3eaa9c3446aeeff1fa1238a3c8010d981e092742 100644
GIT binary patch
delta 126
zcmbQbS77R1frb{w7N!>FEi7AjxJ?ZV4GoM84NXl=r|;)skw6yM{)mU=F2A#>xv`V6
riJO_3v!kPnn~9-`xv8Upi;<bLiKDTBn~AfXf(;=h+nHopCNly6U@IS;

delta 126
zcmbQbS77R1frb{w7N!>FEi7AjxJ?X=j4TaJ49pBIr|;)skw6yM{)mU=F2A#-tD}XB
ri>r&1iIbtRfu);^iIIhgsfC-HqltmDv$>m{f(;=h+nHopCNly6f@L5@

diff --git a/examples/language-japanese/build.sh b/examples/language-japanese/build.sh
index 7aecb68..6a02a87 100644
--- a/examples/language-japanese/build.sh
+++ b/examples/language-japanese/build.sh
@@ -1,2 +1,2 @@
 # No lang option (-V lang=jp) here because Japanese unsupported in polyglossia.
-pandoc "document.md" -o "document.pdf" --from markdown --template "../../template/eisvogel.latex" --listings --pdf-engine "xelatex" -V CJKmainfont="HiraginoSans-W4"
+pandoc "document.md" -o "document.pdf" --from markdown --template "../../dist/eisvogel.latex" --listings --pdf-engine "xelatex" -V CJKmainfont="HiraginoSans-W4"
diff --git a/examples/page-background/build.sh b/examples/page-background/build.sh
index 69bb949..9529db2 100644
--- a/examples/page-background/build.sh
+++ b/examples/page-background/build.sh
@@ -1 +1 @@
-pandoc "document.md" -o "document.pdf" --from markdown --template "../../template/eisvogel.latex" --listings
+pandoc "document.md" -o "document.pdf" --from markdown --template "../../dist/eisvogel.latex" --listings
diff --git a/examples/page-background/document.pdf b/examples/page-background/document.pdf
index be8fbb6a88d67ec84dc06faf07aef6f8efb42e68..3000f87f43502c08d8fe3130ad2ccf9c6fb28263 100644
GIT binary patch
delta 126
zcmaEVSm6C(frb{w7N!>FEi9`1+@=PGh6YB4hGqta(+&7pB#;HR2lKNW5^y#%Ffnj-
qb#ilaF)%cDH8L|aa4~XoadtB^GIz0bGq$i(upy*mdxQeZbVdLka33lF

delta 126
zcmaEVSm6C(frb{w7N!>FEi9`1+$M%bMwW&q24+Sk(+&7pB#;HR2lKNW5^#34G%<B_
qc62mxb8$0vwRAHva4|M8GjuU=HZd?Zv9PpLupy*mdxQeZbVdLzz8@+8

diff --git a/examples/table-of-contents/build.sh b/examples/table-of-contents/build.sh
index 3cecb50..31ed117 100644
--- a/examples/table-of-contents/build.sh
+++ b/examples/table-of-contents/build.sh
@@ -1 +1 @@
-pandoc "document.md" -o "document.pdf" --from markdown --template "../../template/eisvogel.latex"
+pandoc "document.md" -o "document.pdf" --from markdown --template "../../dist/eisvogel.latex"
diff --git a/examples/table-of-contents/document.pdf b/examples/table-of-contents/document.pdf
index 46f723f0ca6fb1768db0998d16a6193c39b0ee97..3d5ba5512c8f23e9c39f37501da1928ef254c67b 100644
GIT binary patch
delta 144
zcmew}QRvS^p@tU57N!>FEiBW^^h^y54GoM84b2S9v<(c^4Gh#Zx%7SWQ(O{DQWZ2@
ztc(ndkd$mcTE-G0;A~;wY-;XgVr*&dYT)E%VqxH9;_75%X6$BUXlm+a?rf)ELrBT?
Jn0A&0i~tG}B?JHf

delta 144
zcmew}QRvS^p@tU57N!>FEiBW^^h^wmj4TaJ49tuTwG9l_4Gh#Zx%7SWQ(O{DQWZ2@
ztc(ndkd$mcTE-G0;A~`OW@+x~Xl7|@W?^pR>}KlXW@>C<Y3Sl+Xkut?W^AWmLrBT?
Jn0A&0i~tVlB=P_N

diff --git a/examples/title-page-background/build.sh b/examples/title-page-background/build.sh
index 69bb949..9529db2 100644
--- a/examples/title-page-background/build.sh
+++ b/examples/title-page-background/build.sh
@@ -1 +1 @@
-pandoc "document.md" -o "document.pdf" --from markdown --template "../../template/eisvogel.latex" --listings
+pandoc "document.md" -o "document.pdf" --from markdown --template "../../dist/eisvogel.latex" --listings
diff --git a/examples/title-page-background/document.pdf b/examples/title-page-background/document.pdf
index 94dda9dbb866ab9d5bef0df90bb6df4f7b9768b9..ec4454400be4a5c4971ab73da9982e9fd3f8e6e1 100644
GIT binary patch
delta 126
zcmex!OyJKkfrb{w7N!>FEiBCf+@=PGh6YB4hGvFF)B6NiB#;HRZxmp8Dd24B<Z58<
pXzF5V0aRsXWMS-VXkzSU;NocPW@zZ*WMHRYLrBT?yNWFH83C30Afx~Q

delta 126
zcmex!OyJKkfrb{w7N!>FEiBCf+$M%bMwW&q24=?Q)B6NiB#;HRZxmp8Dd6m8XyRyO
qWM=B>X6EQ*;bLlP>FQ?e>Sk$XWawsW;%Z{2U_(gB_PdHK^BDoQ1R+2G

diff --git a/examples/title-page-custom/build.sh b/examples/title-page-custom/build.sh
index 69bb949..9529db2 100644
--- a/examples/title-page-custom/build.sh
+++ b/examples/title-page-custom/build.sh
@@ -1 +1 @@
-pandoc "document.md" -o "document.pdf" --from markdown --template "../../template/eisvogel.latex" --listings
+pandoc "document.md" -o "document.pdf" --from markdown --template "../../dist/eisvogel.latex" --listings
diff --git a/examples/title-page-custom/document.pdf b/examples/title-page-custom/document.pdf
index 18caad26008adc74eae85101295fb6a6265a2501..aae7cece717c98bdfbc6a1d0b6a39b279435cce5 100644
GIT binary patch
delta 144
zcmex#OyJWofrb{w7N!>FEi5?#dZq@3h6YB4hGvH5+6IQ|1_tVyT>8HGDK3d6sR|k{
zRz?O!NJ_TP5@7i%;OydRVQA=R=H}{VWMW|M<mT++WNB>S?B-(R<Y;2*Y-XomLrBT?
JONuND7y%OUC8GcU

delta 144
zcmex#OyJWofrb{w7N!>FEi5?#dM1WOMwW&q24*Hk+6IQ|1_tVyT>8HGDK3d6sR|k{
zRz?O!NJ_TP5@7i%;A~`M>f&l@WM*z|>Sk<i;pk{!;%e$_?&xf6W@c{WVqvFXLrBT?
JONuND7y<c`B<%nI

diff --git a/examples/title-page-default/build.sh b/examples/title-page-default/build.sh
index 69bb949..9529db2 100644
--- a/examples/title-page-default/build.sh
+++ b/examples/title-page-default/build.sh
@@ -1 +1 @@
-pandoc "document.md" -o "document.pdf" --from markdown --template "../../template/eisvogel.latex" --listings
+pandoc "document.md" -o "document.pdf" --from markdown --template "../../dist/eisvogel.latex" --listings
diff --git a/examples/title-page-default/document.pdf b/examples/title-page-default/document.pdf
index e4cf3e69637187f0634a1e131dda5d5a9e1ff3e6..6b541dca1c59615492d3394290ddf85e76311f21 100644
GIT binary patch
delta 144
zcmbPvP+;akfrb{w7N!>FEi4IqdZq@3h6YB4hGs^_+6IQ|1_tVyT>8HGDK3d6sR|k{
zRz?O!NJ_T%@v)c)IJ+4dni!cmnFF;tnwlA#SQuJ5y1F?T7&tl`S{Rr++bP%(QnH;@
Io@ELn05KsV82|tP

delta 144
zcmbPvP+;akfrb{w7N!>FEi4IqdM1WOMwW&q24*Ja+6IQ|1_tVyT>8HGDK3d6sR|k{
zRz?O!NJ_T%@v)c)I6IpdxtW_-SU4KHSXf#bx>_2!8M_%-00qrm4Bebv?G$VXDcQ~{
I&oYG(09sQb=>Px#

diff --git a/examples/title-page-green/build.sh b/examples/title-page-green/build.sh
index 69bb949..9529db2 100644
--- a/examples/title-page-green/build.sh
+++ b/examples/title-page-green/build.sh
@@ -1 +1 @@
-pandoc "document.md" -o "document.pdf" --from markdown --template "../../template/eisvogel.latex" --listings
+pandoc "document.md" -o "document.pdf" --from markdown --template "../../dist/eisvogel.latex" --listings
diff --git a/examples/title-page-green/document.pdf b/examples/title-page-green/document.pdf
index 02de8c31d4765d44dc0b477cc37a439609db0e66..323b5371b4a2ee03c032f49df2fb3ed0121bd690 100644
GIT binary patch
delta 144
zcmZ2>P+-|Xfrb{w7N!>FEiBo5dZq@3h6YB4hGs?<+6IQ|1_tVyT>8HGDK3d6sR|k{
zRz?O!NJ_TP<YO@raJDqCbhI$EbagQ|c6Kv0c5*hhaC0&;H8e1=bat{dH?dQ&A*5ux
JfIQ1IMgU;yBE$dy

delta 144
zcmZ2>P+-|Xfrb{w7N!>FEiBo5dM1WOMwW&q24<#4+6IQ|1_tVyT>8HGDK3d6sR|k{
zRz?O!NJ_TP<YO@raCSDfFtBhoGH^AsFf(;AbT&3~bTxBwv2ZkTc6G9JakEpfA*5ux
JfIQ1IMgVdqBTN7Q

diff --git a/examples/title-page-logo/build.sh b/examples/title-page-logo/build.sh
index 69bb949..9529db2 100644
--- a/examples/title-page-logo/build.sh
+++ b/examples/title-page-logo/build.sh
@@ -1 +1 @@
-pandoc "document.md" -o "document.pdf" --from markdown --template "../../template/eisvogel.latex" --listings
+pandoc "document.md" -o "document.pdf" --from markdown --template "../../dist/eisvogel.latex" --listings
diff --git a/examples/title-page-logo/document.pdf b/examples/title-page-logo/document.pdf
index f6d1d28558d8e5ca7e4403d2d69e5dccc809c585..62271ffe985f62f838fe0736aece067ed2bc8f9a 100644
GIT binary patch
delta 126
zcmZ2;OkmA1frb{w7N!>FEi5Gh+@=PGh6YB4hGxdb)9VFTB#;HRFA`u`Bj9XmXyIhy
qW^CqWU}5HBXy$5ZXy)Q#U}oxKY3gih?&@r(U_(gB_KAutvl#&^*dLAn

delta 126
zcmZ2;OkmA1frb{w7N!>FEi5Gh+$M%bMwW&q24<!f)9VFTB#;HRFA`u`Bj5~F;^bsu
p>}+XiX5{K*VC-h%>}qUo;b`V!Zft4jXkw>eLrBT?iHa<<838y$AD93D

diff --git a/template/after-header-includes.latex b/template-multi-file/after-header-includes.latex
similarity index 100%
rename from template/after-header-includes.latex
rename to template-multi-file/after-header-includes.latex
diff --git a/template/common.latex b/template-multi-file/common.latex
similarity index 100%
rename from template/common.latex
rename to template-multi-file/common.latex
diff --git a/template/eisvogel-added.latex b/template-multi-file/eisvogel-added.latex
similarity index 100%
rename from template/eisvogel-added.latex
rename to template-multi-file/eisvogel-added.latex
diff --git a/template/eisvogel-titlepage.latex b/template-multi-file/eisvogel-title-page.latex
similarity index 100%
rename from template/eisvogel-titlepage.latex
rename to template-multi-file/eisvogel-title-page.latex
diff --git a/template/eisvogel.beamer b/template-multi-file/eisvogel.beamer
similarity index 100%
rename from template/eisvogel.beamer
rename to template-multi-file/eisvogel.beamer
diff --git a/template/eisvogel.latex b/template-multi-file/eisvogel.latex
similarity index 99%
rename from template/eisvogel.latex
rename to template-multi-file/eisvogel.latex
index 42b40e7..8277a29 100644
--- a/template/eisvogel.latex
+++ b/template-multi-file/eisvogel.latex
@@ -118,7 +118,7 @@ $eisvogel-added.latex()$
 
 \begin{document}
 
-$eisvogel-titlepage.latex()$
+$eisvogel-title-page.latex()$
 
 $if(has-frontmatter)$
 \frontmatter
diff --git a/template/fonts.latex b/template-multi-file/fonts.latex
similarity index 100%
rename from template/fonts.latex
rename to template-multi-file/fonts.latex
diff --git a/template/hypersetup.latex b/template-multi-file/hypersetup.latex
similarity index 100%
rename from template/hypersetup.latex
rename to template-multi-file/hypersetup.latex
diff --git a/template/passoptions.latex b/template-multi-file/passoptions.latex
similarity index 100%
rename from template/passoptions.latex
rename to template-multi-file/passoptions.latex
diff --git a/tools/release.sh b/tools/release.sh
index 8e150d1..7aabc1f 100644
--- a/tools/release.sh
+++ b/tools/release.sh
@@ -1,16 +1,53 @@
 #!/bin/bash
 
-rm -rf "dist"
-mkdir "dist"
+distFolderName="dist"
+archiveFolderName="Eisvogel-${1}"
+archiveFolder="${distFolderName}/${archiveFolderName}"
 
-cp "eisvogel.tex" "eisvogel.latex"
+rm -rf "${distFolderName}"
+mkdir "${distFolderName}"
+mkdir "${distFolderName}/${archiveFolderName}"
 
-# create .zip files
-zip -r -X --exclude="*.DS_Store*" "dist/Eisvogel-${1}.zip" "examples" "eisvogel.latex" "icon.png" "LICENSE" "README.md" "CHANGELOG.md"
-cp "dist/Eisvogel-${1}.zip" "dist/Eisvogel.zip"
+# create single template file for latex
+cp "template-multi-file/eisvogel.latex" "${distFolderName}/eisvogel.latex"
 
-# create .tar.gz files
-tar --exclude="*.DS_Store*" --include="examples" --include="eisvogel.latex" --include="icon.png" --include="LICENSE" --include="README.md" --include="CHANGELOG.md" -zcvf "dist/Eisvogel-${1}.tar.gz" *
-cp "dist/Eisvogel-${1}.tar.gz" "dist/Eisvogel.tar.gz"
+# replace partials (latex)
+sed -e '/\$fonts\.latex()\$/ {' -e 'r template-multi-file/fonts.latex' -e 'd' -e '}' -i '' "${distFolderName}/eisvogel.latex"
+sed -e '/\$common\.latex()\$/ {' -e 'r template-multi-file/common.latex' -e 'd' -e '}' -i '' "${distFolderName}/eisvogel.latex"
+sed -e '/\$eisvogel-added\.latex()\$/ {' -e 'r template-multi-file/eisvogel-added.latex' -e 'd' -e '}' -i '' "${distFolderName}/eisvogel.latex"
+sed -e '/\$eisvogel-title-page\.latex()\$/ {' -e 'r template-multi-file/eisvogel-title-page.latex' -e 'd' -e '}' -i '' "${distFolderName}/eisvogel.latex"
+sed -e '/\$after-header-includes\.latex()\$/ {' -e 'r template-multi-file/after-header-includes.latex' -e 'd' -e '}' -i '' "${distFolderName}/eisvogel.latex"
+sed -e '/\$hypersetup\.latex()\$/ {' -e 'r template-multi-file/hypersetup.latex' -e 'd' -e '}' -i '' "${distFolderName}/eisvogel.latex"
+sed -e '/\$passoptions\.latex()\$/ {' -e 'r template-multi-file/passoptions.latex' -e 'd' -e '}' -i '' "${distFolderName}/eisvogel.latex"
 
-rm "eisvogel.latex"
\ No newline at end of file
+# create single template file for beamer
+cp "template-multi-file/eisvogel.beamer" "${distFolderName}/eisvogel.beamer"
+
+# replace partials (beamer)
+sed -e '/\$fonts\.latex()\$/ {' -e 'r template-multi-file/fonts.latex' -e 'd' -e '}' -i '' "${distFolderName}/eisvogel.beamer"
+sed -e '/\$common\.latex()\$/ {' -e 'r template-multi-file/common.latex' -e 'd' -e '}' -i '' "${distFolderName}/eisvogel.beamer"
+# The beamer template has no eisvogel block $eisvogel-added.latex()$
+# The beamer template has no eisvogel titlepage $eisvogel-titlepage.latex()$
+sed -e '/\$after-header-includes\.latex()\$/ {' -e 'r template-multi-file/after-header-includes.latex' -e 'd' -e '}' -i '' "${distFolderName}/eisvogel.beamer"
+sed -e '/\$hypersetup\.latex()\$/ {' -e 'r template-multi-file/hypersetup.latex' -e 'd' -e '}' -i '' "${distFolderName}/eisvogel.beamer"
+sed -e '/\$passoptions\.latex()\$/ {' -e 'r template-multi-file/passoptions.latex' -e 'd' -e '}' -i '' "${distFolderName}/eisvogel.beamer"
+
+
+# create folder for the release eisvogel (ZIP and tar.gz)
+cp -r "examples" "${archiveFolder}/examples"
+cp -r "template-multi-file" "${archiveFolder}/template-multi-file"
+cp "dist/eisvogel.latex" "${archiveFolder}/eisvogel.latex"
+cp "dist/eisvogel.beamer" "${archiveFolder}/eisvogel.beamer"
+cp "icon.png" "${archiveFolder}/icon.png"
+cp "LICENSE" "${archiveFolder}/LICENSE"
+cp "README.md" "${archiveFolder}/README.md"
+cp "CHANGELOG.md" "${archiveFolder}/CHANGELOG.md"
+
+
+cd dist
+
+# create .zip file
+zip -r -X --exclude="*.DS_Store*" "Eisvogel-${1}.zip" "${archiveFolderName}"
+
+# create .tar.gz file
+tar --exclude="*.DS_Store*" -zcvf "Eisvogel-${1}.tar.gz" "Eisvogel-${1}"