- ‘#printable.rb#’
- ‘.#printable.rb’ / ‘printable.rb’
This commit is contained in:
parent
63f9e4b6b1
commit
97e18f4e6e
3 changed files with 4 additions and 23 deletions
|
@ -1,22 +0,0 @@
|
||||||
#!/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
|
|
||||||
|
|
||||||
`pandoc /tmp/#{file}.html --self-contained
|
|
||||||
`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'
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
zzk@vrt.local.322
|
|
|
@ -14,6 +14,10 @@ file=ARGV[0] # dokuwiki pagenme as argument
|
||||||
`php /var/www/libarynth/dokuwiki/bin/dokucli.php < #{doku}/#{file}.txt > /tmp/#{file}.html`
|
`php /var/www/libarynth/dokuwiki/bin/dokucli.php < #{doku}/#{file}.txt > /tmp/#{file}.html`
|
||||||
|
|
||||||
# convert html -> pdf with pandoc
|
# 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`
|
`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'
|
# merge single pdfs with 'assemble.rb'
|
||||||
|
|
Loading…
Reference in a new issue