Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %GPL License
- \documentclass{article}
- \makeatletter
- %\explicitLabel{labelName}{pageref text}{ref text}
- \newcommand{\explicitLabel}[3]{
- \@bsphack
- \protected@write\@auxout{}{%
- \string\newlabel{#1}%
- {%
- {#3}%
- {#2}
- }%
- }%
- \@esphack
- }
- \makeatother
- \begin{document}
- \explicitLabel{x}{2}{LABEL}
- Label \ref{x} is at page \pageref{x}.
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement