This codes compiles a Hasse diagram of a diamond lattice. Now, I want to replace the 0-node by a \wedge b. However, when I replace all instances of 0 by a \wedge b, I get an error. Any help on how to resolve this issue?


  \node [mynode,label=above:1] (1) at (0,0) {};
  \node [mynode,below left  = of 1,label=left:a] (a)  {};
  \node [mynode,below right = of 1,label=right:b] (b) {};
  \node [mynode,below right = of a,label=below:0] (0) {};
  \node [mynode,below       = of 1,label=right:c] (c) {};

  \draw (1) -- (a) 
        (1) -- (c) 
        (1) -- (b)
        (c) -- (0)
        (a) -- (0) 
        (b) -- (0);

  • You are naming a node 0, and node names are converted to macro names. Since it is just a name, use wedge b (no backslash). – John Kormylo Apr 12 at 14:40
  • Then my node becomes 'a wedge b'. However, I want the mathematical symbol for \wedge. – J.Bosser Apr 12 at 14:43
  • I deleted the the mynodes, but I still get an error. – J.Bosser Apr 12 at 14:49
  • 1
    Doesn't label=below:$\wedge$ work? – Torbjørn T. Apr 12 at 14:57
  • 1
    Right, just as in normal text, there are things that only works in math mode, and then you need to switch to math mode. A TikZ label/node is no different from normal text in that respect. Node next to line: tex.stackexchange.com/questions/96846/… – Torbjørn T. Apr 12 at 15:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.