# LaTeX Math Diagrams in LaTeX?

#### Tokipin

Does the TeX install here have a diagram package? For diagrams like commutative diagrams. It would be nice.

Related MATLAB, Maple, Mathematica, LaTeX, Etc News on Phys.org

#### robphy

Homework Helper
Gold Member
the picture environment works

#### robphy

Homework Helper
Gold Member
For some reason, I have to force it do italics

$$\begin{picture}(200,200)(0,0) \put( 0, 0){\makebox(0,0){\it X}} \put( 0,100){\makebox(0,0){\it A}} \put( 0,10){\vector(0,1){80}} \put(-5,50){\makebox(0,0)[r]{\it a}} \put(10, 0){\vector(1,0){80}} \put(50,-5){\makebox(0,0)[t]{\it b}} \put(100, 0){\makebox(0,0){\it B}} \put(100,10){\vector(0,1){80}} \put(100,50){\makebox(0,0)[l]{\it f}} \put(100,100){\makebox(0,0){\it C}} \put(10,100){\vector(1,0){80}} \put(50,100){\makebox(0,0){\it g}} \end{picture}$$

#### Tokipin

Thanks for the recommendations. Is it possible to make an angled arrow?

I think I'll stick to CorelDraw for the time being. I could probably make a simple SVG-to-picture converter program, but I'm not sure how much it's worth the trouble.

Actually there are obviously LaTeX picture editors. I found this one: http://jpicedt.sourceforge.net

I'll try it out later.

#### robphy

Homework Helper
Gold Member
$$\begin{picture}(200,200)(0,0) \put( 0, 0){\makebox(0,0){\it X}} \put( 0,100){\makebox(0,0){\it A}} \put( 8, 8){\vector(1,1){86}} \put( 0,10){\vector(0,1){80}} \put(-5,50){\makebox(0,0)[r]{\it a}} \put(10, 0){\vector(1,0){80}} \put(50,-5){\makebox(0,0)[t]{\it b}} \put(100, 0){\makebox(0,0){\it B}} \put(100,10){\vector(0,1){80}} \put(100,50){\makebox(0,0)[l]{\it f}} \put(100,100){\makebox(0,0){\it C}} \put(10,100){\vector(1,0){80}} \put(50,100){\makebox(0,0){\it g}} \end{picture}$$

LaTeX picture vectors allow slopes in a limited selection of rational slopes.

jpicedt is pretty good... but I think that some things are rendered in overly complicated ways [that are hard for me to edit manually at the LaTeX level].

[I've been advocating SVG support in posts here at PF. No takers. ]

#### qntty

Asymptote is a nice tool for making diagrams in $$\LaTeX$$ documents

### Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving