Guest User

Untitled

a guest
Jan 19th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. useasboundingbox (0,0) rectangle (<width of first picture>,<height of first picture>);
  2.  
  3. documentclass{article}
  4. usepackage{tikz}
  5. begin{document}
  6. fbox{%
  7. begin{tikzpicture}
  8. draw (-1,-1) -- (5,5);
  9. % more drawing commands ...
  10. coordinate (FIRST NE) at (current bounding box.north east);
  11. coordinate (FIRST SW) at (current bounding box.south west);
  12. end{tikzpicture}
  13. }
  14. fbox{%
  15. begin{tikzpicture}
  16. useasboundingbox (FIRST SW) rectangle (FIRST NE);
  17. draw (0,0) -- (1,1);
  18. end{tikzpicture}
  19. }
  20. end{document}
  21.  
  22. begin{tikzpicture}
  23. % TikZ code for first picture
  24. begin{scope}[xshift=5cm]
  25. % TikZ code for second picture
  26. end{scope}
  27. end{tikzpicture}
  28.  
  29. newboxmybox
  30. setboxmybox=hbox{begin{tikzpicture}
  31. ...
  32. end{tikzpicture}}
  33.  
  34. wdmybox
  35. htmybox
  36. dpmybox
  37.  
  38. documentclass{article}
  39. usepackage[most]{tcolorbox}
  40. usepackage{array}
  41. newtcolorbox{mysidebyside}[1][]{%
  42. enhanced, sidebyside,
  43. sidebyside align= center seam,
  44. halign = center, halign lower = center,
  45. #1
  46. }
  47.  
  48. begin{document}
  49. begin{mysidebyside}[]
  50. begin{tikzpicture}
  51. draw (0,0)--++(0:3cm)--++(60:3cm)--cycle;
  52. end{tikzpicture}
  53. tcblower
  54. begin{tikzpicture}
  55. draw (0,0)--++(0:1cm)--++(60:1cm)--cycle;
  56. end{tikzpicture}
  57. end{mysidebyside}
  58.  
  59. begin{mysidebyside}[empty]
  60. begin{tikzpicture}
  61. draw (0,0)--++(0:3cm)--++(60:3cm)--cycle;
  62. end{tikzpicture}
  63. tcblower
  64. begin{tikzpicture}
  65. draw (0,0)--++(0:1cm)--++(60:1cm)--cycle;
  66. end{tikzpicture}
  67. end{mysidebyside}
  68.  
  69. noindentbegin{tabular}{>{centeringarraybackslash}m{.45textwidth}>{centeringarraybackslash}m{.45textwidth}}
  70. begin{tikzpicture}
  71. draw (0,0)--++(0:3cm)--++(60:3cm)--cycle;
  72. end{tikzpicture}
  73. &
  74. begin{tikzpicture}
  75. draw (0,0)--++(0:1cm)--++(60:1cm)--cycle;
  76. end{tikzpicture}
  77. end{tabular}
  78.  
  79. end{document}
Add Comment
Please, Sign In to add comment