[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-AUCTeX] AUCTeX and xypic problems.
From: |
Mark Dickinson |
Subject: |
[Bug-AUCTeX] AUCTeX and xypic problems. |
Date: |
Mon, 2 Jan 2006 00:47:55 -0500 |
I'm having trouble generating previews for a document that uses the
xypic package for generating commutative diagrams. Here's a minimal
example.
-----------------------
\documentclass{article}
\usepackage[all]{xy}
\begin{document}
\begin{figure}
address@hidden & B}
\end{figure}
\end{document}
-----------------------
After running C-c C-p C-d on this document, I just get a blank line
where I was expecting to see a preview for the figure. The TeX output
buffer shows a series of errors; here's an excerpt starting from the
first error, which seems to be related to the use of address@hidden in the
matrix. (The full output is included at the end of this message.)
-----------------------
Preview: Fontsize 10pt
Preview: PDFoutput 1
)
! Preview: Snippet 1 started.
<-><->
l.6 \begin{figure}
<xymatrix
! Argument of \next@ has an extra }.
<inserted text>
\par
l.7 address@hidden & B}
Runaway argument?
h\dir [r]
! Paragraph ended before \next@ was complete.
<to be read again>
\par
l.7 address@hidden & B}
! Missing $ inserted.
<inserted text>
$
----------------------
Is there any way to fix this?
Mark
Emacs : GNU Emacs 22.0.50.1 (powerpc-apple-darwin7.9.0)
of 2006-01-01 on fibonacci
Package: 11.82
current state:
==============
(setq
AUCTeX-date "2005-12-17"
window-system 'mac
LaTeX-version "2e"
TeX-style-path '("style" "auto"
"/opt/local/share/emacs/site-lisp/auctex/style"
"/opt/local/share/emacs/site-lisp/auctex/auto")
TeX-auto-save nil
TeX-parse-self nil
TeX-master t
TeX-command-list '(("TeX" "%(PDF)%(tex) %S%(PDFout) \"%(mode)\\input %t\""
TeX-run-TeX nil
(plain-tex-mode ams-tex-mode texinfo-mode) :help
"Run plain TeX")
("LaTeX" "%l \"%(mode)\\input{%t}\"" TeX-run-TeX nil
(latex-mode doctex-mode) :help "Run LaTeX")
("Makeinfo" "makeinfo %t" TeX-run-compile nil
(texinfo-mode) :help "Run Makeinfo with Info output")
("Makeinfo HTML" "makeinfo --html %t" TeX-run-compile nil
(texinfo-mode) :help "Run Makeinfo with HTML output")
("AmSTeX" "%(PDF)amstex %S%(PDFout) \"%(mode)\\input %t\""
TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
("ConTeXt" "texexec --once --texutil %(execopts)%t"
TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
("ConTeXt Full" "texexec %(execopts)%t" TeX-run-TeX nil
(context-mode) :help "Run ConTeXt until completion")
("ConTeXt Clean" "texutil --purgeall" TeX-run-interactive
nil (context-mode) :help "Clean temporary ConTeXt files")
("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help
"Run BibTeX")
("View" "%V" TeX-run-discard t t :help "Run Viewer")
("Print" "%p" TeX-run-command t t :help "Print the file")
("Queue" "%q" TeX-run-background nil t :help
"View the printer queue" :visible TeX-queue-command)
("File" "%(o?)dvips %d -o %f " TeX-run-command t t :help
"Generate PostScript file")
("Index" "makeindex %s" TeX-run-command nil t :help
"Create index file")
("Check" "lacheck %s" TeX-run-compile nil (latex-mode)
:help "Check LaTeX file for correctness")
("Spell" "<ignored>" TeX-run-ispell-on-document nil t
:help "Spell-check the document")
("Other" "" TeX-run-command t t :help
"Run an arbitrary command")
)
)
Here are the complete contents of the TeX output buffer.
----------------------
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.
(./auctexbug.tex (/opt/local/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/opt/local/share/texmf-dist/tex/latex/base/size10.clo))
(/opt/local/share/texmf-dist/tex/generic/xypic/xy.sty
(/opt/local/share/texmf-dist/tex/generic/xypic/xy.tex Bootstrap'ing: catcodes,
docmode, (/opt/local/share/texmf-dist/tex/generic/xypic/xyrecat.tex)
(/opt/local/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)
(/opt/local/share/texmf-dist/tex/generic/xypic/xyall.tex
Xy-pic option: All features v.3.3
(/opt/local/share/texmf-dist/tex/generic/xypic/xycurve.tex
Xy-pic option: Curve and Spline extension v.3.7 curve, circles, loaded)
(/opt/local/share/texmf-dist/tex/generic/xypic/xyframe.tex
Xy-pic option: Frame and Bracket extension v.3.7 loaded)
(/opt/local/share/texmf-dist/tex/generic/xypic/xycmtip.tex
Xy-pic option: Computer Modern tip extension v.3.3
(/opt/local/share/texmf-dist/tex/generic/xypic/xytips.tex
Xy-pic option: More Tips extension v.3.3 loaded) loaded)
(/opt/local/share/texmf-dist/tex/generic/xypic/xyline.tex
Xy-pic option: Line styles extension v.3.6 loaded)
(/opt/local/share/texmf-dist/tex/generic/xypic/xyrotate.tex
Xy-pic option: Rotate and Scale extension v.3.3 loaded)
(/opt/local/share/texmf-dist/tex/generic/xypic/xycolor.tex
Xy-pic option: Colour extension v.3.3 loaded)
(/opt/local/share/texmf-dist/tex/generic/xypic/xymatrix.tex
Xy-pic option: Matrix feature v.3.4 loaded)
(/opt/local/share/texmf-dist/tex/generic/xypic/xyarrow.tex
Xy-pic option: Arrow and Path feature v.3.5 path, \ar, loaded)
(/opt/local/share/texmf-dist/tex/generic/xypic/xygraph.tex
Xy-pic option: Graph feature v.3.7 loaded) loaded)) (./auctexbug.aux)
(/opt/local/share/texmf/tex/latex/preview/preview.sty
(/opt/local/share/texmf/tex/latex/preview/prtightpage.def)
(/opt/local/share/texmf/tex/latex/preview/prauctex.def
No auxiliary output files.
(/opt/local/share/texmf/tex/latex/preview/prauctex.cfg))
(/opt/local/share/texmf/tex/latex/preview/prfootnotes.def)
Preview: Fontsize 10pt
Preview: PDFoutput 1
)
! Preview: Snippet 1 started.
<-><->
l.6 \begin{figure}
<xymatrix
! Argument of \next@ has an extra }.
<inserted text>
\par
l.7 address@hidden & B}
Runaway argument?
h\dir [r]
! Paragraph ended before \next@ was complete.
<to be read again>
\par
l.7 address@hidden & B}
! Missing $ inserted.
<inserted text>
$
l.7 address@hidden & B}
! Missing } inserted.
<inserted text>
}
l.7 address@hidden & B}
! Extra }, or forgotten $.
<recently read> }
l.7 address@hidden & B}
! Extra }, or forgotten $.
\entrybox ... \z@ address@hidden \dp \z@ address@hidden \boxz@ }
l.7 address@hidden & B}
! Extra }, or forgotten $.
<inserted text> \egroup
\def \Drop@@ {\styledboxz@ }\def \Connect@@ {\straig...
l.7 address@hidden & B}
! Missing $ inserted.
<inserted text>
$
l.7 address@hidden & B}
! Missing } inserted.
<inserted text>
}
l.7 address@hidden & B}
! Missing } inserted.
<inserted text>
}
l.7 address@hidden & B}
2x1
! Argument of \next@ has an extra }.
<inserted text>
\par
l.7 address@hidden & B}
Runaway argument?
h\dir [r]
! Paragraph ended before \next@ was complete.
<to be read again>
\par
l.7 address@hidden & B}
! Missing $ inserted.
<inserted text>
$
l.7 address@hidden & B}
! Missing } inserted.
<inserted text>
}
l.7 address@hidden & B}
! Extra }, or forgotten $.
<recently read> }
l.7 address@hidden & B}
! Extra }, or forgotten $.
\entrybox ... \z@ address@hidden \dp \z@ address@hidden \boxz@ }
l.7 address@hidden & B}
! Extra }, or forgotten $.
<inserted text> \egroup
\def \Drop@@ {\styledboxz@ }\def \Connect@@ {\straig...
l.7 address@hidden & B}
! Missing $ inserted.
<inserted text>
$
l.7 address@hidden & B}
! Missing } inserted.
<inserted text>
}
l.7 address@hidden & B}
! Missing } inserted.
<inserted text>
}
l.7 address@hidden & B}
! Argument of \next@ has an extra }.
<inserted text>
\par
l.7 address@hidden & B}
Runaway argument?
h\dir [r]
! Paragraph ended before \next@ was complete.
<to be read again>
\par
l.7 address@hidden & B}
! Missing $ inserted.
<inserted text>
$
l.7 address@hidden & B}
! Missing } inserted.
<inserted text>
}
l.7 address@hidden & B}
! Extra }, or forgotten $.
<recently read> }
l.7 address@hidden & B}
! Extra }, or forgotten $.
\entrybox ... \z@ address@hidden \dp \z@ address@hidden \boxz@ }
l.7 address@hidden & B}
! Extra }, or forgotten $.
<inserted text> \egroup
\def \Drop@@ {\styledboxz@ }\def \Connect@@ {\straig...
l.7 address@hidden & B}
! A <box> was supposed to be here.
<to be read again>
\toks@
l.7 address@hidden & B}
31>
! Missing $ inserted.
<inserted text>
$
l.8 \end{figure}
! Missing } inserted.
<inserted text>
}
l.8 \end{figure}
! Missing } inserted.
<inserted text>
}
l.8 \end{figure}
! Missing } inserted.
<inserted text>
}
l.8 \end{figure}
! Missing } inserted.
<inserted text>
}
l.8 \end{figure}
! Xy-pic error: An \xy environment is not closed correctly..
\xyerror@ ...#2}\fi \errmessage {Xy-pic error: #1}
}
l.8 \end{figure}
Preview: Tightpage -32891 -32891 32891 32891
! Preview: Snippet 1 ended.(0+0x0).
<-><->
l.8 \end{figure}
[1] )
(see the transcript file for additional information)
Output written on auctexbug.pdf (1 page, 833 bytes).
Transcript written on auctexbug.log.
Preview-LaTeX exited as expected with code 1 at Mon Jan 2 00:40:58
Running `Preview-PDF2DSC' with ``pdf2dsc auctexbug.pdf
auctexbug.prv/tmp22092xWg/preview.dsc''
Preview-PDF2DSC finished at Mon Jan 2 00:40:59
Running `Preview-Ghostscript' with ``gs
-dOutputFile\=\(auctexbug.prv/tmp22092xWg/pr1-\%d.png\) -q -dSAFER
-dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4
-dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r86.4585x86.6987''
Preview-Ghostscript finished at Mon Jan 2 00:40:59
----------------------
- [Bug-AUCTeX] AUCTeX and xypic problems.,
Mark Dickinson <=