Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.46 KB | None | 0 0
  1. \documentclass{article}
  2. \usepackage{amsmath}
  3.  
  4. \newcommand{\eqtag}[1]{
  5.    \tag{\theequation}
  6.    \label{#1}
  7.    \addtocounter{equation}{1}
  8. }
  9.  
  10. \begin{document}
  11. \begin{align}
  12.    \frac12+\frac12=1
  13. \end{align}
  14. \begin{align*}
  15.    1+1=2\\
  16.    2+2=4 \eqtag{timesplus}\\
  17.    4+4=8 \eqtag{notimesplus}\\
  18. \end{align*}
  19.  
  20. Note that in \eqref{timesplus} you can replace $+$ with $*$ and have it still work,
  21. where as in \eqref{notimesplus} you cannot.
  22. \end{document
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement