Skip to content

Applying [yshift] to a group of elements? #6

@calvinpark

Description

@calvinpark

This is the graph I want to draw.
screen shot 2015-10-02 at 3 13 53 pm

Since mytag sits above u1, u1 had to be shifted down.
Since u1 has been shifted down, every element around it also had to be shifted down.

  \gitDAG[grow right sep = 1em]{
    m1 -- { m2 ,
            u1[yshift=-2em] -- u2[yshift=-2em],
            t1[yshift=-2em] -- t2[yshift=-2em]
          }
    };
  \gittag
    {mytag}       % node name and text 
    {above=of u1} % node placement
    {u1}          % target

Is there a better way to draw this graph, without applying yshift to every element?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions