Advertisement
Guest User

Untitled

a guest
May 6th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. |----Node A----| |Node B|
  2. |Node C||Node D|
  3.  
  4. documentclass[border=5mm]{standalone}
  5. usepackage[latin1]{inputenc}
  6. usepackage{tikz}
  7. usetikzlibrary{shapes, arrows, arrows.meta}
  8. usetikzlibrary{calc, arrows, fit, positioning, shapes.symbols, chains}
  9. usetikzlibrary{decorations.markings, decorations.pathmorphing, decorations.pathreplacing}
  10. pagenumbering{gobble} % Remove page number
  11.  
  12. begin{document}
  13. % Define block styles
  14. tikzstyle{block_large} = [rectangle, draw, text width=8cm, rounded corners, text height=0.4cm, text depth=1.25cm]
  15. tikzstyle{block_medium} = [rectangle, draw, text width=4cm, rounded corners, text height=0.4cm, text depth=1.25cm]
  16.  
  17. begin{tikzpicture}[node distance=1.5cm, auto, comment/.style={rectangle, inner sep=5pt}]
  18. % Draw nodes - first row
  19. node [block_large] (col1_row1) {
  20. textbf{Node A}\
  21. textit{Foo:} Bar\
  22. textit{Baz:} Qux
  23. };
  24.  
  25. node [block_medium, right=1cm of col1_row1] (col3_row1) {
  26. textbf{Node B}\
  27. textit{Foo:} Bar\
  28. textit{Baz:} Qux
  29. };
  30.  
  31. % Draw nodes - second row
  32. node [block_medium, below=0.1cm of col1_row1, anchor=north east] (col1_row2) {
  33. textbf{Node C}\
  34. textit{Foo:} Bar\
  35. textit{Baz:} Qux
  36. };
  37. node [block_medium, right=0cm of col1_row2] (col2_row2) {
  38. textbf{Node D}\
  39. textit{Foo:} Bar\
  40. textit{Baz:} Qux
  41. };
  42. end{tikzpicture}
  43.  
  44. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement