Guest User

Untitled

a guest
Jun 23rd, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{amsmath}
  3. usepackage{multirow}
  4. usepackage{easybmat}
  5.  
  6. newcommandbigzero{makebox(0,0){text{Huge0}}}
  7. begin{document}
  8.  
  9. [
  10. sbox0{$begin{array}{c c c |}0&1&0\0&0&1\0&0&0\ hlineend{array}$}
  11. sbox1{$begin{array}{| r|}hline \ 2\ hlineend{array}$}
  12. sbox2{$begin{matrix}2&1&0\0&2&1\0&0&2end{matrix}$}
  13. sbox3{$begin{array}{c c c |}2&1&0\0&2&1\0&0&2\ hlineend{array}$}
  14. %
  15. A=left[
  16. begin{array}{c c c c}
  17. usebox{0}& & bigzero & \
  18. & usebox{1} & & \
  19. bigzero & & usebox{3} & \
  20. & & & 0 \
  21. end{array}
  22. right]
  23. ]
  24.  
  25. end{document}
  26.  
  27. documentclass{article}
  28. usepackage{tikz}
  29. usetikzlibrary{matrix}
  30. begin{document}
  31.  
  32. [ A =
  33. begin{tikzpicture}[baseline=(current bounding box.center),
  34. large/.style={font=large}]
  35. matrix (M)[matrix of math nodes, nodes in empty cells,
  36. left delimiter={[}, right delimiter={]},
  37. column sep={1.2em,between origins},
  38. row sep={1.2em,between origins}
  39. ]{ 0 & 1 & 0 & & \
  40. 0 & 0 & 1 & & & & & \
  41. 0 & 0 & 0 & & & \
  42. & & & 2 & & \
  43. & & & & 2 & 1 & 0 & \
  44. & & & & 0 & 2 & 1 & \
  45. & & & & 0 & 0 & 2 & \
  46. & & & & & & & 0\
  47. };
  48. draw(M-3-1.south west)--([xshift=2mm]M-3-4.south east);
  49. draw(M-4-3.south)--(M-4-4.south east);
  50. draw(M-7-5.south)--([xshift=2mm]M-7-7.south);
  51. draw(M-1-3.north east)--(M-4-4.south west);
  52. draw(M-4-4.north east)--(M-5-5.south west);
  53. draw(M-5-7.north east)--(M-7-7.south east);
  54. node[large] at (M-2-7){$0$};
  55. node[large] at (M-7-2){$0$};
  56. end{tikzpicture}
  57. ]
  58.  
  59. end{document}
  60.  
  61. documentclass{article}
  62. usepackage{tikz}
  63. usetikzlibrary{matrix}
  64. begin{document}
  65.  
  66. [ A =
  67. begin{tikzpicture}[baseline=(current bounding box.center),
  68. large/.style={font=large}]
  69. matrix (M)[matrix of math nodes, nodes in empty cells,
  70. left delimiter={[}, right delimiter={]},
  71. column sep={1.2em,between origins},
  72. row sep={1.2em,between origins}
  73. ]{ 0 & 1 & 0 & & \
  74. 0 & 0 & 1 & & & & & \
  75. 0 & 0 & 0 & & & \
  76. & & & 2 & & \
  77. & & & & 2 & 1 & 0 & \
  78. & & & & 0 & 2 & 1 & \
  79. & & & & 0 & 0 & 2 & \
  80. & & & & & & & 0\
  81. };
  82. draw(M-3-1.south west)--([xshift=2mm]M-3-4.south east);
  83. draw([xshift=1mm]M-4-3.south)--([xshift=1mm]M-4-4.south east);
  84. draw(M-7-5.south)--([xshift=3mm]M-7-7.south);
  85. draw(M-1-3.north east)--(M-4-4.south west);
  86. draw(M-4-4.north east)--(M-5-5.south west);
  87. draw(M-5-7.north east)--([yshift=-1mm]M-7-7.south east);
  88. node[] at (M-2-7){Huge 0};
  89. node[] at (M-7-2){Huge 0};
  90. end{tikzpicture}
  91. ]
  92.  
  93. end{document}
Add Comment
Please, Sign In to add comment