Guest User

Untitled

a guest
Dec 16th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. documentclass[a4paper,10pt]{article}
  2.  
  3. usepackage{tikz}
  4. usepackage{verbatim}
  5. usepackage[active,tightpage]{preview}
  6. PreviewEnvironment{tikzpicture}
  7. setlengthPreviewBorder{5pt}%
  8. usetikzlibrary{arrows,chains,matrix,positioning,scopes}
  9. makeatletter
  10. tikzset{join/.code=tikzset{after node path={%
  11. ifxtikzchainpreviouspgfutil@emptyelse(tikzchainprevious)%
  12. edge[every join]#1(tikzchaincurrent)fi}}}
  13. makeatother
  14. tikzset{>=stealth',every on chain/.append style={join},
  15. every join/.style={->}}
  16. tikzstyle{labeled}=[execute at begin node=$scriptstyle,
  17. execute at end node=$]
  18. %
  19. begin{document}
  20. begin{tikzpicture}
  21. matrix (m) [matrix of math nodes, row sep=3em, column sep=3em]
  22. { group , 1 & N & phantom{N} & M & S,M & phantom{S,M} \
  23. group , 2 & N & S,M & & phantom{S,M} & phantom{S,M} \ };
  24. { [start chain] chainin (m-1-2);
  25. chainin (m-1-4); %[join={node[above,labeled] {psi}}];
  26. chainin (m-1-5);
  27. chainin (m-1-6);}
  28.  
  29. { [start chain] chainin (m-2-2);
  30. chainin (m-2-3);
  31. { [start branch=A] chainin (m-1-3)
  32. [join={node[right,labeled] {text}}];}
  33. chainin (m-2-6);}
  34. end{tikzpicture}
  35. end{document}
Add Comment
Please, Sign In to add comment