Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Using Preview.app as a TeX/LaTeX previewer' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Using Preview.app as a TeX/LaTeX previewer
Authored by: jmenard42 on Mar 19, '04 11:51:19AM

I have a small script that I use to turn a LaTeX file into PDF and open it in Preview.

[code]
#! /bin/sh
#
# Called from Emacs in tex-dvi-view-command (see .emacsrc.el).

pdflatex ${1%dvi}tex && open ${1%dvi}pdf
[/code]

In my .emacs file:

[code]
(setq tex-dvi-view-command "/Users/jimm/bin/latex-view '*'")
[/code]

When editing a .tex file, I first hit ^C-^F which runs tex-file and then hit ^C-^V which runs the script. The script runs pdflatex and then Preview.



[ Reply to This | # ]