TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
up vote 15 down vote accepted

An easy way is to just nullify the macro within the body so that the next time it does not have an effect if it is called again via either




enter image description here

As per David Carlisle's comment, we need to add a \global to ensure that the macro is nullified for subsequent use in the case the first use was within a group (as per updated test case below)




    \textbf{FirstTime: }%

    abcd \FirstTime defg \FirstTime xys

    abcd \FirstTime defg \FirstTime xys

    abcd \FirstTime defg \FirstTime xys
share|improve this answer
Credit also goes to user "Stephen" who posted a similar answer to an earlier question of mine. – Lover of Structure Feb 23 '13 at 21:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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