% mylabels.sty % % Provides command \mylabel that behaves like \label, but with the % draft option prints the labels between lines (and may overprint anything). % To reduce the risk of overprinting put the \mylabel command as % early as possible, preferably as the first command inside the environment. % % For figure and table environments the \mylabel should be after and % outside of the \caption command. % % The default is to print the label in gray. With option ``black'' the % label is printed in black. % % Harri Ojanen - ojanen@math.rutgers.edu \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{mylabels}[1998/9/14] \RequirePackage{color} \newcommand{\mylabel}[1]{\label{#1}} \newcommand{\mylabelcolor}{\color[gray]{0.5}} \newcommand{\mylabelnote}[1]{\raisebox{10pt}[0pt]{\makebox[0pt][r]{{\mylabelcolor\tiny\slshape\underline{\textsf{#1}}\hspace*{5mm}}}}}% \DeclareOption{draft}{\renewcommand{\mylabel}[1]{\mylabelnote{#1}\label{#1}}} \DeclareOption{black}{\renewcommand{\mylabelcolor}{\color[gray]{0}}} \ProcessOptions\relax