xlcloud / papers / 2014 / reservation / acronym.sty @ master
Historique | Voir | Annoter | Télécharger (16,05 ko)
1 |
%% |
---|---|
2 |
%% This is file `acronym.sty', |
3 |
%% generated with the docstrip utility. |
4 |
%% |
5 |
%% The original source files were: |
6 |
%% |
7 |
%% acronym.dtx (with options: `acronym') |
8 |
%% Copyright 1995--2009 by Tobias Oetiker (tobi@oetiker.ch) |
9 |
%% and individual authors listed elsewhere. |
10 |
%% All rights reserved. |
11 |
%% |
12 |
%% This work may be distributed and/or modified under the conditions of |
13 |
%% the LaTeX Project Public License, either version 1.3 of this license |
14 |
%% or (at your option) any later version. The latest version of the |
15 |
%% license is in |
16 |
%% |
17 |
%% http://www.latex-project.org/lppl.txt |
18 |
%% |
19 |
%% and version 1.3 or later is part of all distributions of LaTeX |
20 |
%% version 2003/12/01 or later. |
21 |
%% |
22 |
%% This work has the LPPL maintenance status "maintained". |
23 |
%% The Current Maintainer of this work is Tobias Oetiker (oetiker@ee.ethz.ch). |
24 |
%% |
25 |
%% \CharacterTable |
26 |
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |
27 |
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |
28 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
29 |
%% Exclamation \! Double quote \" Hash (number) \# |
30 |
%% Dollar \$ Percent \% Ampersand \& |
31 |
%% Acute accent \' Left paren \( Right paren \) |
32 |
%% Asterisk \* Plus \+ Comma \, |
33 |
%% Minus \- Point \. Solidus \/ |
34 |
%% Colon \: Semicolon \; Less than \< |
35 |
%% Equals \= Greater than \> Question mark \? |
36 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
37 |
%% Right bracket \] Circumflex \^ Underscore \_ |
38 |
%% Grave accent \` Left brace \{ Vertical bar \| |
39 |
%% Right brace \} Tilde \~} |
40 |
%% |
41 |
%% |
42 |
\NeedsTeXFormat{LaTeX2e}[1999/12/01] |
43 |
\ProvidesPackage{acronym}[2012/10/29 |
44 |
v1.38 |
45 |
Support for acronyms (Tobias Oetiker)] |
46 |
\RequirePackage{suffix,xstring} |
47 |
\newif\ifAC@footnote |
48 |
\AC@footnotefalse |
49 |
\DeclareOption{footnote}{\AC@footnotetrue} |
50 |
\newif\ifAC@nohyperlinks |
51 |
\AC@nohyperlinksfalse |
52 |
\DeclareOption{nohyperlinks}{\AC@nohyperlinkstrue} |
53 |
\newif\ifAC@printonlyused |
54 |
\AC@printonlyusedfalse |
55 |
\DeclareOption{printonlyused}{\AC@printonlyusedtrue} |
56 |
\newif\ifAC@withpage |
57 |
\AC@withpagefalse |
58 |
\DeclareOption{withpage}{\AC@withpagetrue} |
59 |
\newif\ifAC@smaller |
60 |
\AC@smallerfalse |
61 |
\DeclareOption{smaller}{\AC@smallertrue} |
62 |
\newif\ifAC@dua |
63 |
\AC@duafalse |
64 |
\DeclareOption{dua}{\AC@duatrue} |
65 |
\newif\ifAC@nolist |
66 |
\AC@nolistfalse |
67 |
\DeclareOption{nolist}{\AC@nolisttrue\AC@nohyperlinkstrue} |
68 |
\ProcessOptions\relax |
69 |
\ifAC@smaller |
70 |
\RequirePackage{relsize} |
71 |
\newcommand*{\acsfont}[1]{\textsmaller{#1}} |
72 |
\else |
73 |
\newcommand*{\acsfont}[1]{#1} |
74 |
\fi |
75 |
\newcommand*{\acffont}[1]{#1} |
76 |
\newcommand*{\acfsfont}[1]{#1} |
77 |
\def\AC@hyperlink#1#2{#2} |
78 |
\def\AC@hypertarget#1#2{#2} |
79 |
\def\AC@phantomsection{} |
80 |
\ifAC@nohyperlinks |
81 |
\else |
82 |
\AtBeginDocument{% |
83 |
\@ifpackageloaded{hyperref} |
84 |
{\let\AC@hyperlink=\hyperlink |
85 |
\newcommand*\AC@raisedhypertarget[2]{% |
86 |
\Hy@raisedlink{\hypertarget{#1}{}}#2}% |
87 |
\let\AC@hypertarget=\AC@raisedhypertarget |
88 |
\def\AC@phantomsection{% |
89 |
\Hy@GlobalStepCount\Hy@linkcounter |
90 |
\edef\@currentHref{section*.\the \Hy@linkcounter}% |
91 |
\Hy@raisedlink{% |
92 |
\hyper@anchorstart{\@currentHref}\hyper@anchorend |
93 |
}% |
94 |
}% |
95 |
}{}}% |
96 |
\fi |
97 |
\AtBeginDocument{% |
98 |
\providecommand\texorpdfstring[2]{#1}% |
99 |
\providecommand\pdfstringdefDisableCommands[1]{}% |
100 |
\pdfstringdefDisableCommands{% |
101 |
\csname AC@starredfalse\endcsname |
102 |
\csname AC@footnotefalse\endcsname |
103 |
\let\AC@hyperlink\@secondoftwo |
104 |
\let\acsfont\relax |
105 |
\let\acffont\relax |
106 |
\let\acfsfont\relax |
107 |
\let\acused\relax |
108 |
\let\null\relax |
109 |
\def\AChy@call#1#2{% |
110 |
\ifx*#1\@empty |
111 |
\expandafter #2% |
112 |
\else |
113 |
#2{#1}% |
114 |
\fi |
115 |
}% |
116 |
\def\acs#1{\AChy@call{#1}\AC@acs}% |
117 |
\def\acl#1{\AChy@call{#1}\@acl}% |
118 |
\def\acf#1{\AChy@call{#1}\AChy@acf}% |
119 |
\def\ac#1{\AChy@call{#1}\@ac}% |
120 |
\def\acsp#1{\AChy@call{#1}\@acsp}% |
121 |
\def\aclp#1{\AChy@call{#1}\@aclp}% |
122 |
\def\acfp#1{\AChy@call{#1}\AChy@acfp}% |
123 |
\def\acp#1{\AChy@call{#1}\@acp}% |
124 |
\def\acfi#1{\AChy@call{#1}\AChy@acf}% |
125 |
\let\acsu\acs |
126 |
\let\aclu\acl |
127 |
\def\AChy@acf#1{\AC@acl{#1} (\AC@acs{#1})}% |
128 |
\def\AChy@acfp#1{\AC@aclp{#1} (\AC@acsp{#1})}% |
129 |
}% |
130 |
} |
131 |
\newtoks\AC@clearlist |
132 |
\newcommand*\AC@addtoAC@clearlist[1]{% |
133 |
\global\AC@clearlist\expandafter{\the\AC@clearlist\AC@reset{#1}}% |
134 |
} |
135 |
\newcommand*\acresetall{\the\AC@clearlist\AC@clearlist={}} |
136 |
\def\AC@reset#1{% |
137 |
\global\expandafter\let\csname ac@#1\endcsname\relax |
138 |
} |
139 |
\newcommand*\AC@used{@<>@<>@} |
140 |
\newcommand{\AC@populated}{} |
141 |
\newcommand*{\AC@logged}[1]{% |
142 |
\acronymused{#1}% mark it as used in the current run too |
143 |
\@bsphack |
144 |
\protected@write\@auxout{}{\string\acronymused{#1}}% |
145 |
\@esphack} |
146 |
\AtBeginDocument{% |
147 |
\pdfstringdefDisableCommands{% |
148 |
\let\AC@logged\@gobble |
149 |
}% |
150 |
} |
151 |
\newcommand*{\acronymused}[1]{% |
152 |
\expandafter\ifx\csname acused@#1\endcsname\AC@used |
153 |
\relax |
154 |
\else |
155 |
\global\expandafter\let\csname acused@#1\endcsname\AC@used |
156 |
\global\let\AC@populated\AC@used |
157 |
\fi} |
158 |
\newcommand*\newacro[1]{% |
159 |
\@ifnextchar[{\AC@newacro{#1}}{\AC@newacro{#1}[#1]}} |
160 |
\newcommand\AC@newacro{} |
161 |
\def\AC@newacro#1[#2]#3{% |
162 |
\expandafter\gdef\csname fn@#1\endcsname{{#2}{#3}}% |
163 |
} |
164 |
\newcommand*\acrodef[1]{% |
165 |
\@ifnextchar[{\AC@acrodef{#1}}{\AC@acrodef{#1}[#1]}} |
166 |
\newcommand\AC@acrodef{} |
167 |
\def\AC@acrodef#1[#2]#3{% |
168 |
\@bsphack |
169 |
\protected@write\@auxout{}{\string\newacro{#1}[#2]{#3}}% |
170 |
\@esphack} |
171 |
\def\bflabel#1{{\textbf{\textsf{#1}}\hfill}} |
172 |
\newenvironment{AC@deflist}[1]% |
173 |
{\ifAC@nolist% |
174 |
\else% |
175 |
\raggedright\begin{list}{}% |
176 |
{\settowidth{\labelwidth}{\textbf{\textsf{#1}}}% |
177 |
\setlength{\leftmargin}{\labelwidth}% |
178 |
\addtolength{\leftmargin}{\labelsep}% |
179 |
\renewcommand{\makelabel}{\bflabel}}% |
180 |
\fi}% |
181 |
{\ifAC@nolist% |
182 |
\else% |
183 |
\end{list}% |
184 |
\fi}% |
185 |
\newcommand{\acroextra}[1]{} |
186 |
\newenvironment{acronym}[1][1]{% |
187 |
\providecommand*{\acro}{\AC@acro}% |
188 |
\providecommand*{\acroplural}{\AC@acroplural}% |
189 |
\providecommand*{\acroindefinite}{\AC@acroindefinite}% |
190 |
\long\def\acroextra##1{##1}% |
191 |
\def\@tempa{1}\def\@tempb{#1}% |
192 |
\ifx\@tempa\@tempb% |
193 |
\global\expandafter\let\csname ac@des@mark\endcsname\AC@used% |
194 |
\ifAC@nolist% |
195 |
\else% |
196 |
\begin{description}% |
197 |
\fi% |
198 |
\else% |
199 |
\begin{AC@deflist}{#1}% |
200 |
\fi% |
201 |
}% |
202 |
{% |
203 |
\ifx\AC@populated\AC@used\else% |
204 |
\ifAC@nolist% |
205 |
\else% |
206 |
\item[]\relax% |
207 |
\fi% |
208 |
\fi% |
209 |
\expandafter\ifx\csname ac@des@mark\endcsname\AC@used% |
210 |
\ifAC@nolist% |
211 |
\else% |
212 |
\end{description}% |
213 |
\fi% |
214 |
\else% |
215 |
\end{AC@deflist}% |
216 |
\fi}% |
217 |
\newcommand*\AC@acro[1]{% |
218 |
\@ifnextchar[{\AC@@acro{#1}}{\AC@@acro{#1}[#1]}} |
219 |
\newcommand\AC@@acro{} |
220 |
\def\AC@@acro#1[#2]#3{% |
221 |
\ifAC@nolist% |
222 |
\else% |
223 |
\ifAC@printonlyused% |
224 |
\expandafter\ifx\csname acused@#1\endcsname\AC@used% |
225 |
\item[\protect\AC@hypertarget{#1}{\acsfont{#2}}] #3% |
226 |
\ifAC@withpage% |
227 |
\expandafter\ifx\csname r@acro:#1\endcsname\relax% |
228 |
\PackageInfo{acronym}{% |
229 |
Acronym #1 used in text but not spelled out in |
230 |
full in text}% |
231 |
\else% |
232 |
\dotfill\pageref{acro:#1}% |
233 |
\fi\\% |
234 |
\fi% |
235 |
\fi% |
236 |
\else% |
237 |
\item[\protect\AC@hypertarget{#1}{\acsfont{#2}}] #3% |
238 |
\fi% |
239 |
\fi% |
240 |
\begingroup |
241 |
\def\acroextra##1{}% |
242 |
\@bsphack |
243 |
\protected@write\@auxout{}% |
244 |
{\string\newacro{#1}[\string\AC@hyperlink{#1}{#2}]{#3}}% |
245 |
\@esphack |
246 |
\endgroup} |
247 |
\newcommand*\newacroindefinite[3]{% |
248 |
\expandafter\gdef\csname fn@#1@IS\endcsname{#2}% |
249 |
\expandafter\gdef\csname fn@#1@IL\endcsname{#3}% |
250 |
} |
251 |
\newcommand*\acrodefindefinite[3]{% |
252 |
\@bsphack |
253 |
\protected@write\@auxout{}{\string\newacroindefinite{#1}{#2}{#3}}% |
254 |
\@esphack |
255 |
} |
256 |
\newcommand\AC@acroindefinite[3]{ |
257 |
\@bsphack |
258 |
\protected@write\@auxout{}% |
259 |
{\string\newacroindefinite{#1}{\string\AC@hyperlink{#1}{#2}}{#3}}% |
260 |
\@esphack |
261 |
} |
262 |
\newcommand*\newacroplural[1]{% |
263 |
\@ifnextchar[%] |
264 |
{\AC@newacroplurali{#1}}{\AC@newacropluralii{#1}}% |
265 |
} |
266 |
\newcommand\AC@newacroplurali{} |
267 |
\def\AC@newacroplurali#1[#2]#3{% |
268 |
\expandafter\gdef\csname fn@#1@PS\endcsname{#2}% |
269 |
\expandafter\gdef\csname fn@#1@PL\endcsname{#3}% |
270 |
} |
271 |
\newcommand\AC@newacropluralii[2]{% |
272 |
\expandafter\gdef\csname fn@#1@PL\endcsname{#2}% |
273 |
} |
274 |
\newcommand*\acrodefplural[1]{% |
275 |
\@ifnextchar[%] |
276 |
{\AC@acrodefplurali{#1}}{\AC@acrodefpluralii{#1}}% |
277 |
} |
278 |
\newcommand\AC@acrodefplurali{} |
279 |
\def\AC@acrodefplurali#1[#2]#3{% |
280 |
\@bsphack |
281 |
\protected@write\@auxout{}{\string\newacroplural{#1}[#2]{#3}}% |
282 |
\@esphack |
283 |
} |
284 |
\newcommand\AC@acrodefpluralii[2]{% |
285 |
\@bsphack |
286 |
\protected@write\@auxout{}{\string\newacroplural{#1}{#2}}% |
287 |
\@esphack |
288 |
} |
289 |
\newcommand*\AC@acroplural[1]{% |
290 |
\@ifnextchar[%] |
291 |
{\AC@acroplurali{#1}}{\AC@acropluralii{#1}}% |
292 |
} |
293 |
\newcommand\AC@acroplurali{} |
294 |
\def\AC@acroplurali#1[#2]#3{% |
295 |
\@bsphack |
296 |
\protected@write\@auxout{}% |
297 |
{\string\newacroplural{#1}[\string\AC@hyperlink{#1}{#2}]{#3}}% |
298 |
\@esphack |
299 |
} |
300 |
\newcommand\AC@acropluralii[2]{ |
301 |
\@bsphack |
302 |
\protected@write\@auxout{}% |
303 |
{\string\newacroplural{#1}[\string\AC@hyperlink{#1}{\AC@acs{#1}}]{#2}}% |
304 |
\@esphack |
305 |
} |
306 |
\newcommand*\AC@aclp[1]{% |
307 |
\ifcsname fn@#1@PL\endcsname |
308 |
\csname fn@#1@PL\endcsname |
309 |
\else |
310 |
\AC@acl{#1}s% |
311 |
\fi |
312 |
} |
313 |
\newcommand*\AC@acsp[1]{% |
314 |
\ifcsname fn@#1@PS\endcsname |
315 |
\csname fn@#1@PS\endcsname |
316 |
\else |
317 |
\AC@acs{#1}s% |
318 |
\fi |
319 |
} |
320 |
|
321 |
\newif\ifAC@starred |
322 |
\newcommand*\AC@get[3]{% |
323 |
\ifx#1\relax |
324 |
\PackageWarning{acronym}{Acronym `#3' is not defined}% |
325 |
\textbf{#3!}% |
326 |
\else |
327 |
\expandafter#2#1% |
328 |
\fi} |
329 |
\newcommand*\AC@acs[1]{% |
330 |
\mbox{\expandafter\AC@get\csname fn@#1\endcsname\@firstoftwo{#1}}} |
331 |
\newcommand*\AC@acl[1]{% |
332 |
\expandafter\AC@get\csname fn@#1\endcsname\@secondoftwo{#1}} |
333 |
\newcommand*{\acs}{\AC@starredfalse\protect\acsa}% |
334 |
\WithSuffix\newcommand\acs*{\AC@starredtrue\protect\acsa}% |
335 |
\newcommand*{\acsa}[1]{% |
336 |
\texorpdfstring{\protect\@acs{#1}}{#1}} |
337 |
\newcommand*{\@acs}[1]{% |
338 |
\acsfont{\AC@acs{#1}}% |
339 |
%% having a footnote on acs sort of defeats the purpose |
340 |
%% \ifAC@footnote |
341 |
%% \footnote{\AC@acl{#1}{}}% |
342 |
%% \fi |
343 |
\ifAC@starred\else\AC@logged{#1}\fi} |
344 |
\newcommand*{\acl}{\AC@starredfalse\protect\@acl}% |
345 |
\WithSuffix\newcommand\acl*{\AC@starredtrue\protect\@acl}% |
346 |
\newcommand*{\@acl}[1]{% |
347 |
\AC@acl{#1}% |
348 |
\ifAC@starred\else\AC@logged{#1}\fi} |
349 |
\newcommand*\@verridelabel[1]{% |
350 |
\@bsphack |
351 |
\protected@write\@auxout{}{\string\undonewlabel{#1}}% |
352 |
\label{#1}% |
353 |
\@overriddenmessage rs{#1}% |
354 |
\@esphack |
355 |
}% |
356 |
\newcommand*\undonewlabel{\@und@newl@bel rs}% |
357 |
\newcommand*\@und@newl@bel[3]{% |
358 |
\@ifundefined{#1@#3}% |
359 |
{% |
360 |
\global\expandafter\let\csname#2@#3\endcsname\@nnil |
361 |
}% |
362 |
{% |
363 |
\global\expandafter\let\csname#1@#3\endcsname\relax |
364 |
}% |
365 |
}% |
366 |
\newcommand*\@overriddenmessage[3]{% |
367 |
\expandafter\ifx\csname#2@#3\endcsname\@nnil |
368 |
\expandafter\@firstoftwo |
369 |
\else |
370 |
\@ifundefined{#1@#3}% |
371 |
{% |
372 |
\@ifundefined{#2@#3}% |
373 |
{\expandafter\@firstoftwo}% |
374 |
{\expandafter\@secondoftwo}% |
375 |
}% |
376 |
{\expandafter\@secondoftwo}% |
377 |
\fi |
378 |
{% |
379 |
\PackageInfo{acronym}{Label `#3' newly defined as it |
380 |
shall be overridden^^Jalthough it is yet undefined}% |
381 |
\global\expandafter\let\csname#2@#3\endcsname\empty |
382 |
}% |
383 |
{% |
384 |
\PackageInfo{acronym}{Label `#3' overridden}% |
385 |
\@ifundefined{#2@#3}{% |
386 |
\global\expandafter\let\csname#2@#3\endcsname\empty}{}% |
387 |
\expandafter\g@addto@macro\csname#2@#3\endcsname{i}% |
388 |
}% |
389 |
}% |
390 |
\newcommand*\ac@testdef[3]{% |
391 |
\@ifundefined{s@#2}\@secondoftwo\@firstofone |
392 |
{% |
393 |
\expandafter\ifx\csname s@#2\endcsname\empty |
394 |
\expandafter\@firstofone |
395 |
\else |
396 |
\expandafter\xdef\csname s@#2\endcsname{% |
397 |
\expandafter\expandafter |
398 |
\expandafter\@gobble |
399 |
\csname s@#2\endcsname |
400 |
}% |
401 |
\expandafter\@gobble |
402 |
\fi |
403 |
}% |
404 |
{% |
405 |
\@testdef{#1}{#2}{#3}% |
406 |
}% |
407 |
}% |
408 |
\protected@write\@auxout{}{% |
409 |
\string\reset@newl@bel |
410 |
}% |
411 |
\newcommand*\reset@newl@bel{% |
412 |
\ifx\@newl@bel\@testdef |
413 |
\let\@newl@bel\ac@testdef |
414 |
\let\undonewlabel\@gobble |
415 |
\fi |
416 |
}% |
417 |
\newcommand*\AC@placelabel[1]{% |
418 |
\expandafter\ifx\csname ac@#1\endcsname\AC@used |
419 |
\else |
420 |
{\AC@phantomsection\@verridelabel{acro:#1}}% |
421 |
\ifAC@starred\else% |
422 |
\global\expandafter\let\csname ac@#1\endcsname\AC@used |
423 |
\fi% |
424 |
\AC@addtoAC@clearlist{#1}% |
425 |
\fi |
426 |
}% |
427 |
\newcommand*{\acf}{\AC@starredfalse\protect\acfa}% |
428 |
\WithSuffix\newcommand\acf*{\AC@starredtrue\protect\acfa}% |
429 |
\newcommand*{\acfa}[1]{% |
430 |
\texorpdfstring{\protect\@acf{#1}}{\AC@acl{#1} (#1)}} |
431 |
\newcommand*{\@acf}[1]{% |
432 |
\ifAC@footnote |
433 |
\acsfont{\AC@acs{#1}}% |
434 |
\footnote{\AC@placelabel{#1}\hskip\z@\AC@acl{#1}{}}% |
435 |
\else |
436 |
\acffont{% |
437 |
\AC@placelabel{#1}\hskip\z@\AC@acl{#1}% |
438 |
\nolinebreak[3] % |
439 |
\acfsfont{(\acsfont{\AC@acs{#1}})}% |
440 |
}% |
441 |
\fi |
442 |
\ifAC@starred\else\AC@logged{#1}\fi} |
443 |
\newcommand*{\ac}{\AC@starredfalse\protect\@ac}% |
444 |
\WithSuffix\newcommand\ac*{\AC@starredtrue\protect\@ac}% |
445 |
\newcommand{\@ac}[1]{% |
446 |
\ifAC@dua |
447 |
\ifAC@starred\acl*{#1}\else\acl{#1}\fi% |
448 |
\else |
449 |
\expandafter\ifx\csname ac@#1\endcsname\AC@used% |
450 |
\ifAC@starred\acs*{#1}\else\acs{#1}\fi% |
451 |
\else |
452 |
\ifAC@starred\acf*{#1}\else\acf{#1}\fi% |
453 |
\fi |
454 |
\fi} |
455 |
\newcommand{\@firstupper}[1]{% |
456 |
\StrLeft{#1}{1}[\firstletter]% |
457 |
\StrGobbleLeft{#1}{1}[\remainder]% |
458 |
\MakeUppercase\firstletter\remainder |
459 |
} |
460 |
\newcommand*{\iac}{\AC@starredfalse\protect\@iac}% |
461 |
\WithSuffix\newcommand\iac*{\AC@starredtrue\protect\@iac}% |
462 |
\newcommand*{\Iac}{\AC@starredfalse\protect\@Iac}% |
463 |
\WithSuffix\newcommand\Iac*{\AC@starredtrue\protect\@Iac}% |
464 |
\newcommand*{\@iaci}[1]{% |
465 |
\ifcsname fn@#1@IL\endcsname |
466 |
\ifAC@dua |
467 |
\csname fn@#1@IL\endcsname% |
468 |
\else |
469 |
\expandafter\ifx\csname ac@#1\endcsname\AC@used% |
470 |
\csname fn@#1@IS\endcsname% |
471 |
\else |
472 |
\csname fn@#1@IL\endcsname% |
473 |
\fi |
474 |
\fi |
475 |
\else |
476 |
a% |
477 |
\fi |
478 |
} |
479 |
\newcommand*{\@iac}[1]{% |
480 |
\@iaci{#1} \ifAC@starred\ac*{#1}\else\ac{#1}\fi% |
481 |
} |
482 |
\newcommand*{\@Iac}[1]{% |
483 |
\@firstupper{\@iaci{#1}} \ifAC@starred\ac*{#1}\else\ac{#1}\fi% |
484 |
} |
485 |
\newcommand*{\acsp}{\AC@starredfalse\protect\acspa}% |
486 |
\WithSuffix\newcommand\acsp*{\AC@starredtrue\protect\acspa}% |
487 |
\newcommand*{\acspa}[1]{% |
488 |
\texorpdfstring{\protect\@acsp{#1}}{\AC@acsp{#1}}} |
489 |
\newcommand*{\@acsp}[1]{% |
490 |
\acsfont{\AC@acsp{#1}}% |
491 |
\ifAC@starred\else\AC@logged{#1}\fi} |
492 |
\newcommand*{\aclp}{\AC@starredfalse\protect\@aclp}% |
493 |
\WithSuffix\newcommand\aclp*{\AC@starredtrue\protect\@aclp}% |
494 |
\newcommand*{\@aclp}[1]{% |
495 |
\AC@aclp{#1}% |
496 |
\ifAC@starred\else\AC@logged{#1}\fi} |
497 |
\newcommand*{\acfp}{\AC@starredfalse\protect\acfpa}% |
498 |
\WithSuffix\newcommand\acfp*{\AC@starredtrue\protect\acfpa}% |
499 |
\newcommand*{\acfpa}[1]{% |
500 |
\texorpdfstring{\protect\@acfp{#1}}{\AC@aclp{#1} (\AC@acsp{#1})}} |
501 |
\newcommand*{\@acfp}[1]{% |
502 |
\ifAC@footnote |
503 |
\acsfont{\AC@acsp{#1}}% |
504 |
\footnote{\AC@placelabel{#1}\hskip\z@\AC@aclp{#1}{}}% |
505 |
\else |
506 |
\acffont{% |
507 |
\AC@placelabel{#1}\hskip\z@\AC@aclp{#1}% |
508 |
\nolinebreak[3] % |
509 |
\acfsfont{(\acsfont{\AC@acsp{#1}})}% |
510 |
}% |
511 |
\fi |
512 |
\ifAC@starred\else\AC@logged{#1}\fi} |
513 |
\newcommand*{\acp}{\AC@starredfalse\protect\@acp}% |
514 |
\WithSuffix\newcommand\acp*{\AC@starredtrue\protect\@acp}% |
515 |
\newcommand{\@acp}[1]{% |
516 |
\ifAC@dua |
517 |
\ifAC@starred\aclp*{#1}\else\aclp{#1}\fi% |
518 |
\else |
519 |
\expandafter\ifx\csname ac@#1\endcsname\AC@used |
520 |
\ifAC@starred\acsp*{#1}\else\acsp{#1}\fi% |
521 |
\else |
522 |
\ifAC@starred\acfp*{#1}\else\acfp{#1}\fi% |
523 |
\fi |
524 |
\fi} |
525 |
\newcommand*{\acfi}{\AC@starredfalse\protect\acfia}% |
526 |
\WithSuffix\newcommand\acfi*{\AC@starredtrue\protect\acfia}% |
527 |
\newcommand{\acfia}[1]{% |
528 |
{\itshape \AC@acl{#1} \nolinebreak[3]} (\ifAC@starred\acs*{#1}\else\acs{#1}\fi)} |
529 |
\newcommand{\acused}[1]{% |
530 |
\global\expandafter\let\csname ac@#1\endcsname\AC@used% |
531 |
\AC@addtoAC@clearlist{#1}} |
532 |
\newcommand*{\acsu}{\AC@starredfalse\protect\acsua}% |
533 |
\WithSuffix\newcommand\acsu*{\AC@starredtrue\protect\acsua}% |
534 |
\newcommand{\acsua}[1]{% |
535 |
\ifAC@starred\acs*{#1}\else\acs{#1}\fi\acused{#1}} |
536 |
\newcommand*{\aclu}{\AC@starredfalse\protect\aclua}% |
537 |
\WithSuffix\newcommand\aclu*{\AC@starredtrue\protect\aclua}% |
538 |
\newcommand{\aclua}[1]{% |
539 |
\ifAC@starred\acl*{#1}\else\acl{#1}\fi\acused{#1}} |
540 |
\endinput |
541 |
%% |
542 |
%% End of file `acronym.sty'. |