Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't export to PDF #52

Open
dpo opened this issue Dec 27, 2011 · 4 comments
Open

Can't export to PDF #52

dpo opened this issue Dec 27, 2011 · 4 comments

Comments

@dpo
Copy link

dpo commented Dec 27, 2011

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!

@fbreuer
Copy link
Owner

fbreuer commented Dec 27, 2011

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

@dpo
Copy link
Author

dpo commented Dec 28, 2011

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
Copy link
Author

dpo commented Dec 28, 2011

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.

@fbreuer
Copy link
Owner

fbreuer commented Dec 28, 2011

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants