I am writing a textbook which I want to be consistent. Sometimes I do not refer to a statement explicitly, but I want to add an invisible reference, so if latter I will decide to delete the corresponding statement I will see a LaTeX error.

Is there a simple or/and standard way to do it?


you could use


which makes \hiddenref{xx} typeset the reference into a box that is then not used.

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.