summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/nameauth/nameauth.dtx
blob: 07caea8592ae961cbc64fef98710369e2c395128 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
% \iffalse meta-comment
%
% Copyright (C) 2011 by Charles P. Schaum <charles dot schaum at att dot net>
% ---------------------------------------------------------------------------
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3 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 Charles P. Schaum.
%
% This work consists of the files nameauth.dtx and nameauth.ins
% and the derived filebase nameauth.sty.
%
% \fi
%
% \iffalse
%<*driver>
\ProvidesFile{nameauth.dtx}
%</driver>
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
%<package>\ProvidesPackage{nameauth}
%<*package>
    [2012/02/06 v0.86 name authority macros to aid consistent display and indexing of names]
%</package>
%
%<*driver>
\documentclass{ltxdoc}
\usepackage[utf8]{inputenc}
\usepackage[TS1,T1]{fontenc}
\usepackage{hologo}
\usepackage{lmodern}
\usepackage{makeidx}
\usepackage{newunicodechar}
\usepackage{nameauth}[2012/02/06]
\begingroup\lccode`!=`\\\lowercase{\endgroup\def\bsc{!}}
\makeindex
\frenchspacing
\DeclareTextSymbolDefault{\textlongs}{TS1}
\DeclareTextSymbol{\textlongs}{TS1}{115}
\newunicodechar{ſ}{\textlongs}
\newunicodechar{ā}{\=a}
\newunicodechar{ṃ}{\d{m}}
\EnableCrossrefs
\CodelineIndex
\RecordChanges
\begin{document}
  \DocInput{nameauth.dtx}
  \PrintChanges
  \PrintIndex
\end{document}
%</driver>
% \fi
%
% \CheckSum{520}
%
% \CharacterTable
%  {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
%   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
%   Digits        \0\1\2\3\4\5\6\7\8\9
%   Exclamation   \!     Double quote  \"     Hash (number) \#
%   Dollar        \$     Percent       \%     Ampersand     \&
%   Acute accent  \'     Left paren    \(     Right paren   \)
%   Asterisk      \*     Plus          \+     Comma         \,
%   Minus         \-     Point         \.     Solidus       \/
%   Colon         \:     Semicolon     \;     Less than     \<
%   Equals        \=     Greater than  \>     Question mark \?
%   Commercial at \@     Left bracket  \[     Backslash     \\
%   Right bracket \]     Circumflex    \^     Underscore    \_
%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%   Right brace   \}     Tilde         \~}
%
%
% \changes{v0.7}{2011/12/26}{Initial version}
% \changes{v0.75}{2012/01/19}{New features described; documentation clarified}
% \changes{v0.8}{2012/01/29}{Refactoring to improve functionality and compatibility; documentation expanded}
% \changes{v0.85}{2012/02/05}{Added comma suppression and additional functionality; revised documentation}
% \changes{v0.86}{2012/02/06}{Fixed some regressions}
%
% \DoNotIndex{\newcommand, \newenvironment, \@empty, \@gobble, \bfseries, \bgroup, \def, \egroup, \else, \endcsname, \endinput, \ExecuteOptions, \fi, \if, \ifx, \IfBooleanTF, \IfValueTF, \itshape, \let, \newif, \relax, \renewcommand, \RequirePackage, \scshape, \space, \DeclareDocumentCommand, \DeclareOption, \ProcessOptions, \@ifclassloaded, \@token,  \@period, \csgdef, \csundef, \detokenize, \expandafter, \Forenames, \futurelet, \if@nameauth@DoComma, \if@nameauth@DoFormat, \if@nameauth@dtx, \if@nameauth@Punct, \ifcsname, \index, \PackageWarning, \Surnames, \Surnamesi, \Surnamesii, \TestDot, \TestEnd, \TestPunct, \TestStop, \zap@space, \edef}
%
% \providecommand*{\url}{\texttt}
% \GetFileInfo{nameauth.dtx}
% \title{The \textsf{nameauth} package}
% \author{Charles P. Schaum \\ \texttt{charles dot schaum at att dot net}}
% \date{\fileversion~from \filedate}
% \maketitle
%
% \begin{abstract}
% \noindent These macros help an author to encode the (optional) forenames and (mandatory) surnames of people in order to normalize occurrences in the text and entries in the index. This package is intended for Western-style naming conventions.
% \end{abstract}
%
% \section{Introduction}
%
% Suppose you were working on a collection of essays. Depending on the permissions governing the essays, you might need to allow variance in the spelling of people's names. You would use either a house reference, a research library, or an encyclopedic source to decide on authoritative name forms. Your index might use abbreviated versions of those forms. Either a substantive or copy editor would keep track of the main name form, the variants, and their relationship to the index. For optimal quality, that would require a proofreading pass with queries to the editor. That adds time and cost to the job. If the author or editor can handle these details in advance, the result trims overhead cost. That could make a prospective author or freelance editor more likely to be selected for publication.
%
% \subsection{Design Decisions}
%
% This package assumes that an author or editor wants to minimize keystrokes. The default behavior sets the first occurrence of a person's name in small caps and prints out that full name. Subsequent occurrences set the last name only in the running text font. Considerable variation from the defaults is possible.
%
% \subsection{Thanks}
%
% Thanks to \Name[Marc van]{Dongen}, \Name[Enrico]{Gregorio}, \Name[Philipp]{Stephani}, \Name[Heiko]{Oberdiek}, and \Name[Uwe]{Lueck} for their invaluable assistance. Marc showed me the basic structure using the \textsf{xparse} package. Enrico and Philipp helped with generating control sequences and sanitizing. Heiko gave a space-removing solution that could be passed as an argument in a macro. Code adapted from Uwe's work on the texhax list enabled the routines to function with the \textsf{microtype} package.
%
% \section{Usage}
%
% \subsection{Package Options}
% If the default behavior is not desired, the following options easily alter it. They are, as follows:
% \changes{v0.85}{2012/02/05}{Added new class options}
%
% \begin{quote}
% \begin{tabular}{lp{3in}}
% \texttt{mainmatter} & The default behavior triggers special typesetting of the first occurrence of a name, starting at the beginning of a document.\\[1ex]
% \texttt{frontmatter} & This option suppresses the special typesetting of the first occurrence of a name before the invocation of \cmd{\NamesActive}. This option fits well with front matter from a contributor who may not intend the same formatting and emphasis found in the main matter. The indexing and aliasing features of the package remain operative. \emph{Note}: One can switch at will between formatted and non-formatted sections; see Section \ref{sec:SectionFormat}.\\[2ex]
% \texttt{smallcaps} & The default behavior when a name is first encountered is to print it in small caps.\\[1ex]
% \texttt{italic} & This option causes the first occurrence of the name to be italicized.\\[1ex]
% \texttt{boldface} & This option causes the first occurrence of the name to be set in boldface.\\[1ex]
% \texttt{noformat} & This option suppresses document formatting after the invocation of \cmd{\NamesActive}. If an author wants the indexing and aliasing functions without any special typesetting, this option accomplishes that easily. \emph{Note}: One can override the name typesetting options manually; see Subsection \ref{sec:FontAttributes}. This option is \emph{not} equivalent to \texttt{frontmatter}. The latter functions independently and never produces any formatting. This approach allows one to toggle formatting on and off without retyping the document. With \cmd{\NamesFormat} It anticipates variation among publishers' house styles.\\[1ex]
% \texttt{nocomma} & The default behavior suppresses printing of commas between surnames and suffixes, following modern styles like \emph{Chicago Manual of Style}. See Subsection \ref{sec:suffix} for implications of this behavior.\\[1ex]
% \texttt{comma} &Print commas between surnames and suffixes, following older styles. See Subsection \ref{sec:suffix}.\\[1ex]
% \end{tabular}
% \end{quote}
% \clearpage
%
% \subsection{Quick Start Guide}
% \changes{v0.8}{2012/01/29}{Added quick start guide for the impatient}
% \changes{v0.85}{2012/02/05}{Updated quick start guide}
%
% This page and the next comprise a ``cheat sheet'' for the impatient. None of the examples in this subsection generate index entries. These examples simply help you get used to the package:
%
% \begin{enumerate}\setlength\itemsep{0pt}\small
% \item The indexed forms of the names always remain the same.
% \item Always use the same form of reference, e.g., |\Name[John]{Smith}| or\newline |\Name{Louis}[XIV]|, otherwise point 1 will become false.
% \item Trade work for consistency. For example, |\Name[J.Q.]{Public}[Jane Q.]| can be moved around  anywhere when you rearrange text and the first reference will always be the longer, optional form. |\Name[J.Q.]{Public}| might not do that.
% \item Checking against the index will help you debug your \cmd{\Name} references, \emph{inter alia}.
% \item Start using the macros you \emph{need}, then work from there.
% \end{enumerate}
%
% \bgroup\small
% \begin{tabular}{p{1.8in}p{2.3in}}
% \normalsize\strut\textbf{I want to\dots} & \normalsize\textbf{I need to use} (for example)\dots \\\hline
% Print a full Western name (first reference) & |\Name*[John]{Smith}| or\newline |\Name[John]{Smith}|\\\hline
% Full Western name & |\Name*[John]{Smith}|\\\hline
% Short Western name (subsequent reference) & |\Name[John]{Smith}|\\\hline
% Print a Western name that has a longer form in the text than in the index (first reference) & |\Name*[J.Q.]{Public}[Jane Q.]| or\newline  |\Name[J.Q.]{Public}[Jane Q.]|\\\hline
% Full name without longer form & |\Name*[J.Q.]{Public}|\\\hline
% Same person, last name only (subsequent reference) & |\Name[J.Q.]{Public}[Jane Q.]| or\newline \dag|\Name[J.Q.]{Public}|\\\hline
% Print an ancient name & |\Name{Plato}| or |\Name*{Plato}|\\\hline
% Print a full Eastern name (first reference) & |\Name*{Mao}[Tse-tung]| or\newline |\Name{Mao}[Tse-tung]|\\\hline
% Full Eastern name & |\Name*{Mao}[Tse-tung]|\\\hline
% Short Eastern name (subsequent reference) & |\Name{Mao}[Tse-tung]|\\\hline
% Print a full ``royal'' name (first reference) & |\Name*{Louis}[XIV]| or\newline |\Name{Louis}[XIV]|\\\hline
% Full ``royal'' name & |\Name*{Louis}[XIV]|\\\hline
% Shorter subsequent reference & |\Name{Louis}[XIV]|\\\hline
% Ancient name and sobriquet & |\Name*{Antiochus V}[Eupator]| or\newline |\Name{Antiochus V}[Eupator]|\\\hline
% Shorter subsequent reference & |\Name{Antiochus V}[Eupator]|\\\hline
% \end{tabular}
%
% \smallskip\dag{} This form is OK, but can cause unwanted results if you rearrange text.\medskip
% \egroup
%
% \noindent I strongly suggest Subsection \ref{sec:suffix}  for more on the interaction between suffixes and sobriquets. Especially these features create useful, yet ambiguous forms that may be hard to debug. Also, mind leading spaces in the macro arguments.
% \clearpage
%
% \bgroup\small
% \begin{tabular}{p{1.6in}p{2.5in}}
% \normalsize\strut\textbf{I want to\dots} & \normalsize\textbf{I need to use} (for example)\dots \\\hline
% Only index, not print a reference to ``Public, J.Q.'' & |\IndexName[J.Q.]{Public}| or\newline \dag|\IndexName[J.Q.]{Public}[Jane Q.]|\\\hline
% Only index, not print a reference to ``Plato'' & |\IndexName{Plato}|\\\hline
% Only index, not print a reference to ``Mao Tse-tung'' & \ddag|\IndexName{Mao}[Tse-tung]|\\\hline
% Only index, not print a reference to ``Louis XIV'' & \ddag|\IndexName{Louis}[XIV]|\\\hline
% Only index, a reference to ``Antiochus V Eupator'' & \ddag|\IndexName{Antiochus V}[Eupator]|\\\hline
% \end{tabular}
%
% \smallskip\dag{} The alternate names are ignored in this case.\\
% \indent\ddag{} Ambiguous variants are not shown. \emph{Caveat auctor}.
% \egroup
%
%\bigskip
% \bgroup\small
% \begin{tabular}{p{1.5in}p{2.6in}}
% \normalsize\strut\textbf{I want to\dots} & \normalsize\textbf{I need to use} (for example)\dots \\\hline
% Print a full Western name followed by a lesser-known name in parentheses (first reference) & |\PName*[Bob]{Hope}[Leslie Townes]{Hope}|\newline |\PName[Bob]{Hope}[Leslie Townes]{Hope}|\\\hline
% Full name, lesser-known name in parentheses & |\PName*[Bob]{Hope}[Leslie Townes]{Hope}|\\\hline
% Surname only, followed by a full lesser-known name (subsequent reference) & |\PName[Bob]{Hope}[Leslie Townes]{Hope}|\\\hline
% Mononym followed by a lesser-known name & |\PName*{Prince}[Prince Rogers]{Nelson}|\newline |\PName{Prince}[Prince Rogers]{Nelson}|\\\hline
% Flexibly associate a name with a lesser-known name & \dots a tribute to |\Name{Ari Up}|, born \newline |\AKA{Ari Up}[Arianne]{Forster}|\dots One would not index \emph{Ari Up} as ``Up, Ari''.\\\hline
% \end{tabular}
% \egroup
%
% \bigskip
% \noindent Avoiding the following pitfalls will save time and frustration:
% \begin{enumerate}\setlength\itemsep{0pt}\small
% \item Mixing sobriquets with modern forms fails due to the ``longer name'' feature, e.g., |\Name[First]{Ancient}[Sobriquet]| and |\Name[King]{Number}[Sobriquet]|.
% \item Using \cmd{\AKA} and \cmd{\PName} with ``ancient,'' ``royal,'' and ``Eastern'' forms will fail, but see Subsection \ref{sec:suffix} for a workaround:\newline |\Name{Ancient}[Sobriquet] \AKA{Ancient Sobriquet}[First]{Last}|\newline |\Name{Queen}[Number] \AKA{Queen Number}[First]{Last}|\newline |\Name{EastFamily}[EastFirst] \AKA{EastFamily EastFirst}[First]{Last}|
% \item Using a forename or first initials can prevent failure in some cases:\newline OK: |\Name[J.]{Kreskin}[The Amazing] (\AKA[J.]{Kreskin}[Joseph]{Kresge})|\newline FAIL: |\Name[]{Kreskin}[The Amazing] (\AKA{Kreskin}[Joseph]{Kresge})|\newline FAIL: |\Name{Kreskin}[The Amazing] (\AKA{Kreskin}[Joseph]{Kresge})|
% \item Keep track of how name references are disambiguated in the text. Since one must put the full indexed name in a \cmd{\Name} reference it is easy to forget that the reference will be shortened if it is subsequent. \cmd{\Name*} comes to the rescue here.
% \item Mistyping the pairs of \texttt{\{} braces \texttt{\}} and \texttt{[} brackets \texttt{]} creates contextually-dependent errors that can be difficult to track. Leading spaces may be hard to spot in the text, but will be apparent in the index with incorrectly sorted names.
% \end{enumerate}
%
% \subsection{Basic Macros}
%
% \subsubsection{\texttt{\bsc Name} and \texttt{\bsc Name*}}
% 
% \DescribeMacro{\Name}
% \DescribeMacro{\Name*}
% This macro generates two forms of the name: a printed form in the text and a form of the name that occurs in the index.
% The general syntax is:
% \begin{quote}
% \cmd{\Name}\oarg{forename(s)}\marg{surname(s)}\oarg{alternate names}\\
% \cmd{\Name*}\oarg{forename(s)}\marg{surname(s)}\oarg{alternate names}
% \end{quote}
%
% \noindent From now on we will abbreviate \emph{forename(s)} with \emph{FNN} and \emph{surname(s)} with \emph{SNN} at various points. The syntax descriptions above do not capture exactly how the \cmd{\Name} macro behaves. The following table should help:
%
% \begin{quote}\small
% \begin{tabular}{llll}\hline
% {\large\strut}\emph{FNN} & \emph{SNN} & Alternate Names & Result\\\hline
% \texttt{Albert} & \texttt {Einstein} & (none) & \Name[Albert]{Einstein}\\
% (none) & \texttt{Confucius} & (none) & \Name{Confucius}\\
% \texttt{M.T.} & \texttt{Cicero} & \texttt{Marcus Tullius} & \Name[M.T.]{Cicero}[Marcus Tullius]\\
% (none) & \texttt{Charles} & \texttt{the Bald} & \Name{Charles}[the Bald]\\\hline
% \end{tabular}
% \end{quote}
%
% \noindent Basically, \cmd{\Name} connects the \emph{FNN} to the \emph{SNN} to create both a printed form and an indexed form, usually \textbf{\emph{FNN}\,\emph{SNN}} and \textbf{\emph{SNN},\,\emph{FNN}}. This takes care of most modern Western names. For those with one name, such as ancient figures or those with stage names, one can drop the \emph{FNN} so that \cmd{\Name} produces the result \textbf{\emph{SNN}} for both text and index.
%
% A newer feature added to \cmd{\Name} avoids a complicated workaround. Sometimes you might want to have the option of using either an alternate set of forenames or a sobriquet that functions as a surname for ancient figures. These two alternatives are handled by the final, optional field of \cmd{\Name}. If ``regular'' \emph{FNN} are present, then the alternate names conditionally will replace the \emph{FNN} in the printed form, but not in the indexed form. If no regular \emph{FNN} are present, then the alternate names will be appended to the \emph{SNN} in the printed form \emph{and} in the indexed form. You must use the sobriquet form of a name consistently or risk confusion.
%
% I mentioned conditional use. The unstarred form prints the ``full name'' at the first occurrence, then only the partial form thereafter. The starred form always prints the full name. Both macros usually apply a different ``font  attribute'' to the name when it first appears in the running text.
%
% Here are some more examples of use:
%
% \begin{quote}\small
% |\Name*[Johann Wolfgang von]{Goethe}|\\
% Print \Name*[Johann Wolfgang von]{Goethe} the first time it appears.\\
% Later, print the full name \Name*[Johann Wolfgang von]{Goethe}.\\[1ex]
% |\Name[Johann Wolfgang von]{Goethe}|\\
% \ForgetName[Johann Wolfgang von]{Goethe}%
% Print \Name[Johann Wolfgang von]{Goethe} the first time it appears.\\
% Later, print only the last name \Name[Johann Wolfgang von]{Goethe}.\\[1ex]
% |\Name{Boethius}| and |\Name*{Boethius}|
% Print \Name{Boethius} the first time it appears. Later, print \Name{Boethius}.
% \end{quote}
%
% \begin{quote}\small
% |\Name*{Antiochus IV}[Epiphanes]|\\
% Print \Name*{Antiochus IV}[Epiphanes] the first time it appears. Later, print the name and sobriquet \Name*{Antiochus IV}[Epiphanes].\\[1ex]
% \ForgetName{Antiochus IV}[Epiphanes]%
% |\Name{Antiochus IV}[Epiphanes]|\\
% Print \Name{Antiochus IV}[Epiphanes] the first time it appears. Later, print just the name \Name{Antiochus IV}[Epiphanes].
% \end{quote}
% 
% \noindent\emph{Note}: Here I am playing a ``dirty trick'' by making each line begin as if the name had not yet occurred. See Section \ref{sec:Tweaks} for more.
%
% \subsubsection{Tabular Summary of \texttt{\bsc Name}}
%
% Again, the common uses of \cmd{\Name} include:
%
% \begin{quote}\small
% \begin{tabular}{llll}\hline
% {\large\strut}\emph{FNN} & \emph{SNN} & Alternate Names & Result\\\hline
% \texttt{Harry S.} & \texttt {Truman} & (none) & \Name[Harry S.]{Truman}\\
% (none) & \texttt{Mencius} & (none) & \Name{Mencius}\\
% \texttt{John Q.} & \texttt{Adams} & \texttt{John Quincy} & \Name[John Q.]{Adams}[John Quincy]\\
% (none) & \texttt{Ptolemy I} & \texttt{Soter} & \Name{Ptolemy I}[Soter]\\\hline
% \end{tabular}
% \end{quote}
%
% \noindent Another option employs the sobriquet feature for royal names. The forms that work include:
%
% \begin{quote}\small
% \begin{tabular}{llp{1.2cm}ll}\hline
% \emph{FNN} & \emph{SNN} & Alternate Names & Result & Function\\\hline
% (none) & \texttt{Henry} & \texttt{VIII} & \Name*{Henry}[VIII] & |\Name*{Henry}[VIII]|\\
% (none) & \texttt{Henry} & \texttt{VIII} & \Name{Henry}[VIII] & |\Name{Henry}[VIII]|\\\hline
% \end{tabular}
% \end{quote}
%
% \noindent Other options are possible and are discussed in Subsection \ref{sec:suffix}. They are ambiguous and may not work in all circumstances, but they do afford compatibility with \texttt{\bsc AKA} and \texttt{\bsc PName}.
%
% Rudimentary references to Eastern names (I plead ignorance on this point) can be achieved via the sobriquet feature:
%
% \begin{quote}\small
% \begin{tabular}{p{0.7cm}p{0.8cm}p{1.1cm}p{2.7cm}p{3.7cm}}\hline
% \emph{FNN} & \emph{SNN} & Alternate Names & Result & Function\\\hline
% (none) & \texttt{Chiang} & \texttt{Kai-shek} & \Name{Chiang}[Kai-shek] & |\Name{Chiang}[Kai-shek]|\\
% (none) & \texttt{Chiang} & \texttt{Kai-shek} & \Name{Chiang}[Kai-shek] & |\Name{Chiang}[Kai-shek]|\\\hline
% \end{tabular}
% \end{quote}
%
% \subsection{Advanced Topics}
% 
% \subsubsection{Suffix Removal}
% \label{sec:suffix}
% \changes{v0.85}{2012/02/05}{New suffix removal features}
% 
% \texttt{\bsc Name} and \texttt{\bsc Name*} have an additional difference. \texttt{\bsc Name} will truncate the suffixes from subsequent occurrences of last names. For example, it prints the name \Name[Oskar]{Hammerstein, II} the first time and \Name[Oskar]{Hammerstein, II} thereafter. \emph{The typed form always uses a comma}, e.g.,  \texttt{\bsc Name[Oskar]\{Hammerstein, II\}}. Moreover, the space after the comma is literal, but not manipulated by the package in case one wants to use a thin space instead. That is left to the author.
%
% Again, \textbf{the comma is not optional with suffixes}. It is how this feature works. More than one comma in the arguments of \cmd{\Name} and all similar user interface macros will cause unwanted results.
%
%  \cmd{\Name} and friends keep track of whether the name ends with the period of an abbreviation like ``Jr.'' and ``Sr.'' That should also work with abbreviations like ``d.~\"{A}.'' (\textit{der \"{A}ltere}). Two periods are not printed when the full name is printed at the end of a sentence. The following example shows the possible combinations:
% 
% \ForgetName[Martin Luther]{King, Jr.}%
% \begin{quote}\small
% \begin{tabular}{ll}
% |\Name[Martin Luther]{King, Jr.}.| & \Name[Martin Luther]{King, Jr.}.\\
% |\Name[Martin Luther]{King, Jr.}.| & \Name[Martin Luther]{King, Jr.}.\\
% |\Name[Martin Luther]{King, Jr.}| & \Name[Martin Luther]{King, Jr.} (e.g., in a sentence)\\
% |\Name*[Martin Luther]{King, Jr.}.| & \Name*[Martin Luther]{King, Jr.}.\\
% |\Name*[Martin Luther]{King, Jr.}| & \Name*[Martin Luther]{King, Jr.}
% \end{tabular}
% \end{quote}
%
% \noindent Using the default class option \texttt{nocomma}, one can take advantage of the suffix feature to tweak more options out of \cmd{\Name}. Instead of the sobriquet feature, one could use the following variants:
%
% \begin{quote}\small
% \begin{tabular}{llp{1.2cm}ll}\hline
% \emph{FNN} & \emph{SNN} & Alternate Names & Result & Function\\\hline
% (none) & \texttt{Louis, XIV} & (none) & \Name{Louis, XIV} & |\Name{Louis, XIV}|\\
% (none) & \texttt{Louis, XIV} & (none) & \Name{Louis, XIV} & |\Name{Louis, XIV}|\\
% (none) & \texttt{Sun, Yat-sen} & (none) & \Name{Sun, Yat-sen} & |\Name{Sun, Yat-sen}|\\
% (none) & \texttt{Sun, Yat-sen} & (none) & \Name{Sun, Yat-sen} & |\Name{Sun, Yat-sen}|\\\hline
% \end{tabular}
% \end{quote}
%
% \noindent The benefit to using this form is that one can type |\Name*{Louis, XIV}, the| |``\AKA{Louis, XIV}{Sun King}''| and get \Name*{Louis, XIV}, the ``\AKA{Louis, XIV}{Sun King}'' in the text with an appropriate reference from ``Sun King'' to ``Louis XIV'' in the index (see below). The sobriquet feature would otherwise prevent such usage.
%
% Using this feature comes with a price. Even though suffix and sobriquet features produce the same \emph{output} with the default options, they are internally \emph{different} with respect to the first/subsequent use mechanism. Use each approach consistently. This workaround takes advantage of the ambiguous default behavior; the \texttt{comma} option will break its functionality. Again, \emph{caveat auctor}.
%
% \subsubsection{Alternate forenames in the Text}
% 
% I showed above the cases of \Name[M.T.]{Cicero}[Marcus Tullius] and \Name*[John Q.]{Adams}[John Quincy] where one can have a longer name in the text than in the index. Here are fuller examples:
% 
% \begin{quote}\small
% \texttt{\bsc Name[Wilhelm M.L.]\{De Wette\}[Wilhelm Martin Leberecht]}\\
% \Name[Wilhelm M.L.]{De Wette}[Wilhelm Martin Leberecht] (text, first occurrence)\\
% \Name[Wilhelm M.L.]{De Wette}[Wilhelm Martin Leberecht] (text, second occurrence)\\
% The abbreviated name ``De Wette, Wilhelm M.L.'' is in the index.\\[1ex]
% \ForgetName[Wilhelm M.L.]{De Wette}%
% \texttt{\bsc Name*[Wilhelm M.L.]\{De Wette\}}\\
% \Name*[Wilhelm M.L.]{De Wette} (text, first occurrence)\\
% \Name*[Wilhelm M.L.]{De Wette} (text, second occurrence)\\
% The abbreviated name ``De Wette, Wilhelm M.L.'' is in the index.\\[1ex]
% \ForgetName[Wilhelm M.L.]{De Wette}%
% \texttt{\bsc Name*[Wilhelm M.L.]\{De Wette\}[W.M.L.]}\\
% \Name*[Wilhelm M.L.]{De Wette}[W.M.L.] (text, first occurrence)\\
% \Name*[Wilhelm M.L.]{De Wette}[W.M.L.] (text, second occurrence)\\
% The abbreviated name “De Wette, Wilhelm M.L.” is in the index.
% \end{quote}
% 
% \noindent Alternate forenames \emph{override} the \emph{FNN} in the text. Sobriquets are \emph{appended} to \emph{SNN}. The presence or absence of \emph{FNN} triggers this difference. Alternate forenames only get printed in subsequent occurrences of \cmd{\Name*}. The surname argument is \emph{always} printed. The next macro allows one to bypass this restriction.
%
% \subsubsection{\texttt{\bsc IndexName}}
% 
% \DescribeMacro{\IndexName}
% This macro prints no text in the body. It only creates an index entry that conforms with the rest of the package. Its syntax is:
% \begin{quote}
% \cmd{\IndexName}\oarg{FNN}\marg{SNN}\oarg{alternate names}
% \end{quote}
%
% \noindent \cmd{\IndexName} \emph{does not work} with the pen name mechanism described below. This example shows \cmd{\Name} and \cmd{\IndexName} working together.
% 
% \begin{quote}
% \bgroup\ttfamily
% \bsc Name[C.F.W.]\{Walther\}[Carl Ferdinand Wilhelm] was a major\break figure in American Lutheran history. \bsc Name[C.F.W.]\{Walther\}\break used his full name when signing documents. To family,\break however, he was just Ferdinand\bsc IndexName[C.F.W.]\{Walther\}.
% \egroup
% 
% \Name[C.F.W.]{Walther}[Carl Ferdinand Wilhelm] was a major figure in American Lutheran history. \Name[C.F.W.]{Walther} used his full name when signing documents. To family, however, he was just Ferdinand\IndexName[C.F.W.]{Walther}.
% \end{quote}
%
% \noindent One can use this macro for special cases, like referring to works by joint or multiple authors or simply indexing names consistently with this package:
%
% \begin{quote}
% \bgroup\ttfamily
% \bsc newcommand\{\bsc SJB\}\%\break
% \{\bsc IndexName[Stan]\{Berenstain\}\bsc IndexName[Jan]\{Berenstain\}\}\break
% \bsc textit\{The Berenstain Bears\} is a popular series of\break children's books with over 300 titles. One can index the\break Berenstains\bsc SJB\{\} in this manner.
% \egroup
%
% \newcommand{\SJB}%
% {\IndexName[Stan]{Berenstain}\IndexName[Jan]{Berenstain}}
% \textit{The Berenstain Bears} is a popular series of children's books with over 300 titles. One can index the Berenstains\SJB{} in this manner.
% \end{quote}
%
% \ForgetName{Antiochus IV}[Epiphanes]%
% \begin{quote}
% \bgroup\ttfamily
% First Maccabees recounts the suppression of Jewish customs\break under the Seleucid king \bsc Name\{Antiochus IV\}[Epiphanes]. His behavior was so egregious that he became an early model for the later profile of Antichrist.\break \bsc IndexName\{Antiochus IV\}[Epiphanes]
% \egroup
%
% First Maccabees recounts the suppression of Jewish customs under the Seleucid king \Name{Antiochus IV}[Epiphanes]. His behavior was so egregious that he became an early model for the later profile of Antichrist.\IndexName{Antiochus IV}[Epiphanes]
% \end{quote}
%
% \subsubsection{Pen Names: An Introduction}
% 
% \cmd{\IndexName} lacks some safeguards for handling pen names that the macros \cmd{\PName} and \cmd{\AKA} introduce. These macros are incompatible with the alternate name and sobriquet features of \cmd{\Name} for the following reasons:
%
% \begin{enumerate}
% \item It makes sense to have the better-known name come first.
% \item That order produces an ambiguous argument list. Making the list unambiguous requires a mandatory argument, thus, extra keystrokes.
% \item The more details in any given macro, the more confusing it is to use.
% \item Many ancient pseudonyms require manual typesetting and indexing.
% \end{enumerate}
%
% \noindent We already saw the strengths and weaknesses of the suffix feature above as a workaround for sobriquets and Eastern names when using \cmd{\PName} and \cmd{\AKA}. A more general workaround for such names follows:
%
% \begin{quote}
% \bgroup\ttfamily
% \verb!\index{Jean the Fearless|see{Jean sans Peur}}%!\\
% |\Name{Jean}[sans Peur]| (Jean the Fearless) was Duke of\break Burgundy from 1404 to 1419.
% \egroup
%
% \index{Jean the Fearless|see{Jean sans Peur}}%
% \Name{Jean}[sans Peur] (Jean the Fearless) was Duke of Burgundy from 1404 to 1419.
% \end{quote}
%
% \noindent A more complicated example is:
% \begin{quote}
% \bgroup\ttfamily\small
% \verb!\index{Doctor Angelicus@\textit{Doctor Angelicus}|see{Thomas Aquinas}}%!\\
% \verb!\index{Thomas of Aquino|see{Thomas Aquinas}}%!\\
% Perhaps the greatest medieval theologian was |\Name{Thomas}[Aquinas]| (Thomas of Aquino), also known as |\textit{Doctor Angelicus}|. His name ``Aquinas'' is not a surname, so many modern scholars simply refer to him as |\Name{Thomas}[Aquinas]|.
% \egroup
%
% \index{Doctor Angelicus=\textit{Doctor Angelicus}|see{Thomas Aquinas}}%
% \index{Thomas of Aquino|see{Thomas Aquinas}}%
% Perhaps the greatest medieval theologian was \Name{Thomas}[Aquinas] (Thomas of Aquino), also known as \textit{Doctor Angelicus}. His name ``Aquinas'' is not a surname, so many modern scholars simply refer to him as \Name{Thomas}[Aquinas].
% \end{quote}
% 
% \subsubsection{\texttt{\bsc PName}}
%
% \DescribeMacro{\PName}
% Pseudonyms, stage names, \emph{noms de plume}, epithets, and monikers can be handled with two macros: \cmd{\PName} and \cmd{\AKA}. The macro \cmd{\PName} usually takes a well-known name, followed by a lesser-known name. Like \cmd{\Name}, \cmd{\PName} has starred and unstarred forms, but those forms only operate on the first name, not on the second name. \cmd{\PName} also handles double-periods. The syntax is:
% \begin{quote}
% \cmd{\PName}\oarg{FNN}\marg{SNN}\oarg{lesser-known FNN}\marg{lesser-known SNN}
% \end{quote}
%
% \noindent The following examples demonstrate uses of \cmd{\PName}. The macros are agnostic of the ``pen name'' itself. The author determines the name that is indexed (the first name) and the subsequent name that only occurs as a \emph{see} reference.
% 
% \begin{quote}
% |\PName*[Mark]{Twain}[Samuel L.]{Clemens}|\\
% Print \PName*[Mark]{Twain}[Samuel L.]{Clemens} the first time it appears. Later, print \PName*[Mark]{Twain}[Samuel L.]{Clemens}.\\[1ex]
% \ForgetName[Mark]{Twain}%
% |\PName[Mark]{Twain}[Samuel L.]{Clemens}|\\
% Print \PName[Mark]{Twain}[Samuel L.]{Clemens} the first time it appears. Later, print \PName[Mark]{Twain}[Samuel L.]{Clemens}.\\[1ex]
% |\PName*[Willebrord]{Snel van Royen}{Snellius}|\\
% Print \PName*[Willebrord]{Snel van Royen}{Snellius} the first time it appears. Later, print \PName*[Willebrord]{Snel van Royen}{Snellius}.\\[1ex]
% \ForgetName[Willebrord]{Snel van Royen}%
% |\PName[Willebrord]{Snel van Royen}{Snellius}|\\
% Print \PName[Willebrord]{Snel van Royen}{Snellius} the first time it appears. Later, print \PName[Willebrord]{Snel van Royen}{Snellius}.\\[1ex]
% |\PName{Voltaire}[François-Marie]{Arouet}|\\
% Print \PName{Voltaire}[François-Marie]{Arouet} the first time it appears. Later, print \PName{Voltaire}[François-Marie]{Arouet}. The starred version also produces \PName*{Voltaire}[François-Marie]{Arouet}
% \end{quote}
%
% \subsubsection{\texttt{\bsc AKA}}
%
% \DescribeMacro{\AKA}
% The second macro that handles aliases is \cmd{\AKA}. It is the same alias mechanism used in \cmd{\PName}, but separated for more flexibility. Its syntax is similar to \cmd{\PName}:
% \begin{quote}
% \cmd{\AKA}\oarg{FNN}\marg{SNN}\oarg{lesser-known FNN}\marg{lesser-known SNN}
% \end{quote}
%
% \noindent\cmd{\AKA} only prints the pseudonym, \emph{not} the indexed name. The macro also prevents double periods. An example of use follows:
% 
% \begin{quote}
% \bgroup\ttfamily
% Today we consider |\AKA[George]{Eliot}[Mary Anne]{Evans}| and her literary contributions as |\Name[George]{Eliot}|.
% \egroup
%
% Today we consider \AKA[George]{Eliot}[Mary Anne]{Evans} and her literary contributions as \Name[George]{Eliot}.
% \end{quote}
% 
% \noindent\cmd{\AKA} creates an index entry that cross-references to the ``main'' name given. It is assumed that a \cmd{\Name} macro occurs somewhere in reference to the indexed name. No error checking otherwise occurs for this.
% 
% Pseudonyms only work as cross-references. \cmd{\Name} will only print a pen name and emit a warning. To index a pseudonym with page numbers, use \cmd{\Name} for both the main name and the pseudonym, then manually cross-reference them, e.g.:\medskip
%
% \bgroup\small\index{Rambam|seealso{Maimonides}}
% \begin{tabular}{p{0.7in}ll}\hline
% Authoritative Name & Alternate Name & Example of Use\\\hline
% \Name{Maimonides} & \AKA{Maimonides}{Moses ben-Maimon} & \texttt{\bsc AKA\{Maimonides\}\{Moses ben-Maimon\}}\\
% \Name{Maimonides} & \Name{Rambam} & \verb!\Name{Rambam}!\\& & \verb!\index{Rambam|seealso{Maimonides}!\\\hline
% \end{tabular}
% \egroup
%
% \noindent\cmd{\AKA} will not create multiple instances of a cross-reference. This prevents bogus multiple cross-references in the index, but it also excludes the special case where one moniker applies to multiple people, e.g.: \PName*[Willebrord]{Snel van Royen}{Snellius} and his son \PName*[Rudolph]{Snel van Royen}{Snellius}.
% \index{Snellius|see{Snel van Royen, Rudolph}}%
% Do not use \cmd{\IndexName} in this case. One must add a manual index entry as a workaround:
% \begin{quote}
% \verb!\index{Snellius|see{Snel van Royen, Rudolph}}!
% \end{quote}
% 
% \noindent Be careful with name collisions, especially with more than one person having the same last name. The following examples illustrate this:
% \begin{quote}
% \texttt{\bsc PName[Willebrord]\{Snel van Royen\}\{Snellius\}}\\
% \PName[Willebrord]{Snel van Royen}{Snellius}\\[1ex]
% \texttt{\bsc PName[Rudolph]\{Snel van Royen\}\{Snellius\}}\\
% \PName[Rudolph]{Snel van Royen}{Snellius}\\[1ex]
% \texttt{\bsc Name[Willebrord]\{Snel van Royen\}}\\
% \Name[Willebrord]{Snel van Royen}\\[1ex]
% \texttt{\bsc Name[Rudolph]\{Snel van Royen\}}\\
% \Name[Rudolph]{Snel van Royen}
% \end{quote}
% 
% \subsection{Accented Names}
% \label{sec:Accents}
% 
% The following Unicode accents will work in names using UTF8 and \textsf{inputenc}:
% 
% \begin{quote}
% \begin{tabular}{llll}
% \scshape À Á Â Ã Ä Å Æ & \scshape Ç È É Ê Ë & \scshape Ì Í Î Ï Ð Ñ & \scshape first use \\
% À Á Â Ã Ä Å Æ & Ç È É Ê Ë & Ì Í Î Ï Ð Ñ & second use \\[1ex]
% \scshape Ò Ó Ô Õ Ö Ø & \scshape Ù Ú Û Ü Ý & \scshape Þ ß & \scshape first use \\
% Ò Ó Ô Õ Ö Ø & Ù Ú Û Ü Ý & Þ ß & second use \\[1ex]
% \scshape à á â ã ä å æ & \scshape ç è é ê ë & \scshape ì í î ï ð ñ & \scshape first use \\
% à á â ã ä å æ & ç è é ê ë & ì í î ï ð ñ & second use \\[1ex]
% \scshape ò ó ô õ ö ø & \scshape ù ú û ü ý & \scshape þ ÿ & \scshape first use \\
% ò ó ô õ ö ø & ù ú û ü ý & þ ÿ & second use \\[1ex]
% \scshape Ă ă Ą ą Ć ć Č č & \scshape Ď ď Đ đ Ę ę Ě ě & \scshape Ğ ğ İ ı & \scshape first use \\
% Ă ă Ą ą Ć ć Č č & Ď ď Đ đ Ę ę Ě ě & Ğ ğ İ ı & second use \\[1ex]
% \scshape IJ ij Ľ ľ Ł ł & \scshape Ń ń Ň ň Œ œ & \scshape Ŕ ŕ Ř ř & \scshape first use \\
% IJ ij Ľ ľ Ł ł & Ń ń Ň ň Œ œ & Ŕ ŕ Ř ř & second use \\[1ex]
% \scshape Ś Ş ş Š š Ţ ţ Ť ť & \scshape Ů ů Ű ű & \scshape Ź ź Ż ż Ž ž & \scshape first use \\
% Ś Ş ş Š š Ţ ţ Ť ť & Ů ů Ű ű & Ź ź Ż ż Ž ž &  second use \\
% \end{tabular}
% \end{quote}
% 
% \noindent Other accents will not work unless you use \TeX\ control sequences or \hologo{XeLaTeX}. You can also include the TS1 encoding and do something like the following with the \textsf{inputenc} package, the \textsf{newunicodechar} package, and and UTF8:
% 
% \begin{quote}
% |\DeclareTextSymbolDefault{\textlongs}{TS1}|\\
% |\DeclareTextSymbol{\textlongs}{TS1}{115}|\\
% |\newunicodechar{ſ}{\textlongs}|\\
% |\newunicodechar{ā}{\=a}|\\
% |\newunicodechar{ṃ}{\d{m}}|
% \end{quote}
% 
% \noindent Please remember that the appropriate font packages, such as \textsf{lmodern} or the \TeX\ Gyre fonts, are needed to obtain some TS1 glyphs. Also there may be points where \textsf{pdflatex} will accept the input (e.g., Gh{\=a}zali), but \textsf{makeindex} will have problems with that. In ``normal'' operation (I have used \textsf{article} and \textsf{memoir}) these control sequences appear to work fine. Special requirements like those in the \textsf{ltxdoc} class disrupt this functionality, requiring manual index entries in some cases.
% 
% \subsection{Name Formatting}
% 
% \subsubsection{Font Attributes}
% \label{sec:FontAttributes}
% \changes{v0.8}{2012/01/29}{Expanded description of functionality}
%
% \DescribeMacro{\NamesFormat}
% The first time a name is printed, it is formatted with the font attribute stored in \cmd{\NamesFormat}. This is set with the class options or manually. \cmd{\NamesFormat} can use either the command form or the declaration form of selecting font attributes, e.g., \cmd{\textsc} or \cmd{\scshape}. By redefining this macro, one can ``hook'' into the special typesetting of the first occurrence of a name. Consider the following:
%
% \begin{quote}
% |\renewcommand{\NamesFormat}[1]{\textbf{#1}%|\\
% |\ifinner\else\marginpar{\scriptsize #1}\fi}|
% \end{quote}
% 
% \noindent If we \cmd{\let} the value of \cmd{\NamesFormat} to save the current value and implement a temporary change like the above, we get:
% \let\oldformat\NamesFormat
% \renewcommand{\NamesFormat}[1]{\textbf{#1}\ifinner\else\marginpar{\scriptsize #1}\fi}
%
%\begin{quote}
% \bgroup\ttfamily \bsc Name\{Vlad III\}[Dracula] became known as Vlad Ţepeş, ``The\break Impaler,''  after his death. He was the son of\break \bsc Name\{Vlad II\}[Dracul]. Later references to\break \bsc Name\{Vlad III\}[Dracula] appear thus.\egroup \bigskip
%
% \Name{Vlad III}[Dracula] became known as Vlad Ţepeş, ``The Impaler,''  after his death. He was the son of \Name{Vlad II}[Dracul]. Later references to \Name{Vlad III}[Dracula] appear thus.
% \end{quote}
%
% \let\NamesFormat\oldformat
%
% After using \cmd{\let} to revert \cmd{\NamesFormat}, a first occurrence again takes the form: \ForgetName{Vlad III}[Dracula]\Name{Vlad III}[Dracula].\\
%
% Let me again stress that ``royal'' names used in this manner do not work with  \cmd{\PName} and \cmd{\AKA}. Consistently use either the suffix mechanism (Subsection \ref{sec:suffix}) or use as a guide the examples above for \Name*{Jean}[sans Peur] and \Name*{Thomas}[Aquinas].
%
% \subsection{Formatting Certain Sections}
% \label{sec:SectionFormat}
% 
% \DescribeMacro{\NamesActive}
% \DescribeMacro{\NamesInctive}
% Using the \texttt{frontmatter} option deactivates formatting until \cmd{\NamesActive} occurs. Another macro, \cmd{\NamesInactive}, will deactivate formatting again. These two macros toggle formatting on and off. The mechanism works in a complementary, yet independent manner. It can be used throughout the document.
% 
% Here we switch to the ``front matter'' mode with \cmd{\NamesInactive}:
% \NamesInactive
% \begin{quote}
% \begin{tabular}{ll}
% |\Name[Rudolph]{Carnap}| & \Name[Rudolph]{Carnap}\\
% |\Name[Rudolph]{Carnap}| & \Name[Rudolph]{Carnap}\\
% |\Name[Nicolas]{Malebranche}| & \Name[Nicolas]{Malebranche}\\
%|\Name[Nicolas]{Malebranche}| & \Name[Nicolas]{Malebranche}\\
% \end{tabular}
% \end{quote}
% 
% Then we switch back to ``main matter'' mode with \cmd{\NamesActive}:
% \NamesActive
% \begin{quote}
% \begin{tabular}{ll}
% |\Name[Rudolph]{Carnap}| & \Name[Rudolph]{Carnap}\\
% |\Name[Rudolph]{Carnap}| & \Name[Rudolph]{Carnap}\\
% |\Name[Nicolas]{Malebranche}| & \Name[Nicolas]{Malebranche}\\
%|\Name[Nicolas]{Malebranche}| & \Name[Nicolas]{Malebranche}\\
% \end{tabular}
% \end{quote}
% 
% \subsection{Tweaks:\texttt{\bsc ForgetName}}
% \label{sec:Tweaks}
% 
% \DescribeMacro{\ForgetName}
% This macro is a ``dirty trick'' of sorts that takes the same optional and mandatory parameters used by \cmd{\Name}. It handles its arguments in the same manner as \cmd{\Name}, except that it ignores the final parameter if \emph{FNN} are present. The syntax is:
% \begin{quote}
% \cmd{\ForgetName}\oarg{FNN}\marg{SNN}\oarg{alternate names}
% \end{quote}
%
% \noindent This macro causes \cmd{\Name} and friends to “forget” prior uses of a name with respect to typesetting. The next use will print as if it were a ``first use.'' Index entries and pseudonyms (see above) are \emph{never} forgotten.
% 
% \StopEventually{\PrintChanges\clearpage\PrintIndex}
%
% \section{Implementation}
%
% \iffalse
%<*package>
% \fi
% \subsection{Class Options and Required Packages}
%    \begin{macrocode}
\newif\if@nameauth@DoFormat
\newif\if@nameauth@DoComma
\newif\if@nameauth@Punct
%    \end{macrocode}
% These Boolean values control or are controlled by formatting of first entries, suppression of commas, and whether or not a name ends with a period.\\
%
%    \begin{macrocode}
\newif\if@nameauth@dtx
%    \end{macrocode}
% This Boolean value handles proper generation of dtx files. It is set by |\@ifclassloaded|.\\
%
% \changes{v0.85}{2012/02/05}{Added nocomma, comma options}
%    \begin{macrocode}
\DeclareOption{mainmatter}{\@nameauth@DoFormattrue}
\DeclareOption{frontmatter}{\@nameauth@DoFormatfalse}
\DeclareOption{smallcaps}{\newcommand{\NamesFormat}{\scshape}}
\DeclareOption{italic}{\renewcommand{\NamesFormat}{\itshape}}
\DeclareOption{boldface}{\renewcommand{\NamesFormat}{\bfseries}}
\DeclareOption{noformat}{\renewcommand{\NamesFormat}{}}
\DeclareOption{nocomma}{\@nameauth@DoCommafalse}
\DeclareOption{comma}{\@nameauth@DoCommatrue}
\ExecuteOptions{smallcaps,mainmatter,nocomma}
\ProcessOptions\relax
\RequirePackage{etoolbox}
\RequirePackage{xparse}
\@ifclassloaded{ltxdoc}
  {\@nameauth@dtxtrue}
  {\@nameauth@dtxfalse}%
%    \end{macrocode}
% The options above interact with the prior Boolean values. Suppressing and showing commas is set at load time and should not be changed in the document or else significant errors will result. |\@ifclassloaded| sets the Boolean value that governs the ``literal'' character used in the index. The other options can be changed without problem and several user interface macros provide that functionality.\\
%
% \subsection{Internal Macros}
% \begin{macro}{\@nameauth@CleanName}
% \changes{v0.8}{2012/01/29}{Renamed macro to help compatibility}
%    \begin{macrocode}
\newcommand*{\@nameauth@CleanName}[1]{\expandafter\zap@space\detokenize{#1} \@empty}
%    \end{macrocode}
% \end{macro}
% Thanks to \Name*[Heiko]{Oberdiek}, this macro produces a ``sanitized'' string based on the forename/surname parameters of \cmd{\Name} and friends. With this we can construct a control sequence name. Testing for the presence of that control sequence determines the existence of pseudonyms and the first occurrence of a name.\\
%
% \noindent The following macros pertain to both the suffix mechanism mentioned above and the removal of suffixes with subsequent references of \cmd{\Name}.
%
% \begin{macro}{\@nameauth@Root}
% \changes{v0.85}{2012/02/05}{Divide suffix handling into functional parts}
%    \begin{macrocode}
\def\@nameauth@Root#1,#2*{#1}%
%    \end{macrocode}
% \end{macro}
% Strips off the second parameter delimited by a comma and an asterisk.
% 
% \begin{macro}{\@nameauth@Suffix}
% \changes{v0.85}{2012/02/05}{Add suffix handling functionality}
% \begin{macro}{\@nameauth@Truncate}
% \changes{v0.85}{2012/02/05}{Add suffix handling functionality}
%    \begin{macrocode}
\def\@nameauth@Suffix#1,#2*{\ifx#2\@empty\else\@nameauth@Truncate#2\fi}
\def\@nameauth@Truncate#1,{#1}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% Strips off the first parameter and cleans up any extra commas.
% 
% \begin{macro}{\@nameauth@NoComma}
% \changes{v0.85}{2012/02/05}{Add comma handling routine}
%    \begin{macrocode}
\newcommand{\@nameauth@NoComma}[1]{%
     {\@nameauth@Root#1,*\@nameauth@Suffix#1,*}%
}
%    \end{macrocode}
% \end{macro}
% This is the heart of the comma suppression feature. Since the presence of commas are necessary for the suffix mechanism to work, commas are stripped as close as possible to generating output either for the body text or for the index.
% 
% \begin{macro}{\@nameauth@Zapsuffix}
% \changes{v0.85}{2012/02/05}{Revise extant suffix handling}
%    \begin{macrocode}
\newcommand*{\@nameauth@Zapsuffix}[1]{%
     {\@nameauth@Root#1,*}%
}
%    \end{macrocode}
% \end{macro}
% Anything starting with a comma and ending with the end of the name is stripped off. That includes ``Sr.,'' ``Jr.,'' ``III,'' and so on.\\
%
% \noindent The following macros implement the mechanism to prevent the double-printing of a period after ``Sr.,'' ``Jr.,'' and so on.
%
% \begin{macro}{\@nameauth@CheckDot}
% \changes{v0.8}{2012/01/29}{Renamed macro to help compatibility}
%    \begin{macrocode}
\def\@nameauth@CheckDot{\futurelet\@token\@nameauth@EvalDot}
%    \end{macrocode}
% \end{macro}
% This macro assigns the lookahead token \cmd{\@token} to be evaluated by \cmd{\@nameauth@EvalDot} while keeping \cmd{\@token} non-destructively on the list of input tokens. I use this method instead of \cmd{\@nextchar} because I do not want to gobble spaces.
%
% \begin{macro}{\@nameauth@EvalDot}
% \changes{v0.8}{2012/01/29}{Renamed macro to help compatibility}
%    \begin{macrocode}
\def\@nameauth@EvalDot{\let\@period=.\ifx\@token\@period\expandafter\@gobble \fi}
%    \end{macrocode}
% \end{macro}
% \cmd{\@nameauth@EvalDot} checks of \cmd{\@token} is a period. If so it gobbles it by using \cmd{\expandafter} to get past the grouping. Another \cmd{\expandafter} occurs immediately before the invocation of \cmd{\@nameauth@CheckDot} in \cmd{\Name} and \cmd{\AKA}.
%
% \begin{macro}{\@nameauth@TestDot}
% \changes{v0.8}{2012/01/29}{Renamed macro to help compatibility}
%    \begin{macrocode}
\newcommand*{\@nameauth@TestDot}[1]{%
     \def\TestDot##1.\TestEnd##2\TestStop{\TestPunct{##2}}%
     \def\TestPunct##1{\ifx\TestPunct##1\TestPunct\else\@nameauth@Puncttrue\fi}%
     \@nameauth@Punctfalse%
     \TestDot#1\TestEnd.\TestEnd\TestStop%
}
%    \end{macrocode}
% \end{macro}
% While \cmd{\@nameauth@CheckDot} looks \emph{ahead} for a period, \cmd{\@nameauth@TestDot}---based on a snippet by \Name*[Uwe]{Lueck}---checks for a terminal period in the name passed to it, ignoring medial periods. It always resets the Boolean value before making its test, making it unnecessary to reset elsewhere.
%
% \begin{macro}{\@nameauth@FmtName}
% \changes{v0.8}{2012/01/29}{Renamed macro to help compatibility}
% \changes{v0.85}{2012/02/05}{Add comma suppression}
%    \begin{macrocode}
\DeclareDocumentCommand\@nameauth@FmtName{s m}%
{%
     \@nameauth@TestDot{#2}%
     \if@nameauth@DoComma%
          \IfBooleanTF{#1}{#2}{\bgroup\NamesFormat{#2}\egroup}%
     \else
          \IfBooleanTF{#1}%
               {\@nameauth@NoComma{#2}}%
               {\bgroup\NamesFormat{\@nameauth@NoComma{#2}}\egroup}%
     \fi
}
%    \end{macrocode}
% \end{macro}
% \cmd{\@nameauth@FmtName} is where the first occurrences of a name are formatted. Notice how \cmd{\NamesFormat} sits between a \cmd{\bgroup} and an \cmd{\egroup} to localize the font change. The \cmd{\NamesFormat} hook has been discussed above. Comma suppression occurs here in order for the period-checking routines to work. That means comma suppression operates on the whole name here, but only on the \emph{SNN} field for the index entries. This should not present a noticeable difference, since commas seldom if ever occur in forenames.
%
% \subsection{User Interface Macros}
% \begin{macro}{\Name}
% \changes{v0.75}{2012/01/19}{Added ``sobriquet'' feature}
% \changes{v0.8}{2012/01/29}{Merged all major functionality here}
% \changes{v0.85}{2012/02/05}{Add comma suppression to indexing, ltxdoc compatibility}
% \changes{v0.86}{2012/02/06}{Slight tweak using \cmd{\edef}}
%    \begin{macrocode}
\DeclareDocumentCommand\Name{s o m o}%
{%
     \if@nameauth@DoComma\edef\Surnames{#3}%
     \else\edef\Surnames{\@nameauth@NoComma{#3}}\fi%
     \IfValueTF{#2}%
     {\IfValueTF{#4}{\edef\Forenames{#4}}{\edef\Forenames{#2}}%
     \ifcsname\@nameauth@CleanName{#2#3!PN!}\endcsname%
          \@nameauth@FmtName*{#2 #3}%
          \PackageWarning{nameauth}%
          {You cannot create a page reference from the pen name: #2 #3.}%
     \else%
          \if@nameauth@DoFormat%
               \ifcsname\@nameauth@CleanName{#2#3!MN!}\endcsname%
               \IfBooleanTF{#1}%
                    {\@nameauth@FmtName*{\Forenames{} #3}%
                         \if@nameauth@dtx\index{#3=\Surnames, #2}%
                         \else\index{#3@\Surnames, #2}\fi}%
                    {\@nameauth@FmtName*{\@nameauth@Zapsuffix{#3}}%
                         \if@nameauth@dtx\index{#3=\Surnames, #2}%
                         \else\index{#3@\Surnames, #2}\fi}%
               \else%
                    \csgdef{\@nameauth@CleanName{#2#3!MN!}}{}%
                    \@nameauth@FmtName{\Forenames{} #3}%
                         \if@nameauth@dtx\index{#3=\Surnames, #2}%
                         \else\index{#3@\Surnames, #2}\fi%
               \fi%
          \else%
               \ifcsname\@nameauth@CleanName{#2#3!NF!}\endcsname%
               \IfBooleanTF{#1}%
                    {\@nameauth@FmtName*{\Forenames{} #3}%
                         \if@nameauth@dtx\index{#3=\Surnames, #2}%
                         \else\index{#3@\Surnames, #2}\fi}%
                    {\@nameauth@FmtName*{\@nameauth@Zapsuffix{#3}}%
                         \if@nameauth@dtx\index{#3=\Surnames, #2}%
                         \else\index{#3@\Surnames, #2}\fi}%
               \else%
                    \csgdef{\@nameauth@CleanName{#2#3!NF!}}{}%
                    \@nameauth@FmtName*{\Forenames{} #3}%
                         \if@nameauth@dtx\index{#3=\Surnames, #2}%
                         \else\index{#3@\Surnames, #2}\fi%
               \fi%
          \fi%
     \fi}%
     {\IfValueTF{#4}
          {\ifcsname\@nameauth@CleanName{#3#4!PN!}\endcsname%
               \@nameauth@FmtName*{#3 #4}%
               \PackageWarning{nameauth}%
               {You cannot create a page reference from the pen name: #3 #4.}%
          \else%
               \if@nameauth@DoFormat%
                    \ifcsname\@nameauth@CleanName{#3#4!MN!}\endcsname%
                    \IfBooleanTF{#1}%
                         {\@nameauth@FmtName*{#3 #4}%
                              \if@nameauth@dtx\index{#3=\Surnames{} #4}%
                              \else\index{#3@\Surnames{} #4}\fi}%
                         {\@nameauth@FmtName*{\@nameauth@Zapsuffix{#3}}%
                              \if@nameauth@dtx\index{#3=\Surnames{} #4}%
                              \else\index{#3@\Surnames{} #4}\fi}%
                    \else%
                         \csgdef{\@nameauth@CleanName{#3#4!MN!}}{}%
                         \@nameauth@FmtName{#3 #4}%
                              \if@nameauth@dtx\index{#3=\Surnames{} #4}%
                              \else\index{#3@\Surnames{} #4}\fi%
                     \fi%
               \else%
                    \ifcsname\@nameauth@CleanName{#3#4!NF!}\endcsname%
                    \IfBooleanTF{#1}%
                         {\@nameauth@FmtName*{#3 #4}%
                              \if@nameauth@dtx\index{#3=\Surnames{} #4}%
                              \else\index{#3@\Surnames{} #4}\fi}%
                         {\@nameauth@FmtName*{\@nameauth@Zapsuffix{#3}}%
                              \if@nameauth@dtx\index{#3=\Surnames{} #4}%
                              \else\index{#3@\Surnames{} #4}\fi}%
                    \else%
                         \csgdef{\@nameauth@CleanName{#3#4!NF!}}{}%
                         \@nameauth@FmtName*{#3 #4}%
                              \if@nameauth@dtx\index{#3=\Surnames{} #4}%
                              \else\index{#3@\Surnames{} #4}\fi%
                     \fi%
               \fi%
          \fi}%
          {\ifcsname\@nameauth@CleanName{#3!PN!}\endcsname%
               \@nameauth@FmtName*{#3}%
               \PackageWarning{nameauth}%
               {You cannot create a page reference from the pen name: #3.}%
          \else%
               \if@nameauth@DoFormat%
                    \ifcsname\@nameauth@CleanName{#3!MN!}\endcsname%
                    \IfBooleanTF{#1}%
                         {\@nameauth@FmtName*{#3}%
                              \if@nameauth@dtx\index{#3=\Surnames}%
                              \else\index{#3@\Surnames}\fi}%
                         {\@nameauth@FmtName*{\@nameauth@Zapsuffix{#3}}%
                              \if@nameauth@dtx\index{#3=\Surnames}%
                              \else\index{#3@\Surnames}\fi}%
                    \else%
                         \csgdef{\@nameauth@CleanName{#3!MN!}}{}%
                         \@nameauth@FmtName{#3}%
                              \if@nameauth@dtx\index{#3=\Surnames}%
                              \else\index{#3@\Surnames}\fi%
                     \fi%
               \else%
                    \ifcsname\@nameauth@CleanName{#3!NF!}\endcsname%
                    \IfBooleanTF{#1}%
                         {\@nameauth@FmtName*{#3}%
                              \if@nameauth@dtx\index{#3=\Surnames}%
                              \else\index{#3@\Surnames}\fi}%
                         {\@nameauth@FmtName*{\@nameauth@Zapsuffix{#3}}%
                              \if@nameauth@dtx\index{#3=\Surnames}%
                              \else\index{#3@\Surnames}\fi}%
                     \else%
                         \csgdef{\@nameauth@CleanName{#3!NF!}}{}%
                         \@nameauth@FmtName*{#3}%
                              \if@nameauth@dtx\index{#3=\Surnames}%
                              \else\index{#3@\Surnames}\fi%
                    \fi%
               \fi%
          \fi}%
     }%
     \if@nameauth@Punct\expandafter\@nameauth@CheckDot\fi%
}
%    \end{macrocode}
% \end{macro}
% \cmd{\Name} is the heart of this package. \Name*[Marc van]{Dongen} provided the basic structure.
%
%The reason why one sees six bifurcate outcomes repeated three times for eighteen ``normal'' and eighteen ``special'' variations is because one must make different decisions based on the dynamic interaction of many factors beyond mere input. First, at every instance where output is generated via \cmd{\index} there is a check to determine if the ``normal'' character for index entry literals will be used or the ``special'' version will be used with the \textsf{ltxdoc} class.
%
% Regarding the many branches, one cannot assume that the name will terminate with a suffix like ``Jr.'' until a check has been run to determine if the suffix should be truncated. The main dynamic factors include: the Boolean and value parameters (there are eight valid patterns of input among them), the first or subsequent use, the front or main matter use, possible operations on suffixes, the formatting or non-formatting of output, and whether a pen name has been passed to the routine.
%
% Here is how these many factors interrelate:
%
% \cmd{\Name} first checks for comma suppression. if so it stores a comma-suppressed version of the third parameter in \cmd{\Surnames}. Otherwise it stores an unchanged version in \cmd{\Surnames}. This will be passed to \cmd{\index} as a literal.
% 
%\noindent \cmd{\Name} then checks for the forenames argument. Two outcomes are possible.
% \begin{enumerate}
% \item Forenames are present. In this case, the alternate names argument creates two choices.
% \begin{enumerate}
% \item The alternate names replace the forenames in the printed form, not the indexed form.
% \item The absence of alternate names will result in the forenames being used for both forms.
% \end{enumerate}
% \item Forenames are absent. In that case, the alternate names argument creates two different choices.
% \begin{enumerate}
% \item The alternate names are appended to the surnames in both printed and indexed forms.
% \item Only the surnames are used.
% \end{enumerate}
% \end{enumerate}
%
% A check occurs for a control sequence based on the names given and the suffix \texttt{!PN!} (for pen name). This is how \cmd{\AKA} protects cross-references. If the control sequence exists, then \cmd{\Name} only prints the name given (but with comma suppression) and emits a warning. One cannot use \cmd{\ForgetName} to expunge a pen name. This is a deliberate decision to avoid corruption of the index cross-references.
%
% The next branch involves the Boolean value \texttt{@nameauth@DoFormat}, which is controlled by \cmd{\NamesActive} and \cmd{\NamesInactive}. If formatting is active, choose the unstarred form of \cmd{\@nameauth@FmtName}, which applies the formatting hook. Otherwise use the starred form that applies no formatting.
%
% The state of  \texttt{@nameauth@DoFormat} also controls the suffix used in the control sequences: \texttt{!MN!} for main name or \texttt{!NF!} for no format. This is the heart of the \texttt{frontmatter} / \texttt{mainmatter} mechanism.
%
% Where longer and shorter versions of names are printed, there the star parameter controls those outcomes. Comma suppression is used or not, as apppropriate, in the index entries, requiring the use of the ``literal'' character @ in most cases to get the alphabetizing and the output to work properly. Note again that one must always use commas with suffixes in the input, even if commas are suppressed in the output. That is how the mechanism works.
%
% The use of \cmd{\expandafter} before \cmd{\@nameauth@CheckDot} works with the other use of \cmd{\expandafter} mentioned with \cmd{\@nameauth@EvalDot} above to move past the closing brace and fetch the period as lookahead. That is only done when the check for a terminal period in the name succeeds.
%
% \begin{macro}{\PName}
% \changes{v0.85}{2012/02/05}{Add comma suppression}
%    \begin{macrocode}
\DeclareDocumentCommand\PName{s o m o m}%
{%
     \IfBooleanTF{#1}{\Name*[#2]{#3}}{\Name[#2]{#3}}%
     {\space}(\AKA[#2]{#3}[#4]{#5})%
}
%    \end{macrocode}
% \end{macro}
% \cmd{\PName} is a convenience macro whose starred and unstarred forms call the respective versions of \cmd{\Name}, then \cmd{\AKA}. It prevents both the ``sobriquet'' feature and the alternate forenames feature, as mentioned above. It is only compatible with similar usage via \cmd{\Name} relying on the ambiguous default behavior of suffixes, the suffix suppression routines, and comma suppression.
%
% \begin{macro}{\AKA}
% \changes{v0.85}{2012/02/05}{Add comma suppression, ltxdoc compatibility}
% \changes{v0.86}{2012/02/06}{Fixed some regressions}
%    \begin{macrocode}
\DeclareDocumentCommand\AKA{o m o m}%
{%
     \if@nameauth@DoComma%
          \edef\Surnamesi{#2}\edef\Surnamesii{#4}%
          \else\edef\Surnamesi{\@nameauth@NoComma{#2}}%
          \edef\Surnamesii{\@nameauth@NoComma{#4}}%
     \fi%
     \IfValueTF{#3}%
     {\@nameauth@FmtName*{#3 #4}%
          \ifcsname\@nameauth@CleanName{#3#4!PN!}\endcsname\relax\else%
               \csgdef{\@nameauth@CleanName{#3#4!PN!}}{}%
               \IfValueTF{#1}%
                    {\if@nameauth@dtx\index{#4=\Surnamesii, #3|see{\Surnamesi, #1}}%
                    \else\index{#4@\Surnamesii, #3|see{\Surnamesi, #1}}\fi}%
                    {\if@nameauth@dtx\index{#4=\Surnamesii, #3|see{\Surnamesi}}%
                    \else\index{#4@\Surnamesii, #3|see{\Surnamesi}}\fi}%
          \fi}%
     {\@nameauth@FmtName*{#4}%
          \ifcsname\@nameauth@CleanName{#4!PN!}\endcsname\relax\else%
               \csgdef{\@nameauth@CleanName{#4!PN!}}{}%
               \IfValueTF{#1}%
                    {\if@nameauth@dtx\index{#4=\Surnamesii|see{\Surnamesi, #1}}%
                    \else\index{#4@\Surnamesii|see{\Surnamesi, #1}}\fi}%
                    {\if@nameauth@dtx\index{#4=\Surnamesii|see{\Surnamesi}}%
                    \else\index{#4@\Surnamesii|see{\Surnamesi}}\fi}%
          \fi}%
     \if@nameauth@Punct\expandafter\@nameauth@CheckDot\fi%
}
%    \end{macrocode}
% \end{macro}
% \cmd{\AKA} prints a pseudonym and creates index cross-references. It also checks to see of cross-references already have been generated, and if so, it does not do it again. Like \cmd{\Name} it checks for a terminal period, but only for the alternate name.
%
% \begin{macro}{\IndexName}
% \changes{v0.75}{2012/01/19}{Optional parameter added; mandatory parameter deleted}
% \changes{v0.85}{2012/02/05}{Add comma suppression, ltxdoc compatibility}
% \changes{v0.86}{2012/02/06}{Slight tweak using \cmd{\edef}}
%    \begin{macrocode}
\DeclareDocumentCommand\IndexName{o m o}%
{%
     \if@nameauth@DoComma\edef\Surnames{#2}%
     \else\edef\Surnames{\@nameauth@NoComma{#2}}\fi%
     \IfValueTF{#1}%
          {\ifcsname\@nameauth@CleanName{#1#2!PN!}\endcsname%
               \else%
                    \if@nameauth@dtx\index{#2=\Surnames, #1}%
                    \else\index{#2@\Surnames, #1}\fi%
          \fi}%
          {\IfValueTF{#3}
               {\ifcsname\@nameauth@CleanName{#2#3!PN!}\endcsname%
               \else%
                    \if@nameauth@dtx\index{#2=\Surnames{} #3}%
                    \else\index{#2@\Surnames{} #3}\fi%
          \fi}%
               {\ifcsname\@nameauth@CleanName{#2!PN!}\endcsname%
               \else%
                    \if@nameauth@dtx\index{#2=\Surnames}%
                    \else\index{#2@\Surnames}\fi%
               \fi}
          }%
}
%    \end{macrocode}
% \end{macro}
% \cmd{\IndexName} creates an index entry that is not already a pseudonym. It prints nothing. It does ensure consistent formatting.
%
% \begin{macro}{\ForgetName}
% \changes{v0.75}{2012/01/19}{New parameter added}
%    \begin{macrocode}
\DeclareDocumentCommand\ForgetName{o m o}%
{%
     \IfValueTF{#1}%
          {\csundef{\@nameauth@CleanName{#1#2!MN!}}%
          \csundef{\@nameauth@CleanName{#1#2!NF!}}}%
          {\IfValueTF{#3}%
               {\csundef{\@nameauth@CleanName{#2#3!MN!}}%
               \csundef{\@nameauth@CleanName{#2#3!NF!}}}%
               {\csundef{\@nameauth@CleanName{#2!MN!}}%
               \csundef{\@nameauth@CleanName{#2!NF!}}}%
          }%
}
%    \end{macrocode}
% \end{macro}
% \cmd{\ForgetName} undefines control sequences to trigger the ``first use'' option of \cmd{\Name}.
%
% \begin{macro}{\NamesInactive}
%    \begin{macrocode}
\newcommand{\NamesInactive}{\@nameauth@DoFormatfalse}
%    \end{macrocode}
% \end{macro}
% This macro deactivates formatting, even as its counterpart below activates it.
% \begin{macro}{\NamesActive}
%    \begin{macrocode}
\newcommand{\NamesActive}{\@nameauth@DoFormattrue}
%    \end{macrocode}
% \end{macro}
% \clearpage
% \Finale
\endinput
% \iffalse
%</package>
% \fi