bug-auctex
[Top][All Lists]
Advanced

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

[Bug-AUCTeX] Re: 11.82; xypic crashes preview, updated


From: Alexis Gallagher
Subject: [Bug-AUCTeX] Re: 11.82; xypic crashes preview, updated
Date: Fri, 19 May 2006 14:30:20 +0100
User-agent: Mail/News 1.5.0.2 (Macintosh/20060309)

For anyone who finds there way here via google, I have found a suitable workaround for the problem I describe below.

The workaround is to modify your emacs so that preview-latex skips the offending \xymatrix commands. Go M-x customize-group, choose preview-latex, then modify the "Preview Default Preamble" by inserting the following string at the head of the list:

   "\renewcommand{\xymatrix}[1]{matrix removed}"

The preview-latex preamble runs after your latex document's preamble. So when you are viewing your document from within emacs, this will redefine the xypic command \xymatrix into something that preview-latex won't choke on. This works for me, on the configuration described by the stacktrace in the message I am replying to.

alexis


Alexis Gallagher wrote:

This is an update bug report of how the \xymatrix command in the xy-pic package causes preview-latex to crash, not merely display incorrectly. This is updated from a similar bug report earlier today, in that I have added the optional package argument "delayed" to preview and I am running preview-document instead of preview-buffer.

Thanks,
Alexis

Emacs  : GNU Emacs 22.0.50.1 (powerpc-apple-darwin7.9.0)
 of 2006-04-10 on rodrigues.inf.ed.ac.uk - Aquamacs Distribution 0.9.9c
Package: 11.82

Run buffer contents:

Running `Preview-LaTeX' on `sample3' with ``pdflatex "\nonstopmode\nofiles\PassOptionsToPackage{delayed,active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}\input{sample3.tex}"''
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
kish, ukrainian, nohyphenation, loaded.

No auxiliary output files.

(./sample3.tex (/sw/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/sw/share/texmf-dist/tex/latex/base/size10.clo))
(/sw/share/texmf-dist/tex/generic/xypic/xy.sty
(/sw/share/texmf-dist/tex/generic/xypic/xy.tex Bootstrap'ing: catcodes,
docmode, (/sw/share/texmf-dist/tex/generic/xypic/xyrecat.tex)
(/sw/share/texmf-dist/tex/generic/xypic/xyidioms.tex)

 Xy-pic version 3.7 <1999/02/16>
 Copyright (c) 1991-1998 by Kristoffer H. Rose <address@hidden>
 Xy-pic is free software: see the User's Guide for details.

Loading kernel: messages; fonts; allocations: state, direction,
utility macros; pictures: \xy, positions, objects, decorations;
kernel objects: directionals, circles, text; options; algorithms: directions,
edges, connections;  Xy-pic loaded)
(/sw/share/texmf-dist/tex/generic/xypic/xyall.tex
 Xy-pic option: All features v.3.3
(/sw/share/texmf-dist/tex/generic/xypic/xycurve.tex
 Xy-pic option: Curve and Spline extension v.3.7 curve, circles, loaded)
(/sw/share/texmf-dist/tex/generic/xypic/xyframe.tex
 Xy-pic option: Frame and Bracket extension v.3.7 loaded)
(/sw/share/texmf-dist/tex/generic/xypic/xycmtip.tex
 Xy-pic option: Computer Modern tip extension v.3.3
(/sw/share/texmf-dist/tex/generic/xypic/xytips.tex
 Xy-pic option: More Tips extension v.3.3 loaded) loaded)
(/sw/share/texmf-dist/tex/generic/xypic/xyline.tex
 Xy-pic option: Line styles extension v.3.6 loaded)
(/sw/share/texmf-dist/tex/generic/xypic/xyrotate.tex
 Xy-pic option: Rotate and Scale extension v.3.3 loaded)
(/sw/share/texmf-dist/tex/generic/xypic/xycolor.tex
 Xy-pic option: Colour extension v.3.3 loaded)
(/sw/share/texmf-dist/tex/generic/xyp...

[...]

    ...
                \par
l.11 }

Runaway argument?
h\dir [u]
! Paragraph ended before \next@ was complete.
<to be read again>
                   \par
l.11 }

! Missing $ inserted.
<inserted text>
                $
l.11 }

! Missing } inserted.
<inserted text>
                }
l.11 }

! Extra }, or forgotten $.
<recently read> }

l.11 }

! Extra }, or forgotten $.
\entrybox ... \z@ address@hidden \dp \z@ address@hidden \boxz@ }

l.11 }

! Extra }, or forgotten $.
<inserted text> \egroup
\def \Drop@@ {\styledboxz@ }\def \Connect@@ {\straig...
l.11 }

! A <box> was supposed to be here.
<to be read again>
                   \toks@
l.11 }

81>

! LaTeX Error: Bad math environment delimiter.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.12 \]

! Missing $ inserted.
<inserted text>
                $
l.12 \]

! Missing } inserted.
<inserted text>
                }
l.12 \]

! Missing } inserted.
<inserted text>
                }
l.12 \]

! Missing $ inserted.
<inserted text>
                $
l.12 \]

! Missing } inserted.
<inserted text>
                }
l.12 \]

! Missing } inserted.
<inserted text>
                }
l.12 \]

! Missing $ inserted.
<inserted text>
                $
l.12 \]

! Missing } inserted.
<inserted text>
                }
l.12 \]

! Missing } inserted.
<inserted text>
                }
l.12 \]

! Missing } inserted.
<inserted text>
                }
l.12 \]

! Missing } inserted.
<inserted text>
                }
l.12 \]

! Xy-pic error: An \xy environment is not closed correctly..
\xyerror@ ...#2}\fi \errmessage {Xy-pic error: #1}
                                                  }
l.12 \]

! Missing $ inserted.
<inserted text>
                $
l.12 \]

! Display math should end with $$.
<to be read again>
                   \endgroup
l.12 \]

(That makes 100 errors; please try again.)
No pages of output.
Transcript written on sample3.log.

Preview-LaTeX exited as expected with code 1 at Tue May 16 15:23:17
Running `Preview-PDF2DSC' with ``pdf2dsc sample3.pdf sample3.prv/tmp295J92/preview.dsc''

Preview-PDF2DSC killed at Tue May 16 15:23:17

current state:
==============
(setq
 AUC-TeX-version "11.82"
 LaTeX-command-style '(("" "%(PDF)%(latex) %S%(PDFout)"))
 image-types '(png gif tiff jpeg xpm xbm pbm)
 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 '("delayed" "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
 )

Output from running `gs -h':
AFPL Ghostscript 8.51 (2005-04-18)
Copyright (C) 2005 artofcode LLC, Benicia, CA.  All rights reserved.
Usage: gs [switches] [file1.ps file2.ps ...]
Most frequently used switches: (you can use # in place of =)
-dNOPAUSE no pause after page | -q `quiet', fewer messages -g<width>x<height> page size in pixels | -r<res> pixels/inch resolution
 -sDEVICE=<devname>  select device         | -dBATCH  exit after last file
 -sOutputFile=<file> select output file: - for stdout, |command for pipe,
                                         embed %d or %ld for page #
Input formats: PostScript PostScriptLevel1 PostScriptLevel2 PostScriptLevel3 PDF
Default output device: x11
Available devices:
   bbox bit bitcmyk bitrgb bj10e bj200 bjc600 bjc800 bmp16 bmp16m bmp256
   bmp32b bmpgray bmpmono bmpsep1 bmpsep8 cdeskjet cdj550 cdjcolor cdjmono
   cljet5 cljet5c deskjet devicen djet500 epswrite faxg3 faxg32d faxg4 ijs
   jpeg jpeggray laserjet lj5gray lj5mono ljet2p ljet3 ljet3d ljet4 ljet4d
   ljetplus nullpage pbm pbmraw pcx16 pcx24b pcx256 pcxcmyk pcxgray pcxmono
   pdfwrite pgm pgmraw pgnm pgnmraw pj pjxl pjxl300 pkm pkmraw pksm pksmraw
   png16 png16m png256 pngalpha pnggray pngmono pnm pnmraw ppm ppmraw
   psdcmyk psdrgb psgray psmono psrgb pswrite pxlcolor pxlmono spotcmyk
   tiff12nc tiff24nc tiff32nc tiffcrle tiffg3 tiffg32d tiffg4 tiffgray
   tifflzw tiffpack tiffsep uniprint x11 x11alpha x11cmyk x11gray2 x11gray4
   x11mono xcf
Search path:
   . : /sw/share/ghostscript/8.51/lib :
   /sw/share/ghostscript/8.51/Resource : /sw/share/ghostscript/fonts
For more information, see /sw/share/ghostscript/8.51/doc/Use.htm.
Report bugs to address@hidden, using the form in Bug-form.htm.





reply via email to

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