3

Say I am typing the following:

\begin{align*}
f(x) &= absuc \tag{First tag} \\
     &= abshgi \tag{Second tag}. 
\end{align*}

This outputs the following: enter image description here

However, I am trying to find a way to get the full stop (period) AFTER the close bracket of the tag (my supervisor is very picky with regards to placement of full stops). How can I get it to do that?

2
  • 3
    Sorry for you. But it doesn't make any sense. :( – egreg Jul 3 '16 at 20:55
  • @egreg - I can't seem to think it's possible either :( . I guess I'll just have to "fake it" by manually inserting spaces instead of tags. – user229672 Jul 3 '16 at 20:56
3

I sympathize with you.

\documentclass{article}
\usepackage{amsmath}

\makeatletter
\renewcommand{\make@df@tag@@@}[2][]{%
  \gdef\df@tag{%
    \tagform@{#2\rlap{\hphantom)#1}}%
    \toks@\@xp{\p@equation{#2}}%
    \edef\@currentlabel{\the\toks@}%
  }%
}
\makeatother

\begin{document}

\begin{align*}
f(x) &= absuc \tag{First tag} \\
     &= abshgi \tag[.]{Second tag}\label{X}
\end{align*}

\eqref{X}

\end{document}

enter image description here

1
  • The punctuation in the optional argument will be in the margin. – egreg Jul 3 '16 at 21:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.