diff --git a/Commands/Typeset as PDF.tmCommand b/Commands/Typeset as PDF.tmCommand index 04c7f93..ddc0308 100644 --- a/Commands/Typeset as PDF.tmCommand +++ b/Commands/Typeset as PDF.tmCommand @@ -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"