Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. documentclass[12pt]{standalone}
  2.  
  3. usepackage{amsmath}
  4. usepackage{color}
  5.  
  6. begin{document}
  7.  
  8. begin{minipage}{4cm}
  9. begin{equation*}
  10. a = b + c
  11. end{equation*}
  12. begin{align*}
  13. a - b &= c\
  14. a-c & b
  15. end{align*}
  16. end{minipage}
  17.  
  18. vline
  19.  
  20. begin{minipage}{4cm}
  21. begin{equation*}
  22. color{blue} a = b + c
  23. end{equation*}
  24. begin{align*}
  25. a - b &= c\
  26. a-c & b
  27. end{align*}
  28. end{minipage}
  29.  
  30. end{document}
  31.  
  32. begin{align*}
  33. {color{blue} a - b &= c}\
  34. a-c &= b
  35. end{align*}
  36.  
  37. begin{align*}
  38. {color{blue} a - b} &{color{blue}= c}\
  39. a-c &= b
  40. end{align*}
  41.  
  42. documentclass[12pt]{standalone}
  43.  
  44. usepackage{amsmath}
  45. usepackage{color}
  46.  
  47. begin{document}
  48.  
  49. begin{minipage}{4cm}
  50. begin{equation*}
  51. a = b + c
  52. end{equation*}
  53. begin{align*}
  54. a - b &= c\
  55. a-c & b
  56. end{align*}
  57. end{minipage}
  58.  
  59. vline
  60.  
  61. begin{minipage}{4cm}
  62. begin{equation*}
  63. begingroupcolor{blue} a = b + cendgroup
  64. end{equation*}
  65. begin{align*}
  66. a - b &= c\
  67. a-c & b
  68. end{align*}
  69. end{minipage}
  70.  
  71. end{document}
  72.  
  73. deffoo#1$$#2!!{defmathdisplay##1{#1$$begingroup#2}}
  74. expandafterfoomathdisplay{#1}!!
  75.  
  76. longdeffoo#1$$#2!!{defendmathdisplay##1{#1endgroup$$#2}}
  77. expandafterfooendmathdisplay{#1}!!
  78.  
  79. documentclass[12pt]{standalone}
  80.  
  81. usepackage{amsmath}
  82. usepackage{color}
  83.  
  84. begin{document}
  85.  
  86. begin{minipage}{4cm}
  87. begin{equation*}
  88. a = b + c
  89. end{equation*}
  90. begin{align*}
  91. a - b &= c\
  92. a-c &= b
  93. end{align*}
  94. end{minipage}
  95.  
  96. vline
  97.  
  98. begin{minipage}{4cm}
  99. begin{equation*}
  100. color{red} a = b + c
  101. end{equation*}
  102. begin{align*}
  103. a - b &= c\
  104. a-c & b
  105. end{align*}
  106. end{minipage}
  107.  
  108. vline
  109.  
  110. begin{minipage}{4cm}
  111. begin{equation*}
  112. begingroupcolor{red} a = b + cendgroup
  113. end{equation*}
  114. begin{align*}
  115. a - b &= c\
  116. a-c &= b
  117. end{align*}
  118. end{minipage}
  119.  
  120. vline
  121.  
  122. begin{minipage}{4cm}
  123. begin{gather*}
  124. begingroupcolor{red} a = b + cendgroup\
  125. begin{split}
  126. a - b &= c\
  127. a-c &= b
  128. end{split}
  129. end{gather*}
  130. end{minipage}
  131.  
  132. end{document}
  133.  
  134. documentclass[12pt]{article}
  135. usepackage{amsmath}
  136. usepackage{color}
  137.  
  138. begin{document}
  139.  
  140. start with some text. make it a rather long line.
  141. begin{equation*}
  142. a = b + c
  143. end{equation*}
  144. some more text. make this also a rather long line.
  145. begin{equation*}
  146. color{red} a = b + c
  147. end{equation*}
  148. still more text. make this also a rather long line.
  149.  
  150. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement