[OS X TeX] need help installing xypdf for XY-pic
Ross Moore
ross at ics.mq.edu.au
Fri Sep 13 19:03:42 EDT 2002
Hi Troy,
> I'm starting from Gerben Wierda's distribution.
> I downloaded <http://www-texdev.mpce.mq.edu.au/xypic/xypdf.tar.gz>
> I untgz'ed the file, 'tar -xvzf xypdf.tar.gz'
> I moved the files into my texmf tree,
> 'sudo mv xypdf* /usr/local/teTeX/share/texmf/tex/generic/xypic/.'
> {if possible, I'd rather put this stuff somewhere under ~/Library/texmf/}
>
> and then I tried to typeset the file below with TeXShop/pdflatex, but I get this error in my log:
>
> ! Xy-pic error: No `xypdf@' option.
> \xyerror@ ...#2}\fi \errmessage {Xy-pic error: #1}
>
> If I remove the "xypdf" option to xy, TeXShops produces a good-looking pdf via the "TeX and Ghostscript" option.
Yes; this is a good way to do it, though the lines and arrow-heads can be
a bit too thin for my taste, unless you use [thicker] or alter the default
line-thickness.
> Anyone have any ideas as to what I did wrong?
>
> \documentclass{article}
> \usepackage[dvips,ps,all,color,line,xypdf]{xy} % in preamble
Well, there are 2 things wrong with this line:
1. you appear to be mixing options here: dvips and pdf output.
2. option names do *not* include the xy.
You want a package line of:
\usepackage[pdftex,all,color,line]{xy} % in preamble
or
\usepackage[pdftex,pdf,all,color,line]{xy} % in preamble
to process with TeXShop's pdftex mode.
However, you will not get [thicker] lines this way.
That mode uses fonts only for lines and arrow-heads, and color \special s.
Full drawing in PDF has not been implemented -- any takers to tackle this ?
If xypdftex.tex isn't being found, try sudo texhash .
Hope this helps,
Ross Moore
> \title{Brief Article}
> \author{The Author}
> \begin{document}
> \maketitle
>
> \begin{center}\leavevmode
> \begin{xy}
> \drop!C\xybox{\def\sst{\scriptstyle}%
> \xygraph{ !{0;0+/r2cm/:,0+/u1.3cm/::,0} % setup coordinates
> !~-{@[thicker]@[red]@{-}} % make lines thicker and red
> []="0" % name for bottom-left corner
> [ur(.5)]="1" !{*++!U{\sst 1}} % position 1, name it
> [u]="2" !{*+!DR{\sst 2}} % position 2, name it
> [u(.7)r]="3" !{*+!DR{\sst 3}} % position 3
> [d(1.2)]="4" !{*++!U{\sst 4}} % position 4
> "1"-"2"|*=0[thicker][red]@{>} -"3"|*=0[thicker][red]@{>}
> -"4"|*=0[thicker][red]@{>} % solid thick arrows
> !{"1";"4"**{},?(1.1)="l1",?(-.2);?(1.3)**@{--}} % dashed lines
> !{"2";"3"**{},?(1.1)="l2",?(-.3);?(1.4)**@{--}}
> % some descriptive text, near position 3
> "3" [d(.5)r(.65)]*+[blue]\txt\scriptsize{Lines of\\constant\\press.}
> (?:@[blue]"l1", ?:@[blue]"l2")
> % blue arrows to the dashed lines
> "0" ( :[r(2)] (?*++!UR{s}) % s-axis
> , :[u(2.75)]="T" (?*!U++!R{T}) % T-axis
> )
> [] !{"0"."1"+!UL,*+[blue]!R{\sst T_L}} :@[blue]@{.} "1"
> % dotted line at T_L level
> [] !{"0"."3"+!UL,*+[blue]!R{\sst T_H}} :@[blue]@{.} "3"
> % dotted line at T_H level
> }}
> \end{xy}
> \end{center}
>
>
> \end{document}
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=- output from pdflatex
>
> pdflatex demo_therm1.tex
> This is pdfTeX, Version 3.14159-1.00b-pretest-20020211 (Web2C 7.3.7x)
> (./demo_therm1.tex{/usr/local/teTeX/share/texmf.local/pdftex/config/pdftex.cfg}
> LaTeX2e <2001/06/01>
> Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, d
> utch, nohyphenation, loaded.
> (/usr/local/teTeX/share/texmf/tex/latex/base/article.cls
> Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
> (/usr/local/teTeX/share/texmf/tex/latex/base/size11.clo))
> (/usr/local/teTeX/share/texmf/tex/generic/xypic/xy.sty
> (/usr/local/teTeX/share/texmf/tex/generic/xypic/xy.tex Bootstrap'ing:
> catcodes, docmode, (/usr/local/teTeX/share/texmf/tex/generic/xypic/xyrecat.tex)
> (/usr/local/teTeX/share/texmf/tex/generic/xypic/xyidioms.tex)
>
> Xy-pic version 3.7 <1999/02/16>
> Copyright (c) 1991-1998 by Kristoffer H. Rose <krisrose at ens-lyon.fr>
> Xy-pic is free software: see the User's Guide for details.
>
> Loading kernel: messages; fonts; allocations: state, direction,
> utility macros; pictures: \xy, positions, objects, decorations;
> kernel objects: directionals, circles, text; options; algorithms: directions,
> edges, connections; Xy-pic loaded)
> (/usr/local/teTeX/share/texmf/tex/generic/xypic/xydvips.tex
> Xy-pic option: DVIPS driver v.3.3 loaded)
> (/usr/local/teTeX/share/texmf/tex/generic/xypic/xyps.tex
> Xy-pic option: PostScript backend v.3.7 drivers, hooks, loaded)
> (/usr/local/teTeX/share/texmf/tex/generic/xypic/xyps.tex
> Xy-pic option: PostScript backend v.3.7 not reloaded)
> (/usr/local/teTeX/share/texmf/tex/generic/xypic/xyall.tex
> Xy-pic option: All features v.3.3
> (/usr/local/teTeX/share/texmf/tex/generic/xypic/xycurve.tex
> Xy-pic option: Curve and Spline extension v.3.7 curve, circles, loaded)
> (/usr/local/teTeX/share/texmf/tex/generic/xypic/xyframe.tex
> Xy-pic option: Frame and Bracket extension v.3.7 loaded)
> (/usr/local/teTeX/share/texmf/tex/generic/xypic/xycmtip.tex
> Xy-pic option: Computer Modern tip extension v.3.3
> (/usr/local/teTeX/share/texmf/tex/generic/xypic/xytips.tex
> Xy-pic option: More Tips extension v.3.3 loaded) loaded)
> (/usr/local/teTeX/share/texmf/tex/generic/xypic/xyline.tex
> Xy-pic option: Line styles extension v.3.6 loaded)
> (/usr/local/teTeX/share/texmf/tex/generic/xypic/xyrotate.tex
> Xy-pic option: Rotate and Scale extension v.3.3 loaded)
> (/usr/local/teTeX/share/texmf/tex/generic/xypic/xycolor.tex
> Xy-pic option: Colour extension v.3.3
> (/usr/local/teTeX/share/texmf/tex/generic/xypic/xyps-c.tex
> (/usr/local/teTeX/share/texmf/tex/generic/xypic/xyps-s.tex)) loaded)
> (/usr/local/teTeX/share/texmf/tex/generic/xypic/xymatrix.tex
> Xy-pic option: Matrix feature v.3.4 loaded)
> (/usr/local/teTeX/share/texmf/tex/generic/xypic/xyarrow.tex
> Xy-pic option: Arrow and Path feature v.3.5 path, \ar, loaded)
> (/usr/local/teTeX/share/texmf/tex/generic/xypic/xygraph.tex
> Xy-pic option: Graph feature v.3.7 loaded) loaded)
> (/usr/local/teTeX/share/texmf/tex/generic/xypic/xycolor.tex
> Xy-pic option: Colour extension v.3.3 not reloaded)
> (/usr/local/teTeX/share/texmf/tex/generic/xypic/xyline.tex
> Xy-pic option: Line styles extension v.3.6 not reloaded)
> ! Xy-pic error: No `xypdf@' option.
> \xyerror@ ...#2}\fi \errmessage {Xy-pic error: #1}
> }
> l.75
>
>
> -----------------------------------------------------
> Mac TeX info, resources, and news can be found at:
> <http://www.esm.psu.edu/mac-tex/>
> -----------------------------------------------------
> List archives can be found at:
> <http://www.esm.psu.edu/mac-tex/MacOSX-TeX-Digests/>
> Threaded list archives can be found at:
> <http://www.masda.vxu.se/~pku/MacOSX_TeX/>
> -----------------------------------------------------
> See message headers for list info.
> -----------------------------------------------------
>
-----------------------------------------------------
Mac TeX info, resources, and news can be found at:
<http://www.esm.psu.edu/mac-tex/>
-----------------------------------------------------
List archives can be found at:
<http://www.esm.psu.edu/mac-tex/MacOSX-TeX-Digests/>
Threaded list archives can be found at:
<http://www.masda.vxu.se/~pku/MacOSX_TeX/>
-----------------------------------------------------
See message headers for list info.
-----------------------------------------------------
More information about the MacOSX-TeX
mailing list