[Xy-pic] Background colour

Damjan Perenic damjan.perenic at guest.arnes.si
Mon Feb 21 18:19:48 CET 2011


Hello Daniel,

Thank you. Your code works.

One more question. Are thick lines now supported in pdflatex?

I tried to make a thick line like in this example:
http://tug.org/pipermail/xy-pic/2003-July/000178.html

But I got anyway a normal line.

Is there any other way to make a thick line?

Damjan


On Tue, Feb 22, 2011 at 12:11 AM, Daniel Müllner
<nospamplease at stanford.edu> wrote:
> Hi Damjan,
>
> the following code does what you asked for:
>
> \documentclass{minimal}
> \usepackage{xcolor}
> \usepackage[matrix,frame,color,pdf]{xy} % or "dvips" instead of "pdf"
> %\usepackage[all]{xy} also works for pdfLaTeX
> \begin{document}
> \begin{displaymath}
>  \entrymodifiers={=<0.5pc>++[o][F-]}
>  \xymatrix at C=1pc @R=3pt {
>    *{r} & *{s} & *{t} & *{u} \\
>    \infty & *=<0.5pc>++[o][F-][F*:yellow]{0} & \infty & \infty \\
>    *+<1pc>{} \\
>    \infty & \infty & \infty & \infty \\
>    *{v} & *{w} & *{x} & *{y}
>  }
> \end{displaymath}
> \end{document}
>
> If this does not produce the yellow background disk on your computer, please
> update Xy-pic to the newest version (currently 3.8.5). I do not remember
> which Xy-pic version contained the xypdf version 1.4, in which I introduced
> the color support for the xypdf driver, so your Xy-pic 3.8.2 might not have
> this functionality.
>
> Best,
>
> Daniel
>



More information about the xy-pic mailing list