bug-auctex
[Top][All Lists]
Advanced

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

[Bug-AUCTeX] 11.82; preview-latex incompatible with e-TeX's "-file-line-


From: Markus Ueberall
Subject: [Bug-AUCTeX] 11.82; preview-latex incompatible with e-TeX's "-file-line-error" option
Date: Sun, 9 Apr 2006 22:07:01 +0200

Hi there,

when using e-TeX's "-file-line-error" option, preview-latex is unable
to parse/detect the resulting 'error' messages.
(This seems to be the very reason why the current teTeX 3.0 release
for, e.g., Cygwin -- which uses pdfeTeX with the forementioned option by
default -- prevents the display of preview images.)

Though a temporary solution would be to simply turn off the
"file:line:error style" (e.g., by adding "-no-file-line-error" when invoking
e-TeX), it'd be preferable to allow for this style as well...

Below is an excerpt from the output of the enclosed sample file "circ.tex":

$ diff circ.tex.file-line-error.output circ.tex.no-file-line-error.output
2,3c2
< This is pdfeTeXk, Version 3.141592-1.30.6-2.2 (Web2C 7.5.5) (INITEX)
<  file:line:error style messages enabled.
---
> This is pdfeTeX, Version 3.141592-1.30.6-2.2 (Web2C 7.5.5) (INITEX)
103c102
< Preview-LaTeX finished at Sun Apr  9 20:28:13
---
> Preview-LaTeX finished at Sun Apr  9 20:23:34
105,106c104
< This is pdfeTeXk, Version 3.141592-1.30.6-2.2 (Web2C 7.5.5)
<  file:line:error style messages enabled.
---
> This is pdfeTeX, Version 3.141592-1.30.6-2.2 (Web2C 7.5.5)
136c134
< ./circ.tex:41: Preview: Snippet 1 started.
---
> ! Preview: Snippet 1 started.
142c140
< ./circ.tex:41: Preview: Snippet 1 ended.(651269+183455x14483456).
---
> ! Preview: Snippet 1 ended.(651269+183455x14483456).
[...]
1314,1315c1312,1335
< Preview-LaTeX exited as expected with code 1 at Sun Apr  9 20:28:20
< LaTeX: LaTeX found no preview images
---
> Preview-LaTeX exited as expected with code 1 at Sun Apr  9 20:23:41
> Running `Preview-DviPS' with ``dvips -Pwww circ.dvi -o
circ.prv/tmp26526tEV/preview.ps''
[...]


current state:
==============

[ effect reproducable with both Emacs 21.3.50 (Windows/Cygwin) and
21.4.2 (Linux Mandrake) and different versions of Ghostscript;  just
included for completeness here ]

(setq
 AUC-TeX-version "11.82"
 LaTeX-command-style '(("" "%(PDF)%(latex) %S%(PDFout)"))
 image-types '(png gif tiff jpeg xpm pbm postscript xbm)
 preview-image-type 'png
 preview-image-creators '((dvipng (open preview-gs-open
preview-dvipng-process-setup) (place preview-gs-place) (close
preview-dvipng-close))
                          (png (open preview-gs-open) (place
preview-gs-place) (close preview-gs-close))
                          (jpeg (open preview-gs-open) (place
preview-gs-place) (close preview-gs-close))
                          (pnm (open preview-gs-open) (place
preview-gs-place) (close preview-gs-close))
                          (tiff (open preview-gs-open) (place
preview-gs-place) (close preview-gs-close)))
 preview-dvipng-image-type 'png
 preview-dvipng-command "dvipng -picky -noghostscript %d -o
\"%m/prev%%03d.png\""
 preview-pdf2dsc-command "pdf2dsc %s.pdf %m/preview.dsc"
 preview-gs-command "gs"
 preview-gs-options '("-q" "-dSAFER" "-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted"
"-dTextAlphaBits=4" "-dGraphicsAlphaBits=4")
 preview-gs-image-type-alist '((png png "-sDEVICE=png16m") (dvipng png
"-sDEVICE=png16m") (jpeg jpeg "-sDEVICE=jpeg")
                               (pnm pbm "-sDEVICE=pnmraw") (tiff tiff
"-sDEVICE=tiff12nc"))
 preview-fast-conversion t
 preview-prefer-TeX-bb nil
 preview-dvips-command "dvips -Pwww -i -E %d -o %m/preview.000"
 preview-fast-dvips-command "dvips -Pwww %d -o %m/preview.ps"
 preview-scale-function 'preview-scale-from-face
 preview-LaTeX-command '("%l
\"\\nonstopmode\\nofiles\\PassOptionsToPackage{" ("," .
preview-required-option-list)
        
"}{preview}\\AtBeginDocument{\\ifx\\ifPreview\\undefined"
preview-default-preamble "\\fi}\\input{%t}\"")
 preview-required-option-list '("active" "tightpage" "auctex"
(preview-preserve-counters "counters"))
 preview-preserve-counters nil
 preview-default-option-list '("displaymath" "floats" "graphics" "textmath"
"sections" "footnotes")
 preview-default-preamble '("\\RequirePackage[" ("," .
preview-default-option-list) "]{preview}[2004/11/05]")
 preview-LaTeX-command-replacements nil
 preview-dump-replacements '(preview-LaTeX-command-replacements
                             ("\\`\\([^ ]+\\)\\(\\( -\\([^
\"]\\|\"[^\"]*\"\\)*\\)*\\)\\(.*\\)\\'" "\\1 -ini \"&\\1\" "
preview-format-name
                              ".ini \\5")
                             )
 preview-undump-replacements '(("\\`\\([^ ]+\\)\\(\\( -\\([^
\"]\\|\"[^\"]*\"\\)*\\)*\\).*\\input{\\([^}]*\\)}.*\\'" "\\1 \"&"
                                preview-format-name "\" \\5")
                               )
 preview-auto-cache-preamble 'ask
 )


Ad astra, Markus






reply via email to

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