Debian Codegraph @

texmf-dist/doc/latex/undolabl/undolabl-example.tex

raw
1 %%
2 %% This is file `undolabl-example.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% undolabl.dtx (with options: `example')
8 %%
9 %% This is a generated file.
10 %%
11 %% Project: undolabl
12 %% Version: 2025-01-28 v1.0o
13 %%
14 %% Copyright (C) 2010 - 2025 by
15 %% H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
16 %% Portions of code copyrighted by other people as marked.
17 %%
18 %% This work may be distributed and/or modified under the
19 %% conditions of the LaTeX Project Public License, either
20 %% version 1.3c of this license or (at your option) any later
21 %% version. This version of this license is in
22 %% https://www.latex-project.org/lppl/lppl-1-3c.txt
23 %% and the latest version of this license is in
24 %% https://www.latex-project.org/lppl.txt
25 %% and version 1.3c or later is part of all distributions of
26 %% LaTeX version 2005-12-01 or later.
27 %%
28 %% This work has the LPPL maintenance status "maintained".
29 %%
30 %% The Current Maintainer of this work is H.-Martin Muench.
31 %%
32 %% The main code of this package was invented by
33 %% Ulrich Diez (eu_angelion AT web DOT de)
34 %% and first published in the comp.text.tex newsgroup
35 %% at Sun, 20 Apr 2008 16:39:26 +0200, with subject:
36 %% Re: How to undefine/overwrite a label? (see e.g.
37 %% https://groups.google.com/g/comp.text.tex/c/MBiR-EpPceo/m/2pdwkZP-bK8J
38 %% ). While Ulrich Diez neither wanted to create a package himself yet
39 %% nor have one published under his name, he granted the
40 %% publication of his code. Therefore: Thanks!
41 %%
42 %% This work consists of the main source file undolabl.dtx,
43 %% the README, and the derived files
44 %% undolabl.sty, undolabl.pdf,
45 %% undolabl.ins, undolabl.drv,
46 %% undolabl-example.tex, undolabl-example.pdf.
47 %%
48 %% In memoriam
49 %% Claudia Simone Barth + 1996-01-30
50 %% Tommy Muench + 2014-01-02
51 %% Hans-Klaus Muench + 2014-08-24
52 %%
53 \documentclass[british]{article}[2024/06/29]% v1.4n
54 \usepackage{undolabl}[2025-01-28]% v1.0o
55 %% There are no options for the undolabl package.
56 \usepackage[%
57 extension=pdf,%
58 plainpages=false,%
59 pdfpagelabels=true,%
60 hyperindex=false,%
61 pdflang={en},%
62 pdftitle={undolabl package example},%
63 pdfauthor={H.-Martin Muench, after Ulrich Diez},%
64 pdfsubject={Example for the undolabl package},%
65 pdfkeywords={LaTeX, undolabl, undolabel},%
66 pdfview=FitH,%
67 pdfstartview=FitH,%
68 pdfpagelayout=OneColumn,%
69 bookmarksopen=true%
70 ]{hyperref}[2024-11-05]% v7.01l; when you want to use nameref
71 \listfiles
72 \begin{document}
73 \pagenumbering{arabic}
74 \section*{Example for undolabl}
75 This example demonstrates the use of package\newline
76 \textsf{undolabl}, v1.0o as of 2025-01-28 (HMM).\newline
77 For details please see the documentation!
78 \bigskip
79
80 \section{Test}
81 text \label{testlabel} and text \overridelabel{testlabel}\par
82 page-reference: \pageref{testlabel}\par%% -> page 4
83 sectional-reference: \ref{testlabel}\par%% -> section 4
84 name-reference: \nameref{testlabel}%% -> Still another test
85
86 \newpage
87 \section{Another test}
88 text \overridelabel{testlabel}\par
89 page-reference: \pageref{testlabel}\par%% -> page 4
90 sectional-reference: \ref{testlabel}\par%% -> section 4
91 name-reference: \nameref{testlabel}%% -> Still another test
92
93 \newpage
94 \section{Yet another test}
95 text \overridelabel{testlabel}\par
96 page-reference: \pageref{testlabel}\par%% -> page 4
97 sectional-reference: \ref{testlabel}\par%% -> section 4
98 name-reference: \nameref{testlabel}%% -> Still another test
99
100 \newpage
101 \section{Still another test}
102 text \overridelabel{testlabel}\par
103 page-reference: \pageref{testlabel}\par%% -> page 4
104 sectional-reference: \ref{testlabel}\par%% -> section 4
105 name-reference: \nameref{testlabel}%% -> Still another test
106 \end{document}
107 \endinput
108 %%
109 %% End of file `undolabl-example.tex'.