From barr@barrs.org Fri Jun 8 21:58:58 2001 From: barr@barrs.org (Michael Barr) Date: Fri, 8 Jun 2001 16:58:58 -0400 (EDT) Subject: [Xy-pic] diagxy In-Reply-To: <20010608123000.E92032BA6F@tug.org> Message-ID: Some of you will be familiar with my 15 (or so) year old diagram macros. I recently decided to reimplement them as a front-end to xy-pic. This has now been done and I have placed the results on ctan. I forget the exact directory, but if you search for diagrams and then my name, you will find them. A slightly upgraded version can be found in ftp.math.mcgill.ca/pub/barr. The file is diagxy.zip and I also recommend that you capture derfun.tex to see them in use. That location will always contain the most recent version. Michael Barr From deasley@cfw.com Tue Jun 12 01:42:38 2001 From: deasley@cfw.com (Dave Easley) Date: Mon, 11 Jun 2001 20:42:38 -0400 Subject: [Xy-pic] xy-pic on PC with PCTeX v4.01 Message-ID: <000e01c0f2d8$957f9cc0$0200a8c0@upstairs> This is a multi-part message in MIME format. ------=_NextPart_000_000B_01C0F2B7.0DBE82E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I'm not having any luck getting xy-pic to work properly with PCTeX = v4.01. LaTeX processes my diagrams without any error messages, but the = arrows are not drawn correctly. Horizontal and vertical arrows are = drawn as lines with either a "\" or a letter in place of a head. = Diagonal arrows are not lines, but rather a string of letters following = the path where the arrow should be.=20 =20 I would be eternally grateful if anyone can help me get it working = correctly. It really seems like a great program. Thanks, Dave Easley deasley@cfw.com ------=_NextPart_000_000B_01C0F2B7.0DBE82E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I'm not having any luck getting xy-pic to work = properly with=20 PCTeX v4.01. LaTeX processes my diagrams without any error = messages, but=20 the arrows are not drawn correctly.  Horizontal and vertical arrows = are=20 drawn as lines with either a "\"  or a letter in place of a=20 head.  Diagonal arrows are not lines, but rather a string of = letters=20 following the path where the arrow should be.=20
 
I would be eternally grateful if anyone can help me get it working=20 correctly.  It really seems like a great program.
 
Thanks,
Dave Easley
deasley@cfw.com
------=_NextPart_000_000B_01C0F2B7.0DBE82E0-- From ross@ics.mq.edu.au Tue Jun 12 04:48:30 2001 From: ross@ics.mq.edu.au (Ross Moore) Date: Tue, 12 Jun 2001 13:48:30 +1000 (EST) Subject: [Xy-pic] Re: Xy-Pic with PCTeX (fwd) Message-ID: <200106120348.NAA10997@hera.mpce.mq.edu.au> > Dear Professor Moore: > > I just recently bought PCTeX (using Windows 98) and joined the TeX User's Group; I'm having a lot of fun learning LaTeX and looking at the programs available on the cd's that came with the TUG membership. Your program is exactly what I'm looking for. Hello Dave. Your description of the problem is consistent with Xy-pic working fine, but the special fonts are not installed on your system. Since I do not use PCTeX, I cannot tell you what is the easiest fix; though I'm sure that there must be an easy way to get it working properly. I'm copying this to the new Xy-pic discussion list at tug.org. Perhaps that will lead to someone offering more specific advice. > I installed Xy-Pic and have been learning to use it. I seem to have a bug though. When I ask LaTeX to run a file, it runs it without giving any error messages, but on my display screen and the printed material, arrows do not appear as they should. Horizontal and vertical arrows do not have heads (usually they have a "/" or a letter at the end). Diagonal arrows are not lines, but rather a string of letters following the path where the arrow should be. I must admit I am fairly ignorant about the more technical aspects of computers, but my guess is I did not install the fonts correctly. I wasn't sure what the paragraph at the end on information for specific systems meant about storing fonts in files 'C:\PIXEL\DPI\.pk' Xy-pic can use either bitmapped (.pk) fonts, or PostScript Type 1 outline fonts. I don't know how PCTeX associates the .tfm names with the .pk or .pfb files that contain the actual character descriptions. On TeX systems that use dvips, this association is made using a .map file. > 1) Do I need to create a folder for each dpi type of font? > For example C:\PIXEL\DPI300\ for 300dpi fonts, C:\PIXEL\DPI600 for 600dpi fonts, etc. > > 2) How do I determine the dpi values for fonts other than the pk fonts? The dpi is not relevant when you use the Type 1 outlines. > 3) Do all the fonts, i.e. TeX Font Metric, METAFONT Sources (files 'mfinputs.*mf' ), Bitmap Fonts, PostScript Type1 Fonts, Adobe Font Metric Files, PostScript Font Metric Files, and PostScript Header Files, go into 'C:\PIXEL\DPI\.pk' ? These file names are only relevant to bitmapped fonts, so the answer is `no'. > 4) If the answer to 3) is no; for example if the METAFONT Sources, Bitmap Fonts, Adobe and PostScript Font Metric Files go in the places mentioned in Steps 5) through 10), I'm not sure where they go because the PCTeX manual doesn't tell me where the METAFONT program looks for files or where DVI previewers look for Bitmat fonts. Do you have any documentation about how to use Type 1 fonts ? Is your PCTeX installation a recent one ? Hmm; it should be, as you said you just bought it. Still, check that there is a recent date on it anyway. > > If you can help me, or refer me so someone who can help get Xy-pic running properly on my machine, I will be eternally grateful. I live in rural Virginia (USA) and there are no nearby universities where I can seek help. Xy-pic really looks like an amazing program and I look forward to using it. Thanks for the compliments. Xy-pic is indeed an amazing set of macros, thanks mainly to Kris Rose's object-oriented design. I hope you can get the display working with PCTeX. > Thanks so much for your help. All the best, Ross Moore > > Sincerely, > Dave Easley deasley@cfw.com > From baueran@in.tum.de Wed Jun 20 17:40:56 2001 From: baueran@in.tum.de (Andreas Bauer) Date: Wed, 20 Jun 2001 18:40:56 +0200 Subject: [Xy-pic] binary trees Message-ID: <01062018405605.00959@funnelweb> Hello, I hope someone on this list can help me with drawing a bunch of binary trees. In fact, the ordinary tree is not a problem, but I'd like to use these "roof-like" triangle structures that represent entire subtrees. (Use case: B-Trees, AVL-Trees, etc.) I just don't know how to draw them. Consider this example: If I have a root node A and a right node B, then I want my left edge attached to a triangle structure, representing a whole subtree. How do I attach the graphics for this subtree to root node A? A / \ / \ / \ B --- sub. I asked this on a newsgroup before, with no success. Also I Googled around, but with no luck either... I'd appreciate your hints and help. Thank you very much! Andreas Bauer. From ross@ics.mq.edu.au Wed Jun 20 23:05:10 2001 From: ross@ics.mq.edu.au (Ross Moore) Date: Thu, 21 Jun 2001 08:05:10 +1000 (EST) Subject: [Xy-pic] binary trees In-Reply-To: <01062018405605.00959@funnelweb> from Andreas Bauer at "Jun 20, 2001 06:40:56 pm" Message-ID: <200106202205.IAA09964@hera.mpce.mq.edu.au> Hi Andreas, you wrote: > Hello, > > I hope someone on this list can help me with drawing a bunch of binary trees. > In fact, the ordinary tree is not a problem, but I'd like to use these > "roof-like" triangle structures that represent entire subtrees. (Use case: > B-Trees, AVL-Trees, etc.) I just don't know how to draw them. \xygraph is the perfect tool for this. Here is an example, based on what you ask for below: http://www-texdev.mpce.mq.edu.au/XyPIC/BAUER/gtest.pdf The code is in: http://www-texdev.mpce.mq.edu.au/XyPIC/BAUER/gtest.tex The Xy-pic Reference Manual explains the parsing of the argument of \xygraph. It provides a simple "escape" mechanism to use arbitrary Xy-pic kernel code, when this is an appropriate way to add features into the diagram. Hope this helps. Ross Moore > Consider this example: If I have a root node A and a right node B, then I > want my left edge attached to a triangle structure, representing a whole > subtree. How do I attach the graphics for this subtree to root node A? > > A > / \ > / \ > / \ B > --- > sub. > > I asked this on a newsgroup before, with no success. Also I Googled around, > but with no luck either... > > I'd appreciate your hints and help. Thank you very much! > Andreas Bauer. > _______________________________________________ > Xy-pic mailing list -------------------------------------------------------------------------- From baueran@in.tum.de Thu Jun 21 14:45:46 2001 From: baueran@in.tum.de (Andreas Bauer) Date: Thu, 21 Jun 2001 15:45:46 +0200 Subject: [Xy-pic] binary trees In-Reply-To: <200106202205.IAA09964@hera.mpce.mq.edu.au> References: <200106202205.IAA09964@hera.mpce.mq.edu.au> Message-ID: <01062115454601.01425@funnelweb> Hello Ross, > The Xy-pic Reference Manual explains the parsing of the > argument of \xygraph. It provides a simple "escape" mechanism > to use arbitrary Xy-pic kernel code, when this is an appropriate > way to add features into the diagram. Thanks for taking the time to reply. It almost looks as I imagined it, except the stars in the corners should be _real_ corners. I guess, if there's no other way then I'll go with your solution without quesitoning it much. On the other hand, if there's an existing template that creates nice triangles then I would like to see it :-) Cheers, Andi. -- Andreas Bauer, baueran _at_ in.tum.de, http://home.in.tum.de/baueran/ "Science without religion is lame; religion without science is blind." -- Albert Einstein From ross@ics.mq.edu.au Fri Jun 22 02:48:58 2001 From: ross@ics.mq.edu.au (Ross Moore) Date: Fri, 22 Jun 2001 11:48:58 +1000 (EST) Subject: [Xy-pic] binary trees In-Reply-To: <01062115454601.01425@funnelweb> from Andreas Bauer at "Jun 21, 2001 03:45:46 pm" Message-ID: <200106220148.LAA15632@hera.mpce.mq.edu.au> > Hello Ross, > > > The Xy-pic Reference Manual explains the parsing of the > > argument of \xygraph. It provides a simple "escape" mechanism > > to use arbitrary Xy-pic kernel code, when this is an appropriate > > way to add features into the diagram. > > Thanks for taking the time to reply. It almost looks as I imagined it, except > the stars in the corners should be _real_ corners. I guess, if there's no > other way then I'll go with your solution without quesitoning it much. On the There are infinitely many possibilities for drawing such a picture with Xy-pic. I've added to the previous example; so look at it again now. > other hand, if there's an existing template that creates nice triangles then > I would like to see it :-) A template cannot possibly cope with the infinitude of possibilities. The Xy-pic parsing language is already really quite simple and extremely flexible. You just need to put some time into understanding its structure. You should also look at the \xypolygon command. The reference manual has lots of examples. It integrates well with \xygraph for building nice diagrams based upon the regular layout of several points. Hope this helps, Ross Moore > > Cheers, > Andi. > > -- > Andreas Bauer, baueran _at_ in.tum.de, http://home.in.tum.de/baueran/ > "Science without religion is lame; religion without science is blind." > -- Albert Einstein > _______________________________________________ > Xy-pic mailing list > http://tug.org/mailman/listinfo/xy-pic From vadim@mccme.ru Sat Jun 23 23:30:50 2001 From: vadim@mccme.ru (Vadim Yu. Radionov) Date: Sat, 23 Jun 2001 22:30:50 MSD Subject: [Xy-pic] Tall matrix entries Message-ID: <200106231748.VAA20075@ns.mccme.ru> Hello! Is there a simple modifyer that gives proper vertical positioning (TeX baseline alignment with left-right arrows at axis-height and no extra white space above and below) to tall matrix entries, possibly having different height and depth? Yours, Vadim From vadim@mccme.ru Wed Jun 27 16:42:52 2001 From: vadim@mccme.ru (Vadim Yu. Radionov) Date: Wed, 27 Jun 2001 15:42:52 MSD Subject: [Xy-pic] Tall matrix entries References: <200106232225.IAA27466@hera.mpce.mq.edu.au> Message-ID: <200106271142.PAA11953@ns.mccme.ru> Dear Ross! Last night I found much more elegant (obvious?) Xy-pic solution to that problem: \entrymodifiers={+!!<0pt,\the\fontdimen22\textfont2>} See some examples at http://www.mccme.ru/~vadim/examples/test.pdf or just try \xymatrix{\widetilde W \ar[r] & W} with/without it. I wonder, isn't it the desired default behavior for xy-matrices? Yours, Vadim