Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{amsmath}
  3.  
  4. defmatOne{begin{matrix}1 & 0 \ 0 & 1end{matrix}}
  5. defmatTwo{begin{matrix}a\bend{matrix}}
  6. defmatThree{begin{matrix}c & dend{matrix}}
  7.  
  8. begin{document}
  9. begin{align*}
  10. begin{pmatrix}
  11. matOne & matTwo\
  12. matThree & e\
  13. end{pmatrix}\
  14. begin{pmatrix}
  15. 1 & 0 & a\
  16. 0 & 1 & b\
  17. c & d & e\
  18. end{pmatrix}
  19. end{align*}
  20. end{document}
  21.  
  22. definemathmatrix[pmatrix][left={left(}, right={right)}, distance=1em]
  23.  
  24. defmatOne{startmatrixNC 1 NC 0 NRNC 0 NC 1NRstopmatrix}
  25. defmatTwo{startmatrixNC aNRNC bNRstopmatrix}
  26. defmatThree{startmatrixNC c NC dNRstopmatrix}
  27.  
  28. starttext
  29.  
  30. startformula
  31. startpmatrix
  32. NC matOne NC matTwoNR
  33. NC matThree NC eNR
  34. stoppmatrix
  35. stopformula
  36. startformula
  37. startpmatrix
  38. NC 1 NC 0 NC a NR
  39. NC 0 NC 1 NC b NR
  40. NC c NC d NC eNR
  41. stoppmatrix
  42. stopformula
  43.  
  44. stoptext
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement