Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{amsmath}
  3. usepackage{amsmath}
  4. usepackage{adjustbox}
  5.  
  6. newcommand{veq}{mathrel{rotatebox{90}{$=$}}}
  7. newcommand{vneq}{mathrel{rotatebox{90}{$neq$}}}
  8.  
  9. begin{document}
  10.  
  11. This is a test. Yes it is. Of course. Look here. Yes, Here. That's right. Mhmm. Words. Filler. Indeed. Look. A paragraph. With words. Here. Yes. And where's that? Where is here? It's right here:
  12.  
  13. [
  14. left. frac{partial f(A,B,C,D)}{partial A} right|
  15. raisebox{.9baselineskip}{$_{begin{array}{ccccc}
  16. A & = & B & = & Z \
  17. {} & {} & vneq & {} & {} \
  18. C & neq & I & neq & W \
  19. veq & {} & {} & {} & {} \
  20. D & = & G & neq & Q^2+3 end{array} }$}
  21. ]
  22.  
  23. end{document}
  24.  
  25. documentclass{article}
  26. usepackage{tabstackengine}
  27. stackMath
  28. makeatletter
  29. renewcommandTAB@delim[1]{scriptstyle#1}
  30. defreq{protectrotatebox{90}{$scriptstyle=$}}
  31. defrne{protectrotatebox{90}{$scriptstylene$}}
  32. makeatother
  33. usepackage{graphicx}
  34. begin{document}
  35. [
  36. setstackgap{L}{.6baselineskip}
  37. left.frac{partial f(A,B,C,D)}{partial A}right|
  38. raisebox{.9baselineskip}{$_{A = tabbedCenterstack{C\ req\0\ rne\ D} ne B}$}
  39. ]
  40.  
  41. [
  42. setstackgap{L}{.6baselineskip}setstacktabulargap{0pt}TABbinary
  43. left.frac{partial f(A,B,C,D)}{partial A}right|
  44. raisebox{-.2baselineskip}%
  45. {$_{tabularCenterstack{rcl}{A = & 0&\ &req&\&D& ne B = C}}$}
  46. ]
  47.  
  48. [
  49. setstackgap{L}{.6baselineskip}setstacktabulargap{0pt}TABbinary
  50. left.frac{partial f(A,B,C,D)}{partial A}right|
  51. raisebox{.9baselineskip}%
  52. {$_{tabularCenterstack{rcl}{L = & 0&\ &req&\A = &0& ne B = F\
  53. &rne&\ &D&ne B\&rne&\&E&}}$}
  54. ]
  55. end{document}
  56.  
  57. documentclass{article}
  58. usepackage{graphicx}
  59. usepackage{mathtools}
  60. usepackage{adjustbox}
  61.  
  62. newcommand{veq}{mathrel{rotatebox{90}{$=$}}}
  63. newcommand{vneq}{mathrel{rotatebox{90}{$neq$}}}
  64. newcommand*{VerticalRelations}[5]{%
  65. % #1 = center
  66. % #2 = above
  67. % #3 = symbol above
  68. % #4 = below
  69. % #5 = symbol below
  70. adjustbox{stack=cc}{%
  71. ensuremath{#2}\%
  72. ensuremath{mathclap{#3}}\%
  73. ensuremath{#1}\%
  74. ensuremath{#5}\%
  75. ensuremath{mathclap{#4}}%
  76. }%
  77. }%
  78. begin{document}
  79. [
  80. A = VerticalRelations{0}{C}{veq}{D}{vneq} neq B
  81. ]
  82. and check appropriate spacing for longer ``above" and ``below" text:
  83. [
  84. A = VerticalRelations{0}{C}{veq}{Dneq B}{vneq} neq B
  85. ]
  86. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement