[Xy-pic] Using line styles extension with pdftex

Armin Goralczyk agoralczyk at gmail.com
Wed Aug 24 20:25:28 CEST 2005


Hi Ross
Thanks for the quick answer.

Am 23.08.2005 um 09:40 schrieb Ross Moore:

>
> On 23/08/2005, at 2:11 AM, Armin Goralczyk wrote:
>
>
>
>
>> Hi
>>
>> I want to use line styles extension with pdflatex, but pdflatex  
>> seems not to be an appropriate backend for line styles extension.  
>> Is there any other possibility to change line styles when using  
>> pdflatex? I use xypic to draw arrows onto graphics, but if the  
>> graphics are large, the arrows are not thick enough. My graphics  
>> are all jpg, pdf or png, so I need to use pdflatex (it is also the  
>> standard in distributions for Mac OS X). Any suggestions?
>>
>>
>>
>
> Whenever I need this --- which is quite frequently actually ---
> I use hybrid typesetting methods, such as  ps4pdf.sty
> or  pdftricks.sty .
>

Thanks for the hint. I will try them. Is it planned to make xypic  
work seamlessly with pdftex in the future (i.e., make the extensions  
work with pdf back-end)? This would be a very much appreciated feature.


>>
>> Also I have encountered some problems with \color{white} command  
>> in the xy environment. Depending on where I put it it changes  
>> output significantly. I haven't recognized a pattern yet and I  
>> didn't find anything in the xypic reference that would explain  
>> such behaviour. If needed I can provide a minimal example.
>>
>>
>>
>
> Yes please.
> I cannot visualise what kind of difficulties you are having.
>
>

Minimal example:

\documentclass[a4paper,12pt]{article}

\usepackage{graphicx}
\usepackage{xcolor}
\usepackage[all]{xy}
\usepackage[OT1]{fontenc}
\usepackage[utf8]{inputenc}
\xyoption{import,color,arc}

\begin{document}
\begin{figure}[tbp]
\begin{center}
\xy \xyimport(1100,788)(0,788){\includegraphics
       [width=.95\textwidth]{nNOS-overview_dorsal_horn}}
     (1060,-660),{\color{white} \ar@{=>} (1030,-730)},
     (230,-320);(240,-554)**\crv{(224,-432)};
     (40,-542)**\crv{(150,-592)}; (230,-320)**\crv{(130,-460)},
     (460,-448),{\ar@{<-}+(50,50)}, (630,-360),{\ar@{<-}+(50,50)},
     (670,-458),{\ar@{<-}+(50,50)}, (825,-315)*\dir{>},\color{black}
\endxy

\xy \xyimport(1100,788)(0,788){\includegraphics
       [width=.95\textwidth]{nNOS-overview_dorsal_horn}}
     (1060,-660),\color{white},{\ar@{=>} (1030,-730)},
     (230,-320);(240,-554)**\crv{(224,-432)};
     (40,-542)**\crv{(150,-592)}; (230,-320)**\crv{(130,-460)},
     (460,-448),{\ar@{<-}+(50,50)}, (630,-360),{\ar@{<-}+(50,50)},
     (670,-458),{\ar@{<-}+(50,50)}, (825,-315)*\dir{>},\color{black}
\endxy
\caption{I am a novice, so code may be awfull, but I hope it
   demonstrates the problem.}
\end{center}
\end{figure}
\end{document}

I guess this should work with any graphics file. In the second image  
everything after the open arrow is not placed correct any more, but  
all elements are white! I am a novice user, so there might be a  
simple explanation. But there is no documentation about this in the  
xypic reference (although it is quite comprehensible).

Thanks
Kind Regards
Armin



More information about the xy-pic mailing list