Is there a way to create a little macro to print the name of labels in marginpar?
I would like to have something that automatically printed in marginpar the label of theorems, equations, etc, but at the same time, it should be easy to take it out. Maybe some code in the preamble that after being commented, all the marginpar would simply vanish.
Math & Science ⇒ macro to print in marginpar the label of variables
-
- Posts: 34
- Joined: Sat Aug 08, 2009 1:05 pm
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
macro to print in marginpar the label of variables
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 34
- Joined: Sat Aug 08, 2009 1:05 pm
Re: macro to print in marginpar the label of variables
Thank you very much for your swift and enlightening answer.