| 1 |
%% |
| 2 |
%% This is file `lwarp-acronym.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `acronym') |
| 8 |
%% This is a generated file. |
| 9 |
%% Copyright 2016-2026 Brian Dunn |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 17 |
%% version 2005/12/01 or later. |
| 18 |
|
| 19 |
\LWR@ProvidesPackagePass{acronym}[2020/04/17] |
| 20 |
|
| 21 |
\expandafter\def\csname AC@\AC@prefix{}@acro\endcsname#1[#2]#3{% |
| 22 |
\ifAC@nolist% |
| 23 |
\else% |
| 24 |
\ifnum% |
| 25 |
\ifAC@printonlyused 1% |
| 26 |
\else\ifAC@printonlyreused 1% |
| 27 |
\else 0\fi\fi% |
| 28 |
=1\relax% |
| 29 |
\ifnum% |
| 30 |
\ifAC@printonlyused% |
| 31 |
\expandafter\ifx\csname acused@#1@once\endcsname\AC@used 1 \else 0 \fi% |
| 32 |
\else\ifAC@printonlyreused% |
| 33 |
\expandafter\ifx\csname acused@#1@twice\endcsname\AC@used 1 \else 0 \fi% |
| 34 |
\else 0 \fi\fi% |
| 35 |
=1\relax% |
| 36 |
\item[\protect\AC@hypertarget{#1}{% |
| 37 |
\AC@hyperref[acro:#1]{\aclabelfont{#2}\hfill}% |
| 38 |
}]\AC@hyperref[acro:#1]{#3}% |
| 39 |
\ifAC@withpage% |
| 40 |
\expandafter\ifx\csname r@acro:#1\endcsname\relax% |
| 41 |
\PackageInfo{acronym}{% |
| 42 |
Acronym #1 used in text but not spelled out in |
| 43 |
full in text}% |
| 44 |
\else% |
| 45 |
\qquad --- % lwarp |
| 46 |
\AC@pageref{acro:#1}% |
| 47 |
\fi% |
| 48 |
\fi\\% |
| 49 |
\fi% |
| 50 |
\else% |
| 51 |
\item[\protect\AC@hypertarget{#1}{\AC@hyperref[acro:#1]{\aclabelfont{#2}\hfill}}]% |
| 52 |
\AC@hyperref[acro:#1]{#3}% |
| 53 |
\fi% |
| 54 |
\fi% |
| 55 |
\begingroup |
| 56 |
\def\acroextra##1{}% |
| 57 |
\@bsphack |
| 58 |
\ifAC@printonlyreused% |
| 59 |
\protected@write\@auxout{}{% |
| 60 |
\string\newacro{#1}[% |
| 61 |
\expandafter\ifx\csname acused@#1@twice\endcsname\AC@used% |
| 62 |
\string\AC@hyperlink{#1}{#2}% |
| 63 |
\else% |
| 64 |
{#2}% |
| 65 |
\fi% |
| 66 |
]{#3}% |
| 67 |
}% |
| 68 |
\else% |
| 69 |
\protected@write\@auxout{}{% |
| 70 |
\string\newacro{#1}[\string\AC@hyperlink{#1}{#2}]{#3}% |
| 71 |
}% |
| 72 |
\fi% |
| 73 |
\@esphack |
| 74 |
\endgroup |
| 75 |
\ignorespaces} |
| 76 |
|
| 77 |
\renewcommand{\acfia}[1]{% |
| 78 |
{\textit{\AC@acl{#1}}} (\ifAC@starred\acs*{#1}\else\acs{#1}\fi)} |
| 79 |
|
| 80 |
\VerifyCommand[lwarp][acronym]{\AC@acs}{E2119484F7CD2A5D4B064390C6BB806F} |
| 81 |
|
| 82 |
\renewcommand*\AC@acs[1]{% |
| 83 |
\expandafter\AC@get\csname fn@#1\endcsname\@firstoftwo{#1}} |
| 84 |
|
| 85 |
\renewcommand{\@starttoc}[1]{% |
| 86 |
\LWR@htmlelementclass{nav}{#1} |
| 87 |
\LetLtxMacro\@verridelabel\@gobble |
| 88 |
\LWR@orig@starttoc{#1} |
| 89 |
\LWR@htmlelementclassend{nav}{#1} |
| 90 |
} |
| 91 |
|
| 92 |
\VerifyCommand[lwarp][acronym]{\AC@und@newl@bel}{661CF70DCB3E1AA8871B26E785BE7C86} |
| 93 |
|
| 94 |
\renewcommand*\AC@und@newl@bel[3]{% |
| 95 |
\@ifundefined{#1@#3}% |
| 96 |
{% |
| 97 |
\global\expandafter\let\csname#2@#3\endcsname\@nnil |
| 98 |
\global\expandafter\let\csname#2@#3@lwarp\endcsname\@nnil% lwarp |
| 99 |
\global\expandafter\let\csname#2@#3@cref\endcsname\@nnil% lwarp |
| 100 |
}% |
| 101 |
{% |
| 102 |
\global\expandafter\let\csname#1@#3\endcsname\relax |
| 103 |
\global\expandafter\let\csname#1@#3@lwarp\endcsname\relax% lwarp |
| 104 |
\global\expandafter\let\csname#1@#3@cref\endcsname\relax% lwarp |
| 105 |
}% |
| 106 |
}% |
| 107 |
|
| 108 |
\BeforeBeginEnvironment{acronym}{\LWR@stoppars} |
| 109 |
\AfterEndEnvironment{acronym}{\LWR@startpars} |
| 110 |
|
| 111 |
\AtBeginDocument{ |
| 112 |
\LetLtxMacro\AC@hyperlink\hyperlink |
| 113 |
\LetLtxMacro\AC@hyperref\hyperref |
| 114 |
\newcommand*\AC@raisedhypertarget[2]{% |
| 115 |
\hypertarget{#1}{}% |
| 116 |
#2}% |
| 117 |
\LetLtxMacro\AC@hypertarget\AC@raisedhypertarget |
| 118 |
\def\AC@phantomsection{% |
| 119 |
}% |
| 120 |
} |
| 121 |
|
| 122 |
\appto\LWR@restoreorigformatting{% |
| 123 |
\LetLtxMacro\AC@hyperlink\@secondoftwo% |
| 124 |
\LetLtxMacro\AC@hyperref\LWR@nullify@hyperref% |
| 125 |
} |
| 126 |
|
| 127 |
|
| 128 |
\endinput |
| 129 |
%% |
| 130 |
%% End of file `lwarp-acronym.sty'. |