I'm teaching myself how to typeset maths; I've made good progress with symbols, equations etc using amsmath, but now I want to draw a simple diagram - a triangle with vertices A,B and C and opposite sides a, b and c. I'm not quite sure where to start. I'd appreciate some guidance on what package to use, and I'd toddle off and resaerch it myself - I even have a copy of the Latex Companion but I think my query is too basic for it!
stepec
Math & Science ⇒ guidance on package
guidance on package
Last edited by stepec on Thu Aug 26, 2010 9:25 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
guidance on package
You could use the pgf/tikZ package. See a simple example below.
An alternative is the pstricks package. For further information refer to the package manuals.
Thorsten
Code: Select all
\documentclass{minimal}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[thick]
\draw (0,0) -- (1,3) node[midway,left] {c} -- (5,0) node[midway,above right] {a} -- (0,0) node[midway,below] {b};
\draw (0,0) node[below left] {A};
\draw (1,3) node[above] {B};
\draw (5,0) node[below right] {C};
\end{tikzpicture}
\end{document}
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: guidance on package
Thanks, that works a treat and I can even understand the coding. I'll look out tikz for circles and stuff now... now that I know where to look
stepec
stepec