Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2016
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.30 KB | None | 0 0
  1. \documentclass{article}
  2.  
  3. \usepackage{amsmath,environ}
  4.  
  5. \NewEnviron{myEqn}[1]{%
  6.   \begin{flalign}
  7.    #1 && \BODY &&
  8.  \end{flalign}
  9. }
  10.  
  11. \begin{document}
  12.  
  13. \newcommand{\mycommand}{%
  14.   \text{mycom}% ...or a complicated macro
  15. }
  16.  
  17. \begin{myEqn}{\mycommand}
  18.  1 + 1 = 2
  19. \end{myEqn}
  20.  
  21. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement