Generallabels on pdf to help with \ref

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ne_bu
Posts: 2
Joined: Sat Aug 11, 2012 6:33 pm

labels on pdf to help with \ref

Post by ne_bu »

Hi,

Using \ref{}, I frequently forget what label I used for that particular reference. If the document is large, I can back-chase the label from the pdf file, then forward-chase the tex file for the spot where I want to insert the \ref{}. How can I make the pdf output have the labels written to the left of the text, so that by glancing at it I can type the label into \ref{}? Of course, at the end of the day, these should be able to be removed easily.

Thanks!
Last edited by cgnieder on Wed Sep 05, 2012 5:45 pm, edited 1 time in total.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Boersma
Posts: 21
Joined: Mon Nov 22, 2010 9:29 pm

labels on pdf to help with \ref

Post by Boersma »

This can be done by using the package showkeys. Just type \usepackage[draft]{showkeys} in your preamble, and your done.
Changing the optional argument into [final], or removing the package at all, will remove all the labels.

Regards,
Boersma
ne_bu
Posts: 2
Joined: Sat Aug 11, 2012 6:33 pm

Re: labels on pdf to help with \ref

Post by ne_bu »

Thank you very much!
Post Reply