[OS X TeX] xy-pic problems

Roger Hart rhart at mail.utexas.edu
Sun Oct 31 09:28:35 EST 2004


Dear Ross,

Thanks so very much.  This is a huge improvement. I really appreciate 
your expert and generous advice.

Best,

Roger

On Oct 30, 2004, at 8:29 PM, Ross Moore wrote:

> Hi Roger,
>
> On 30/10/2004, at 11:43 PM, Roger Hart wrote:
>
>> Dear Ross,
>>
>> Thank you very much for your kind email.  I've been using TeXShop and 
>> pdftex, not TeX+Ghostscript.  If possible, I would like to find a way 
>> to run xy-pic under pdftex since I am also using Chinese fonts and 
>> pdftex seems to work better with Chinese than other alternatives 
>> (TeX+Ghostscript, dvipdfmx).
>
> For colour-support within Xy-pic diagrams using  pdfTeX, you'll need 
> to ensure
> that you have the (experimental) drivers from:
>
>>> Ross Moore <ross at ics.mq.edu.au> writes:
>>>
>>>> Do you have the partial PDF driver files, from:
>>>>    http://www-texdev.ics.mq.edu.au/WARM/
>>>> equivalently
>>>>    http://www-texdev.ics.mq.edu.au/xypic/xypdf.tar.gz .
>>>
>>> Works like a charm.  Thanks much.
>
>
>
>>
>> I've appended an example TeXShop file, together with the .log and PDF 
>> output.
>>
>> Please let me know if I'm doing anything wrong or if there is 
>> something I can correct to produce good output with pdftex.  If this 
>> is not possible, or not easily solved, then I'll try to use 
>> TeX+Ghostscript, possibly saving the diagrams as PDF and including 
>> them as graphics.
>
> The  eps4pdf  package is good for this approach.
> You mark-up parts of your document as  \EPSforPDF{....}  (or similar)
> and run it once with TeX+Ghostscript to create single-page images
> of those segments.
>
> Then you switch to running  pdfLaTeX  to do the whole document,
> including the marked parts as images.
> Only if the images change, or their order changes, is there any
> need to rerun as TeX+Ghostscript.
>
> Beware that you need to markup parts of the preamble as well, so
> that the packages are loaded with the correct drivers for each run.
>
>
> This assumes that there are no cross-references or hyperlinks
> within the images --- that would require further processing to
> have everything resolved correctly.  (Also, you would lose such
> hyperlinking, as pdfTeX doesn't support importing hyperlinks
> along with imported images.)
>
>
>
>>
>> Thanks very much indeed for your generous help,
>
> Attached is a PDF image which shows the difference achieved
> using the PostScript backend via:
>
>                                \usepackage[dvips,ps,all]{xy}
>
> and turning off/on the use of PostScript via the macros
>    \NoPSspecials   and   \UsePSspecials
> selectively for each diagram:
> <xy-pic-test.pdf>
> The arrows should be much cleaner and straighter, since they use 
> vector-graphics
> rather than overlaying glyphs from the special fonts.
> Also, you know that you can adjust the margins around the objects 
> within matrix cells
>  --- the bottom diagram has an extra 1pt of space added to various 
> margins.
>
>
>
>>
>> Roger
>>
>>
>
> Hope this helps,
>
> 	Ross
>
>
>
>> On Oct 30, 2004, at 7:51 AM, Ross Moore wrote:
>>
>>>
>>> On 30/10/2004, at 9:47 AM, Roger Hart wrote:
>>>
>>>> I've been trying to use xy-pic to draw some diagrams and have had 
>>>> two major troubles which I've been unable to solve: 1) the arrows 
>>>> it draws are jagged, very noticeably so in printouts; 2) resizing 
>>>> does not work properly, resulting in arrows missing their intended 
>>>> targets.
>>>
>>> Load the package using the PostScript back-end:
>>>
>>>   \usepackage[dvips,ps,all]{xy}
>>>
>>> If you use TeXShop, then you will need to use  the  TeX+Ghostscript
>>> processing mode.
>>>
>>>
>>>> Unfortunately, the arrows are jagged.  And because xy-pic is 
>>>> designed more for commutative diagrams than the matrices I wish to 
>>>> draw, I need to reduce their size, and I've tried all sorts of 
>>>> arguments and values to try to get the arrows to look nice, such 
>>>> as,
>>>>
>>>> @! @R=6pt @C=6pt @M=0pt @H=0pt @W=0pt
>>>>
>>>> but have been unable to get straight arrows at any size.  And when 
>>>> I use various parameters above, the arrows fail to connect to their 
>>>> targets.
>>>
>>> Can you tell which fonts are being loaded for the Xy-pic pieces ?
>>> It sounds like you may be using the (very) old bitmaps,
>>> rather than the scaleable Type1 fonts.
>>>
>>>
>>>>
>>>> I'm not sure what I'm doing wrong, and obviously, I'm not much of 
>>>> an expert on xy-pic.  I'd very much appreciate any suggestions.
>>>
>>> Send an example .log file for one of your jobs,
>>> and perhaps a PDF of it as well.
>>>
>>>
>>> Hope this helps,
>>>
>>> 	Ross Moore
>>>
>>>
>>>>
>>>> Thanks very much,
>>>>
>>>> Roger
>>>>
>>>> ********************************
>>>>
>>>> Roger Hart
>>>> Assistant Professor, Departments of History and Asian Studies
>>>> University of Texas at Austin
>>>>
>>>> email: rhart at mail.utexas.edu
>>>> http://uts.cc.utexas.edu/~rhart
>>>>
>>>> *********************************
>>>>
>>>> --------------------- Info ---------------------
>>>> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>>>>           & FAQ: http://latex.yauh.de/faq/
>>>> TeX FAQ: http://www.tex.ac.uk/faq
>>>> List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
>>>>
>>>>
>>>
>>> --------------------- Info ---------------------
>>> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>>>           & FAQ: http://latex.yauh.de/faq/
>>> TeX FAQ: http://www.tex.ac.uk/faq
>>> List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
>>>
>>>

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the MacOSX-TeX mailing list