Debian Codegraph @

texmf-dist/doc/latex/nameauth/README.md

raw
1 # 1 Short Description
2
3 The `nameauth` package automates the correct formatting and indexing of names for professional writing. This aids the use of a name authority and the editing process without needing to retype name instances.
4
5 # 2 Installing a Distro Package
6
7 One can find `nameauth` in one's current TeX distribution. See the appropriate documentation in TeXlive, MikTeX, MacTeX, Linux distro, BSD, etc. Use those tools to ensure that `nameauth` is installed. **You are done.**
8
9 # 3 Obtaining from CTAN
10
11 ## 3.1 Getting the Package Archive
12
13 If not using the tools above, one can download `nameauth.zip` from [CTAN](https://mirrors.ctan.org/macros/latex/contrib/nameauth.zip). After downloading, unpack `nameauth.zip` in an appropriate directory. Change to the directory containing the supplied files. The following files are included in the archive that is uploaded to CTAN:
14
15 | Filename | Description |
16 | :------------- | :------------------------- |
17 | *Source* | |
18 | `Makefile` | for use with GNU make |
19 | `cat01.pdf` | manual illustration, ch. 7 |
20 | `beamer01.pdf` | manual illustration, ch. 9 |
21 | `beamer02.pdf` | manual illustration, ch. 9 |
22 | `beamer03.pdf` | manual illustration, ch. 9 |
23 | `nameauth.dtx` | commented macro file |
24 | *Generated* | |
25 | `compat.tex` | compatibility module |
26 | `examples.tex` | example file |
27 | `README.md` | this file |
28 | *Built* | |
29 | `nameauth.pdf` | package documentation |
30
31 ## 3.2 Determining the Installation type
32
33 ### 3.2.1 Read `Makefile` First
34
35 `Makefile` has an extensive comment on usage, as well as other helpful comments. It lists all required programs needed to use the GNU make file for installation in a POSIX-compliant environment, such as GNU/Linux, various BSDs, MacOS, and WSL or Cygwin on Windows.
36
37 Minimum required programs include `bash` or an equivalent shell (for which one must edit `Makefile`), and `make`, plus a TeX distribution. To distribute the package, one also requires at least `sed`, and `zip`.
38
39 ### 3.2.2 POSIX Cases
40
41 If one is using a TeX distribution in a POSIX environment (MacOS, Linux distro, BSD, etc.) and has the required programs listed in `Makefile`, one may do one of the following:
42
43 1. Use GNU make to build and install. **Section 4.1**
44
45 2. Build and install manually. **Section 4.2**
46
47 ### 3.2.3 Windows Cases
48
49 Windows offers the largest number of possibilities:
50
51 * Cygwin offers a POSIX environment and its own TeX distribution. Avoid installing another TeX distro via WSL or Windows native. **Section 4.1**
52
53 * WSL offers a POSIX environment and its own TeX distribution. Avoid installing another TeX distro via Cygwin or Windows native. **Section 4.1**
54
55 * Use `make` within either Cygwin or WSL to build this package for native Windows TeX distributions MikTeX or TeXlive. Install needed build components in either Cygwin or WSL, alongside either MikTeX or TeXlive, but not both distros. Avoid installing another TeX distro in either Cygwin or WSL.
56
57 * One can use `make` to build this package. **Section 4.1.1**
58
59 * Installation must be manual. **Section 4.2.2**
60
61 * Directly using native Windows TeX distributions (MikTeX or TeXlive)
62
63 All building and installation must be manual. **Section 4.2**
64
65 * Other POSIX environments running under DOS, Windows, and other systems have not been tested and are not supported.
66
67 * `Makefile` contains tests that will mitigate some issues:
68
69 * If a `.exe` extension is needed by programs used in the building process, that is detected automatically.
70
71 * If `ltxfileinfo` does not exist, the make process will produce a zip file that avoids potential problems in Windows.
72
73 * If `dvipdf` from Ghostscript is installed, the make process will use that. Otherwise it will fall back to `dvipdfmx`.
74
75 * If `pdfjam` is installed, the make process uses it. Otherwise, it will instruct the user to proceed manually. **Section 6.2.3**
76
77 * When installing, the make process will check if the path to the install directory exists. If it does not, it will produce an error message and exit.
78
79 If this error message occurs, which is more likely in Windows, please refer to installation of local packages in MikTeX [here](https://docs.miktex.org/manual/localadditions.html#id573803) and [here](https://miktex.org/kb/texmf-roots). Otherwise see the [TeX FAQ](https://www.texfaq.org/FAQ-privinst) and [this page](https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages).
80
81 Here is a table showing the feasibility of a few scenarios. Any case that is not mentioned below has not been tested and is not recommended.
82
83 | Build Env. | TeX Distro Platform | Make builds pkg/zip | Make installs package |
84 | :--------- | :------------------ | :----------------------------- | :------------------------------ |
85 | POSIX | POSIX | Yes<sup>1</sup> | Yes |
86 | Cygwin | Cygwin (packages) | Not tested; likely<sup>1</sup> | Not tested; likely <sup>2</sup> |
87 | Cygwin | MikTeX (Windows) | Yes<sup>1, 3</sup> | No;<sup>4</sup> do manually |
88 | Cygwin | TeXlive (Windows) | Not tested; likely<sup>1</sup> | Not tested; do manually |
89 | WSL | WSL Linux packages | Yes<sup>1</sup> | Yes<sup>5</sup> |
90 | WSL | MikTeX (Windows) | Yes<sup>1, 3</sup> | No;<sup>4</sup> do manually |
91 | WSL | TeXlive (Windows) | Not tested; likely<sup>1</sup> | Not tested; do manually |
92
93 <sup>1</sup> All dependencies must be met. Bear in mind possible MacOS issues.
94
95 <sup>2</sup> Installs only to Cygwin environment; not to Windows environment.
96
97 <sup>3</sup> The `make images` target using `pdfjam` likely will not work as desired. **Section 6.2.3 Images**
98
99 <sup>4</sup> Neither `ltxfileinfo` nor `kpsewhich` will give useful results; do a manual install.
100
101 <sup>5</sup> Installs only to WSL Linux distro environment; not to Windows environment.
102
103 # 4 Building and Installing
104
105 Regarding command line options longer than one letter, the programs included with major TeX distributions, except for `pdfjam`, use either single dashes or GNU-style double dashes.
106
107 Here, for the sake of consistency, we use the GNU convention of single dashes with one-letter options and double dashes for longer options.
108
109 ## 4.1 GNU `make` for Building and Installation
110
111 ### 4.1.1 Build
112
113 In the directory where the files unpacked from the zip archive are located, type `make`. This will do a fresh build of the package using `pdflatex`. To add more options, use, e.g.: `make ADDOPTS="--synctex=1"`.
114
115 There is a make target, `make unpack`, that does not build the package. It only regenerates files from `nameauth.dtx`.
116
117 ### 4.1.2 Install
118
119 Currently, `Makefile` only installs into POSIX environments.
120
121 For individual use, one must have a TDS-compliant tree set up in order for installation to work. For more info in setting up those trees, see **Section 4.2.3** for the individual case and **Section 4.2.4** for the site-wide case.
122
123 For site-wide use, one must be able to get root privileges via `sudo`.
124
125 * Type `make inst` to install the package files in the user's personal TDS-compliant directory tree.
126
127 * Type `make install` to install the package files in the site-wide, local TDS-compliant directory tree. The user will be prompted for the `sudo` password.
128
129 ### 4.1.3 Remove
130
131 The same constraints that apply to installation also apply to removal. If one can do the former, one can do the latter.
132
133 * Type `make uninst` to remove the package files in the user's personal TDS-compliant directory tree.
134
135 * Type `make uninstall` to remove the package files in the site-wide, local TDS-compliant directory tree. The user will be prompted for the `sudo` password.
136
137 `Makefile` will produce listings from the remaining texmf trees after uninstalling the package.
138
139 ## 4.2 Manual Building and Installation
140
141 Unlike the case with the supplied `Makefile`, which automates adding extensions, in certain cases using Windows TeX distros, one may have to add the ".exe" extension to the programs.
142
143 ### 4.2.1 Build
144
145 1. Using the unpacked files from the zip archive, we begin by creating the installation driver, unpacking additional files from `nameauth.dtx`, and generating a copy of the documentation without the table of contents and cross-references:
146
147 pdflatex --shell-escape --recorder --interaction=batchmode nameauth.dtx
148
149 a. We see the following main files:
150
151 `Makefile`, `cat01.pdf`, `beamer01.pdf`, `beamer02.pdf`, `beamer03.pdf`, `nameauth.dtx`, `compat.tex`, `examples.tex`, `nameauth.pdf`, `README.md`, `nameauth.ins`, and `nameauth.sty`.
152
153 b. We also see the following temporary files:
154
155 `nameauth.aux`, `nameauth.fls`, `nameauth.glo`, `nameauth.hd`, `nameauth.idx`, `nameauth.log`, `nameauth.out`, `nameauth.tmp`, and `nameauth.toc`.
156
157 2. Generate the TOC and cross-references within the documentation:
158
159 pdflatex --recorder --interaction=nonstopmode nameauth.dtx
160
161 3. Generate the index and glossary files using `makeindex`:
162
163 makeindex -q -s gglo.ist -o nameauth.gls nameauth.glo
164 makeindex -q -s gind.ist -o nameauth.ind nameauth.idx
165
166 This adds three files: `nameauth.gls`, `nameauth.ilg`, and `nameauth.ind`.
167
168 4. Integrate the glossary (list of changes) and index into the documentation. The second run updates the TOC:
169
170 pdflatex --recorder --interaction=nonstopmode nameauth.dtx
171 pdflatex --recorder --interaction=nonstopmode nameauth.dtx
172
173 The list of files now looks like:
174
175 | Filename | Description |
176 | :------------- | :--------------------------- |
177 | `Makefile` | for use with GNU make |
178 | `cat01.pdf` | manual illustration, ch. 7 |
179 | `beamer01.pdf` | manual illustration, ch. 9 |
180 | `beamer02.pdf` | manual illustration, ch. 9 |
181 | `beamer03.pdf` | manual illustration, ch. 9 |
182 | `nameauth.dtx` | commented style file |
183 | | |
184 | `compat.tex` | compatibility module |
185 | `examples.tex` | example file |
186 | `nameauth.pdf` | package documentation |
187 | `README.md` | this file |
188 | | |
189 | `nameauth.ins` | installation driver |
190 | `nameauth.sty` | style file |
191 | | |
192 | `nameauth.aux` | auxiliary file |
193 | `nameauth.fls` | shows files read |
194 | `nameauth.glo` | raw glossary entries |
195 | `nameauth.hd` | |
196 | `nameauth.idx` | raw index entries |
197 | `nameauth.log` | log file |
198 | `nameauth.out` | pdf bookmark/hypertext info |
199 | `nameauth.tmp` | temp file used with fancyvrb |
200 | `nameauth.toc` | table of contents info |
201 | `manhook.tmp` | snippet with manual's fmt |
202 | `nullhook.tmp | snippet with default format |
203 | | |
204 | `nameauth.gls` | typeset glossary entries |
205 | `nameauth.ilg` | `makeindex` log file |
206 | `nameauth.ind` | typeset index entries |
207
208 ### 4.2.2 General Install Info
209
210 In order to perform manual installation, one should be familiar with the general information at the [TeX FAQ](https://www.texfaq.org/FAQ-installthings).
211
212 Different TeX distributions have somewhat different ways to store TDS-compliant configuration and package data. See, for example, for MikTeX [here](https://docs.miktex.org/manual/localadditions.html#id573803) and [here](https://miktex.org/kb/texmf-roots). Otherwise see the [TeX FAQ](https://www.texfaq.org/FAQ-privinst) and [this page](https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages).
213
214 The instructions below conform generally to a Unix-like system. There are some cases under Windows where this method may not work. For other non-POSIX systems, one will have to know the appropriate procedures and documentation as needed for those cases, which are not covered here.
215
216 The user must already have a TDS-compliant tree set up in order for installation to work. We assume that one knows how to become superuser, create directories, move files, and the like.
217
218 ### 4.2.3 Install for a User
219
220 `TEXMFHOME` is an environment (shell) variable that points to the root of a TDS-compliant directory tree available to a user. To get its value on POSIX-compliant systems, use:
221
222 * `kpsewhich --var-value TEXMFHOME`
223
224 Quite often, `$TEXMFHOME` is equivalent to `$HOME/texmf`. The dollar sign in front of the variable denotes the value of the variable instead of its name. If `$HOME` is `/home/bob`, then `$TEXMFHOME` would be `/home/bob/texmf`. We can understand the following paths to be under this home directory.
225
226 | Path | Files |
227 | :--------------------------------- | :------------- |
228 | `$TEXMFHOME/source/latex/nameauth` | `Makefile` |
229 | | `cat01.pdf` |
230 | | `beamer01.pdf` |
231 | | `beamer02.pdf` |
232 | | `beamer03.pdf` |
233 | | `nameauth.dtx` |
234 | | |
235 | `$TEXMFHOME/doc/latex/nameauth` | `compat.tex` |
236 | | `examples.tex` |
237 | | `nameauth.pdf` |
238 | | `README.md` |
239 | | |
240 | `$TEXMFHOME/tex/latex/nameauth` | `nameauth.sty` |
241
242 Create the directories in the left-hand column, or the equivalent. For manual installation, move or copy the files in the right-hand column to their respective directories in the left-hand column. On older TeX distributions, run `mktexlsr` on `$TEXMFHOME` to complete the install process (current distributions may not need this).
243
244 ### 4.2.4 Install Site-Wide
245
246 `TEXMFLOCAL` is a variable that points to the root of a TDS-compliant directory tree available to all users on a local site, system-wide installation. To get its value, use:
247
248 * `kpsewhich --var-value TEXMFLOCAL`
249
250 See the [TeX FAQ](https://www.texfaq.org/FAQ-what-TDS). We can understand the following paths to be under this local site, system-wide directory:
251
252 | Path | Files |
253 | :---------------------------------- | :------------- |
254 | `$TEXMFLOCAL/source/latex/nameauth` | `Makefile` |
255 | | `cat01.pdf` |
256 | | `beamer01.pdf` |
257 | | `beamer02.pdf` |
258 | | `beamer03.pdf` |
259 | | `nameauth.dtx` |
260 | | |
261 | `$TEXMFLOCAL/doc/latex/nameauth` | `compat.tex` |
262 | | `examples.tex` |
263 | | `nameauth.pdf` |
264 | | `README.md` |
265 | | |
266 | `$TEXMFLOCAL/tex/latex/nameauth` | `nameauth.sty` |
267
268 Create the directories in the left-hand column. For manual installation, move or copy the files in the right-hand column to their respective directories in the left-hand column. Change file ownership as needed. If needed, run `mktexlsr` with the appropriate permissions on `$TEXMFLOCAL` to complete the install process. See also the discussion on [this page](https://tex.stackexchange.com/questions/45231/how-to-install-system-wide-packages-without-requiring-an-ls-r-database-with-tex).
269
270 # 5 More on Package Building
271
272 * The package and manual build on current and older TeX distributions, being designed with that in mind.
273
274 * The documentation is built only with `pdflatex` for the sake of its design elements. The examples and tests can be built with any LaTeX engine.
275
276 * This release was tested on Linux (Pop! OS; vanilla TL, both current and 2017) and Windows 10 (MikTeX using shells from both Cygwin and WSL). Using TL 2017, this release was tested on the full manuscript of the published volume, *Breath of God, Yet Work of Man: Scripture, Philosophy, Dialogue, and Conflict*, with Dr. Albert B. Collver III.
277
278 * The CTAN release was created with the current vanilla TL on Pop! OS. See also [this page](https://wiki.debian.org/TeXLive) for Debian-based systems. For Arch-based systems, the AUR has a package that takes care of dependencies.
279
280 * TeXlive versions are managed on Pop! OS using [tl-switch](https://github.com/ServusCarolus/tl-switch).
281
282 * Four pdf files (`cat01.pdf` and `beamer*.pdf`) used in graphic illustrations are created from the output of test files associated with this manual (see below). Normally, the user need not generate them; they are supplied as source files.
283
284 # 6 Examples / Testing
285
286 The file `examples.tex` also includes `compat.tex`; they should be in the same directory when compiled. The examples document should be enough to illustrate various non-trivial features of this package. It includes most of the longer examples in the manual, edited to fit together in a single document. It also includes other material and tests.
287
288 In addition to this file, a special run of `nameauth.dtx` that defines the macro `\NameauthDoTestFiles` will generate many separate test files. They are not included in the package archive by default.
289
290 To test `nameauth`, either test the files right after installing, or create a new testing directory. One then can copy the files from the TDS-compliant source dir and optionally, the documentation directory as well, or unpack the CTAN zip file into the test directory and build the package.
291
292 ## 6.1 Using GNU `make`
293
294 ### 6.1.1 Examples
295
296 * Use the default: `make examples`.
297
298 * If one wants to change engines and re-test the file, type `make exclean`.
299
300 * To create `examples.pdf` with other LaTeX engines, one can do the following:
301
302 make examples ENGINE=xelatex
303 make examples ENGINE=lualatex
304 make examples ENGINE=dvilualatex
305 make examples ENGINE=latex
306
307 * To add more options, use, e.g.:
308
309 make examples ADDOPTS="--synctex=1"
310
311 ### 6.1.2 Tests
312
313 This will produce many test files numbered by chapter and example within that chapter from the `nameauth.dtx` file. By default it will compile all of the test files using `pdflatex`.
314
315 * To generate test files, type `make tests`.
316
317 * If one wants to change engines and re-test the files, type `make testclean`.
318
319 * One can add the value of ENGINE:
320
321 make tests ENGINE=xelatex
322 make tests ENGINE=lualatex
323 make tests ENGINE=dvilualatex
324 make tests ENGINE=latex
325
326 * To add more options, use, e.g.:
327
328 make tests ADDOPTS="--synctex=1"
329
330 ### 6.1.3 Manual Illustrations
331
332 Four manual illustrations are based on included tests. If, for some reason, one wanted to create those illustrations (usually not required), one would type `make images`.
333
334 ## 6.2 Manual Method
335
336 ### 6.2.1 Examples
337
338 * Compile `examples.tex`.
339
340 In the following command lines, one may substitute `latex`, `xelatex`, `lualatex`, and `dvilualatex` for `pdflatex`.
341
342 pdflatex --interaction=nonstopmode examples
343 pdflatex --interaction=nonstopmode examples
344 makeindex -o examples.ind examples.idx
345
346 * This next line is needed because the `index` package makes an index of persons.
347
348 makeindex -o examples.rnd examples.rdx
349
350 * These lines complete the indexes and TOC.
351
352 pdflatex --interaction=nonstopmode examples
353 pdflatex --interaction=nonstopmode examples
354
355 * Another step is used only with `latex` and `dvilualatex`.
356
357 We default to `dvipdfmx` in case Ghostscript is not installed. If Ghostscript is already installed, one can use `dvipdf` instead. If a file `examples.out.ps` exists, one may delete it after creating the pdf file.
358
359 dvipdfmx examples
360
361 If one changes LaTeX engines, one first must remove all of the auxiliary files.
362
363 ### 6.2.2 Tests
364
365 * Generate the test files in the following manner from the `dtx`:
366
367 pdflatex "\def\NameauthDoTestFiles{}\input{nameauth.dtx}"
368
369 * Compile the test files.
370
371 In the following command lines, one may substitute `latex`, `xelatex`, `lualatex`, and `dvilualatex` for `pdflatex`. One must change the root or base file name for each test file.
372
373 pdflatex --interaction=nonstopmode test01-01
374 pdflatex --interaction=nonstopmode test01-01
375 makeindex -o test01-01.ind test01-01.idx
376
377 * This next line is needed only for `test07-01.tex` because the `index` package is used for an index of persons.
378
379 makeindex -o test07-01.rnd test07-01.rdx
380
381 * These lines complete the indexes and TOC.
382
383 pdflatex --interaction=nonstopmode test01-01
384 pdflatex --interaction=nonstopmode test01-01
385
386 * This step is used only when using `latex` and `dvilualatex`.
387
388 dvipdfmx test01-01
389
390 If one changes LaTeX engines, one first must remove all of the auxiliary files.
391
392
393 ### 6.2.3 Images
394
395 Four manual illustrations are based on included tests. If, for some reason, one wanted to make the manual illustrations (usually not required), this would be the default procedure:
396
397 * Generate the test files in the following manner from the `dtx`:
398
399 pdflatex "\def\NameauthDoTestFiles{}\input{nameauth.dtx}"
400
401 * Compile the test files:
402
403 pdflatex --interaction=nonstopmode test07-02
404 pdflatex --interaction=nonstopmode test07-02
405 makeindex -o test07-02.ind test07-02.idx
406 pdflatex --interaction=nonstopmode test07-02
407 pdflatex --interaction=nonstopmode test07-02
408
409 pdflatex --interaction=nonstopmode test09-01
410 pdflatex --interaction=nonstopmode test09-01
411 makeindex -o test09-01.ind test09-01.idx
412 pdflatex --interaction=nonstopmode test09-01
413 pdflatex --interaction=nonstopmode test09-01
414
415 * Split and convert the files. If `pdfjam` is not available, one would have to use other programs to do this.
416
417 pdfjam --paper a6paper --landscape --quiet test07_02.pdf 3 --outfile cat01.pdf
418 pdfjam --paper a5paper --landscape --quiet test09_01.pdf 1 --outfile beamer01.pdf
419 pdfjam --paper a5paper --landscape --quiet test09_01.pdf 2 --outfile beamer02.pdf
420 pdfjam --paper a5paper --landscape --quiet test09_01.pdf 3 --outfile beamer03.pdf
421
422 # 7 Additional Notes
423
424 Starting from version 4.0 we switched from `xargs` and `suffix` to `xparse`. Should any modifications still require `xargs` and `suffix`, one can use the `oldargs` package option.
425
426 Version 3.7 remains here: [style](https://www.tug.org/svn/texlive/branches/branch2022.final/Master/texmf-dist/tex/latex/nameauth/), [docs](https://www.tug.org/svn/texlive/branches/branch2022.final/Master/texmf-dist/doc/latex/nameauth/), and [source](https://www.tug.org/svn/texlive/branches/branch2022.final/Master/texmf-dist/source/latex/nameauth/).
427
428 # 8 Copyright
429
430 Copyright (C) 2025 by Charles P. Schaum <charles[dot][email protected]>
431
432 This file may be distributed and/or modified under the
433 conditions of the LaTeX Project Public License, either
434 version 1.3 of this license or (at your option) any
435 later version. The latest version of this license is in:
436
437 [https://www.latex-project.org/lppl.txt](https://www.latex-project.org/lppl.txt)
438
439 and version 1.3 or later is part of all distributions
440 of LaTeX version 2005/12/01 or later.
441
442 This work includes all source and generated files
443 described as such in this file, README.md.