first up is texlive-latex-base, only 138Mb!
% markdown2pdfrkdown2pdf ./werc.cat-v.org/docs/web_server_setup/lighttpd.md
markdown2pdf: pdfLaTeX failed with error code 1
markdown2pdf: error context:
! LaTeX Error: File `ucs.sty' not found.
! Emergency stop.
! ==> Fatal error occurred, no output PDF file produced!
markdown2pdf: Please install the 'unicode' package from CTAN:
http://www.ctan.org/tex-archive/macros/latex/contrib/unicode/
ffs, thats no help, check the page out, it assumes one knows what's going on.
ok, on to htmldoc
sigh, another program that ignores pipes by default HELLO THIS IS UNIX
markdown.pl ./werc.cat-v.org/docs/web_server_setup/lighttpd.md| htmldoc --book --footer . -f output.pdf -
works good enough, some font embedding issues but not fatal, though to get it in a pipeline you need to give it an output file with .pdf at the end, IDIOTS
#!/usr/local/plan9/bin/rc
markdown.pl $1 | htmldoc --book --footer . -f /tmp/md2pdf.$pid.pdf -
cat /tmp/md2pdf.$pid.pdf
rm -f /tmp/md2pdf.$pid.pdf
No comments:
Post a Comment