[OS X TeX] Invoking latex with tex + ghostscript option? (fwd)
Roussanka Loukanova
rloukano at stp.lingfil.uu.se
Tue Jul 14 10:57:33 EDT 2009
Hi,
I've decided to forward this email from carbon-emacs group, which contains
one more solution, excellent indeed, by Enrico Franconi, for using
simpdftex with Carbon Emacs: It might be useful for some people who are
looking for it in this email list (independently, whether
this forward goes to the original thread, actually).
In the other email, I missed to say what I do now:
Enrico, thanks!
Roussanka
---------- Forwarded message ----------
Date: Tue, 14 Jul 2009 16:32:08 +0200 (CEST)
From: Roussanka Loukanova <rloukano at stp.lingfil.uu.se>
Reply-To: carbon-emacs at googlegroups.com
To: carbon-emacs at googlegroups.com
Subject: [carbon-emacs:1449] Re: [OS X TeX] Invoking latex with tex +
ghostscript option? (fwd)
Now, finally simpdftex works greatly!
I only added the option for synctex inside the definition of the defvar,
i.e.:
(defvar simpdflatex-program
"simpdftex latex --mode dvips --maxpfb --extratexopts -synctex=1
--distiller ps2pdf14"
"PDFLaTeX program via dvips")
This has made synctex working in both directions (Emacs <-> Skim).
Alternatively, the synctex works by adding \synctex=1 at the beginning of
the tex file. I used to have problem in the direction
Emacs -> Skim, somewhat disaperaing-repapearing. I could not figure what
was the problem. Now, the problem disappeared, i.e., it seems so.
On Tue, 14 Jul 2009, Enrico Franconi wrote:
>
> Hi,
> try this (still in .emacs):
>
> (defvar simpdflatex-program
> "simpdftex latex --mode dvips --maxpfb --distiller ps2pdf14"
> "PDFLaTeX program via dvips")
> (defun simpdflatex-command nil simpdflatex-program)
> (add-hook 'LaTeX-mode-hook
> (lambda nil
> (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))))
>
> In this way the variable definitions are evaluated after AucTeX has
> been launched.
>
> cheers
> --e.
>
> On 14 Jul 2009, at 14:45, Roussanka Loukanova wrote:
>
>> Hi,
>>
>> I'm forwarding the following email from OS X TeX mail group, hoping
>> that
>> somebody has some resolving ideas in the lines of Enrico Franconi's
>> method
>> for adding AUCTeX commands to Carbon Emacs: his suggestion was for
>> Aquamacs.
>>
>> Roussanka
>>
>> ---------- Forwarded message ----------
>> Date: Mon, 13 Jul 2009 23:52:35 +0200
>> From: Enrico Franconi <franconi at inf.unibz.it>
>> Reply-To: TeX on Mac OS X Mailing List <macosx-tex at email.esm.psu.edu>
>> To: TeX on Mac OS X Mailing List <macosx-tex at email.esm.psu.edu>
>> Subject: Re: [OS X TeX] Invoking latex with tex + ghostscript option?
>>
>> Indeed, this should be done *after* you have loaded AucTeX. In
>> Aquamacs, AucTeX
>> gets loaded before the personal .emacs is loaded. Maybe in Carbon
>> Emacs this is
>> not true. Just a guess.
>> --e.
>>
>> On 13 Jul 2009, at 22:59, Roussanka Loukanova wrote:
>>
>>>> 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 --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))
>>>
>>> I've tried a fresh ~/.emacs file with copy-paste the above
>>> instructions.
>>> Carbon Emacs outputs the following error in the buffer *Messages*:
>>>
>>> "Symbol's value as variable is void: TeX-expand-list"
>>>
>>> and, of course, the command simpdftex doesn't go into the Command
>>> menu.
>>> I use simpdftex by adding the command to AUCTeX via the Carbon
>>> Emacs's menu.
>>> A drawback is that after saving the setting, .emacs gets the full
>>> list of all
>>> commands '(TeX-command-list ... ).
>>> Your method is better by adding in .emacs only the additional
>>> commands by the
>>> TeX-expand-list.
>>
More information about the MacOSX-TeX
mailing list