reddit / emacs

Unable to compile LaTeX document to get the pdf

Rapiz · 2022-08-27 08:09
Hey, I'm learning emacs and currently using it to write LaTeX, especially beamer. So I tried C-c C-c with various commands, but I can't get the pdf. I either get Quit (core dumped), no TeX output buffer or all the auxillary files but not the pdf. Tried latex, pdflatex and latexmk but neither of them work. I'm using Tex Live 2022/Arch Linux Any idea? Thanks. Edit: I didn't know that \*\* indicates that pdftex is waiting for input.. Literally pressed enter and pdftex replied with the message to type the name of the input file, so I typed it and got my pdf. What the heck.
Megapuik · 2022-08-27 08:51
Usually error messages appear in the *messages* buffer. Did you find any hint there on why it fails? Perhaps it's a matter of putting the pdf installation in the emacs path. On vanilla emacs I think I have to use C-c C-e to get to the export menu. Hope this helps. Good luck.
Rapiz · 2022-08-27 09:02
Thanks!
attento_redaz · 2022-08-27 10:24
export menu? are you talking about Org-mode? I thought OP was working directly with LaTeX.
HumanBrainMapper · 2022-08-27 16:24
No .log files either together with your .aux files?
osugisakae · 2022-08-27 21:10
Have you double checked that pdflatex (or similar) works properly from the command line? Not a solution, but it might help narrow down where the problem is.