-
Notifications
You must be signed in to change notification settings - Fork 970
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create single file templates (latex and beamer)
- Loading branch information
1 parent
071d062
commit bd28515
Showing
47 changed files
with
69 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
examples/boxes-with-pandoc-latex-environment-and-awesomebox/build.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Binary file modified
BIN
+0 Bytes
(100%)
examples/boxes-with-pandoc-latex-environment-and-awesomebox/document.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
examples/boxes-with-pandoc-latex-environment-and-tcolorbox/build.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Binary file modified
BIN
+0 Bytes
(100%)
examples/boxes-with-pandoc-latex-environment-and-tcolorbox/document.pdf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
# 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}" |