| 1 |
%% |
| 2 |
%% This is file `showlabels.drv', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% showlabels.dtx (with options: `driver') |
| 8 |
%% Showlabels: Style to display labels in the margin |
| 9 |
%% This is the showlabels package |
| 10 |
%% |
| 11 |
%%%% Copyright 1999, 2001-09, 2013-22, 2025, Norman Gray |
| 12 |
%% |
| 13 |
%% This work may be distributed and/or modified under the |
| 14 |
%% conditions of the LaTeX Project Public Licence, either version 1.3c |
| 15 |
%% of this licence or (at your option) any later version. |
| 16 |
%% The latest version of this licence is in |
| 17 |
%% http://www.latex-project.org/lppl.txt |
| 18 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 19 |
%% version 2005/12/01 or later. |
| 20 |
%% |
| 21 |
%% This work has the LPPL maintenance status `maintained'. |
| 22 |
%% |
| 23 |
%% The Current Maintainer of this work is Norman Gray <https://nxg.me.uk> |
| 24 |
%% |
| 25 |
%% This work consists of the files showlabels.dtx and showlabels.ins, |
| 26 |
%% and the derived file showlabels.sty. |
| 27 |
|
| 28 |
%%%% File: showlabels.dtx |
| 29 |
%%%% Source: 66d69fa049ab, 2025-08-20T22:15:23+01:00 |
| 30 |
|
| 31 |
\documentclass{ltxdoc} |
| 32 |
\EnableCrossrefs |
| 33 |
\newcommand\Lopt[1]{\textsf{#1}} % package options |
| 34 |
\newcommand\file[1]{\texttt{#1}} % filename |
| 35 |
\newcommand\Lenv[1]{\textsl{\{#1\}}} |
| 36 |
\newcommand\Lpackage[1]{\textsf{\{#1\}}} % packages |
| 37 |
%% \url macro (url.sty does this better, but we don't want extra dependencies) |
| 38 |
\def\setpathdots{\discretionary{.}{}{.}} |
| 39 |
\def\setpathslash{\discretionary{/}{}{/}} |
| 40 |
{\catcode`\.=\active |
| 41 |
\catcode`\/=\active |
| 42 |
\gdef\pathcats{% |
| 43 |
\catcode`\%=12 \catcode`\~=12 |
| 44 |
\catcode`\.=\active \let.\setpathdots |
| 45 |
\catcode`\/=\active \let/\setpathslash |
| 46 |
\catcode`\#=12 \catcode`\_=12}% |
| 47 |
} |
| 48 |
\def\setpath#1{\ttfamily <\nobreak #1\nobreak>\endgroup} |
| 49 |
\def\url{\begingroup\pathcats\setpath} |
| 50 |
\begin{document} |
| 51 |
\DocInput{showlabels.dtx} |
| 52 |
\PrintIndex |
| 53 |
\end{document} |
| 54 |
\endinput |
| 55 |
%% |
| 56 |
%% End of file `showlabels.drv'. |