[Xy-pic] Really strange behavior
Ross Moore
ross.moore at mq.edu.au
Mon Jul 28 22:46:20 CEST 2014
Hi Michael,
On 28/07/2014, at 8:05 AM, Michael Barr wrote:
> Can anyone explain this behavior? Compile this:
>
> \documentclass{article}
> \pdfoutput1
> \usepackage[all]{xy}
> \begin{document}
> $$ \xy
> \POS(0,0)*+!!<0ex,0ex>{A}\ar^{f}(20,20)*+!!<0ex,0ex>{B}{}
> \POS(0,0)*+!!<0ex,0ex>{A}\ar^{f}(20,20)*+!!<0ex,0ex>{B}
> \endxy $$
>
> This doesn't happen if you remove the pair of braces at the end of the
> first line.
Those braces kill the Xy-pic parser, and result in an extra space
character inside the internal \hbox that is being built.
Simply add a % character; viz.
\POS(0,0)*+!!<0ex,0ex>{A}\ar^{f}(20,20)*+!!<0ex,0ex>{B}{}%
\POS(0,0)*+!!<0ex,0ex>{A}\ar^{f}(20,20)*+!!<0ex,0ex>{B}
Now the 2 arrows and objects overlay each other.
Are you trying to simulate bold-face ?
> \end{document}
Hope this helps,
Ross
------------------------------------------------------------------------
Ross Moore ross.moore at mq.edu.au
Mathematics Department office: E7A-206
Macquarie University tel: +61 (0)2 9850 8955
Sydney, Australia 2109 fax: +61 (0)2 9850 8114
------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo.png
Type: image/png
Size: 5257 bytes
Desc: not available
URL: <http://tug.org/pipermail/xy-pic/attachments/20140728/f8961e46/attachment.png>
-------------- next part --------------
More information about the xy-pic
mailing list