separate assembly stage
This commit is contained in:
parent
3cf0de9711
commit
76133ae476
2 changed files with 12 additions and 2 deletions
11
assemble.rb
Normal file
11
assemble.rb
Normal 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`
|
||||
|
|
@ -16,6 +16,5 @@ file=ARGV[0] # dokuwiki pagenme as argument
|
|||
# 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`
|
||||
|
||||
# merge single pdfs
|
||||
`pdfjoin #{repo}/print/*.pdf --outfile #{repo}/fieldguide.pdf`
|
||||
# merge single pdfs with 'assemble.rb'
|
||||
|
||||
|
|
Loading…
Reference in a new issue