[Xy-pic] Fwd: color and thickness of frame's outline

Ross Moore ross at ics.mq.edu.au
Tue Feb 19 19:55:47 CET 2008


Hello Jonny,

On 19/02/2008, at 9:37 PM, Jonny Smith wrote:

>
> Does someone have an idea how to solve my problem?
>
> If this question has already been answered somewhere in the  
> archive, please give me a pointer.
>
> Thank you,
>
> ---------- Forwarded message ----------
> From: Jonny Smith <joesm77 at gmail.com>
> Date: Feb 4, 2008 6:46 PM
> Subject: color and thickness of frame's outline
> To: xy-pic at tug.org
>
>
> Hi,
>
> I found out how to make arrows and curves thicker and color them
> \xymatrix{A \ar@{-->}@[red]@*{[|(1.8)]}[r]^{B} & C}
>
> {"B" ; "C" **[name_font][thicker][thicker][thicker]\crv{ (30,70) } };
>
> However, now I am struggling to do the same with the outlines of a  
> frame, i.e. how could I change the surrounding line's thickness and  
> its color??

You cannot do it with a single frame.
However, it is easy enough to combine 2 or more frames
to get such an effect:

$$
\xy (0,0)*+<3.5pt>+[F*:blue:<10pt>]\txt{text with background}
,*+<1.5pt>+[white][F*:red:<10pt>]\txt{text with background}
\endxy
$$

Note that it is necessary to repeat the words, to ensure
that the size of the 1st (underlying) frame matches
that of the 2nd (overlying) frame.

>
>
> \xy (0,0)*+<1.5pt>[F**:red:<40pt>]{
> \txt{text with background}};

Be prepared to fill the overlying frame with white,
whenever necessary:

$$
\xy (0,0)*+<3.5pt>+[F*:blue:<10pt>]\txt{text with background}
,*+<1.5pt>+[red][F*:white:<10pt>]\txt{text with background}
\endxy
$$

>
> Thanks,
>
> J


Hope this helps,

	Ross

------------------------------------------------------------------------
Ross Moore                                         ross at maths.mq.edu.au
Mathematics Department                             office: E7A-419
Macquarie University                               tel: +61 +2 9850 8955
Sydney, Australia  2109                            fax: +61 +2 9850 8114
------------------------------------------------------------------------




More information about the xy-pic mailing list