0

I am able to run pdflatex via tex-file, and the PDF generates just fine. How would I go about automatically opening the resultant PDF file after generation?

  • 1
    Are you using the AUCTeX library, or the builtin latex library, or your own custom method to generate the pdf file? – lawlist Jan 14 at 16:56
  • I'll have to look. I installed tex on my machine(macos) set up the tex-file command to build using pdflatex. I haven't done anything more than that. – sergio_101 Jan 14 at 18:09
  • Try using: C-c C-v which is bound to the function tex-view defined by the function tex-define-common-keys in the built-in tex-mode.el library. This comment assumes that you are using a generic version of Emacs for OSX/MacOS without having installed the AUCTeX library. While focus is within the *.tex buffer you can type C-h m to see some of the bound keyboard shortcuts. – lawlist Jan 14 at 19:58
  • thanks, @lawlist .. I installed AUCTeX, and it looks like C-ca does the trick. – sergio_101 Jan 14 at 21:40
0

you can use the latex-preview-pane-mode included in the auctex package. start it whenever you want to see the pdf generated, and then as you type latex and save it you see in the other pane the result

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.