Sometimes I have to put text on a path

Wednesday, July 27, 2011

example: LaTeX Drawings; MathML

\( \TeX \)

An example with picture (text and equation): see the code at the end of this post.
Mathjax, http://www.codecogs.com/,  google equation editor ("too long"), don't work with this code.


http://latexdraw.sourceforge.net/
LaTeXDraw is a graphical drawing editor for LaTeX. LaTeXDraw can be used to 1) generate PSTricks code; 2) directly create PDF or PS pictures. LaTeXDraw is developped in Java and thus runs on top of Linux, Windows, and Mac OS X.

With LaTeXit (it could export to SVG with pdf2SVG, or MathML...):



----------LaTeX code:

\setlength{\unitlength}{0.8cm}


\begin{picture}(6,5)


\thicklines
\put(1,0.5){\line(2,1){3}}
\put(4,2){\line(-2,1){2}}
\put(2,3){\line(-2,-5){1}}
\put(0.7,0.3){$A$}
\put(4.05,1.9){$B$}
\put(1.7,2.95){$C$}
\put(3.1,2.5){$a$}
\put(1.3,1.7){$b$}
\put(2.5,1.05){$c$}
\put(3.5,0.4){$\displaystyle
s:=\frac{a+b+c}{2}$}


\end{picture}

No comments:

Post a Comment