[Xy-pic] pdflatex & xypic in miktex ++ defining colors

Jonny Smith joesm77 at gmail.com
Tue Oct 23 18:49:43 CEST 2007


Ross,

Thank you for your quick feedback.

On 10/22/07, Ross Moore <ross at ics.mq.edu.au> wrote:
>
> Hello Jonny,
>
> On 23/10/2007, at 4:03 AM, Jonny Smith wrote:
>
> > Hi,
> >
> > I have 2 little questions and was wondering if someone could help
> > me out...
> >
> > 1) pdflatex and xypic on miktex and winedt.
> >
> > I am using miktex 2.7 and winedt and wanna pdflatex my posters.
> > Like many other users latex, dvips, and ps2pdf is not preferred. At
> >
> > http://www.esm.psu.edu/mac-tex/MacOSX-TeX-Digests/2002/MacOSX-
> > TeX_Digest_04-21-02.html
> >
> > I was reading some instruction on how to make that work. I did the
> > windows equivalent, i.e. copied all the xy*.tex files into the folder
> >
> > C:\programs\MiKTeX2.7Basic\tex\generic
> >
> > and did
> >
> > \usepackage[xypdf,all,color]{xy}
>
> This will work only if you have installed the support files that
> are contained in this archive:
>
>      http://www-texdev.ics.mq.edu.au/xypic/xypdf.tar.gz
>
> >
> >
> > in the header of my latex file. When pdflatexing It would then
> > complain saying
> >
> > ! Xy-pic error: No `xypdf@' option.
> > \xyerror@ ...#2}\fi \errmessage {Xy-pic error: #1}
> >                                                   }
> > l.75
> >
> > Do you know what to do?
>
>
> Install the files from the  xypdf.tar.gz  archive.
> These can go into the same place as other Xy-pic files,
> or into a local  texmf/  tree, within an appropriate
> hierarchy of directories to match the system texmf/ tree.



I thought I did exactly that and copied all these files into the xypic
folder plus into my working directory. It ain't working though and still
can't find that xypdf option.


>
> >
> > 2) I was playing with those color options, wanted to define some
> > colors doing
> >
> > \xdefinecolor{mygreen}{cmyk}{0.92,0,0.87,0.09}
> >
> > as well as
> >
> > \newxycolor{mygreen}{0.92,0,0.87}
> > ...
> >
> > \xy
> > (0,-30)*+[F**:mygreen:<10pt>]{
> >           X = \dots
> > }};
> > \endxy
> >
> > Turns out that this box is filled entirely black. Another box
> >
> > (0,-60)*+[F**:red:<10pt>]{
> >           X = \dots
> > }};
> >
> > in this file, however, becomes red as supposed to. Was then having
> >
> > \usepackage{xcolor}
> > \usepackage[dvips,all,color]{xy}
> >
> > in the header.
> >
> > Similarly, the line
> >
> > \newxyColor{lightred}{0.7}{red}{}
>
> That 'red' is wrong.
> That slot is for a color model, such as  rgb, gray, cmyk.
>
> You want:
>
>    \newxyColor{lightred}{0.7 0. 0.}{rgb}{}
>
> But that won't be a light red, it is darker
> than full-on red:    1 0 0 setrgbcolor .
>
> If you are thinking about 70% red, then
> better would be:
>
>    \newxyColor{lightred}{1.0 0.3 0.3}{rgb}{}
>
> or
>
>    \newxyColor{lightred}{1.0 0.7 0.7}{rgb}{}
>
> I doubt that either of these is actually what you want.
> Perhaps this is better:
>
>    \newxyColor{lightred}{1.0 0.5 0.5}{rgb}{}



Yes, it works. Thanks again. Meanwhile I have gotten pretty impressive
results.

Right now I am trying to draw a circle solidly filled with color but without
a border. Was doing

\newxyColor{Nbackgrnd}{1 1 0.77}{rgb}{}             % Neutral Background
Color - Lighter Orange
...
(0,195)*+<30pc>[o**:Nbackgrnd]{    };

but it still puts some outline around that circle. I thought without an [F]
it was supposed not to frame it. Do you know what the right syntax is?

Also, I am drawing huge posters where I need extra thick outlines around
some other object (for instance certain boxes) to make them more visible.
The thicker option didn't work as I thought

    (0,-7)*+[F**:Nbackgrnd:thicker:<5pt>]{
    X = \dots
    };

BTW: That thicker option worked pretty good though with the curve command

    { "O-KB-EF" ; "O-KB-G0" **[O_font][thicker][thicker][thicker]\crv{
(-90,-60) } ?>*\dir{>} };

and placed just the right emphasis on these splines.

Thanks,

Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xy-pic/attachments/20071023/a8da1b34/attachment.html 


More information about the xy-pic mailing list