Debian Codegraph @

texmf-dist/doc/generic/schemata/README.md

raw symbols SCIP
1 # 1 Short Description
2
3 The schemata package helps the creation of topical outlines that illustrate the breakdown of concepts and categories in academic texts from the late medieval to early modern periods.
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 `schemata.zip` from [CTAN](https://mirrors.ctan.org/macros/generic/schemata.zip). After downloading, unpack `schemata.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 | `schemata.dtx` | commented style file; source file |
18 | `Makefile` | For use with GNU make; with source file |
19 | `schemata.eps` | Image file for the manual; source file |
20 | `schemata.sty` | style file (generated file) |
21 | `schemata.pdf` | Documentation (generated file) |
22 | `README.md` | This file (generated file) |
23 | `schematest.tex` | Test file (generated file) |
24
25 ## 3.2 Determining the Installation type
26
27 ### 3.2.1 Read `Makefile` First
28
29 `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.
30
31 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`.
32
33 ### 3.2.2 POSIX Cases
34
35 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:
36
37 1. Use GNU make to build and install. **Section 4.1**
38
39 2. Build and install manually. **Section 4.2**
40
41 ### 3.2.3 Windows Cases
42
43 Windows offers the largest number of possibilities:
44
45 * Cygwin offers a POSIX environment and its own TeX distribution. Avoid installing another TeX distro via WSL or Windows native. **Section 4.1**
46
47 * WSL offers a POSIX environment and its own TeX distribution. Avoid installing another TeX distro via Cygwin or Windows native. **Section 4.1**
48
49 * 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.
50
51 * One can use `make` to build this package. **Section 4.1.1**
52
53 * Installation must be manual. **Section 4.2.2**
54
55 * Directly using native Windows TeX distributions (MikTeX or TeXlive)
56
57 All building and installation must be manual. **Section 4.2**
58
59 * Other POSIX environments running under DOS, Windows, and other systems have not been tested and are not supported.
60
61 * `Makefile` contains tests that will mitigate some issues:
62
63 * If a `.exe` extension is needed by programs used in the building process, that is detected automatically.
64
65 * If `ltxfileinfo` does not exist, the make process will produce a zip file that avoids potential problems in Windows.
66
67 * If `dvipdf` from Ghostscript is installed in a non-Windows environment, the make process will use that. Otherwise it will fall back to `dvipdfmx`.
68
69 * 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.
70
71 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).
72
73 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.
74
75 | Build Env. | TeX Distro Platform | Make builds pkg/zip | Make installs package |
76 | :--------- | :------------------ | :----------------------------- | :------------------------------ |
77 | POSIX | POSIX | Yes<sup>1</sup> | Yes |
78 | Cygwin | Cygwin (packages) | Not tested; likely<sup>1</sup> | Not tested; likely <sup>2</sup> |
79 | Cygwin | MikTeX (Windows) | Yes<sup>1, 3</sup> | No;<sup>4</sup> do manually |
80 | Cygwin | TeXlive (Windows) | Not tested; likely<sup>1</sup> | Not tested; do manually |
81 | WSL | WSL Linux packages | Yes<sup>1</sup> | Yes<sup>5</sup> |
82 | WSL | MikTeX (Windows) | Yes<sup>1, 3</sup> | No;<sup>4</sup> do manually |
83 | WSL | TeXlive (Windows) | Not tested; likely<sup>1</sup> | Not tested; do manually |
84
85 <sup>1</sup> All dependencies must be met. Bear in mind possible MacOS issues.
86
87 <sup>2</sup> Installs only to Cygwin environment; not to Windows environment.
88
89 <sup>3</sup> The `make images` target using `pdfjam` likely will not work as desired. **Section 6.2.3 Images**
90
91 <sup>4</sup> Neither `ltxfileinfo` nor `kpsewhich` will give useful results; do a manual install.
92
93 <sup>5</sup> Installs only to WSL Linux distro environment; not to Windows environment.
94
95 # 4 Building and Installing
96
97 Regarding command line options longer than one letter, the programs included with major TeX distributions use either single dashes or GNU-style double dashes.
98
99 Here, for the sake of consistency, we use the GNU convention of single dashes with one-letter options and double dashes for longer options.
100
101 ## 4.1 GNU `make` for Building and Installation
102
103 ### 4.1.1 Build
104
105 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"`.
106
107 There is a make target, `make unpack`, that does not build the package. It only regenerates files from `schemata.dtx`.
108
109 ### 4.1.2 Install
110
111 Currently, `Makefile` only installs into POSIX environments.
112
113 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.
114
115 For site-wide use, one must be able to get root privileges via `sudo`.
116
117 * Type `make inst` to install the package files in the user's personal TDS-compliant directory tree.
118
119 * 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.
120
121 ### 4.1.3 Remove
122
123 The same constraints that apply to installation also apply to removal. If one can do the former, one can do the latter.
124
125 * Type `make uninst` to remove the package files in the user's personal TDS-compliant directory tree.
126
127 * 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.
128
129 `Makefile` will produce listings from the remaining texmf trees after uninstalling the package.
130
131 ## 4.2 Manual Building and Installation
132
133 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.
134
135 ### 4.2.1 Build
136
137 1. Using the unpacked files from the zip archive, we begin by creating the installation driver, unpacking additional files from `schemata.dtx`, and generating a copy of the documentation without the table of contents and cross-references:
138
139 pdflatex --shell-escape --recorder --interaction=batchmode schemata.dtx
140
141 a. We see the following main files:
142
143 `Makefile`, `README.md`, `schemata.dtx`, `schemata.eps`, `schemata.ins`, `schemata.pdf`, `schemata.sty`, and `schematest.tex`.
144
145 b. We also see the following temporary files:
146
147 `schemata.aux`, `schemata.fls`, `schemata.glo`, `schemata.hd`, `schemata.idx`, `schemata.log`, `schemata.out`, `schemata.tmp`, and `schemata.toc`; also `schemata-eps-converted-to.pdf`.
148
149 2. Generate the TOC and cross-references within the documentation:
150
151 pdflatex --recorder --interaction=nonstopmode schemata.dtx
152
153 3. Generate the index and glossary files using `makeindex`:
154
155 makeindex -q -s gglo.ist -o schemata.gls schemata.glo
156 makeindex -q -s gind.ist -o schemata.ind schemata.idx
157
158 This adds three files: `schemata.gls`, `schemata.ilg`, and `schemata.ind`.
159
160 4. Integrate the glossary (list of changes) and index into the documentation. The second run updates the TOC:
161
162 pdflatex --recorder --interaction=nonstopmode schemata.dtx
163 pdflatex --recorder --interaction=nonstopmode schemata.dtx
164
165 The list of files now looks like:
166
167 | Filename | Description |
168 | :--------------- | :----------------------------- |
169 | `Makefile` | for use with GNU make |
170 | `schemata.dtx` | commented style file |
171 | `schemata.eps` | Image file used for the manual |
172 | | |
173 | `README.md` | this file |
174 | `schemata.pdf` | package documentation |
175 | `schematest.tex` | test file |
176 | | |
177 | `schemata.ins` | installation driver |
178 | `schemata.sty` | style file |
179 | | |
180 | `schemata.aux` | auxiliary file |
181 | `schemata.fls` | shows files read |
182 | `schemata.glo` | raw glossary entries |
183 | `schemata.gls` | typeset glossary entries |
184 | `schemata.hd` | |
185 | `schemata.idx` | raw index entries |
186 | `schemata.ilg` | `makeindex` log file |
187 | `schemata.ind` | typeset index entries |
188 | `schemata.log` | log file |
189 | `schemata.out` | pdf bookmark/hypertext info |
190 | `schemata.tmp` | temp file used with fancyvrb |
191 | `schemata.toc` | table of contents info |
192
193 Also, there is the automatically-generated `schemata-eps-converted-to.pdf`.
194
195 ### 4.2.2 General Install Info
196
197 In order to perform manual installation, one should be familiar with the general information at the [TeX FAQ](https://www.texfaq.org/FAQ-installthings).
198
199 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).
200
201 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.
202
203 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.
204
205 ### 4.2.3 Install for a User
206
207 `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:
208
209 * `kpsewhich --var-value TEXMFHOME`
210
211 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.
212
213 | Path | Files |
214 | :----------------------------------- | :--------------- |
215 | `$TEXMFHOME/source/generic/schemata` | `schemata.ins` |
216 | | `schemata.dtx` |
217 | | `schemata.eps` |
218 | | `Makefile` |
219 | | |
220 | `$TEXMFHOME/tex/generic/schemata` | `schemata.sty` |
221 | | |
222 | `$TEXMFHOME/doc/generic/schemata` | `schemata.pdf` |
223 | `$TEXMFHOME/doc/generic/schemata` | `README.md` |
224 | `$TEXMFHOME/doc/generic/schemata` | `schematest.tex` |
225
226 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).
227
228 ### 4.2.4 Install Site-Wide
229
230 `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:
231
232 * `kpsewhich --var-value TEXMFLOCAL`
233
234 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:
235
236 | Path | Files |
237 | :------------------------------------ | :--------------- |
238 | `$TEXMFLOCAL/source/generic/schemata` | `schemata.ins` |
239 | | `schemata.dtx` |
240 | | `schemata.eps` |
241 | | `Makefile` |
242 | | |
243 | `$TEXMFLOCAL/tex/generic/schemata` | `schemata.sty` |
244 | | |
245 | `$TEXMFLOCAL/doc/generic/schemata` | `schemata.pdf` |
246 | | `README.md` |
247 | | `schematest.tex` |
248
249 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).
250
251 # 5 More on Package Building
252
253 * The package and manual build on current and older TeX distributions, being designed with that in mind.
254
255 * The documentation is built only with `pdflatex`. The test file can generate output with multiple formats.
256
257 * 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).
258
259 * 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.
260
261 * TeXlive versions are managed on Pop! OS using [tl-switch](https://github.com/ServusCarolus/tl-switch).
262
263 # 6 Testing
264
265 The file `schematest.tex` is designed to test this package on a wide variety of formats.
266
267 To test `schemata`, 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.
268
269 ## 6.1 Using GNU `make`
270
271 The make file will not allow `make` to process `dvilualatex` as a target. For caveats regarding the `eplain` target, see below.
272
273 * Type `make test` to use `pdflatex` and Greek via `babel`.
274
275 * If one wants to change engines and re-test, type `make testclean`.
276
277 * One can add the value of ENGINE:
278
279 For Greek via `polyglossia`; requires `GFSDidot.otf`:
280 :
281 make test ENGINE=xelatex
282 make test ENGINE=lualatex
283
284 For Greek via `babel`:
285 make test ENGINE=pdflatex (default)
286 make test ENGINE=latex
287
288 For transliterated Greek:
289 make test ENGINE=tex
290 make test ENGINE=luatex
291 make test ENGINE=dviluatex
292 make test ENGINE=xetex
293 make test ENGINE=eplain
294 make test ENGINE=lollipop
295
296 * The `eplain` executable may not exist in some TeX distributions. If this is the case, `make` will use `pdftex` to load the eplain macros and process the test files.
297
298 * To add more options, use, e.g.:
299
300 make test ADDOPTS="--synctex=1"
301
302 ## 6.2 Manual Method
303
304 Using `dvilualatex` has more complicated setup prerequisites that go beyond the scope of this document. One would have to install TFM files generated from `GFSDidot.otf` or use a different font.
305
306 * Compile `schematest.tex`.
307
308 Shows Greek text via `polyglossia`; requires `GFSDidot.otf`:
309
310 lualatex --interaction=nonstopmode schematest
311 xelatex --interaction=nonstopmode schematest
312
313 Shows Greek text via `babel`:
314
315 latex --interaction=nonstopmode schematest
316 pdflatex --interaction=nonstopmode schematest
317
318 Shows transliterated Greek:
319
320 tex --interaction=nonstopmode schematest
321 pdftex --interaction=nonstopmode schematest
322 luatex --interaction=nonstopmode schematest
323 dviluatex --interaction=nonstopmode schematest
324 xetex --interaction=nonstopmode schematest
325
326 eplain --interaction=nonstopmode schematest
327
328 lollipop --interaction=nonstopmode schematest
329
330 * If `eplain` is not available as a command in the shell, one can invoke `pdftex` thus:
331
332 $ pdftex
333 This is pdfTeX, Version 3.141592653-2.6-1.40.28 (TeX Live 2025) (preloaded format=pdftex)
334 restricted \write18 enabled.
335 **&eplain schematest
336
337 * Another step is used only when a `dvi` file is produced.
338
339 We default to `dvipdfmx` in case Ghostscript is not installed. If Ghostscript is already installed, one may be able to use `dvipdf` instead, but this can depend on one's system and TeX distribution. If a file `schematest.out.ps` exists, one may delete it after creating the pdf file.
340
341 dvipdfmx schematest
342
343 If one changes LaTeX engines, one first must remove all of the auxiliary files.
344
345 # 7 Copyright
346
347 Copyright (C) 2025 by Charles P. Schaum <charles[dot][email protected]>
348
349 This file may be distributed and/or modified under the
350 conditions of the LaTeX Project Public License, either
351 version 1.3 of this license or (at your option) any
352 later version. The latest version of this license is in:
353
354 [https://www.latex-project.org/lppl.txt](https://www.latex-project.org/lppl.txt)
355
356 and version 1.3 or later is part of all distributions
357 of LaTeX version 2005/12/01 or later.
358
359 This work includes all source and generated files
360 described as such in this file, README.md.