Math & Scienceguidance on package

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
stepec
Posts: 18
Joined: Fri Aug 06, 2010 11:36 pm

guidance on package

Post by stepec »

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
Last edited by stepec on Thu Aug 26, 2010 9:25 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Post by localghost »

You could use the pgf/tikZ package. See a simple example below.

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}
An alternative is the pstricks package. For further information refer to the package manuals.


Thorsten
stepec
Posts: 18
Joined: Fri Aug 06, 2010 11:36 pm

Re: guidance on package

Post by stepec »

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
Post Reply