[Xy-pic] Showing an arrow in text

Josep Maria Font jmfont at ub.edu
Fri Jan 24 23:44:16 CET 2014


Just to report on the solution of the problem below, courtesy of Philip Hirschhorn.

After some experimenting, it seems that the error appears in minimal examples, but only when the offending \xymatrix occurs in the argument of a \caption{...} (the original situation) or of a \section{...} commands. Encapsulating the whole \xymatrix into a user-defined command, and using it in such places together with a \protect command in front of it solved the issue.

It is not clear *why* this happens, anyway (the error mentions \xP at doSpecialRotate@@).

Best,


JMaF


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