%%
%% This is file `undolabl-example.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% undolabl.dtx  (with options: `example')
%% 
%% This is a generated file.
%% 
%% Project: undolabl
%% Version: 2025-01-28 v1.0o
%% 
%% Copyright (C) 2010 - 2025 by
%%     H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
%% Portions of code copyrighted by other people as marked.
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3c of this license or (at your option) any later
%% version. This version of this license is in
%%    https://www.latex-project.org/lppl/lppl-1-3c.txt
%% and the latest version of this license is in
%%    https://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of
%% LaTeX version 2005-12-01 or later.
%% 
%% This work has the LPPL maintenance status "maintained".
%% 
%% The Current Maintainer of this work is H.-Martin Muench.
%% 
%% The main code of this package was invented by
%% Ulrich Diez (eu_angelion AT web DOT de)
%% and first published in the comp.text.tex newsgroup
%% at Sun, 20 Apr 2008 16:39:26 +0200, with subject:
%% Re: How to undefine/overwrite a label? (see e.g.
%% https://groups.google.com/g/comp.text.tex/c/MBiR-EpPceo/m/2pdwkZP-bK8J
%% ). While Ulrich Diez neither wanted to create a package himself yet
%% nor have one published under his name, he granted the
%% publication of his code. Therefore: Thanks!
%% 
%% This work consists of the main source file undolabl.dtx,
%% the README, and the derived files
%%    undolabl.sty, undolabl.pdf,
%%    undolabl.ins, undolabl.drv,
%%    undolabl-example.tex, undolabl-example.pdf.
%% 
%% In memoriam
%%  Claudia Simone Barth + 1996-01-30
%%  Tommy Muench         + 2014-01-02
%%  Hans-Klaus Muench    + 2014-08-24
%% 
\documentclass[british]{article}[2024/06/29]% v1.4n
\usepackage{undolabl}[2025-01-28]% v1.0o
%% There are no options for the undolabl package.
\usepackage[%
 extension=pdf,%
 plainpages=false,%
 pdfpagelabels=true,%
 hyperindex=false,%
 pdflang={en},%
 pdftitle={undolabl package example},%
 pdfauthor={H.-Martin Muench, after Ulrich Diez},%
 pdfsubject={Example for the undolabl package},%
 pdfkeywords={LaTeX, undolabl, undolabel},%
 pdfview=FitH,%
 pdfstartview=FitH,%
 pdfpagelayout=OneColumn,%
 bookmarksopen=true%
]{hyperref}[2024-11-05]% v7.01l; when you want to use nameref
\listfiles
\begin{document}
\pagenumbering{arabic}
\section*{Example for undolabl}
This example demonstrates the use of package\newline
\textsf{undolabl}, v1.0o as of 2025-01-28 (HMM).\newline
For details please see the documentation!
\bigskip

\section{Test}
text \label{testlabel} and text \overridelabel{testlabel}\par
page-reference: \pageref{testlabel}\par%%  -> page 4
sectional-reference: \ref{testlabel}\par%% -> section 4
name-reference: \nameref{testlabel}%%      -> Still another test

\newpage
\section{Another test}
text \overridelabel{testlabel}\par
page-reference: \pageref{testlabel}\par%%  -> page 4
sectional-reference: \ref{testlabel}\par%% -> section 4
name-reference: \nameref{testlabel}%%      -> Still another test

\newpage
\section{Yet another test}
text \overridelabel{testlabel}\par
page-reference: \pageref{testlabel}\par%%  -> page 4
sectional-reference: \ref{testlabel}\par%% -> section 4
name-reference: \nameref{testlabel}%%      -> Still another test

\newpage
\section{Still another test}
text \overridelabel{testlabel}\par
page-reference: \pageref{testlabel}\par%%  -> page 4
sectional-reference: \ref{testlabel}\par%% -> section 4
name-reference: \nameref{testlabel}%%      -> Still another test
\end{document}
\endinput
%%
%% End of file `undolabl-example.tex'.
