GeneralRedefining Labels

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
MrT
Posts: 2
Joined: Sat Apr 02, 2011 11:06 am

Redefining Labels

Post by MrT »

Hi everyone!
I´m stuck on a seemingly simple question on latex and I can´t find the answer anywhere...

What I want to do, is to redefine the label command, so that it also produces a note on the side of the text containing the label name.

I already tried

Code: Select all

\renewcommand{\label}[1]{\label{#1} \marginpar{#1}}
but that doesn´t work. How could I solve that problem?

Thanks for your help,
Mr.T
Last edited by MrT on Fri Apr 08, 2011 8:38 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Re: Redefining Labels

Post by sommerfee »

There is a LaTeX package called "showkeys" which does what you want.
MrT
Posts: 2
Joined: Sat Apr 02, 2011 11:06 am

Re: Redefining Labels

Post by MrT »

Awesome, thats it!
Danke Sommerfee für die schnelle Antwort! :)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Redefining Labels

Post by localghost »

MrT wrote:Awesome, thats it! […]
Then please mark the topic (not the last post) accordingly as written in Section 3 of the Board Rules (to be read before posting).


Best regards and welcome to the board
Thorsten
Post Reply