auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] Re: Suggestion about PDF generation


From: XING Zhaopeng ???
Subject: [AUCTeX] Re: Suggestion about PDF generation
Date: Mon, 20 Nov 2006 21:10:06 +0800
User-agent: Thunderbird 1.5.0.8 (Windows/20061025)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Augusto Stoffel wrote:
> I had to tweak AUCTeX, so that PDF files are generated with dvips instead of
> pdflatex. It was necessary because neither xdvi nor pdflatex works right with
> pstricks.
> 
> I think that there should be a straightforward way of choosing how PDF are
> generated. For example, instead of simply switching PDF mode on or off, it 
> would
> be possible to choose among "Generate DVI", "Generate PDF with pdflatex",
> "Generate PDF with dvips", etc.
> 
> I hope my suggestion is relevant.
> 
> Augusto.
pdf-mode is more similar to emacs taste, such as outline mode, flyspell
mode, etc. I do not want it to be like winedt. However, 1000 emacser has
1000 dotemacs. If you want "Generate DVI", "Generate PDF with pdflatex",
"Generate PDF with dvips" you can input the command into minibuffer. If
you like them in menu, you can do like this way (part of my dotemacs):

(setq my-tex-commands-extra (list
                             (list "All" "texify --tex-opt=--src %s.tex" 
'TeX-run-command nil t)
                             (list "All pdf" "texify --pdf %s.tex" 
'TeX-run-command nil t)
                             (list "pdfLaTeX" "pdflatex \\nonstopmode\\input %t"
'TeX-run-LaTeX nil t)
                             (list "dvipdfmx" "dvipdfmx \"%s.dvi\"" 
'TeX-run-command nil t)
                             (list "dvips" "dvips %s.dvi" 'TeX-run-command nil 
t)
                             (list "ps2pdf" "ps2pdf %s.ps" 'TeX-run-command nil 
t)
                             (list "gbk2uni" "gbk2uni \"%s.out\"" 
'TeX-run-command nil t)
                             (list "Yap" "yap -1 \"%dS\" \"%d\"" 
'TeX-run-discard nil t)
                             (list "Gsview" "start .\\\"%s.ps\"" 'TeX-run-LaTeX 
nil t)
                             (list "Acrobat" "start .\\\"%s.pdf\"" 
'TeX-run-command nil t)
                             (list "Clean" "del /s *.log *.aux %s.out %s.exa 
%s.ilg %s.idx
%s.ind %s.lof %s.lot %s.toc %s.bbl %s.blg ctextemp_*.*" 'TeX-run-command
nil t)))

(require 'tex)
(setq TeX-command-list (append TeX-command-list my-tex-commands-extra))

- --

Best regards,

XING Zhaopeng
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFYaktIX3g41AGwHwRAh2BAJ4mk+ynDIDkVOg1VEKQFEHSD8iKwgCcDxXM
7GAkktYup4+H1fOxMKu1jHQ=
=PrdT
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]