Created
October 23, 2018 09:32
-
-
Save wtsnjp/9dc9849025e566b7d1f0c189ca3e58b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\newcommand{\inlineTag}{% | |
\refstepcounter{equation}% | |
\bgroup\normalfont\normalcolor (\theequation)\egroup} | |
\begin{document} | |
This is a sample inline math: $x\;\inlineTag\label{math:x}$. | |
Look at Equation (\ref{math:x})! | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment