separate assembly stage

This commit is contained in:
nik gaffney 2015-05-27 07:11:07 +02:00
parent 3cf0de9711
commit 76133ae476
2 changed files with 12 additions and 2 deletions

11
assemble.rb Normal file
View file

@ -0,0 +1,11 @@
#!/usr/local/bin/ruby
#
# assemble single pdfs into single document for futurist fieldguide
repo="/home/nik/pandoc/futurist-fieldguide/"
doku="/var/www/libarynth/dokuwiki/data/pages/futurist_fieldguide/"
user="www-data"
# merge single pdfs
`pdfjoin #{repo}/print/*.pdf --outfile #{repo}/fieldguide.pdf`

View file

@ -16,6 +16,5 @@ file=ARGV[0] # dokuwiki pagenme as argument
# convert html -> pdf with pandoc # convert html -> pdf with pandoc
`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` `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 # merge single pdfs with 'assemble.rb'
`pdfjoin #{repo}/print/*.pdf --outfile #{repo}/fieldguide.pdf`