SHARE
TWEET

Untitled

a guest Dec 18th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass{article}
  2. usepackage{stackengine}
  3. stackMath
  4. newlengthmatfield
  5. newlengthtmplength
  6. defmatscale{1.}
  7. newcommanddimbox[3]{%
  8.   setlengthmatfield{matscalebaselineskip}%
  9.   setbox0=hbox{vphantom{X}smash{#3}}%
  10.   setlength{tmplength}{#1matfield-ht0-dp0}%
  11.   fboxrule=1ptfboxsep=-fboxrulerelax%
  12.   fbox{makebox[#2matfield]{addstackgap[.5tmplength]{box0}}}%
  13. }
  14. newcommandraiserows[2]{%
  15.    setlengthmatfield{matscalebaselineskip}%
  16.    raisebox{#1matfield}{#2}%
  17. }
  18. newcommandmatbox[5]{
  19.   stackunder{dimbox{#1}{#2}{$mathbf{#5}$}}{scriptstyle(#3times #4)}%
  20. }
  21. parskip 1em
  22. begin{document}
  23. $renewcommandmatscale{.6}
  24. matbox{7}{4}{I}{J}{X} =
  25. matbox{7}{2}{I}{R}{T} raiserows{2.5}{matbox{2}{4}{R}{J}{P^T}} +
  26. matbox{7}{4}{I}{J}{E}$
  27. end{document}
  28.    
  29. $renewcommandmatscale{.05}
  30. matbox{300}{75}{I}{J}{X} =
  31. matbox{300}{25}{I}{R}{T} raiserows{137.5}{matbox{25}{75}{R}{J}{P^T}} +
  32. matbox{300}{75}{I}{J}{E}$
  33.    
  34. documentclass[12pt]{article}
  35. usepackage[margin=1cm,paper size={20cm,5cm}]{geometry}
  36. usepackage{amsmath,amssymb}
  37.  
  38. thispagestyle{empty}
  39. begin{document}
  40. [
  41. {begin{pmatrix}
  42.   &    & \
  43.   & X &\
  44.   &     &
  45. end{pmatrix}
  46. mkern-10mu}_{I times J}=
  47. {begin{pmatrix}
  48. phantom{T}\
  49. makebox[20pt][c]{$T$}\
  50. phantom{T}  
  51. end{pmatrix}
  52. mkern-10mu}_{I times R}
  53. {begin{pmatrix}
  54.   &    & \
  55.   & raisebox{10pt}{$P^T$} &\
  56. end{pmatrix}mkern-10mu}_{R times J}+
  57. {begin{pmatrix}
  58.   &    & \
  59.   & E &\
  60.   &    &
  61. end{pmatrix}
  62. mkern-10mu}_{I times J}
  63. ]
  64.  
  65. end{document}
  66.    
  67. documentclass{article}
  68. usepackage{amsbsy}
  69. newcommand*{clap}[1]{hbox to 0pt{hss#1hss}}
  70. newcommand*{mat}[1]{boldsymbol{mathrm{#1}}}
  71. newcommand*{subdims}[3]{clap{raisebox{#1}[0pt][0pt]{$scriptstyle(#2 times #3)$}}}
  72. fboxrule=1pt
  73.  
  74. begin{document}
  75. Huge
  76. [
  77. framebox[2.5cm]{clap{raisebox{0pt}[1.5cm][1.5cm]{$mat X$}}subdims{-2.5cm} I J} =
  78. framebox[1.5cm]{clap{raisebox{0pt}[1.5cm][1.5cm]{$mat T$}}subdims{-2.5cm} I R}  
  79. framebox[2.5cm]{clap{raisebox{5mm}[1.5cm]{$mat P^T$}}     subdims{-1cm} R J} +
  80. framebox[2.5cm]{clap{raisebox{0pt}[1.5cm][1.5cm]{$mat E$}}subdims{-2.5cm} I J}
  81. ]
  82.  
  83. end{document}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top