From bd285157976805c61cc151d82927054228e50d99 Mon Sep 17 00:00:00 2001 From: Wandmalfarbe 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 cbd2b202..648a8f7a 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 69bb9498..9529db25 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 1a175ebf..2d2b7624 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+Hj08W5j+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 c9d5154d..0d381590 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 a05b8b87..6a52de3a 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{5Kqv&>$xO delta 125 zcmZ25S7^app@tU57N!>FEi7B>xJ?X=j4TaJ3`|W7rXQ$dkw6yM{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 69bb9498..9529db25 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$eE Hn2i|$0mUTg diff --git a/examples/code-blocks-without-listings/build.sh b/examples/code-blocks-without-listings/build.sh index 15e42c97..ad8af02f 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 zcmbRLhFEi8#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 69bb9498..9529db25 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#2F7M2#)Eo?iv^h^wmj4TaJ49pA-wG9l_4Gh#Zx%7SWQ(O{D zQWZ2@tc(ndkd$nH&c#;A>1<}{FEi7AjxJ?ZV4GoM84NXl=r|;)skw6yM{)mU=F2A#>xv`V6 riJO_3v!kPnn~9-`xv8Upi;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 7aecb684..6a02a87a 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 69bb9498..9529db25 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%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@>CFEiBCf+@=PGh6YB4hGvFF)B6NiB#;HRZxmp8Dd24BFEiBCf+$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 69bb9498..9529db25 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|MS?B-(RFEi5?#dM1WOMwW&q24*Hk+6IQ|1_tVyT>8HGDK3d6sR|k{ zRz?O!NJ_TP5@7i%;A~`M>f&l@WM*z|>SkFEi4IqdZq@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 69bb9498..9529db25 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_TPP+-|Xfrb{w7N!>FEiBo5dM1WOMwW&q24<#4+6IQ|1_tVyT>8HGDK3d6sR|k{ zRz?O!NJ_TPFEi5Gh+@=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}+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 42b40e7f..8277a290 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 8e150d19..7aabc1fa 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}"