-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stashing changes on PDF implementation
- Loading branch information
Michael Flaxman
committed
Jan 18, 2021
1 parent
af9552a
commit 23626e6
Showing
4 changed files
with
49 additions
and
15 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,2 +1,13 @@ | ||
#!/bin/bash | ||
pandoc --css assets/templates/epub.css --highlight-style zenburn --toc -N --lua-filter _pandoc_filter/image_link.lua --lua-filter _pandoc_filter/add_title.lua -o assets/btcguide.epub index_pandoc.md | ||
|
||
# Verbose printing | ||
set -o xtrace | ||
|
||
pandoc --css assets/templates/epub.css --highlight-style zenburn --toc -N --lua-filter _pandoc_filter/image_link.lua --lua-filter _pandoc_filter/add_title.lua -o assets/btcguide.epub index_pandoc.md | ||
|
||
# Hackey timer | ||
# https://askubuntu.com/questions/1028924/how-do-i-use-seconds-inside-a-bash-script | ||
hrs=$(( SECONDS/3600 )) | ||
mins=$(( (SECONDS-hrs*3600)/60)) | ||
secs=$(( SECONDS-hrs*3600-mins*60 )) | ||
printf 'Time spent: %02d:%02d:%02d\n' $hrs $mins $secs |
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,13 @@ | ||
#!/bin/bash | ||
pandoc --pdf-engine=xelatex --template=assets/templates/eisvogel.latex --highlight-style zenburn --toc -N --lua-filter _pandoc_filter/image_link.lua --lua-filter _pandoc_filter/add_title.lua -o assets/btcguide.pdf index_pandoc.md | ||
|
||
# Verbose printing | ||
set -o xtrace | ||
|
||
pandoc --pdf-engine=xelatex --template=assets/templates/eisvogel.latex --highlight-style zenburn --toc -N --lua-filter _pandoc_filter/image_link.lua --lua-filter _pandoc_filter/add_title.lua -o assets/btcguide.pdf index_pandoc.md | ||
|
||
# Hackey timer | ||
# https://askubuntu.com/questions/1028924/how-do-i-use-seconds-inside-a-bash-script | ||
hrs=$(( SECONDS/3600 )) | ||
mins=$(( (SECONDS-hrs*3600)/60)) | ||
secs=$(( SECONDS-hrs*3600-mins*60 )) | ||
printf 'Time spent: %02d:%02d:%02d\n' $hrs $mins $secs |
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