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

Jonny Smith joesm77 at gmail.com
Sun Mar 16 14:39:55 CET 2008


Ross,

Yes, your answer helped.

Now I'm trying to label these boxes to include arrows and things. My first
try resulted in

%   line thickness standard arrows
\newcommand{\lthknessStd}{3}
...

$$
\xy
%
(0,-90)*+<5pt>+[F*:blue:<10pt>]\txt{First Text}
,*+<2pt>+[blue][F*:white:<10pt>]{\txt{First Text}}="First_Text";
%
(0,-120)*+<5pt>+[F*:red:<10pt>]\txt{Second Text}
,*+<2pt>+[red][F*:white:<10pt>]{\txt{Second Text}}="Second_Text";
%
{\ar@{->}@[blue]@*{[|(\lthknessStd)]}@/^4.5pc/ "First_Text" ; "Second_Text"
};
%
\endxy
$$

where this arrow is overlapping the outer frame's outline. I wanna avoid
that and thought I simply need to label the outer frames instead of the
inner frames.

But I don't know how to do that...

Things like

(0,90)*+<5pt>+[F*:blue:<10pt>]{\txt{First Text}="First_Text"},
*+<2pt>+[blue][F*:white:<10pt>]\txt{First Text}
%
(0,120)*+<5pt>+[F*:red:<10pt>]{\txt{Second Text}="Second_Text"},
*+<2pt>+[red][F*:white:<10pt>]\txt{Second Text}
%
{\ar@{->}@[blue]@*{[|(\lthknessStd)]}@/^4.5pc/ "First_Text" ; "Second_Text"
};
...

didn't do any good...

Do you know how to make the right syntax?

My next step will then be to define some macro that takes care of these
inner and outer frame things. In my posters I have tons of complicated
equations and I think it wouldn't be a good idea to copy all these
equations. It would be cleaner and easier for me if I add some more
arguments giving the color of the outer frame, outline thickness and
such.Ihope such a macro is not going to give problems with the labels
though...

Thanks,

J


On Tue, Feb 19, 2008 at 7:55 PM, Ross Moore <ross at ics.mq.edu.au> wrote:

> 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
> ------------------------------------------------------------------------
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xy-pic/attachments/20080316/3787ae29/attachment.html 


More information about the xy-pic mailing list