[OS X Emacs] latex compilation in pdf via ps

Enrico Franconi franconi at inf.unibz.it
Sun Oct 4 18:25:48 EDT 2009


The simpdftex executable (available in MacTeX and TeXLive) does the  
steps for you.
This is what I do in order to use simpdftex with AucTeX (add it to  
your ~/.emacs file, and you'll find a new menu entry for simpdftex):

(defvar simpdflatex-program
   "simpdftex latex --mode dvips --maxpfb --extratexopts '-synctex=1'  
--distiller ps2pdf14"
   "PDFLaTeX program via dvips")

(defun simpdflatex-command nil simpdflatex-program)

(setq TeX-expand-list
	 (cons '("%(simpdflatex)"  (lambda nil (simpdflatex-command)))
	       TeX-expand-list))

(setq TeX-command-list
	 (cons '("simPDFLaTeX" "%(simpdflatex) %t" TeX-run-TeX nil
		 (latex-mode doctex-mode) :help "Run pLaTeX")
	       TeX-command-list))

(setq TeX-command-output-list
	 (cons '("simpdftex" ("pdf"))
	       TeX-command-output-list))

Skim synchronisation works out of the box for me.
cheers
--e.

On 4 Oct 2009, at 18:35, Peter Dyballa wrote:

>
> Am 04.10.2009 um 18:07 schrieb Dr. Johannes Brauer:
>
>> But the great integration with the pdf-viewer Skim by Aquamacs does
>> not work anymore. Skim doesn't recognize that there is a new pdf  
>> file.
>> The View command forces Skim to open the pdf file in a new window.
>>
>> How I can repair the Skim integration?
>
>
> The problem is that simpdftex does *not* reuse the PDF file. By  
> default. I think there was an update released to make simpdftex re- 
> use the formerly created PDF file, but I don't recall any details –  
> mostly not using the script! Could be Skim has an option to test the  
> file name and not the file's inode...
>
> Hopefully someone else has the missing details!
>
> --
> Mit friedvollen Grüßen
>
>  Pete
>
> The best way to accelerate a PC is 9.8 m/s²
>
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20091005/621427d1/attachment.p7s>


More information about the MacOSX-Emacs mailing list