Results 1 to 2 of 2

Math Help - Drawing in latex

  1. #1
    MHF Contributor
    Joined
    Mar 2010
    From
    Florida
    Posts
    3,093
    Thanks
    5

    Drawing in latex

    I am trying to construct a map.

    X - - - -> Y where there is a f above the dotted line. Then a solid line down from the X to a Z with a h to the left center of the solid line, and then a diagonal solid line from Y to Z with a g in the center to the right of the solid line.

    How can I set that up in LaTex?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Joined
    Oct 2009
    Posts
    5,513
    Thanks
    769

    Re: Drawing in latex

    See these two pages for surveys of diagram-drawing facilities in LaTeX. The second TeX FAQ is generally awesome.

    I personally like PGF/TikZ because of its impeccable quality and power (the author also wrote the Beamer package). It is able to draw almost any technical diagram (see examples). In TikZ, the following code

    Code:
    \begin{tikzpicture}[auto]
    \node (X) at (0,0) {$X$};
    \node (Y) at (3,0) {$Y$};
    \node (Z) at (0,-2) {$Z$};
    \draw[dashed,->] (X) -- node{$f$} (Y);
    \draw[->] (Y) -- node{$g$} (Z);
    \draw[->] (X) -- node[swap]{$h$} (Z);
    \end{tikzpicture}
    produces



    Speaking of drawbacks, TikZ manual, though very clear, has over 700 pages. Also, the semantics of the language (e.g., options) is sometimes pretty involved.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 1
    Last Post: December 10th 2011, 06:40 PM
  2. drawing latex formula
    Posted in the LaTeX Help Forum
    Replies: 3
    Last Post: June 17th 2011, 01:18 AM
  3. Drawing pictures in LaTeX
    Posted in the LaTeX Help Forum
    Replies: 11
    Last Post: August 24th 2010, 12:02 AM
  4. Box Drawing
    Posted in the LaTeX Help Forum
    Replies: 7
    Last Post: April 10th 2010, 10:48 AM
  5. LaTex inside of LaTex
    Posted in the LaTeX Help Forum
    Replies: 2
    Last Post: November 12th 2009, 11:07 AM

Search Tags


/mathhelpforum @mathhelpforum