dokuwiki → pdf → print #8

Open
opened 2015-05-19 08:27:27 +00:00 by nik · 2 comments
Owner

Automate the conversion of dokuwiki pages to printable pdf

current cli

using the ruby script

  • ruby printable.rb -g --file hosting_conversations (note the -g flag will autocommit new files to repo.fo.am)

using the dokuwiki cli parser and pandoc

  • php /var/www/libarynth/dokuwiki/bin/dokucli.php < /var/www/libarynth/dokuwiki/data/pages/futurist_fieldguide/start.txt > ff-test.html
  • pandoc ff-test.html -t latex -o ff-test.tex
  • (edit .tex file as required)
  • pandoc ff-test.tex -o ff-test.pdf

test/examples/expand

pandoc ff-test.tex -S --template=templates/fieldguide.tex --variable date="2015-05-19" --variable include-before="\pagenumbering{gobble}" --variable include-after="\pagebreak retrocasting retroamnesia" --include-in-header=header.tex --latex-engine=xelatex -o ff-test8.pdf

simplified

pandoc ff-test.html -S --template=templates/fieldguide.tex --include-in-header=header.tex --latex-engine=xelatex -o ff-test9.pdf

features

  • decent layout
  • font/type decisions
  • no page numbers
  • current version (or other relevant metadata) as footer
  • running on fo.am
  • linkas and/as footnotes (see also #11)
  • webased auto-assembler

notes/reference

(comments as link dump while i work out the most suitable approach @nik)

Automate the conversion of dokuwiki pages to printable pdf ### current cli using the ruby script - ```ruby printable.rb -g --file hosting_conversations``` (note the `-g` flag will autocommit new files to repo.fo.am) using the dokuwiki cli parser and pandoc - ```php /var/www/libarynth/dokuwiki/bin/dokucli.php < /var/www/libarynth/dokuwiki/data/pages/futurist_fieldguide/start.txt > ff-test.html``` - ```pandoc ff-test.html -t latex -o ff-test.tex``` - (edit .tex file as required) - ```pandoc ff-test.tex -o ff-test.pdf``` ### test/examples/expand pandoc ff-test.tex -S --template=templates/fieldguide.tex --variable date="2015-05-19" --variable include-before="\pagenumbering{gobble}" --variable include-after="\pagebreak retrocasting retroamnesia" --include-in-header=header.tex --latex-engine=xelatex -o ff-test8.pdf simplified pandoc ff-test.html -S --template=templates/fieldguide.tex --include-in-header=header.tex --latex-engine=xelatex -o ff-test9.pdf ### features * [ ] decent layout * [ ] font/type decisions * [x] no page numbers * [x] current version (or other relevant metadata) as footer * [x] running on fo.am * [ ] linkas and/as footnotes (see also #11) * [ ] webased auto-assembler ### notes/reference * https://repo.fo.am/foam/futurist-fieldguide/wikis/latex-notes * http://pandoc.org/README.html (comments as link dump while i work out the most suitable approach @nik)
Owner
http://www.latextemplates.com/template/tufte-style-book
Owner

note that there is now a dokuwiki reader & writer in pandoc so this may be a bit simpler...

note that there is now a dokuwiki reader & writer in pandoc so this may be a bit simpler...
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: FoAM/futurist-fieldguide#8
No description provided.