Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm looking for good diagram editors with support for text entry as TeX.

I have used ipe and dia in the past, but ipe does not let me change a rectangle (or any polygon) so it'll have round corners. Dia is OK, except that it won't let me enter TeX in text areas, and I can't even put superscript/subscript in text labels.

Is there any other diagram editor (with a GUI -- I know of xypic and asymptote, but I'd rather be able to see the diagram as I work) that supports text entry as TeX (like ipe)?

share|improve this question
2  
You might want to try TikZ. It is not an interactive editor, but rather a language to describe graphics programmatically from within the TeX source. Here are some examples of what TikZ can achieve. –  Andrey Vihrov Mar 9 '11 at 10:02
1  
What output formats do you want to have? Are you drawing diagrams for eventual inclusion in a TeX document, or will you convert the TeX to something else along the way and then render to something graphical? –  Andrew Stacey Mar 9 '11 at 12:20
    
I'm writing course notes, and I would like to later turn them into a book -- so I'd like all graphics to look consistent (and I'd like to be able to easily align parts of the diagrams etc). The output format is PDF. –  Jay Mar 9 '11 at 16:59
1  
Just out of curiosity: you do know that asymptote has a rudimentary GUI, right? It is probably not what you want, nor as powerful as Inkscape, and I never used it. Just thought I'd mention it though. –  Willie Wong Mar 10 '11 at 19:07
add comment

4 Answers

For schematics and such thing you can use inkscape. Then you can export your graphic as pdf and the text and positioning information is written to a tex-file. (There is a option for LaTeX expiort in inkscape)

The resulting tex-file can be used in your document (\input{}) and text and equations etc. will then appear in your latex text/math font.

On the left: Input in Kile Middle: Output in okular Right: Drawing in inkscape

enter image description here

share|improve this answer
    
dia also works,you are so smart! –  eccstartup Aug 17 '13 at 14:36
add comment

Martin's suggestion of Inkscape is likely the best, but Xfig supports export to formats that support Tex markup:

  1. Metapost, which is usually run using the mpost command, which generates Postscript, or mptopdf, which generates PDF, where the labels are run through Tex. If you use the Lualatex engine, the Metapost can be brought into the main document, and the engine is not separate.
  2. Pictex, which is a Plain Tex macro package: the output is Tex code that can be cut & pasted in;
  3. Combined Postscript/PDF and Latex formats, which use Postscript or PDF specials.

I've used Xfig for many years. It's not as sophisticated as Inkscape, but it works well alongside Latex.

share|improve this answer
add comment

Similar thing as Inkscape can be done in Dia too. In the Dia diagram, type some random text (of similar length) at those positions where you want math tex, export the diagram as a tex file, edit it in an editor to insert $, _, ^ etc and then in your main tex document where you want to include the diagram, use \input{blah.tex} (just replacing \includegraphics{blah.pdf}). The only issue with this is that if you scale your image (which also btw you will have to do through dia's tex code, changing 5th line as \begin{tikzpicture}[scale=0.5]), then your math tex goes out of position. But I guess that is a compromise.

share|improve this answer
add comment

Well, just found out that DIA (version dia-normal 0.97.2) can actually export into PGF macro format, i.e. at the end you will get a tikzpicture, which you can edit later, for instance add the desired LaTeX characters

share|improve this answer
    
Welcome to TeX.sx! Feel free to visit our TeX.SX starter guide to get the most out of our site. –  Peter Jansson May 16 '13 at 15:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.