For Programmers: Free Programming Magazines  


Home > Archive > Tex > February 2006 > non-jagged arrows in xy-pic with pdflatex?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author non-jagged arrows in xy-pic with pdflatex?
Per Freem

2006-02-26, 7:08 pm

hi,

i am drawing diagonal arrows using xy-pic with pdflatex, and they all
come out horribly jagged/crooked. i did some searching on this problems
and found that the recommendation was to add the 'ps' option to xy-pic.
i did so, and i have:

\usepackage[all,ps,arrow]{xy}
\xyoption{ps}

but the problem persists. if i add \xyoption{dvips} in addition, then
i get warning "non-PDF special option used!" repeatedly and then no
arrows show up at all.

is there a way to fix this? or is there no way to use xy-pic with
pdflatex? i really want to avoid producing ps files, i want to compile
straight into pdf ideally, but if the only solution is to first produce
ps, then somehow convert to pdf, i'd be interested to know how that can
be done.

thanks!

Enrico Gregorio

2006-02-27, 7:16 pm

Per Freem <perfreem@yahoo.com> wrote:

> hi,
>
> i am drawing diagonal arrows using xy-pic with pdflatex, and they all
> come out horribly jagged/crooked. i did some searching on this problems
> and found that the recommendation was to add the 'ps' option to xy-pic.
> i did so, and i have:
>
> \usepackage[all,ps,arrow]{xy}
> \xyoption{ps}
>
> but the problem persists. if i add \xyoption{dvips} in addition, then
> i get warning "non-PDF special option used!" repeatedly and then no
> arrows show up at all.
>
> is there a way to fix this? or is there no way to use xy-pic with
> pdflatex? i really want to avoid producing ps files, i want to compile
> straight into pdf ideally, but if the only solution is to first produce
> ps, then somehow convert to pdf, i'd be interested to know how that can
> be done.


There is no way, AFAIK. No support for pdf has been announced officially
from the Xy-pic team (I wish to heartily thank them, anyway).

When I prepare something involving diagonal arrows I use for the final
compilation the ps->pdf process (the script simpdftex by Gerben Wierda
is very useful in this respect). There is no need to modify the input
file, just use

\usepackage{ifpdf}
\ifpdf
\usepackage[all,cmtip]{xy}
\else
\usepackage[all,ps,cmtip]{xy}
\fi

Ciao
Enrico
Franck Pastor

2006-02-27, 7:17 pm

Le 2006-02-26 22:26:10 +0100, "Per Freem" <perfreem@yahoo.com> dit :

> hi,
>
> i am drawing diagonal arrows using xy-pic with pdflatex, and they all
> come out horribly jagged/crooked. i did some searching on this problems
> and found that the recommendation was to add the 'ps' option to xy-pic.
> i did so, and i have:
>
> \usepackage[all,ps,arrow]{xy}
> \xyoption{ps}
>
> but the problem persists. if i add \xyoption{dvips} in addition, then
> i get warning "non-PDF special option used!" repeatedly and then no
> arrows show up at all.
>
> is there a way to fix this? or is there no way to use xy-pic with
> pdflatex? i really want to avoid producing ps files, i want to compile
> straight into pdf ideally, but if the only solution is to first produce
> ps, then somehow convert to pdf, i'd be interested to know how that can
> be done.
> thanks!


You can use pdftricks (if you work with an Unix system, like MacOSX).
It works very well with xy-pic, the same way it does with pstricks.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com