qute-html5 icon indicating copy to clipboard operation
qute-html5 copied to clipboard

Can't export to PDF

Open dpo opened this issue 13 years ago • 4 comments

From the Publish menu, I'm able to convert a document to LaTeX via Pandoc, but export to PDF produces no output. The path to markdown2pdf is correct, Qute shows several messages saying that markdown2pdf ran correctly, and I can hear disk IO. But alas, no output file. Is there an extra step? I unfortunately don't speak Clojure. Thanks!

dpo avatar Dec 27 '11 17:12 dpo

Thanks for reporting this issue! The export features are a little rough around the edges.

If the LaTeX export works but producing PDF via Pandoc does not: Could you check that you have pdflatex installed and on your path? (markdown2pdf uses pdflatex.) Try the following: Open a terminal, cd into the directory containing your text file and run

markdown2pdf -o output.pdf yourfile.txt

What is the output on the terminal? Also: what platform are you on?

BTW, version 0.4 of Qute is written in 100% JavaScript (no Clojure). You can browse the code of the 0.4 branch at https://github.com/fbreuer/qute-html5/tree/0.4

fbreuer avatar Dec 27 '11 21:12 fbreuer

Thanks for the quick reply. I do have pdflatex, which I use all the time. I am able to produce PDFs from Markdown files. Of course, it doesn't work if there are TeX formulas in the file (as in the Qute demo file). But with pure Markdown:

$ markdown2pdf -o truc.pdf truc.md
Created ./truc.pdf

and the PDF file looks just fine.

I'm on OSX 10.6.8 running Qute 0.4.

BTW I think this will be one of the editors of the future!

dpo avatar Dec 28 '11 02:12 dpo

This console output may be relevant. First I save my file. Then I try to convert it to PDF and that fails with a message saying that pandoc, pdflatex and bibtex can't be found. Finally, I convert the file to TeX and that succeeds (so pandoc can be found)---it does output a TeX file. I'm browsing the Qute source code but my JavaScript is very limited. Thanks again!

11-12-27 9:55:10 PM [0x0-0x74e74e].Qute[25097]  info: Notify: Saved /Users/dpo/Desktop/truc.md.
11-12-27 9:55:10 PM [0x0-0x74e74e].Qute[25097]  info: Notify: Running markdown2pdf... If this does not appear to do anything, are you sure you have set the path to markdown2pdf correctly?
11-12-27 9:55:10 PM [0x0-0x74e74e].Qute[25097]  info: Notify: Running markdown2pdf succeeded.
11-12-27 9:55:10 PM [0x0-0x74e74e].Qute[25097]  mark
11-12-27 9:55:10 PM [0x0-0x74e74e].Qute[25097]  down2pdf: Could not find pandoc, pdflatex, bibtex
11-12-27 9:56:20 PM [0x0-0x74e74e].Qute[25097]  info: Export LaTeX: picked /Users/dpo/Desktop/truc.tex
11-12-27 9:56:20 PM [0x0-0x74e74e].Qute[25097]  info: Save File
11-12-27 9:56:20 PM [0x0-0x74e74e].Qute[25097]  info: Notify: Saved /Users/dpo/Desktop/truc.md.
11-12-27 9:56:20 PM [0x0-0x74e74e].Qute[25097]  info: Notify: Running pandoc... If this does not appear to do anything, are you sure you have set the path to pandoc correctly?
11-12-27 9:56:20 PM [0x0-0x74e74e].Qute[25097]  info: Notify: Running pandoc succeeded.

dpo avatar Dec 28 '11 02:12 dpo

Thanks for the detailed feedback! (And your confidence in Qute.)

Judging from the debugging output, it seems like markdown2pdf is called correctly, but then reports that it cannot find pdflatex for some reason. Hm. I will try to test on a Mac tomorrow.

fbreuer avatar Dec 28 '11 09:12 fbreuer