[Xy-pic] Showing an arrow in text

Josep Maria Font jmfont at ub.edu
Fri Jan 24 10:49:17 CET 2014


Surprising. Although I am using a lot of packages, after experimenting I have found that the same error appears when the command occurs in the caption of a simple figure environment. The following minimal file shows it:

--------------------------------------------------------------------
\documentclass{amsart}
\usepackage[all]{xy} % including cmtip makes no difference
\begin{document}
\begin{figure}
\[
x
\]
\caption{The arrow $\xymatrix at C=10pt{*{}\ar[r]&*{}}$ is nice.}
\end{figure}

The arrow $\xymatrix at C=10pt{*{}\ar[r]&*{}}$ is nice.

\end{document}
--------------------------------------------------------------------

It breaks with the first occurrence but not with the second. BTW, I am using Xy-pic version 3.8.8 <2012/05/24>, the one included in TeX Live 2013. And, FWIW, with TeXShop 3.26 and Mac OS X 10.8.5.

???


JMaF


On 23/01/2014, at 23:00, Philip Hirschhorn <psh at math.mit.edu> wrote:

> I get no errors when I process the file
> --------------------------------------------------------------------
> \documentclass{amsart}
> \usepackage[all,cmtip]{xy}
> \begin{document}
>
>
> The arrow $\xymatrix at C=10pt{*{}\ar[r]&*{}}$ is nice.
>
>
> \end{document}
> --------------------------------------------------------------------
>
> Are you using some other version of the \usepackage command?
>
> Hope this helps.
>
> Phil
>
>
> On Thu, 23 Jan 2014, Josep Maria Font wrote:
>
>> Hi,
>>
>> I am new to the list, and hope some more experienced folks may give some help.
>>
>> I am using several simple arrow diagrams made with xymatrices in a paper, and I want to show the arrow used in the diagrams in an inline comment, in ordinary text. For this I am writing this small xymatrix, containing just an arrow between two empty nodes:
>>
>> $\xymatrix at C=10pt{*{}\ar[r]&*{}}$
>>
>> However, when compiling, TeX complains with
>>
>>> Argument of \doSpecialRotate@@ has an extra }
>>
>> If I hit "s" the compilation continues, as expected, and ends by producing the wanted result, after complaining that
>>
>>> Runaway argument?
>>> \xP at doSpecialRotate@@ {\xy \nter@ \endxy \xy@ \xymatrix {\nter@ {}}}\fi \ETC.
>>
>> and that
>>
>>> Paragraph ended before \doSpecialRotate@@ was complete.
>>
>> I can't see any obvious mistake in my code, but I am aware that Xy-pic has a very complicated syntax. Any help would be appreciated.
>>
>> Best,
>>
>>
>> JMaF



Aquest correu electrònic i els annexos poden contenir informació confidencial o protegida legalment i està adreçat exclusivament a la persona o entitat destinatària. Si no sou el destinatari final o la persona encarregada de rebre’l, no esteu autoritzat a llegir-lo, retenir-lo, modificar-lo, distribuir-lo, copiar-lo ni a revelar-ne el contingut. Si heu rebut aquest correu electrònic per error, us preguem que n’informeu al remitent i que elimineu del sistema el missatge i el material annex que pugui contenir. Gràcies per la vostra col·laboració.

Este correo electrónico y sus anexos pueden contener información confidencial o legalmente protegida y está exclusivamente dirigido a la persona o entidad destinataria. Si usted no es el destinatario final o la persona encargada de recibirlo, no está autorizado a leerlo, retenerlo, modificarlo, distribuirlo, copiarlo ni a revelar su contenido. Si ha recibido este mensaje electrónico por error, le rogamos que informe al remitente y elimine del sistema el mensaje y el material anexo que pueda contener. Gracias por su colaboración.

This email message and any documents attached to it may contain confidential or legally protected material and are intended solely for the use of the individual or organization to whom they are addressed. We remind you that if you are not the intended recipient of this email message or the person responsible for processing it, then you are not authorized to read, save, modify, send, copy or disclose any of its contents. If you have received this email message by mistake, we kindly ask you to inform the sender of this and to eliminate both the message and any attachments it carries from your account. Thank you for your collaboration.



More information about the xy-pic mailing list