Advertisement
Guest User

Untitled

a guest
Dec 11th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{amsmath}
  3. usepackage{tikz}
  4. usetikzlibrary{matrix,decorations.pathreplacing,calc}
  5.  
  6. begin{document}
  7. [
  8. begin{tikzpicture}[decoration={brace,amplitude=5pt},baseline=(current bounding box.west)]
  9. matrix (magic) [matrix of math nodes,left delimiter=(,right delimiter=)] {
  10. 1 \
  11. & 1 \
  12. & & ddots \
  13. & & & 1 \
  14. & & & & -1 \
  15. & & & & & -1 \
  16. & & & & & & ddots \
  17. & & & & & & & -1\
  18. };
  19. draw[decorate] (magic-1-1.north) -- (magic-4-4.north east) node[above=5pt,midway,sloped] {$n$ copies of $1$};
  20. draw[decorate] (magic-5-5.north east) -- (magic-8-8.north east) node[above=5pt,midway,sloped] {$n$ copies of $-1$};
  21. end{tikzpicture}
  22. ]
  23. end{document}
  24.  
  25. draw[decorate] ($(magic-1-1.north)+(.2,.1)$) -- ($(magic-4-4.north east)+(.15,.1)$) node[above=5pt,midway,sloped] {$n$ copies of $1$};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement