Skip to content

Commit

Permalink
switching PDF typeset to docbook+dblatex
Browse files Browse the repository at this point in the history
  • Loading branch information
zuckschwerdt committed Apr 19, 2009
1 parent 9ef4509 commit d8d54ab
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Commands/Typeset as PDF.tmCommand
Expand Up @@ -10,11 +10,15 @@
. "${TM_SUPPORT_PATH}/lib/webpreview.sh"
# Prepare output window.
html_header 'Typeset & View' "$$TM_FILENAME (PDF)"
html_header 'Typeset & View' "$TM_FILENAME (PDF)"
# Compile.
asciidoc --unsafe --backend=latex "$TM_FILEPATH"
pdflatex "${TM_FILEPATH%.*}.tex"
asciidoc --backend=docbook "$TM_FILEPATH"
if [ -f ./custom.sty ] ; then
dblatex -b pdftex --texstyle ./custom.sty "${TM_FILEPATH%.*}.xml"
else
dblatex -b pdftex "${TM_FILEPATH%.*}.xml"
fi
RC=$?
html_footer
open "${TM_FILEPATH%.*}.pdf"
Expand Down

0 comments on commit d8d54ab

Please sign in to comment.