Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{nicematrix}
  3. NiceMatrixOptions{transparent,nullify-dots}
  4.  
  5. newcommand{underbracedmatrix}[2]{%
  6. left(;
  7. smash[b]{underbrace{
  8. begin{NiceMatrix}[columns-width = auto]#1end{NiceMatrix}
  9. }_{#2}}
  10. ;right)
  11. vphantom{underbrace{begin{NiceMatrix}#1end{NiceMatrix}}_{#2}}
  12. }
  13.  
  14. begin{document}
  15. begin{equation}
  16. K=
  17. underbracedmatrix{
  18. 3 & 1 & & & \
  19. 1 & 2 & 1 & & \
  20. & 1 &ddots&ddots& \
  21. & &ddots& 3 & 1 \
  22. & & & 1 & 1 \}{n}
  23. end{equation}
  24. end{document}
  25.  
  26. documentclass{vertex4-1}
  27. usepackage{nicematrix}
  28. NiceMatrixOptions{transparent,nullify-dots}
  29.  
  30. newcommand{underbracedmatrix}[2]{%
  31. left(;
  32. smash[b]{underbrace{
  33. begin{NiceMatrix}[columns-width = auto]#1end{NiceMatrix}
  34. }_{#2}}
  35. ;right)
  36. vphantom{underbrace{begin{NiceMatrix}#1end{NiceMatrix}}_{#2}}
  37. }
  38.  
  39. begin{document}
  40.  
  41. begin{equation}
  42. K=
  43. underbracedmatrix{
  44. 3 & 1 & & & \
  45. 1 & 2 & 1 & & \
  46. & 1 &ddots&ddots& \
  47. & &ddots& 3 & 1 \
  48. & & & 1 & 1 \}{n}
  49. end{equation}
  50.  
  51. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement