Merge branch 'master' of ssh://fo.am/foam/futurist-fieldguide

This commit is contained in:
nik gaffney 2015-05-27 09:27:09 +00:00
commit 9aa307186a
2 changed files with 29 additions and 0 deletions

28
#printable.rb# Normal file
View file

@ -0,0 +1,28 @@
#!/usr/local/bin/ruby
#
# dokuwiki -> pdf conversion for futurist fieldguide
repo="/home/nik/pandoc/futurist-fieldguide/"
doku="/var/www/libarynth/dokuwiki/data/pages/futurist_fieldguide/"
user="www-data"
# Dir['*.txt']
file=ARGV[0] # dokuwiki pagenme as argument
# parse dokuwiki -> html
`php /var/www/libarynth/dokuwiki/bin/dokucli.php < #{doku}/#{file}.txt > /tmp/#{file}.html`
# convert html -> pdf with pandoc
# extra html step to create self-contained (local) images
`pandoc /tmp/#{file}.html --self-contained -o /tmp/#{file}.html`
`pandoc /tmp/#{file}.html -S --template=#{repo}/pandoc/templates/fieldguide.tex --include-in-header=#{repo}/pandoc/header.tex --latex-engine=xelatex -o #{repo}/print/#{file}.pdf`
# merge single pdfs with 'assemble.rb'
# commit & push
# `git add -A`
# `git commit -m

1
.#printable.rb Symbolic link
View file

@ -0,0 +1 @@
zzk@vrt.local.322