Next Meeting: September 2: Social gathering Next Installfest: TBD Latest News: Aug. 18: Discounts to "Velocity" in NY; come to tonight's "Photography" talk Page last updated: 2005 Apr 29 18:58
 The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers. Report this post as spam: (Enter your email address)
Re: [vox-tech] Rant: LaTeX graphics programs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

# Re: [vox-tech] Rant: LaTeX graphics programs

Peter Jay Salzman wrote:
<snip>

Sure thing, but I have to warn you -- these aren't the most complicated
diagrams in the world. That's partially why I got used to writing my own
picture environment stuff (and after using it for so long, I've become fast
at it.) It was always faster to DYI than to figure out xfig's atrocious
interface.

Here's three documents that should show a nice cross section of the type of
stuff I'd like to do with graphics programs (all this stuff except for
damped.ps were done by hand. The damped.ps document was done with xfig
(Jon and Mark, thank you for converting me.)

http://www.dirac.org/damped.ps
http://www.dirac.org/eddy.ps
http://www.dirac.org/Green-Functions.ps

If you have any suggestions, I'd definitely be appreciative.

One of my problems with xfig and dia is that I haven't figured out how to
put mathematics in my diagrams. Something like:

\put(50,65){$\vec{F} = \fder{p}{t}$}

which would be trivial when drawing my own diagrams. I suppose I could
insert it in the .eepic file that xfig generates, but the whole point is to
try to do this in a wysiwyg manner.

Even if it means just clicking on the screen to open up a box and type the
equation myself (which is what I'd prefer --- I'm light years faster doing
typeset math than any human being can be using a lyx/MS Word equation
editor.)

I only see a figure in damped.ps (using gv); looks nice.

Anyway, the ability to put latex typeset labels on my figures is precisely the reason I use xfig and not some other program (like Inkscape). Again, there are a few different ways to proceed. My current method is to type latex commands in text boxes in my xfig figure. I make sure to choose "latex fonts" (not postscript fonts; there is a box to choose), and I have the "special" flag checked. This part is in the manual:

http://www.xfig.org/userman/frm_miscellaneous.html

As the manual suggests, you can then export this as ps/latex, both parts. I used to do that. Instead, I now use the program "fig2ps" found here:

http://sourceforge.net/projects/fig2ps/

This converts the fig file directly to ps/eps/pdf with all latex commands processed beautifully! You can even use a latex header file with personal commands defined, e.g. I redefine the /vec command. It's not quite wysiwyg; the latex commands often take up more space than the final text output, so sometimes it takes a little trial and error to get correct placement. Still, it works great for me.

Jonathan

P.S. I can send examples offlist if you like (I've never setup a website of my own :().
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech

 LUGOD Group on LinkedIn Sign up for LUGOD event announcements Your email address: LUGOD Group on Facebook 'Like' LUGOD on Facebook:

 Hosting provided by: Sunset Systems Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development. LUGOD: Linux Users' Group of Davis PO Box 2082, Davis, CA 95617 Contact Us LUGOD is a 501(c)7 non-profit organization based in Davis, California and serving the Sacramento area. "Linux" is a trademark of Linus Torvalds. Sponsored in part by: For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.