summaryrefslogtreecommitdiff
path: root/macros/generic/schemata/schemata.dtx
blob: 133998ebf6abb33e7076e438524a977b39263c51 (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
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
% \iffalse meta-comment
%
% Copyright (C) 2020 by Charles P. Schaum <charles[dot]schaum@comcast.net>
% -------------------------------------------------------
%
% This file 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.
%
%<*internal>
\iffalse
%</internal>
%<*readme>
%<<readmevb
# Short Description

Short description:
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.

# Files

|Filename        |Description                            |
|----------------|---------------------------------------|
|`schemata.dtx`  |commented style file; source file      |
|`Makefile`      |For use with GNU make; with source file|
|`schemata.ins`  |installation driver (generated file)   |
|`schemata.pdf`  |Documentation (generated file)         |
|`README.md`     |This file (generated file)             |
|`schematest.tex`|Test file for Plain TeX or Eplain      |
|`schemata.png`  |Image file used for the manual         |

# Obtaining the Package

1. Packaged in your current TeX distrbution: See the appropriate documentation.

2. Otherwise, download `schemata.zip` from [CTAN](www.ctan.org/tex-archive/macros/generic/schemata).

3. Unpack `schemata.zip` in an appropriate directory.

4. Change to the  directory containing the `schemata` files.

# File Generation

## Automatic Installation

This method requires GNU `make` on a POSIX-compliant environment, such as GNU/Linux, various BSD flavors, perhaps MacOS (e.g., with various porting systems), and even Cygwin on Windows.

0. A quick install in one's home directory using some of the included files from the `zip` archive just requires the following steps:

        tex schemata.dtx
        make inst

Otherwise we use the LaTeX installation on the host machine to build the package. When using `make`, any `dvi` files that are created will also be converted to `pdf` format.

1. Type `make distclean release` to generate the release files using `pdflatex`.

3. To use another TeX engine, type one of the following:
        make ENGINE=latex
        make ENGINE=lualatex
        make ENGINE=dvilualatex
        make ENGINE=xelatex

4. Type `make inst` to install the files in the user's personal TDS-compliant directory tree.

5. Type `sudo make install` to install the files in the system-wide, local TDS-compliant directory tree.

## Manual Compilation

Otherwise, the following steps are used for manual installation. See the general information at the [TeX FAQ](https://www.texfaq.org/FAQ-installthings).

0. To use some of the included files from the `zip` archive and only extract files from the `dtx` file, just do the following step and proceed to installation:

        tex schemata.dtx

1. To build the package on the host system, generate the installation files and a copy of the documentation without the table of contents and cross-references. We use `pdflatex` by default:

        pdflatex --shell-escape --recorder --interaction=batchmode schemata.dtx

2. Generate the TOC and cross-references for the documentation:

        pdflatex --recorder --interaction=nonstopmode schemata.dtx

3. Generate the index files using `makeindex`:

        makeindex -q -s gglo.ist -o schemata.gls schemata.glo
        makeindex -q -s gind.ist -o schemata.ind schemata.idx

4. Integrate the glossary (changes) and index into the documentation. The second run updates the TOC:

        pdflatex --recorder --interaction=nonstopmode schemata.dtx
        pdflatex --recorder --interaction=nonstopmode schemata.dtx

One can substitute, e.g., `latex`, `xelatex`, `lualatex`, and `dvilualatex` for `pdflatex`, but the documentation may look different in some cases.

## File Installation

Different TeX distributions have somewhat different ways to store TDS-compliant configuration and package data. See, for example, [MikTeX](https://miktex.org/kb/texmf-roots) and the [TeX FAQ](https://www.texfaq.org/FAQ-privinst). Two approaches below conform generally to a Unix-based system:

## User's Home Directory

`TEXMFHOME` is a variable that points to the root of a TDS-compliant directory tree available to a user. Use `kpsewhich --var-value TEXMFHOME` to obtain its value. Quite often it is equivalent to `$HOME/texmf`. The dollar sign in front of the variable denotes the value of the variable instead of its name. So if `$HOME` is `/home/bob`, then `$TEXMFHOME` would be `/home/bob/texmf`, and we can understand the following paths to be under that directory:

|Path                                |Description                                 |
|------------------------------------|--------------------------------------------|
|`$TEXMFHOME/source/generic/schemata`|`ins` and `dtx` files, Makefile, `png` file |
|`$TEXMFHOME/tex/generic/schemata`   |`sty` file                                  |
|`$TEXMFHOME/doc/generic/schemata`   |`pdf` file, `README.md`, `schematest.tex`   |

On older TeX distributions, run `mktexlsr` on $TEXMFHOME to complete the install process.

## System-Wide Directory

`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. Use `kpsewhich --var-value TEXMFLOCAL` to obtain its value. See the [TeX FAQ](https://www.texfaq.org/FAQ-what-TDS). We can understand the following paths to be under that directory:

|Path                                 |Description                                 |
|-------------------------------------|--------------------------------------------|
|`$TEXMFLOCAL/source/generic/schemata`|`ins` and `dtx` files, Makefile, `png` file |
|`$TEXMFLOCAL/tex/generic/schemata`   |`sty` file                                  |
|`$TEXMFLOCAL/doc/generic/schemata`   |`pdf` file, `README.md`, `schematest.tex`   |

Run `mktexlsr` with the appropriate permissions on `$TEXMFLOCAL` to complete the install process.

# Testing

## Compiling `schematest.tex`

1. Either go to the directory used when unpacking the `zip` file or copy the file `schematest.tex` from the `doc/generic/schemata` branch of whatever TDS-compliant tree to a directory of your choice.

2. If one has access to GNU `make`, use either `Makefile` in the directory where one unpacked the `zip` file or copy `Makefile` from either `src/generic/schemata` or `doc/generic/schemata` in whatever TDS-compliant tree it exists.

When using `make`, any `dvi` files that are created will also be converted to `pdf` format.

3. To compile the test file using `make` and `pdftex`, simply type `make testing`.

4. For multi-format testing using `make` in addition to that above, one can do the following:

        make testing TESTENGINE=tex
        make testing TESTENGINE=eplain
        make testing TESTENGINE=lollipop
        make testing TESTENGINE=luatex
        make testing TESTENGINE=dviluatex
        make testing TESTENGINE=xetex
        make testing TESTENGINE=pdflatex
        make testing TESTENGINE=latex
        make testing TESTENGINE=lualatex
        make testing TESTENGINE=dvilualatex
        make testing TESTENGINE=xelatex

5. If one does not have `make`, one can use any one of the following commands:

        pdftex --interaction=nonstopmode schematest
        tex --interaction=nonstopmode schematest
        eplain --interaction=nonstopmode schematest
        lollipop --interaction=nonstopmode schematest
        luatex --interaction=nonstopmode schematest
        dviluatex --interaction=nonstopmode schematest
        xetex --interaction=nonstopmode schematest
        pdflatex --interaction=nonstopmode schematest
        lualatex --interaction=nonstopmode schematest
        dvilualatex --interaction=nonstopmode schematest
        xelatex --interaction=nonstopmode schematest

The manual is also a test suite.

# Copyright

Copyright (C) 2020 by Charles P. Schaum <charles[dot]schaum@comcast.net>
-------------------------------------------------------

This file 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](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.
%readmevb
%</readme>
%<*internal>
\fi
\def\nameofplainTeX{plain}
\ifx\fmtname\nameofplainTeX\else
  \expandafter\begingroup
\fi
%</internal>
%<*install>
\input docstrip.tex
\keepsilent
\askforoverwritefalse

\preamble

This is a generated file.

Copyright (C) 2020 by Charles P. Schaum <charles[dot]schaum@comcast.net>

This file 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.

\endpreamble

\usedir{tex/latex/nameauth}
\generate{
  \file{\jobname.sty}{\from{\jobname.dtx}{package}}
}
%</install>
%<install>\endbatchfile
%<*internal>
\usedir{source/generic/schemata}
\generate{
  \file{\jobname.ins}{\from{\jobname.dtx}{install}}
}
\usedir{doc/generic/schemata}
\nopostamble
\generate{
  \file{schematest.tex}{\from{\jobname.dtx}{examples}}
}
\nopreamble
\generate{
  \file{README.md}{\from{\jobname.dtx}{readme}}
}
\ifx\fmtname\nameofplainTeX
  \expandafter\endbatchfile
\else
  \expandafter\endgroup
\fi
%</internal>
% \fi
%
% \iffalse
%<*driver>
\ProvidesFile{schemata.dtx}
%</driver>
%<package>{\expandafter}\expandafter\ifx \csname schemataLaTeX\endcsname\relax
%<package>  \def\schemataLaTeX{LaTeX2e}\fi
%<package>\ifx\fmtname\schemataLaTeX
%<package>\expandafter\NeedsTeXFormat\expandafter{\schemataLaTeX}[2005/12/01]
%<package>\ProvidesPackage{schemata}
%<*package>
  [2020/11/23 1.2 generic package to aid construction of topical categories]
%</package>
%<package>\fi
%
%<*driver>
\documentclass[11pt]{ltxdoc}
\usepackage[T1]{fontenc}
\usepackage[polutonikogreek,american]{babel}
\newcommand{\gk}[1]{\foreignlanguage{polutonikogreek}{#1}}
\usepackage{lmodern}
\usepackage[textwidth=140mm,textheight=237mm,right=25mm,nohead]{geometry}
\usepackage{graphicx}
%^^A Dangerous bend ahead...
\usepackage{manfnt}
%^^A Use the MetaPost logo
\usepackage{mflogo}
\usepackage[toc]{multitoc}
\usepackage{paracol}
\usepackage{\jobname}[2020/11/23]
\usepackage{verbatim}
\usepackage[numbered]{hypdoc}

%^^A Let verbatim environments be numbered or unnumbered, and start or resume that.
\makeatletter
\newcommand*\ClearNum{%^^A
  \newcounter{VerbLine}\setcounter{VerbLine}{0}%^^A
  \def\verbatim@processline{\expandafter\@gobble\the\verbatim@line\par}%^^A
}
\newcommand*\StartNum{%^^A
  \setcounter{VerbLine}{0}
  \def\verbatim@processline{\stepcounter{VerbLine}\leavevmode%^^A
  \llap{\footnotesize\normalfont\theVerbLine\quad}%^^A
  \expandafter\@gobble\the\verbatim@line\par}%^^A
}
\newcommand*\ContinueNum{%^^A
  \def\verbatim@processline{\stepcounter{VerbLine}\leavevmode%^^A
  \llap{\footnotesize\normalfont\theVerbLine\quad}%^^A
  \expandafter\@gobble\the\verbatim@line\par}%^^A
}
\makeatother
%^^A Set up numbered verbatim
\ClearNum

%^^A Macros for marginalia.
\newcommand*\Version[1]{\unless\ifinner\marginpar{\strut\raggedleft\textsf{\bfseries#1}}\fi}
\newcommand*\VersionWarn[1]{{\unless\ifinner\marginpar{\strut\raggedleft\textsf{\bfseries#1}\break\small\dbend}\fi}}
\newcommand*\Warn{{\unless\ifinner\marginpar{\strut\small\raggedleft\dbend}\fi}}
\newcommand*\Info[1]{{\unless\ifinner\marginpar{\strut\small\raggedleft#1}\fi}}

%^^A Struts for framed boxes
\newcommand*{\mystrut}{\rule[-0.25\baselineskip]{0pt}{\baselineskip}}

\EnableCrossrefs
\CodelineIndex
\RecordChanges
\begin{document}
  \DocInput{\jobname.dtx}
\end{document}
%</driver>
% \fi
%
% \CheckSum{594}
%
% \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{0.5}{2013/02/14}{Initial version}
% \changes{0.6}{2013/03/10}{Added features}
% \changes{0.7}{2013/09/23}{Changed contact info}
% \changes{0.8}{2016/01/25}{Rewrote manual}
% \changes{1.0}{2020/03/13}{Ensure better multi-format operation}
% \changes{1.1}{2020/03/14}{Fix issue with \texttt{dtx} guards}
% \changes{1.2}{2020/11/11}{Updates to \texttt{Readme.md}, \texttt{Makefile}, \texttt{schematest.tex}, combine \texttt{Readme.md} and \texttt{schematest.tex} files in \texttt{dtx}}
%
% \GetFileInfo{\jobname.dtx}
% \DoNotIndex{\bgroup, \csname, \DeclareOption, \def, \dimen, \egroup, \else, \endcsname, \endinput, \ExecuteOptions, \expandafter, \fi, \futurelet, \gdef, \hbox, \hfil, \if, \ifcsname, \ifdim, \ifmmode, \ifx, \ignorespaces, \index, \let, \newbox, \newcommand, \newdimen, \newif, \next, \PackageWarning, \ProcessOptions, \relax, \RequirePackage, \setbox, \space, \vbox, \vcenter, \vfil, \vskip}
%
%\title{\textsf{schemata} --- Generic package to aid construction of topical categories\thanks{This file
%   describes version \fileversion, last revised \filedate.}
%}
%\author{Charles P. Schaum\thanks{E-mail: charles[dot]schaum@comcast.net}}
%\date{Released \filedate}
%
%\maketitle
%
% \begin{abstract}
% \noindent The \textsf{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.
% \end{abstract}
%
% \tableofcontents
%
% \section{Introduction}
%
% This package uses boxes and math mode to typeset \emph{schemata} (plural of \gk{t'o sq~hma} or \emph{schema}, meaning \emph{form}, \emph{shape}, \emph{appearance}, etc.). One sees them in academic literature from at least the seventeenth through the nineteenth centuries.\footnote{Books that use this package include: Löhe, \textit{The Pastor} [\textit{Der evangelische Geistliche}] (St.~Louis, 2015) and Schaum and Coll\-ver, \textit{Breath of God, Yet Work of Man} (St.~Louis, 2019).}
%
% Packages like \emph{TikZ}, \textsf{PSTricks}, \MP, or other solutions have advantages over this one, especially for those seeking a top-to-bottom diagram.\footnote{For example: \textsc{H.~Dembowski}, \emph{Einf{\"u}hrung in die Christologie} (Darmstadt, 1993), 146.}
% Yet these packages may present challenges if one has to implement both open \emph{and} closed braces in a schema, which math mode allows.
% \newpage
%
% \section{Usage}
%
% \subsection[Loading and Options]{Package Loading and Options}
%
% The \textsf{schemata} package is a minimal ``wrapper'' for math mode. It can be used with \LaTeX{} or with several generic formats, such as \PlainTeX{} and Eplain, even Lollipop, but not \textsc{Con\TeX t}:\footnote{It appears that \textsc{Con\TeX t} does not like nesting math-mode expressions within boxes in the manner used by this package. Barring a rewrite of \textsf{schemata}, that is the \emph{status controversiae}.}
% \begin{quote}
% \fbox{\begin{tabular}{ll}
% {\Large\strut}For \LaTeX{} invoke: & \cmd{\usepackage}\oarg{options}\texttt{\{schemata\}}\\
% {\Large\strut}For generic use: & \cmd{\input}\texttt{\textvisiblespace schemata.sty}
% \end{tabular}}
% \end{quote}\smallskip
%
% \DescribeMacro{\schemataLaTeX}
% Normally, \textsf{schemata} uses generic \TeX{} macros if the format is not \LaTeXe. When using a \LaTeX-like format with a different name than \texttt{LaTeX2e}, one theoretically could insert the following before |\usepackage{schemata}|:
% \begin{quote}
% |\edef\schemataLaTeX{\fmtname}|
% \end{quote}
%
% Yet\Warn{} this is usually unneeded. We want \cmd{\schemataLaTeX} to be undefined before \texttt{schemata.sty} is loaded to get the default value \texttt{LaTeX2e}. We recommend not using this macro unless you know what you are doing.\medskip
%
% \LaTeX\Info{options} users can choose one among four package options: \texttt{braces}, \texttt{brackets}, \texttt{parens}, and \texttt{groups}. These set the defaults for the delimiters. If no options are chosen, the default is \texttt{braces}.
%
% \subsection{Macro Overview}
%
% One can describe schemata as a grouping of boxes that contain content, whose relationships are demonstrated by delimiters. We start with the boxes and their content. Subsequently, we deal with the delimiters, then later, the manner of grouping and arrangement, as well as tweaks and tutorials.
%
% \subsubsection[\texttt{\textbackslash schemabox}]{Containers: \texttt{\textbackslash schemabox}}
%
% \DescribeMacro{\schemabox}
% Schemata contain vertically-centered lists of material in inner vertical mode. When in a \cmd{\schema} or a \cmd{\Schema} (see below), a \cmd{\schemabox} stacks one or more lines of \cmd{\hbox}-enclosed text in a \cmd{\vbox.} It redefines the macro |\\| to close the current \cmd{\hbox} and begin a new one, with some options that can be modified (Section~\ref{sec:tweakschema}).
% \begin{quote}
% \fbox{\begin{tabular}{l}
% {\Large\strut}\cmd{\schemabox}\oarg{width}\marg{text}\\
% \end{tabular}}
% \end{quote}
% The \meta{width} of a \cmd{\schemabox} is a dimension, e.g., \texttt{3cm}. No text wrapping (as in a \cmd{\parbox}) takes place. If there is more than one line of text, each line of \meta{text} must be terminated explicitly by |\\|, except the final line. Usually, the first line of a \cmd{\schemabox} inserts a \cmd{\strut} for aesthetic reasons.
%
% When not in internal vertical mode, \cmd{\schemabox} ignores \meta{width}, does not redefine |\\|, and prints its argument as text: |\schemabox{line~1\\ line~2}| \schemabox{line~1\\ line~2}. This helps prevent errors.
% \newpage
%
% \subsubsection{Delimiters}
%
% \DescribeMacro{\DoBraces}
% Both generic \TeX{} and \LaTeX{} users can use these four macros to set or change the type of delimiters.
% \DescribeMacro{\DoBrackets}
% In both generic \TeX{} and \LaTeX, the default delimiter is braces.
% \DescribeMacro{\DoParens}
% \cmd{\DoBraces}, \cmd{\DoBrackets}, \cmd{\DoParens}, and \cmd{\DoGroups} do the same thing as the respective package options,
% \DescribeMacro{\DoGroups}
% except they also change the delimiters when used before \cmd{\schema} and \cmd{\Schema}. They remain in force until the end of a scope:\label{page:SBNudge}
% \begin{displaymath}
% \DoBraces
% \Schema{0ex}{2.3ex}{\schemabox{a}}{\Schema[close]{0ex}{2.4ex}{\schemabox{b\\c}}{\schemabox{d}}}
% \qquad\DoBrackets\bgroup\renewcommand\SBNudgeFactor{\kern0.08em}
% \Schema{0ex}{2.3ex}{\schemabox{a}}{\Schema[close]{0ex}{2.4ex}{\NudgeSB\schemabox{b\\c}}{\schemabox{d}}}\egroup
% \qquad\DoParens
% \Schema{0ex}{2.3ex}{\schemabox{a}}{\Schema[close]{0ex}{2.4ex}{\schemabox{b\\c}}{\schemabox{d}}}
% \qquad\DoGroups
% \Schema{0ex}{2.3ex}{\schemabox{a}}{\Schema[close]{0ex}{2.4ex}{\schemabox{b\\c}}{\schemabox{d}}}
% \end{displaymath}
%
% Additionally, these macros can change the delimiter style within a schema. See Section~\ref{sec:multiple}, as well as the example below:\bigskip
%
% \leavevmode\quad\begin{minipage}{0.6\textwidth}\small
% \StartNum
% \begin{verbatim}
%\DoBrackets
%\Schema{0ex}{2.4ex}
%  {\schemabox{a}}
%  {\DoParens\Schema[close]{0ex}{2.3ex}
%    {\schemabox{b\\c}}
%    {\schemabox{d}}
%}\end{verbatim}
% \end{minipage}
% \begin{minipage}{0.25\textwidth}
% \begin{displaymath}
% \DoBrackets\Schema{0ex}{2.4ex}
%   {\schemabox{a}}
%   {\DoParens\Schema[close]{0ex}{2.3ex}
%     {\schemabox{b\\c}}
%     {\schemabox{d}}}
% \end{displaymath}\medskip
% \end{minipage}\bigskip
%
% One can add new types by using eligible math-mode delimiters, e.g.:\bigskip
%
% \leavevmode\quad\begin{minipage}{0.6\textwidth}\small
% \StartNum
% \begin{verbatim}
%\makeatletter
%\newcommand*{\DoVerts}%
%  {\let\@schemata@LD\bracevert%
%   \let\@schemata@RD\bracevert}
%\makeatother
%\DoVerts
%\Schema{0ex}{5ex}
%  {\vskip0.6ex\schemabox{a}}
%  {\Schema[close]{0ex}{5ex}
%    {\vskip0.4ex\schemabox{b\\c\\d\\e}}
%    {\vskip0.6ex\schemabox{{\kern0.1em}f}}
%}\end{verbatim}
% \end{minipage}
% \begin{minipage}{0.25\textwidth}
% \makeatletter
% \newcommand*{\DoVerts}%
%   {\let\@schemata@LD\bracevert%
%    \let\@schemata@RD\bracevert}
% \makeatother
% \DoVerts
% \begin{displaymath}
% \Schema{0ex}{5ex}
%   {\vskip0.6ex\schemabox{a}}
%   {\Schema[close]{0ex}{5ex}
%     {\vskip0.4ex\schemabox{b\\c\\d\\e}}
%     {\vskip0.6ex\schemabox{{\kern0.1em}f}}
% }
% \end{displaymath}\medskip
% \end{minipage}
%
% \subsubsection[\texttt{\textbackslash schema}]{Leaf Nodes: \texttt{\textbackslash schema}}
%
% \DescribeMacro{\schema}
% A ``simple'' schema has a left-hand side with vertically-centered vertical material, a brace, and a right-hand side with vertically-centered vertical material:
% \begin{quote}
% \fbox{\begin{tabular}{l}
% {\Large\strut}\cmd{\schema}\oarg{type}\marg{left side}\marg{right side}\\
% \end{tabular}}
% \end{quote}
% The \meta{left side} and \meta{right side} are vertical material in order to allow a \cmd{\smallskip} or other vertical adjustment as needed.\medskip
%
% The \meta{type} of a schema is \texttt{open} (the delimiter opens to the right) by default:
%
% \leavevmode\quad\begin{minipage}{0.6\textwidth}\small
% \StartNum
% \begin{verbatim}
%\schema
%  {\schemabox{a}}
%  {\schemabox{b\\c}}\end{verbatim}
% \end{minipage}
% \begin{minipage}{0.25\textwidth}
% \begin{displaymath}
% \schema
%   {\schemabox{a}}
%   {\schemabox{b\\c}}
% \end{displaymath}\vspace{0pt}
% \end{minipage}
% \newpage
%
% Any value of \meta{type} other than the exact string \texttt{open} makes a ``closed'' schema (the delimiter opens to the left):
%
% \leavevmode\quad\begin{minipage}{0.6\textwidth}\small
% \StartNum
% \begin{verbatim}
%\schema[closed]
%  {\NudgeSB\schemabox{b\\c}}
%  {\schemabox{a}}\end{verbatim}
% \end{minipage}
% \begin{minipage}{0.25\textwidth}
% \begin{displaymath}
% \schema[closed]
%   {\NudgeSB\schemabox{b\\c}}
%   {\schemabox{a}}
% \end{displaymath}\vspace{0pt}
% \end{minipage}
%
% \noindent\leavevmode\newlength{\savepar}\setlength{\savepar}{\the\parindent}^^A
% \begin{minipage}{0.65\textwidth}
% Using \cmd{\NudgeSB} above added a kern of \texttt{0.2em} at the right of the \cmd{\schemabox} to offset an automatic kern of \texttt{-0.2em} that normally pulls the brace slightly closer to the left-hand side when it opens to the right. We cover such tweaks in Section~\ref{sec:tweakschema}.
%
% \hspace{\the\savepar}In practice, \cmd{\schema} does not nest, so it is only useful for the right-hand ``leaves'' of a large schema. That makes formatting the ``leaves'' much faster. Thus, the \cmd{\schema} macro is used only in the framed sub-schemata at right.
% \end{minipage}\hfill
% \begin{minipage}{0.2\textwidth}\small
%   \Schema{-1ex}{4.2ex}
%     {
%       \schemabox{a}
%     }
%     {
%       \vbox{\noindent%
%         \fbox{\schema{\schemabox{b}}{\SwitchSB\schemabox{c\\d}}}\\[1ex]
%         \fbox{\schema{\schemabox{e}}{\schemabox{f\\g}}
%       }
%     }
%   }
% \end{minipage}\smallskip
%
% \indent The automatic sizing of \cmd{\schema} changes, depending on the height, depth, and even context of the letters. This can look ugly if uniformity is desired. Use \cmd{\Schema} (next section) to enforce uniform schemata.
%
% \subsubsection[\texttt{\textbackslash Schema}]{Branches and Root: \texttt{\textbackslash Schema}}
%
% \DescribeMacro{\Schema}
% The ``complex'' form of a schema also has a left-hand side with vertically-centered vertical material, a brace, and a right-hand side of vertically-centered vertical material, along with two arguments that adjust the layout:
% \begin{quote}
% \fbox{\begin{tabular}{l}
% {\Large\strut}\cmd{\Schema}\oarg{type}\marg{adjust}\marg{size}\marg{left side}\marg{right side}\\
% \end{tabular}}
% \end{quote}
%The \meta{type} is |open| by default. As above, any other \meta{type} except the exact string |open| will make it a ``closed'' schema. Both \meta{adjust} and \meta{size} are dimensions. We recommend expressing them as \texttt{ex}. This allows for easier scaling of the schema when changing the font size. Here is how to set \meta{adjust}:\footnote{Instead of setting \meta{adjust}, one could put vertical skips either before or after \cmd{\schemabox}, \cmd{\schema}, or \cmd{\Schema}. Yet using braces as delimiters tends to draw material toward the center cusp, where \meta{adjust} keeps that centered look while allowing some adjustments.}
% \begin{quote}
% \begin{tabular}{lll}
% \textbf{negative} & left side and delimiter up & right side down\\[0.5ex]
% \textbf{positive} & left side and delimiter down & right side up\\
% \end{tabular}
% \end{quote}
%
% Set the delimiter \meta{size} to be a scaled value of ex just a bit larger than the number of lines of text that the delimiter spans.
%
% By using \cmd{\Schema} to adjust the delimiter height and centering, one can bypass the shortcomings of \cmd{\schema}, but at the cost of time. One has to traverse the schema at least twice to get the desired layout. \cmd{\Schema} lets one produce multiple schemata with the same look. This method allows complex layouts:
%
% \begin{displaymath}
% \Schema[close]{0ex}{5.1ex}
% {
%   \Schema{0.1ex}{3.8ex}
%   {\SwitchSB\schemabox{main idea}}
%   {
%     \schema{\schemabox{part 1}}
%       {\SwitchSB\NudgeSB\schemabox{detail a\\detail b}}\smallskip
%     \schema{\schemabox{part 2}}
%       {\SwitchSB\NudgeSB\schemabox{detail c\\detail d}}
%   }
% }
% {
%   \Schema{0ex}{3.8ex}
%   {\schemabox{\,synonym}}
%   {
%     \schema{\schemabox{part 3}}
%       {\SwitchSB\schemabox{detail e\\detail f}}\smallskip
%     \schema{\schemabox{part 4}}
%       {\SwitchSB\schemabox{detail g\\detail h}}
%   }
% }
% \end{displaymath}
% \newpage
%
% The source for that complex schema looks like:
% \begin{quote}\small
% \StartNum
% \begin{verbatim}
%\Schema[close]{0ex}{5.1ex}
%{
%  \Schema{0.1ex}{3.8ex}
%  {\SwitchSB\schemabox{main idea}}
%  {
%    \schema{\schemabox{part 1}}
%      {\SwitchSB\NudgeSB\schemabox{detail a\\detail b}}\smallskip
%    \schema{\schemabox{part 2}}
%      {\SwitchSB\NudgeSB\schemabox{detail c\\detail d}}
%  }
%}
%{
%  \Schema{0ex}{3.8ex}
%  {\schemabox{\,synonym}}
%  {
%    \schema{\schemabox{part 3}}
%      {\SwitchSB\schemabox{detail e\\detail f}}\smallskip
%    \schema{\schemabox{part 4}}
%      {\SwitchSB\schemabox{detail g\\detail h}}
%  }
%}\end{verbatim}
% \end{quote}
%
% Both \cmd{\schema} and \cmd{\Schema} will stack vertically if set sequentially as paragraphs in running text:
%
% \begin{paracol}{2}
% \begin{quote}\small
% \StartNum
% \begin{verbatim}
% \schema
%   {\schemabox{a}}
%   {\schemabox{b\\c}}
%   
% \schema
%   {\schemabox{d}}
%   {\schemabox{e\\f}}\end{verbatim}
% \end{quote}
% \switchcolumn
% \vfil
%
% \schema
%   {\schemabox{a}}
%   {\schemabox{b\\c}}
%   
% \schema
%   {\schemabox{d}}
%   {\schemabox{e\\f}}
% \end{paracol}
%   
% They can be on a line of text: \schema{\schemabox{Does this}}{\schemabox{look\\ugly?}}\bigskip
%
% Certainly, one need not use a \cmd{\schemabox} in either \cmd{\schema} or \cmd{\Schema}. For example, we make a macro \cmd{\Box} below to create one square centimeter of content:
% \def\Box{\hbox{\vrule\vbox to 1cm{\hrule\hbox to 1cm{\hfil}\vfil\hrule}\vrule}}
% \begin{quote}\small
% \StartNum
% \begin{verbatim}
%\def\Box{%
%  \hbox{%
%    \vrule%
%    \vbox to 1cm{\hrule\hbox to 1cm{\hfil}\vfil\hrule}%
%    \vrule%
%  }%
%}\end{verbatim}
% \end{quote}
%
% Now we begin with the trivial example of one \cmd{\Box} on each side of the delimiter:\bigskip
%
% \begin{paracol}{2}
% \vspace{-0.1cm}
% \begin{quote}\small
% \ContinueNum
% \begin{verbatim}
%\schema{\Box}{\Box}\end{verbatim}
% \end{quote}
% \switchcolumn
% \schema{\Box}{\Box}\bigskip
% \end{paracol}
% \newpage
%
% This example is more complex, showing how each side stacks \cmd{\Box}es vertically:\bigskip
%
% \begin{paracol}{2}
% \vspace{0.45cm}
% \begin{quote}\small
% \ContinueNum
% \begin{verbatim}
%\schema{\Box}{\Box\Box}\end{verbatim}
% \end{quote}
% \switchcolumn
% \schema{\Box}{\Box\Box}\bigskip
% \end{paracol}
%
% Finally we use \cmd{\Schema} to get a schema that is both open and closed:\bigskip
%
% \begin{paracol}{2}
% \vspace{-0.4cm}
% \begin{quote}\small
% \ContinueNum
% \begin{verbatim}
%\Schema{-0.2ex}{0.9cm}
%{\Box}
%{
%  \Schema[close]
%    {-0.2ex}{0.9cm}
%  {\Box\hbox{\Box\kern0.2em}}
%  {\Box}
%}\end{verbatim}
% \end{quote}
% \switchcolumn
% \vspace{0.15cm}
% \Schema{-0.2ex}{0.9cm}
% {\Box}
% {
%   \Schema[close]
%     {-0.2ex}{0.9cm}
%   {\Box\hbox{\Box\kern0.2em}}
%   {\Box}
% }
% \end{paracol}
% A kern of \texttt{0.2em} was added above to compensate for the automatic kern of \texttt{-0.2em}, as Section~\ref{sec:tweakschema} explains in more detail. If not expressed in \texttt{ex} height, \meta{size} should be slightly less than half the height of the contents, e.g., \texttt{0.9cm} for a height of \texttt{2cm}.
%
% \subsection{Romancing the \texttt{\textbackslash schema}}
% \label{sec:tweakschema}
%
% \DescribeMacro{\LCschema}
% By default, a \cmd{\schemabox} adds a \cmd{\strut} to the first line because the topics in a schema often start with a capital letter.
% \DescribeMacro{\UCschema}
% The \cmd{\strut} causes the delimiter of a \cmd{\schema} to have the proper size.
%
% If the first letter is not a capital or if the text seems a little off-center, you can turn off this default feature of \cmd{\schemabox} by placing \cmd{\LCschema} immediately before \cmd{\schemabox}. \cmd{\LCschema} will prevent all subsequent uses of \cmd{\schemabox} from adding \cmd{\strut} until you restore the default behavior with \cmd{\UCschema}, also best placed before the intended \cmd{\schemabox}. Here is an example where an entire schema is in lowercase, so we change the look of the whole thing:\footnote{Based on axioms in August Pfeiffer, \textit{Thesaurus Hermeneuticus} (Frankfurt am Main, 1698).}
%
% \begin{quote}\small
% \StartNum
% \begin{verbatim}
%\LCschema
%\Schema{0.1ex}{4.8ex}
%{\hbox{sensus literalis}}
%{
%  \schema{\schemabox{sensus\\literalis\\(improprie)}}
%         {\schemabox{e parallelismo clarior\\
%             ex analogia fidei\\ex evidentia rei}}
%          \smallskip\schemabox{sensus literae}
%}
%\UCschema\end{verbatim}
% \end{quote}
% \vspace{-2ex}
% \begin{displaymath}
% \LCschema
% \Schema{0.1ex}{4.8ex}
% {\hbox{sensus literalis}}
% {
%   \schema{\schemabox{sensus\\literalis\\(improprie)}}
%          {\schemabox{e parallelismo clarior\\
%              ex analogia fidei\\ex evidentia rei}}
%           \smallskip\schemabox{sensus literae}
% }
% \UCschema
% \end{displaymath}\smallskip
% \newpage
%
% \DescribeMacro{\SwitchSB}
% The macro \cmd{\SwitchSB} is a per-use toggle. It causes a particular \cmd{\schemabox} to do the opposite of whatever \cmd{\LCschema} and \cmd{\UCschema} call for. It should be placed immediately before the \cmd{\schemabox} to be affected and its effect is reset when that particular \cmd{\schemabox} terminates. 
%
% Note, however, that mixing lowercase and uppercase-styles of \cmd{\schemabox} may put parts of a schema slightly  off-center, meaning that one must \meta{adjust} a \cmd{\Schema} by a tenth of an ex, give or take. Also remember that one can add \cmd{\strut} as needed to make manual adjustments.\medskip
%
% \DescribeMacro{\NudgeSB}
% The macro \cmd{\NudgeSB} is another ``per-use'' macro that causes a particular \cmd{\schemabox} to add a default \texttt{0.2em} kern at the end of every line of text, then is reset thereafter. It ``corrects a corrective.''
%
% \cmd{\NudgeSB} is meant to be used on the left-hand side of a closed \cmd{\schema} or \cmd{\Schema}. Both macros insert a kern of \texttt{-0.2em} to draw the cusp or flexion point of the delimiter closer to the left-hand side. This corrects the spacing of delimiters that open to the right. When a delimiter opens to the left, the kern may be needed if there is punctuation, or it may throw off the spacing.\medskip
%
% \DescribeMacro{\SBNudgeFactor}
% This macro is the kern used by \cmd{\NudgeSB} to make its corrective. Sometimes you feel like a nudge, sometimes you don't, and sometimes you just want a little nudge. We used the example below on page~\pageref{page:SBNudge} before the schema with two braces, all in a group to localize any changes:
% \begin{quote}
% \verb+\renewcommand\SBNudgeFactor{\kern0.08em}+
% \end{quote}
%
% \subsection{Tutorial}
%
% Now that we have explained what all the macros are supposed to do, let's take a journey together in establishing and practicing a methodology for creating general forms of schemata.
%
% \subsubsection{Starting Off Basic}
%
% Let's ignore pretty much everything that we learned so far and attempt to typeset a schema with the following:
% \begin{paracol}{2}
% \begin{quote}\small
% \StartNum
% \begin{verbatim}
%\schema{a}{b\\c}\end{verbatim}
% \end{quote}
% \switchcolumn
%
% \vfil\schema{a}{b\\c}\medskip
% \end{paracol}
%
% Oh dear, that went badly. Oh, wait! Schemata hold internal vertical lists. That weird \cmd{\schemabox} thing handles just that case:
% \begin{paracol}{2}
% \begin{quote}\small
% \StartNum
% \begin{verbatim}
%\schema
%  {\schemabox{a}}
%  {\schemabox{b\\c}}\end{verbatim}
% \end{quote}
% \switchcolumn
%
% \vfil\schema
%   {\schemabox{a}}
%   {\schemabox{b\\c}}
% \end{paracol}
%
% Now we are getting somewhere! But if we do not have a ``big'' side we get:
% \begin{paracol}{2}
% \begin{quote}\small
% \StartNum
% \begin{verbatim}
%\schema
%  {\schemabox{a}}
%  {\schemabox{b}}\end{verbatim}
% \end{quote}
% \switchcolumn
%
% \vfil\schema
%   {\schemabox{a}}
%   {\schemabox{b}}
% \end{paracol}
%
% When there is no ``big'' side of a schema, perhaps use inline math mode:
% \begin{quote}
% |\(\hbox{a}\left\{\hbox{\strut gib}\right.\)|\qquad \(\hbox{a}\left\{\hbox{\strut gib}\right.\)
% \end{quote}
%
% \subsubsection{\textit{Loci} 101}
%
% We move on from trivial examples to several real-world examples based on published material. Let's try a few examples from \emph{Loci Theologici} by Martin Chemnitz. We begin by using only \cmd{\schema}:
%
% \begin{quote}\small
% \StartNum
% \begin{verbatim}
%\schema
%{
%  \schemabox{Subjectum theo-\\
%  logi\ae{} est Notitia\\
%  Dei. Considerat\\
%  ergo, Dei, vel}
%}
%{
%  \schema
%  {
%    \schemabox{\textsc{Essentiam},}
%  }
%  {
%    \schemabox{Unitate natur\ae{}.\\
%    Trinitate personarum.\\
%    Operibus ad intra.}
%  }
%  \schema
%  {
%    \schemabox{\textsc{Voluntatem},\\
%    manifestatam in\\
%    operibus ad extra;\\
%    ut in}
%  }
%  {
%    \schemabox{Creatione.\\
%    Sustentatione natur\ae{} laps\ae{}.\\
%    Reparatione.\\
%    Conversione.\\
%    Justificatione.\\
%    Sanctificatione \&\\
%    Glorificatione ejusdem.}
%  }
%}\end{verbatim}
% \end{quote}
%
% \begin{displaymath}
% \schema
% {
%   \schemabox{Subjectum theo-\\
%     logi\ae{} est Notitia\\
%     Dei. Considerat\\
%     ergo, Dei, vel}
% }
% {
%   \schema
%   {
%     \schemabox{\textsc{Essentiam},}
%   }
%   {
%     \schemabox{Unitate natur\ae{}.\\
%     Trinitate personarum.\\
%     Operibus ad intra.}
%   }
%   \schema
%   {
%     \schemabox{\textsc{Voluntatem},\\
%     manifestatam in\\
%     operibus ad extra;\\
%     ut in}
%   }
%   {
%     \schemabox{Creatione.\\
%     Sustentatione natur\ae{} laps\ae{}.\\
%     Reparatione.\\
%     Conversione.\\
%     Justificatione.\\
%     Sanctificatione \&\\
%     Glorificatione ejusdem.}
%   }
% }
% \end{displaymath}
%
% This is not what we want; \cmd{\schema} works for the ``leaves'' on the right, but not for the ``root'' on the left. The brace adjusts to the entire right-hand side.
%
% Before we address the brace, we adjust the spacing, starting from the ``leaves'' at right, going to the  ``root'' on the left. We add a \cmd{\smallskip} after a \cmd{\schema} to space out the ``leaves'':\footnote{Using \cmd{\vskip} in \PlainTeX{} starts a new paragraph, so \cmd{\smallskip} cannot be used within the horizontal mode \cmd{\schemabox} when using \PlainTeX. In some cases, putting vertical space in the first or last lines of a \cmd{\schemabox}, regardless of format, will affect centering.}
% \begin{quote}
% \StartNum\addtocounter{VerbLine}{16}
% \begin{verbatim} }\smallskip\end{verbatim}
% \end{quote}
%
% We have two \cmd{\schema} ``leaves'' and one ``root,'' so we only change one \cmd{\schema} into a \cmd{\Schema}. We count the lines of text, estimate, then revise. Below we have 8--9 lines of text from ``\textsc{Essentiam}'' to ``ut in.'' We estimate \meta{size} at \texttt{8.5ex} and \meta{adjust} at \texttt{0ex}. The large brace is too low, so we \meta{adjust} to \texttt{-1ex}, raising the left side and the delimiter, while lowering the right. We then refine \meta{size} to \texttt{8.7ex}.\footnote{Changes in \TeX{} distributions can change font metrics and thus, the metrics of your schemata.}
% \begin{quote}
% \StartNum\begin{verbatim} \Schema{-1ex}{8.7ex}\end{verbatim}
% \end{quote}
%
% After those two line changes, we have the finished schema that now looks like it is supposed to appear:
% \begin{displaymath}
% \Schema{-1ex}{8.7ex}
% {
%   \schemabox{Subjectum theo-\\
%   logi\ae{} est Notitia\\
%   Dei. Considerat\\
%   ergo, Dei, vel}
% }
% {
% \schema
%   {
%     \schemabox{\textsc{Essentiam},}
%   }
%   {
%     \schemabox{Unitate natur\ae{}.\\
%     Trinitate personarum.\\
%     Operibus ad intra.}
%   }\smallskip
%   \schema
%   {
%     \schemabox{\textsc{Voluntatem},\\
%     manifestatam in\\
%     operibus ad extra;\\
%     ut in}
%   }
%   {
%     \schemabox{Creatione.\\
%     Sustentatione natur\ae{} %
%     laps\ae{}.\\
%     Reparatione.\\
%     Conversione.\\
%     Justificatione.\\
%     Sanctificatione \&\\
%     Glorificatione ejusdem.}
%   }
% }
%\end{displaymath}
%
% \subsubsection{Going Big}
%
% Thus far, we have dealt with many trivial examples. We have amassed a significant body of knowledge:
%
% \begin{enumerate}
% \item We usually use \cmd{\schemabox} for the contents of a schema.
% \item Schemata usually ``open'' from left to right, from ``root'' to ``leaves.''
% \item We typeset ``leaves'' with \cmd{\schema} to save time.
% \item We typeset other parts with \cmd{\Schema}.
% \item We adjust spacing and delimiter size by working from the ``leaves'' to the ``root'' to minimize the number of corrective passes.
% \item We may need to consider differences between \LaTeX{} and \PlainTeX{} when using \cmd{\vskip}, \cmd{\smallskip}, etc., as well as \cmd{\newbox}, which is an \cmd{\outer} macro in \PlainTeX. These differences can cause unexpected errors.
% \item We may need to use the tweaking macros \cmd{\UCschema}, \cmd{\LCschema}, \cmd{\SwitchSB}, and \cmd{\NudgeSB}.
% \end{enumerate}
% \newpage
%
% Armed with this information, we sally forth to reproduce the following schema found on page 13 of Martin Chemnitz, \textit{Loci Theologici} (Frankfurt, 1653).\footnote{This image was created from a photograph taken by the author. It is the victim of a few cage transforms, despeckling, color selection and fill, color equalization, cleanup, scaling, and reduction to a two-color indexed palette.}\bigskip
%
% \noindent\includegraphics[width=\textwidth]{schemata.png}\bigskip
%
% \begin{itemize}
% \item As you see, the braces were composed of various type sorts, mainly smaller rules and assorted curly and bendy bits.
%
% \item Because this is Latin we will see roman, italic and small caps, but little of other typefaces. We do see \emph{s-medialis} and many old-style ligatures.
%
% \item In the reproduction we will use \emph{s-finalis} only, but we will retain some ligatures.
%
% \item We will improve spacing between elements.
%
% \item We will not aim for an exact reproduction of line breaks and such.
% \end{itemize}
% \newpage
%
% We begin by looking at the ``leaves,'' the rightmost bits of text enclosed by braces. We can use \cmd{\schema} in these cases. That results in the following:
%
% \begin{quote}
% \StartNum
% \begin{verbatim}
% \schema
% {\schemabox{\textsc{Per se}:\\ scilicet.}}
% {
%   \schemabox{Unus in essentia.}
%   \schemabox{Trinus in personis.}
% }\end{verbatim}
% \qquad\schema
% {\schemabox{\textsc{Per se}:\\ scilicet.}}
% {
%   \schemabox{Unus in essentia.}
%   \schemabox{Trinus in personis.}
% }
% \end{quote}
%
% \begin{quote}
% \StartNum
% \begin{verbatim}
%\schema
%{\schemabox{Ad hominem\\ quem vel}}
%{
%  \schemabox{Accusat \& terret, \textsc{Per Legem},\\
%  Consolatur \& erigit, \textsc{Per Evangelium}.\\
%  Salvat, \textsc{Per Christum}.\\
%  Renovat, \textsc{Per Spiritum Sanctum}.\\
%  Sanctificat, \textsc{Per Verbum} \& \textsc{Sacramenta}.\\
%  Castigat, tentat \& exercet, \textsc{Per Crucem}.\\
%  Glorificat \textsc{Per Resurrectionem Carnis}\\
%  \textsc{\quad Ad Vitam \AE{}ternam}.}
%}\end{verbatim}
% \qquad\schema
% {\schemabox{Ad hominem\\ quem vel}}
% {
%   \schemabox{Accusat \& terret, \textsc{Per Legem},\\
%   Consolatur \& erigit, \textsc{Per Evangelium}.\\
%   Salvat, \textsc{Per Christum}.\\
%   Renovat, \textsc{Per Spiritum Sanctum}.\\
%   Sanctificat, \textsc{Per Verbum} \& \textsc{Sacramenta}.\\
%   Castigat, tentat \& exercet, \textsc{Per Crucem}.\\
%   Glorificat \textsc{Per Resurrectionem Carnis}\\
%   \textsc{\quad Ad Vitam \AE{}ternam}.}
% }
% \end{quote}
%
% \begin{quote}
% \StartNum
% \begin{verbatim}
%\schemabox{Ante lapsum.}
%       
%\schema
%{\schemabox{Post lapsum:}}
%{
%  \schemabox{Ante Regenerationem \&\\
%  Renovationem S. Sancti.}
%  \schemabox{Post Regenerationem \&\\
%  Renovationem S. Sancti.}
%}\end{verbatim}
% \qquad\schemabox{Ante lapsum.}\footnote{We delete line 2 after \emph{Ante lapsum} in the large example on page~\pageref{page:firstbig} and thereafter.}
%
% \qquad\schema
% {\schemabox{Post lapsum:}}
% {
%   \schemabox{Ante Regenerationem \&\\
%   Renovationem S. Sancti.}
%   \schemabox{Post Regenerationem \&\\
%   Renovationem S. Sancti.}
% }
% \end{quote}
% \newpage
%
% \begin{quote}
% \StartNum
% \begin{verbatim}
%\schema
%{\schemabox{\textsc{Deum},}}
%{
%  \schemabox{P\oe{}nitentia agens, agnitis peccatis \&\\
%  ira Dei cognita \textsc{Ex Lege}.\\
%  Erigens se \textsc{Voce Evangelii}.\\
%  Credens \textsc{In Christum Salvatorem}.\\
%  Non repugnans \textsc{Spiritui Sancto} impellenti.\\
%  Audiens \textsc{Verbum}: \& utens \textsc{Sacramentis}.\\
%  Patienter \& constanter sufferens \textsc{Crucem}.\\
%  Sperans \& expectans glorificationem\\
%  \textsc{\quad In Resurrectione Carnis}\\
%  \textsc{\quad Ad Vitam \AE{}ternam}.}
%}\end{verbatim}
% \qquad\schema
% {\schemabox{\textsc{Deum},}}
% {
%   \schemabox{P\oe{}nitentia agens, agnitis peccatis \&\\
%   ira Dei cognita \textsc{Ex Lege}.\\
%   Erigens se \textsc{Voce Evangelii}.\\
%   Credens \textsc{In Christum Salvatorem}.\\
%   Non repugnans \textsc{Spiritui Sancto} impellenti.\\
%   Audiens \textsc{Verbum}: \& utens \textsc{Sacramentis}.\\
%   Patienter \& constanter sufferens \textsc{Crucem}.\\
%   Sperans \& expectans glorificationem\\
%   \textsc{\quad In Resurrectione Carnis}\\
%   \textsc{\quad Ad Vitam \AE{}ternam}.}
% }
% \end{quote}
%
% \begin{quote}
% \StartNum
% \begin{verbatim}
%\schema
%{\schemabox{seipsum ratione}}
%{\schemabox{Anim\ae{}\\ vel\\ Corporis}}\end{verbatim}
% \qquad\schema
% {\schemabox{seipsum ratione}}
% {\schemabox{Anim\ae{}\\ vel\\ Corporis}}
% \end{quote}
%
% \begin{quote}
% \StartNum
% \begin{verbatim}
%\schema
%{\schemabox{Amicum ra-\\ tione vel}}
%{
%  \schemabox{Religionis.\\
%  Politic\ae{} \& \OE{}conomic\ae{}.\\
%  Cognationis.\\
%  Agnationis.}
%}
%
%\schemabox{Inimicum.}\end{verbatim}
% \qquad\schema
% {\schemabox{Amicum ra-\\ tione vel}}
% {
%   \schemabox{Religionis.\\
%   Politic\ae{} \& \OE{}conomic\ae{}.\\
%   Cognationis.\\
%   Agnationis.}
% }
%
% \qquad\schemabox{Inimicum.}\footnote{We delete line 9 before \emph{Inimicum} in the large example on page~\pageref{page:firstbig} and thereafter.}
% \end{quote}
% \newpage
%
% \phantomsection
% \label{page:firstbig}
% Below we build all of the ``leaves'' into the larger schema using \cmd{\Schema}. The braces all have dummy values of \texttt{0ex} \meta{adjust} and \texttt{5ex} \meta{size}. Please do not be alarmed at how bad this looks right now! We will adjust the layout shortly. We just want to see the general look of things:\bigskip
%
% \bgroup\small\begin{displaymath}
% \Schema{0ex}{5ex}
% {
%   \schemabox{Subjectum \&\\
%   summa univer-\\
%   s\ae{} Scriptur\ae{},\\
%   est \textsc{Cognitio}\\
%   vel}
% }
% {
%   \Schema{0ex}{5ex}
%   {
%     \schemabox{\textsc{Dei}, qua-\\lis sit, aut}
%   }
%   {
%     \schema
%     {\schemabox{\textsc{Per se}:\\ scilicet.}}
%     {
%       \schemabox{Unus in essentia.}
%       \schemabox{Trinus in personis.}
%     }
%     \schema
%     {\schemabox{Ad hominem\\ quem vel}}
%     {
%       \schemabox{Accusat \& terret, \textsc{Per Legem},\\
%       Consolatur \& erigit, \textsc{Per Evangelium}.\\
%       Salvat, \textsc{Per Christum}.\\
%       Renovat, \textsc{Per Spiritum Sanctum}.\\
%       Sanctificat, \textsc{Per Verbum} \& \textsc{Sacramenta}.\\
%       Castigat, tentat \& exercet, \textsc{Per Crucem}.\\
%       Glorificat \textsc{Per Resurrectionem Carnis}\\
%       \textsc{\quad Ad Vitam \AE{}ternam}.}
%     }
%   }
%   \Schema{0ex}{5ex}
%   {
%     \schemabox{\textsc{Hominis},\\ qualis sit}
%   }
%   {
%     \Schema{0ex}{5ex}
%     {\schemabox{\textsc{Per se}:}}
%     {
%       \schemabox{Ante lapsum.}
%       \schema
%       {\schemabox{Post lapsum:}}
%       {
%         \schemabox{Ante Regenerationem \&\\
%         Renovationem S. Sancti.}
%         \schemabox{Post Regenerationem \&\\
%         Renovationem S. Sancti.}
%       }
%     }
%     \Schema{0ex}{5ex}
%     {\schemabox{Ad}}
%     {
%       \schema
%       {\schemabox{\textsc{Deum},}}
%       {
%         \schemabox{P\oe{}nitentia agens, agnitis peccatis \&\\
%         ira Dei cognita \textsc{Ex Lege}.\\
%         Erigens se \textsc{Voce Evangelii}.\\
%         Credens \textsc{In Christum Salvatorem}.\\
%         Non repugnans \textsc{Spiritui Sancto} impellenti.\\
%         Audiens \textsc{Verbum}: \& utens \textsc{Sacramentis}.\\
%         Patienter \& constanter sufferens \textsc{Crucem}.\\
%         Sperans \& expectans glorificationem\\
%         \textsc{\quad In Resurrectione Carnis}\\
%         \textsc{\quad Ad Vitam \AE{}ternam}.}
%       }
%       \schema
%         {\schemabox{seipsum ratione}}
%         {\schemabox{Anim\ae{}\\ vel\\ Corporis}}
%       \Schema{0ex}{5ex}
%       {\schemabox{Proximum,}}
%       {
%         \schema
%         {\schemabox{Amicum ra-\\ tione vel}}
%         {
%           \schemabox{Religionis.\\
%           Politic\ae{} \& \OE{}conomic\ae{}.\\
%           Cognationis.\\
%           Agnationis.}
%         }
%         \schemabox{Inimicum.}
%       }
%     }
%   }
% }
%\end{displaymath}\egroup\bigskip
%
% Below we have the code listing for the schema above. One can see that there is much correlation between the listing and the printed result:
%
% \begin{quote}\small
% \StartNum
% \begin{verbatim}
%\Schema{0ex}{5ex}
%{
%  \schemabox{Subjectum \&\\
%  summa univer-\\
%  s\ae{} Scriptur\ae{},\\
%  est \textsc{Cognitio}\\
%  vel}
%}
%{
%  \Schema{0ex}{5ex}
%  {
%    \schemabox{\textsc{Dei}, qua-\\lis sit, aut}
%  }
%  {
%    \schema
%    {\schemabox{\textsc{Per se}:\\ scilicet.}}
%    {
%      \schemabox{Unus in essentia.}
%      \schemabox{Trinus in personis.}
%    }
%    \schema
%    {\schemabox{Ad hominem\\ quem vel}}
%    {
%      \schemabox{Accusat \& terret, \textsc{Per Legem},\\
%      Consolatur \& erigit, \textsc{Per Evangelium}.\\
%      Salvat, \textsc{Per Christum}.\\
%      Renovat, \textsc{Per Spiritum Sanctum}.\\
%      Sanctificat, \textsc{Per Verbum} \& \textsc{Sacramenta}.\\
%      Castigat, tentat \& exercet, \textsc{Per Crucem}.\\
%      Glorificat \textsc{Per Resurrectionem Carnis}\\
%      \textsc{\quad Ad Vitam \AE{}ternam}.}
%    }
%  }
%  \Schema{0ex}{5ex}
%  {
%    \schemabox{\textsc{Hominis},\\ qualis sit}
%  }
%  {
%    \Schema{0ex}{5ex}
%    {\schemabox{\textsc{Per se}:}}
%    {
%      \schemabox{Ante lapsum.}
%      \schema
%      {\schemabox{Post lapsum:}}
%      {
%        \schemabox{Ante Regenerationem \&\\
%        Renovationem S. Sancti.}
%        \schemabox{Post Regenerationem \&\\
%        Renovationem S. Sancti.}
%      }
%    }
%    \Schema{0ex}{5ex}
%    {\schemabox{Ad}}
%    {
%      \schema
%      {\schemabox{\textsc{Deum},}}
%      {
%        \schemabox{P\oe{}nitentia agens, agnitis peccatis \&\\
%        ira Dei cognita \textsc{Ex Lege}.\\
%        Erigens se \textsc{Voce Evangelii}.\\
%        Credens \textsc{In Christum Salvatorem}.\\
%        Non repugnans \textsc{Spiritui Sancto} impellenti.\\
%        Audiens \textsc{Verbum}: \& utens \textsc{Sacramentis}.\\
%        Patienter \& constanter sufferens \textsc{Crucem}.\\
%        Sperans \& expectans glorificationem\\
%        \textsc{\quad In Resurrectione Carnis}\\
%        \textsc{\quad Ad Vitam \AE{}ternam}.}
%      }
%      \schema
%        {\schemabox{seipsum ratione}}
%        {\schemabox{Anim\ae{}\\ vel\\ Corporis}}
%      \Schema{0ex}{5ex}
%      {\schemabox{Proximum,}}
%      {
%        \schema
%        {\schemabox{Amicum ra-\\ tione vel}}
%        {
%          \schemabox{Religionis.\\
%          Politic\ae{} \& \OE{}conomic\ae{}.\\
%          Cognationis.\\
%          Agnationis.}
%        }
%        \schemabox{Inimicum.}
%      }
%    }
%  }
%}\end{verbatim}
% \end{quote}
%
% First, we add space between the ``leaves'' of the tree. If you do not work from right to left, you will waste time revising the ``leaves'' and ``branches.'' The following lines, shown with some surrounding context, were changed.
%
% Remember that you can add a \cmd{\smallskip} within a \cmd{\schemabox} in \LaTeX{}, but not in \PlainTeX. We have split the text below into two boxes to make it format-agnostic. See also how the second \cmd{\smallskip} follows the closing brace of the right-hand side, not the \cmd{\schemabox.} That adjusts the entire \cmd{\schema}.
% \begin{quote}\small\StartNum\addtocounter{VerbLine}{16}
% \begin{verbatim}
%    {
%      \schemabox{Unus in essentia.}\smallskip
%      \schemabox{Trinus in personis.}
%    }\smallskip\end{verbatim}
% \end{quote}
%
% Again, below, the skip comes at the close of a \cmd{\schema}.
% \begin{quote}\small\ContinueNum\addtocounter{VerbLine}{10}
% \begin{verbatim}
%      \textsc{\quad Ad Vitam \AE{}ternam}.}
%    }\medskip\end{verbatim}
% \end{quote}
%
% Below, the first skip helps to separate the lone \cmd{\schemabox} from the \cmd{\schema} beneath it. This illustrates how the internal vertical lists of schemata can contain heterogeneous material.
%
% A medium skip is placed between two \cmd{\schemabox}es, which slightly throws off the way the brace spans the boxes. A small skip is put at the end of the last \cmd{\schemabox} to correct that. Sometimes putting skips within a \cmd{\schema} can be tricky. Then a \cmd{\smallskip} is added again at the end of the right-hand side.
% \begin{quote}\small\ContinueNum\addtocounter{VerbLine}{8}
% \begin{verbatim}
%    {
%      \schemabox{Ante lapsum.}\smallskip
%      \schema
%      {\schemabox{Post lapsum:}}
%      {
%        \schemabox{Ante Regenerationem \&\\
%        Renovationem S. Sancti.}\medskip
%        \schemabox{Post Regenerationem \&\\
%        Renovationem S. Sancti.}\smallskip
%      }\smallskip
%    }\end{verbatim}
% \end{quote}
%
% The skips below generally follow the same patterns that we have seen above.
% \begin{quote}\small\ContinueNum\addtocounter{VerbLine}{15}
% \begin{verbatim}
%        \textsc{\quad Ad Vitam \AE{}ternam}.}
%      }\smallskip
%      \schema
%        {\schemabox{seipsum ratione}}
%        {\schemabox{Anim\ae{}\\ vel\\ Corporis}}\smallskip\end{verbatim}
% \end{quote}
%
% \begin{quote}\small\ContinueNum\addtocounter{VerbLine}{10}
% \begin{verbatim}
%          }\smallskip
%          \schemabox{Inimicum.}\end{verbatim}
% \end{quote}
%
%The resulting schema looks better already:
% \bgroup\small\begin{displaymath}
% \Schema{0ex}{5ex}
% {
%   \schemabox{Subjectum \&\\
%   summa univer-\\
%   s\ae{} Scriptur\ae{},\\
%   est \textsc{Cognitio}\\
%   vel}
% }
% {
%   \Schema{0ex}{5ex}
%   {
%     \schemabox{\textsc{Dei}, qua-\\lis sit, aut}
%   }
%   {
%     \schema
%     {\schemabox{\textsc{Per se}:\\ scilicet.}}
%     {
%       \schemabox{Unus in essentia.}\smallskip
%       \schemabox{Trinus in personis.}
%     }\smallskip
%     \schema
%     {\schemabox{Ad hominem\\ quem vel}}
%     {
%       \schemabox{Accusat \& terret, \textsc{Per Legem},\\
%       Consolatur \& erigit, \textsc{Per Evangelium}.\\
%       Salvat, \textsc{Per Christum}.\\
%       Renovat, \textsc{Per Spiritum Sanctum}.\\
%       Sanctificat, \textsc{Per Verbum} \& \textsc{Sacramenta}.\\
%       Castigat, tentat \& exercet, \textsc{Per Crucem}.\\
%       Glorificat \textsc{Per Resurrectionem Carnis}\\
%       \textsc{\quad Ad Vitam \AE{}ternam}.}
%     }\medskip
%   }
%   \Schema{0ex}{5ex}
%   {
%     \schemabox{\textsc{Hominis},\\ qualis sit}
%   }
%   {
%     \Schema{0ex}{5ex}
%     {\schemabox{\textsc{Per se}:}}
%     {
%       \schemabox{Ante lapsum.}\smallskip
%       \schema
%       {\schemabox{Post lapsum:}}
%       {
%         \schemabox{Ante Regenerationem \&\\
%         Renovationem S. Sancti.}\medskip
%         \schemabox{Post Regenerationem \&\\
%         Renovationem S. Sancti.}\smallskip
%       }\smallskip
%     }
%     \Schema{0ex}{5ex}
%     {\schemabox{Ad}}
%     {
%       \schema
%       {\schemabox{\textsc{Deum},}}
%       {
%         \schemabox{P\oe{}nitentia agens, agnitis peccatis \&\\
%         ira Dei cognita \textsc{Ex Lege}.\\
%         Erigens se \textsc{Voce Evangelii}.\\
%         Credens \textsc{In Christum Salvatorem}.\\
%         Non repugnans \textsc{Spiritui Sancto} impellenti.\\
%         Audiens \textsc{Verbum}: \& utens \textsc{Sacramentis}.\\
%         Patienter \& constanter sufferens \textsc{Crucem}.\\
%         Sperans \& expectans glorificationem\\
%         \textsc{\quad In Resurrectione Carnis}\\
%         \textsc{\quad Ad Vitam \AE{}ternam}.}
%       }\smallskip
%       \schema
%         {\schemabox{seipsum ratione}}
%         {\schemabox{Anim\ae{}\\ vel\\ Corporis}}\smallskip
%       \Schema{0ex}{5ex}
%       {\schemabox{Proximum,}}
%       {
%         \schema
%         {\schemabox{Amicum ra-\\ tione vel}}
%         {
%           \schemabox{Religionis.\\
%           Politic\ae{} \& \OE{}conomic\ae{}.\\
%           Cognationis.\\
%           Agnationis.}
%         }\smallskip
%         \schemabox{Inimicum.}
%       }
%     }
%   }
% }
%\end{displaymath}\egroup
% \newpage
%
% \newpage
%
% Next we estimate the lines of text and blank lines from the top of a \cmd{\Schema} brace to the bottom, e.g., from ``\textsc{Per se}:'' to ``quem vel''. We use those ``ex'' height figures for \meta{size}. The following lines illustrate our ``ball park'' figures:
%
% \begin{quote}\small\StartNum
% \begin{verbatim}
% \Schema{0ex}{23ex}\end{verbatim}
% \end{quote}
% \begin{quote}\small\ContinueNum\addtocounter{VerbLine}{8}
% \begin{verbatim}
% \Schema{0ex}{8ex}\end{verbatim}
% \end{quote}
% \begin{quote}\small\ContinueNum\addtocounter{VerbLine}{23}
% \begin{verbatim}
% \Schema{0ex}{16ex}\end{verbatim}
% \end{quote}
% \begin{quote}\small\ContinueNum\addtocounter{VerbLine}{4}
% \begin{verbatim}
% \Schema{0ex}{5ex}\end{verbatim}
% \end{quote}
% \begin{quote}\small\ContinueNum\addtocounter{VerbLine}{12}
% \begin{verbatim}
% \Schema{0ex}{16ex}\end{verbatim}
% \end{quote}
% \begin{quote}\small\ContinueNum\addtocounter{VerbLine}{19}
% \begin{verbatim}
% \Schema{0ex}{5ex}\end{verbatim}
% \end{quote}
%
% \bgroup\small\begin{displaymath}
% \Schema{0ex}{23ex}
% {
%   \schemabox{Subjectum \&\\
%   summa univer-\\
%   s\ae{} Scriptur\ae{},\\
%   est \textsc{Cognitio}\\
%   vel}
% }
% {
%   \Schema{-6.4ex}{8.6ex}
%   {
%     \schemabox{\textsc{Dei}, qua-\\lis sit, aut}
%   }
%   {
%     \schema
%     {\schemabox{\textsc{Per se}:\\ scilicet.}}
%     {
%       \schemabox{Unus in essentia.}\smallskip
%       \schemabox{Trinus in personis.}
%     }\smallskip
%     \schema
%     {\schemabox{Ad hominem\\ quem vel}}
%     {
%       \schemabox{Accusat \& terret, \textsc{Per Legem},\\
%       Consolatur \& erigit, \textsc{Per Evangelium}.\\
%       Salvat, \textsc{Per Christum}.\\
%       Renovat, \textsc{Per Spiritum Sanctum}.\\
%       Sanctificat, \textsc{Per Verbum} \& \textsc{Sacramenta}.\\
%       Castigat, tentat \& exercet, \textsc{Per Crucem}.\\
%       Glorificat \textsc{Per Resurrectionem Carnis}\\
%       \textsc{\quad Ad Vitam \AE{}ternam}.}
%     }\medskip
%   }
%   \Schema{0ex}{16ex}
%   {
%     \schemabox{\textsc{Hominis},\\ qualis sit}
%   }
%   {
%     \Schema{0ex}{5ex}
%     {\schemabox{\textsc{Per se}:}}
%     {
%       \schemabox{Ante lapsum.}\smallskip
%       \schema
%       {\schemabox{Post lapsum:}}
%       {
%         \schemabox{Ante Regenerationem \&\\
%         Renovationem S. Sancti.}\medskip
%         \schemabox{Post Regenerationem \&\\
%         Renovationem S. Sancti.}\smallskip
%       }\smallskip
%     }
%     \Schema{0ex}{16ex}
%     {\schemabox{Ad}}
%     {
%       \schema
%       {\schemabox{\textsc{Deum},}}
%       {
%         \schemabox{P\oe{}nitentia agens, agnitis peccatis \&\\
%         ira Dei cognita \textsc{Ex Lege}.\\
%         Erigens se \textsc{Voce Evangelii}.\\
%         Credens \textsc{In Christum Salvatorem}.\\
%         Non repugnans \textsc{Spiritui Sancto} impellenti.\\
%         Audiens \textsc{Verbum}: \& utens \textsc{Sacramentis}.\\
%         Patienter \& constanter sufferens \textsc{Crucem}.\\
%         Sperans \& expectans glorificationem\\
%         \textsc{\quad In Resurrectione Carnis}\\
%         \textsc{\quad Ad Vitam \AE{}ternam}.}
%       }\smallskip
%       \schema
%         {\schemabox{seipsum ratione}}
%         {\schemabox{Anim\ae{}\\ vel\\ Corporis}}\smallskip
%       \Schema{0ex}{5ex}
%       {\schemabox{Proximum,}}
%       {
%         \schema
%         {\schemabox{Amicum ra-\\ tione vel}}
%         {
%           \schemabox{Religionis.\\
%           Politic\ae{} \& \OE{}conomic\ae{}.\\
%           Cognationis.\\
%           Agnationis.}
%         }\smallskip
%         \schemabox{Inimicum.}
%       }
%     }
%   }
% }
%\end{displaymath}\egroup
%
% \newpage
%
% Next we tweak \meta{adjust} values by counting the lines (\texttt{ex}) in the direction the left side needs to move relative to the right, multiply the result by two, and make it negative for up and positive for down. Using an editor, e.g., \texttt{texworks} makes this fairly easy. We also adjust the final \meta{size} of the braces. Work from leaves to root:
% \begin{quote}\small\StartNum
% \begin{verbatim}
% \Schema{-25ex}{20.6ex}% Do this one last. ``Subjectum''\end{verbatim}
% \end{quote}
% \begin{quote}\small\ContinueNum\addtocounter{VerbLine}{8}
% \begin{verbatim}
% \Schema{-6.4ex}{8.5ex}% Do this one first. ``Dei''\end{verbatim}
% \end{quote}
% \begin{quote}\small\ContinueNum\addtocounter{VerbLine}{23}
% \begin{verbatim}
% \Schema{-13.4ex}{17.4ex}% Do this one fifth. ``Hominis''\end{verbatim}
% \end{quote}
% \begin{quote}\small\ContinueNum\addtocounter{VerbLine}{4}
% \begin{verbatim}
% \Schema{-4.4ex}{5ex}% Do this one second. ``Per se'' (lower)\end{verbatim}
% \end{quote}
% \begin{quote}\small\ContinueNum\addtocounter{VerbLine}{12}
% \begin{verbatim}
% \Schema{4.2ex}{14.4ex}% Do this one fourth. ``Ad''\end{verbatim}
% \end{quote}
% \begin{quote}\small\ContinueNum\addtocounter{VerbLine}{19}
% \begin{verbatim}
% \Schema{2ex}{5.1ex}% Do this one third. ``Proximum''\end{verbatim}
% \end{quote}
%
% \bgroup\small\begin{displaymath}
% \Schema{-25ex}{20.6ex}
% {
%   \schemabox{Subjectum \&\\
%   summa univer-\\
%   s\ae{} Scriptur\ae{},\\
%   est \textsc{Cognitio}\\
%   vel}
% }
% {
%   \Schema{-6.4ex}{8.5ex}
%   {
%     \schemabox{\textsc{Dei}, qua-\\lis sit, aut}
%   }
%   {
%     \schema
%     {\schemabox{\textsc{Per se}:\\ scilicet.}}
%     {
%       \schemabox{Unus in essentia.}\smallskip
%       \schemabox{Trinus in personis.}
%     }\smallskip
%     \schema
%     {\schemabox{Ad hominem\\ quem vel}}
%     {
%       \schemabox{Accusat \& terret, \textsc{Per Legem},\\
%       Consolatur \& erigit, \textsc{Per Evangelium}.\\
%       Salvat, \textsc{Per Christum}.\\
%       Renovat, \textsc{Per Spiritum Sanctum}.\\
%       Sanctificat, \textsc{Per Verbum} \& \textsc{Sacramenta}.\\
%       Castigat, tentat \& exercet, \textsc{Per Crucem}.\\
%       Glorificat \textsc{Per Resurrectionem Carnis}\\
%       \textsc{\quad Ad Vitam \AE{}ternam}.}
%     }\medskip
%   }
%   \Schema{-13.4ex}{17.4ex}
%   {
%     \schemabox{\textsc{Hominis},\\ qualis sit}
%   }
%   {
%     \Schema{-4.4ex}{5ex}
%     {\schemabox{\textsc{Per se}:}}
%     {
%       \schemabox{Ante lapsum.}\smallskip
%       \schema
%       {\schemabox{Post lapsum:}}
%       {
%         \schemabox{Ante Regenerationem \&\\
%         Renovationem S. Sancti.}\medskip
%         \schemabox{Post Regenerationem \&\\
%         Renovationem S. Sancti.}\smallskip
%       }\smallskip
%     }
%     \Schema{4.2ex}{14.4ex}
%     {\schemabox{Ad}}
%     {
%       \schema
%       {\schemabox{\textsc{Deum},}}
%       {
%         \schemabox{P\oe{}nitentia agens, agnitis peccatis \&\\
%         ira Dei cognita \textsc{Ex Lege}.\\
%         Erigens se \textsc{Voce Evangelii}.\\
%         Credens \textsc{In Christum Salvatorem}.\\
%         Non repugnans \textsc{Spiritui Sancto} impellenti.\\
%         Audiens \textsc{Verbum}: \& utens \textsc{Sacramentis}.\\
%         Patienter \& constanter sufferens \textsc{Crucem}.\\
%         Sperans \& expectans glorificationem\\
%         \textsc{\quad In Resurrectione Carnis}\\
%         \textsc{\quad Ad Vitam \AE{}ternam}.}
%       }\smallskip
%       \schema
%         {\schemabox{seipsum ratione}}
%         {\schemabox{Anim\ae{}\\ vel\\ Corporis}}\smallskip
%       \Schema{2ex}{5.1ex}
%       {\schemabox{Proximum,}}
%       {
%         \schema
%         {\schemabox{Amicum ra-\\ tione vel}}
%         {
%           \schemabox{Religionis.\\
%           Politic\ae{} \& \OE{}conomic\ae{}.\\
%           Cognationis.\\
%           Agnationis.}
%         }\smallskip
%         \schemabox{Inimicum.}
%       }
%     }
%   }
% }
%\end{displaymath}\egroup
%
% \subsubsection[Big Groups]{Big Schema with Groups}
%
% The next example illustrates everything tha we have covered so far, plus \cmd{\DoGroups}, all inside a local scope:\bigskip
%
% \bgroup\footnotesize\begin{displaymath}
% \DoGroups%
%\Schema{-27ex}{21.5ex}
%{
%  \schemabox{Sacr\ae{}\\ litter\ae{}\\ loquuntur,\\ de}
%}
%{
%  \schema
%  {
%    \schemabox{\textsc{Deo}}
%  }
%  {
%    \schemabox{Uno, in Trinitate.}\smallskip\schemabox{Trino, in unitate.}
%  }
%  \Schema{-17ex}{23.4ex}
%  {
%    \vskip30ex
%    \schemabox{\textsc{Dei}\\ \textsc{Operibus}}
%  }
%  {
%    \schema
%    {
%      \schemabox{\textsc{Intra},\\ qu\ae{} sunt\\ divisa, ut}
%    }
%    {
%      \schemabox{\textsc{Patris}, ab \ae{}terno gignere.\\ \textsc{Filii}, ab \ae{}terno genitum esse.\\ \textsc{Spiritus Sancti}, ab utroque\\ ab \ae{}terno procedete.\strut}
%    }
%    \medskip
%    \Schema{-2ex}{21ex}
%    {
%      \schemabox{\textsc{Extra},\\ qu\ae{} sunt\\ indivisa;\\ tervata\\ tamen\\ cujusque\\ person\ae{}\\ divinitatis\\ sua pro-\\prietate}
%    }
%    {
%      \Schema{-0.8ex}{6.4ex}
%      {
%        \schemabox{Creatione\\ natur\ae{}}
%      }
%      {
%        \schema
%        {
%          \schemabox{Brute ut}
%        }
%        {
%          \schemabox{C\oe{}li} \smallskip \schemabox{Elementorum} \smallskip \schemabox{Mundi}
%        }
%        \smallskip
%        \schema
%        {
%          \schemabox{\gk{logik~hs}, ut}
%        }
%        {
%          \schemabox{Angelorum.} \smallskip \schemabox{Hominum: Ad\ae{},\\ Ev\ae{} \& procreatorum\\ exipsis.\strut}
%        }
%      }
%      \schema
%      {
%        \schemabox{Sustenatione\\ natur\ae{} laps\ae{},}
%      }
%      {
%        \schemabox{Angelorum malorum,} \smallskip \schemabox{Hominum: Ad\ae{}, Ev\ae{}\\ \& procreatorum exipsis.}
%      }
%      \Schema{2.6ex}{8.8ex}
%      {
%        \schemabox{Beneficiis\\ erga Ecc-\\ lesiam: ea\\ versantur\\ aut circa}
%      }
%      {
%        \Schema{2.2ex}{7ex}
%        {
%          \schemabox{Res, ut}
%        }
%        {
%          \schema
%          {
%            \schemabox{Verbum}
%          }
%          {
%            \schemabox{Legis} \smallskip \schemabox{Evangelii} \smallskip \schemabox{Sacramentorum}
%          }
%          \smallskip
%          \schema
%          {
%            \schemabox{Signa vel Veteris\\ vel Novi Testa-\\ mentum ut sunt:}
%          }
%          {
%            \schemabox{Ceremoni\ae{}} \smallskip \schemabox{Miracula}
%          }
%        }
%        \smallskip
%        \Schema{0.6ex}{5.5ex}
%        {
%          \schemabox{Personas}
%        }
%        {
%          \schema
%          {
%            \schemabox{Ecclesi\ae{}}
%          }
%          {
%            \schemabox{Universalis} \smallskip \schemabox{Particularis}
%          }
%          \smallskip
%          \schemabox{Politi\ae, ut Magistratuum}
%          \smallskip
%          \schemabox{\OE{}conomi\ae, ut privatorum}
%        }
%      }\vskip2ex
%    }
%  }
%}
%\end{displaymath}\egroup
%
% \subsubsection[Open and Closed]{Open and Closed Schemata}
%
% Now we look at schemata that have both open and closed braces. One must use \cmd{\Schema} to get delimiters to be the same height. These schemata take the form:
% \begin{quote}\ttfamily
% \cmd{\Schema}\{\textrm{\meta{adjust}}\}\{\textrm{\meta{height}}\}\\
% \{\textrm{\meta{$left_1$}}\}\\
% \{\\
% \hbox{}\quad\cmd{\Schema}[close]\{\textrm{\meta{adjust}}\}\{\textrm{\meta{height}}\}\\
% \hbox{}\quad\{\textrm{\meta{$left_2$}}\}\\
% \hbox{}\quad\{\textrm{\meta{$right_2$}}\}\\
% \}
% \end{quote}
% \newbox\mybox
% \def\Box#1{%^^A
%   \setbox\mybox=\hbox{\vrule\vbox{\hrule%^^A
%     \vfil\hbox{\strut\space #1\space}%^^A
%     \vfil\hrule}\vrule}%^^A
%   \dimen0=\ht\mybox%^^A
%   \advance\dimen0 by2ex%^^A
%   \hbox{\vrule\vbox to \dimen0{\hrule%^^A
%     \vfil\hbox{{\Large\strut}\space #1\space}%^^A
%     \vfil\hrule}\vrule}}
%
% \newpage
% We use a modified version of our \cmd{\Box} macro from above to show how each part nests within the other. Below we do not use \cmd{\NudgeSB} from Section~\ref{sec:tweakschema} because we are not using \cmd{\schemabox}; instead we directly add the kern: |\hbox{\Box{\,$left_2$}\kern0.2em}| within the closed schema. The result is:\medskip
%
% \begin{quote}
%   \quad\Schema{0ex}{2ex}
%     {\Box{\,$left_1$}}
%     {%^^A
%       \Box{%^^A
%         \Schema[close]{0ex}{2ex}
%         {\hbox{\Box{\,$left_2$}\kern0.2em}}
%         {\Box{\,$right_2$}}%^^A
%       }%^^A
%     }
% \end{quote}\medskip
%
%  Here is another, more complex example:\medskip
%
% \begin{displaymath}
% \Schema{0ex}{6ex}
% {\Box{a}}
% {%^^A
%   \Box{%^^A
%     \Schema[close]{0ex}{6ex}
%     {%^^A
%       \Box{%^^A
%         \Schema{0ex}{3ex}
%         {\Box{b}}
%         {%^^A
%           \Box{%^^A
%             \Schema[close]{0ex}{3ex}
%             {\hbox{\Box{c}\kern0.2em}}
%             {\Box{d}}
%           }
%         }
%       }
%     }
%     {\Box{e}}
%   }
% }
% \end{displaymath}\medskip
%
% \begin{quote}\small\StartNum\begin{verbatim}
%\newbox\mybox
%\def\Box#1{%
%  \setbox\mybox=\hbox{\vrule\vbox{\hrule%
%    \vfil\hbox{\strut\space #1\space}%
%    \vfil\hrule}\vrule}%
%  \dimen0=\ht\mybox%
%  \advance\dimen0 by2ex%
%  \hbox{\vrule\vbox to \dimen0{\hrule%
%    \vfil\hbox{{\Large\strut}\space #1\space}%
%    \vfil\hrule}\vrule}}
%\Schema{0ex}{6ex}
%{\Box{a}}
%{%
%  \Box{%
%    \Schema[close]{0ex}{6ex}
%    {%
%      \Box{%
%        \Schema{0ex}{3ex}
%        {\Box{b}}
%        {%
%          \Box{%
%            \Schema[close]{0ex}{3ex}
%            {\hbox{\Box{c}\kern0.2em}}
%            {\Box{d}}
%          }
%        }
%      }
%    }
%    {\Box{e}}
%  }
%}\end{verbatim}
% \end{quote}
%\newpage
%
% This is more of a real-world example. As above, one must use \cmd{\Schema} to prevent the opening braces from being slightly larger than the closing braces.
%
% \bgroup\small\begin{displaymath}
% \Schema{-1.4ex}{10ex}
% {
%   \schemabox{Qu\ae{} sit\\ \textsc{Dei}, vel}
% }
% {
%   \Schema{-1ex}{5ex}
%   {
%     \schemabox{\textsc{Essentia}, in}
%   }
%   {
%     \vskip1ex\schemabox{Unitate divina,}
%     \medskip
%     \Schema{0ex}{3.4ex}
%     {
%       \schemabox{Tribus perso-\\ nis divinitatis}
%     }
%     {
%       \Schema[close]{0ex}{3.4ex}
%       {
%         \NudgeSB\schemabox{Patre,\\ Filio,\\ Spiritui Sancto}
%       }
%       {
%         \schemabox{\gk{<omoous'iois}\\ \& co\ae{}ternis}
%       }
%     }
%   }
%   \medskip
%   \Schema{-0.2ex}{6.4ex}
%   {
%     \schemabox{\textsc{Voluntas},\\ revelatur in\\ actione, sive}
%   }
%   {
%     \Schema{0ex}{3.4ex}
%     {
%       \schemabox{Universali}
%     }
%     {
%       \Schema[close]{0ex}{3.4ex}
%       {
%         \schemabox{Creationis,\\Sustenationis,\\ Propagationis,}
%       }
%       {
%         \schemabox{rerum creatarum.}
%       }
%     }
%     \medskip
%     \schema
%     {
%       \schemabox{Speciali, in beneficiis\\ erga Ecclesiam, eam}
%     }
%     {
%       \schemabox{Colligendo.\\ Justificando.\\
%       Conservando.\\ Glorificando.}
%     }
%   }
% }
% \end{displaymath}\egroup\smallskip
%
% This listing of the previous example illustrates how one handles closed schemata. The macro \cmd{\gk} uses \textsf{babel} to create Greek text.
%
% \begin{quote}\small\StartNum
% \begin{verbatim}
%\Schema{-1.4ex}{10ex}
%{\schemabox{Qu\ae{} sit\\ \textsc{Dei}, vel}}
%{
%  \Schema{-1ex}{5ex}
%  {\schemabox{\textsc{Essentia}, in}}
%  {
%    \vskip1ex\schemabox{Unitate divina,}
%    \medskip
%    \Schema{0ex}{3.4ex}
%    {\schemabox{Tribus perso-\\ nis divinitatis}}
%    {
%      \Schema[close]{0ex}{3.4ex}
%      {\NudgeSB\schemabox{Patre,\\ Filio,\\ Spiritui Sancto}}
%      {\schemabox{\gk{<omoous'iois}\\ \& co\ae{}ternis}}
%    }
%  }
%  \medskip
%  \Schema{-0.2ex}{6.4ex}
%  {\schemabox{\textsc{Voluntas},\\ revelatur in\\ actione, sive}}
%  {
%    \Schema{0ex}{3.4ex}
%    {\schemabox{Universali}}
%    {
%      \Schema[close]{0ex}{3.4ex}
%      {\schemabox{Creationis,\\ Sustenationis,\\ Propagationis,}}
%      {\schemabox{rerum creatarum.}}
%    }
%    \medskip
%    \schema
%    {\schemabox{Speciali, in beneficiis\\ erga Ecclesiam, eam}}
%    {\schemabox{Colligendo.\\ Justificando.\\
%     Conservando.\\ Glorificando.}}
%  }
%}\end{verbatim}
% \end{quote}
% \newpage
%
% \subsection{Final features}
% \label{sec:multiple}
% This final example illustrates how one can set the width of a \cmd{\schemabox}, and for what sort of use that might be. Below we invoke \cmd{\DoBrackets} after the start of the group containing the right-hand side of the first \cmd{\Schema}.
%
% \bgroup\small\begin{displaymath}
% \Schema{-0.2ex}{14.4ex}
% {\schemabox{\bfseries Curricula\\\bfseries Texts}}
% {
%   \DoBrackets%
%^^A% Doable in LaTeX, not in Plain TeX, because \outer.
%^^A% \newbox\mybox%
%   \setbox\mybox=\hbox{\bfseries III. Philosophical }%
%   \dimen0=\wd\mybox%
%   \schema
%     {\schemabox[\dimen0]{\bfseries I. General\\Studies}}
%     {\schemabox{1. Collected Works\\2. Encyclopedias}}
%   \smallskip
%   \schema
%     {\schemabox[\dimen0]{\bfseries II. Literary\\Disciplines}}
%     {\schemabox{1. Philology\\
%      2. Historical Introduction\\
%      3. Literary Theory\\
%      4. Application}}
%   \smallskip
%   \schema
%       {\schemabox[\dimen0]{\bfseries III. Philosophical\\Disciplines}}
%       {\schemabox{1. Source Texts\\
%        2. History of Philosophy\\
%        3. General Surveys\\
%        4. Specific Studies}}
%   \smallskip
%   \schema
%       {\schemabox[\dimen0]{\bfseries IV. Historical\\Disciplines}}
%       {\schemabox{1. General Surveys\\
%        2. Specialized Works}}
% }
%\end{displaymath}\egroup
%
% \begin{quote}\small
% \StartNum
% \begin{verbatim}
%\Schema{-0.2ex}{14.4ex}
%{\schemabox{\bfseries Curricula\\\bfseries Texts}}
%{
%  \DoBrackets%
%  % \newbox here is doable in LaTeX, not in Plain TeX,
%  % where it must be used as an \outer macro.
%  \newbox\mybox%
%  \setbox\mybox=\hbox{\bfseries III. Philosophical }%
%  \dimen0=\wd\mybox%
%  \schema
%    {\schemabox[\dimen0]{\bfseries I. General\\Studies}}
%    {\schemabox{1. Collected Works\\2. Encyclopedias}}
%  \smallskip
%  \schema
%    {\schemabox[\dimen0]{\bfseries II. Literary\\Disciplines}}
%    {\schemabox{1. Philology\\
%     2. Historical Introduction\\
%     3. Literary Theory\\
%     4. Application}}
%  \smallskip
%  \schema
%    {\schemabox[\dimen0]{\bfseries III. Philosophical\\Disciplines}}
%    {\schemabox{1. Source Texts\\
%     2. History of Philosophy\\
%     3. General Surveys\\
%     4. Specific Studies}}
%  \smallskip
%  \schema
%    {\schemabox[\dimen0]{\bfseries IV. Historical\\Disciplines}}
%    {\schemabox{1. General Surveys\\
%     2. Specialized Works}}
%}\end{verbatim}
% \end{quote}
% \newpage
%
%\StopEventually{^^A
%  \newgeometry{textwidth=160mm,textheight=237mm,right=25mm}
%  \PrintChanges\newpage\PrintIndex
%}
% \iffalse
%<*package>
% \fi
%
% \section{Implementation}
% \small
%
% Shorter macros are written in both \LaTeX{} and generic \TeX. Longer macros implement a platform-specific front end and a common back end. The macros default to \LaTeXe{} format. If the format test fails, then generic macros are selected.\medskip
%
% \bgroup\footnotesize\obeylines
% \leavevmode\llap{\scriptsize 1\ \ }\verb+%<package>{\expandafter}\expandafter\ifx \csname schemataLaTeX\endcsname\relax+
% \leavevmode\llap{\scriptsize 2\ \ }\verb+%<package>  \def\schemataLaTeX{LaTeX2e}\fi+
% \leavevmode\llap{\scriptsize 3\ \ }\verb+%<package>\ifx\fmtname\schemataLaTeX+
% \leavevmode\llap{\scriptsize 4\ \ }\verb+%<package>\expandafter\NeedsTeXFormat\expandafter{\schemataLaTeX}[2005/12/01]+
% \leavevmode\llap{\scriptsize 5\ \ }\verb+%<package>\ProvidesPackage{schemata}+
%                                  \verb+%<*package>+
% \leavevmode\llap{\scriptsize 6\ \ }\verb+  [2020/11/11 1.2 generic package to aid construction of topical categories]+
%                                  \verb+%</package>+
% \leavevmode\llap{\scriptsize 7\ \ }\verb+%<package>\fi+
% \egroup
% \makeatletter\advance\c@CodelineNo by 7\makeatother
%
% \subsection{Internal Variables}
%
% \changes{1.0}{2020/03/13}{current format handling}
% If we are not using \LaTeXe, we do the equivalent of \cmd{\makeatletter}.
%
%    \begin{macrocode}
\ifx\fmtname\schemataLaTeX\else
  \catcode`@=11\relax
\fi
%    \end{macrocode}
%    
% \changes{0.8}{2016/01/25}{Rename box/dimen registers}
% \changes{1.0}{2020/03/13}{Rename box/dimen registers}
%Two box registers and two dimen registers are used to analyze the left-hand and right-hand vertical sizes of the boxes in a schema. To make it less likely for these internal variables to be redefined, they are now more ``unique.''
%
%    \begin{macrocode}
\newbox\@schemata@rhs
\newbox\@schemata@lhs
\newdimen\@schemata@rheight
\newdimen\@schemata@lheight
%    \end{macrocode}
%
% \changes{0.6}{2013/03/10}{Added UC/LC tweaks.}
% \changes{0.8}{2016/01/25}{Renamed internal macros}
% Two Boolean flags affect the height of a \cmd{\schemabox}, respectively setting and toggling that height for lowercase and uppercase content in order to add or remove space for boxes with only lowercase text.
%
%    \begin{macrocode}
\newif\if@schemata@LCBox
\newif\if@schemata@SWBox
%    \end{macrocode}
%
% This Boolean flag determines if a kern should be added to the end of each line in a \cmd{\schemabox} (helps with closed braces).
%
%    \begin{macrocode}
\newif\if@schemata@NudgeBox
%    \end{macrocode}
%
% \subsection{Package Options}
%
% \changes{0.6}{2013/03/10}{Added brackets and parens as well as braces}
% \changes{1.0}{2020/03/13}{Added group option}
% We set braces to be the default set of delimiters. Apart from \LaTeXe{} we ignore the options. Three options are implemented, namely, \texttt{braces} (the default), \texttt{brackets}, and \texttt{parens}. Since the options are used infrequently, we naively process them in whatever order we get, each overwriting the last. 
%
%    \begin{macrocode}
\ifx\fmtname\schemataLaTeX
  \DeclareOption{braces}%
    {\let\@schemata@LD\lbrace \let\@schemata@RD\rbrace}
  \DeclareOption{brackets}%
    {\let\@schemata@LD\lbrack \let\@schemata@RD\rbrack}
  \DeclareOption{parens}%
    {\let\@schemata@LD( \let\@schemata@RD)}
  \DeclareOption{groups}%
    {\let\@schemata@LD\lgroup \let\@schemata@RD\rgroup}
  \ExecuteOptions{braces}
  \ProcessOptions\relax
\else
  \let\@schemata@LD\lbrace%
  \let\@schemata@RD\rbrace%
\fi
%    \end{macrocode}
%
% \subsection {Macros}
%
% \begin{macro}{\DoBraces}
% \changes{0.6}{2013/03/10}{Added macro}
% \changes{1.0}{2020/03/13}{ensure short}
% Set the delimiters to be braces. This is local to a scope, including within a schema.
%
%    \begin{macrocode}
\ifx\fmtname\schemataLaTeX
  \newcommand*{\DoBraces}%
    {\let\@schemata@LD\lbrace \let\@schemata@RD\rbrace}
\else
  \def\DoBraces%
    {\let\@schemata@LD\lbrace \let\@schemata@RD\rbrace}
\fi
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\DoBrackets}
% \changes{0.6}{2013/03/10}{Added macro}
% \changes{1.0}{2020/03/13}{ensure short}
% Set the delimiters to be brackets. This is local, as above.
%
%    \begin{macrocode}
\ifx\fmtname\schemataLaTeX
  \newcommand*{\DoBrackets}%
    {\let\@schemata@LD\lbrack \let\@schemata@RD\rbrack}
\else
  \def\DoBrackets%
    {\let\@schemata@LD\lbrack \let\@schemata@RD\rbrack}
\fi
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\DoParens}
% \changes{0.6}{2013/03/10}{Added macro}
% \changes{1.0}{2020/03/13}{ensure short}
% Set the delimiters to be parentheses. This is local, as above.
%
%    \begin{macrocode}
\ifx\fmtname\schemataLaTeX
  \newcommand*{\DoParens}%
    {\let\@schemata@LD( \let\@schemata@RD)}
\else
  \def\DoParens%
    {\let\@schemata@LD( \let\@schemata@RD)}
\fi
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\DoGroups}
% \changes{1.0}{2020/03/13}{Added macro}
% Set the delimiters to be parentheses. This is local, as above.
%
%    \begin{macrocode}
\ifx\fmtname\schemataLaTeX
  \newcommand*{\DoGroups}%
    {\let\@schemata@LD\lgroup \let\@schemata@RD\rgroup}
\else
  \def\DoGroups%
    {\let\@schemata@LD\lgroup \let\@schemata@RD\rgroup}
\fi
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\LCschema}
% \changes{0.6}{2013/03/10}{Added macro}
% \changes{1.0}{2020/03/13}{ensure short}
% Prevent \cmd{\schemabox} from adding a \cmd{\strut} in the first line.
%
%    \begin{macrocode}
\ifx\fmtname\schemataLaTeX
  \newcommand*{\LCschema}{\@schemata@LCBoxtrue}
\else
  \def\LCschema{\@schemata@LCBoxtrue}
\fi
%    \end{macrocode}
% \end{macro}
% \newpage
%
% \begin{macro}{\UCschema}
% \changes{0.6}{2013/03/10}{Added macro}
% \changes{1.0}{2020/03/13}{ensure short}
% Permit \cmd{\schemabox} to add a \cmd{\strut} in the first line (default).
%
%    \begin{macrocode}
\ifx\fmtname\schemataLaTeX
  \newcommand*{\UCschema}{\@schemata@LCBoxfalse}
\else
  \def\UCschema{\@schemata@LCBoxfalse}
\fi
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\SwitchSB}
% \changes{0.6}{2013/03/10}{Added macro}
% \changes{1.0}{2020/03/13}{ensure short}
% Flip the UC/LC settings for one \cmd{\schemabox}, which will reset this value on exit.
%
%    \begin{macrocode}
\ifx\fmtname\schemataLaTeX
  \newcommand*{\SwitchSB}{\@schemata@SWBoxtrue}%
\else
  \def\SwitchSB{\@schemata@SWBoxtrue}
\fi
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\NudgeSB}
% \changes{0.8}{2016/01/25}{Added macro}
% \changes{1.0}{2020/03/13}{ensure short}
% Add a kern to the end of each line in one \cmd{\schemabox}. This will be reset on exit from that \cmd{\schemabox}.
%
%    \begin{macrocode}
\ifx\fmtname\schemataLaTeX
  \newcommand*{\NudgeSB}{\@schemata@NudgeBoxtrue}
\else
  \def\NudgeSB{\@schemata@NudgeBoxtrue}
\fi
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\SBNudgeFactor}
% \changes{1.0}{2020/03/13}{Added macro}
% Define the \texttt{\textbackslash kern} to be added to the end of each line in one \cmd{\schemabox}. The default is \texttt{0.2em}, equal to the horizontal corrective.
%
%    \begin{macrocode}
\ifx\fmtname\schemataLaTeX
  \newcommand{\SBNudgeFactor}{\kern0.2em}
\else
  \def\SBNudgeFactor{\kern0.2em}
\fi
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\schemabox}
% \changes{0.6}{2013/03/10}{Added lowercase tweaks}
% \changes{0.8}{2016/01/25}{Added nudge feature; fix errors when not in internal vertical mode}
% \changes{1.0}{2020/03/13}{Create front- and back-end; ensure short}
% \changes{1.2}{2020/11/11}{Fix namespace}
%  If in internal vertical mode, restricted horizontal mode, or math mode, wrap a stack of \cmd{\hbox}es in a \cmd{\vbox}, then put that inside an \cmd{\hbox}. The first argument sets an optional width for those \cmd{\hbox}es. Normally insert a \cmd{\strut} in the first \cmd{\hbox}. The second argument contains the rows of horizontal material, where |\\| is redefined to end one \cmd{\hbox} and begin another. When in any other mode mode, just display the second argument as text.
%
%    \begin{macrocode}
\ifx\fmtname\schemataLaTeX
  \newcommand*{\schemabox}[2][0pt]{\@schemata@schemabox[#1]{#2}}
\else
  \def\schemabox{\futurelet\@schemata@testchar\@schemata@schemab@x}
  \def\@schemata@schemab@x{%
    \ifx[\@schemata@testchar
      \let\next\@schemata@schemabox%
    \else
      \let\next\@schemata@@schemab@x%
    \fi
    \next%
  }%
  \def\@schemata@@schemab@x#1{\@schemata@schemabox[0pt]{#1}}
\fi
\def\@schemata@schemabox[#1]#2{%
  \ifinner
    \if@schemata@LCBox
      \def\@schemata@Adj{}%
      \if@schemata@SWBox\def\@schemata@Adj{\strut}\fi
    \else
      \def\@schemata@Adj{\strut}%
      \if@schemata@SWBox\def\@schemata@Adj{}\fi
    \fi
    \if@schemata@NudgeBox
      \let\@schemata@Nudge\SBNudgeFactor%
    \else
      \def\@schemata@Nudge{}%
    \fi
    \ifdim#1<1pt
      \def\\{\@schemata@Nudge\egroup\hbox\bgroup\ignorespaces }%
      \vbox{\hbox\bgroup%
        \@schemata@Adj\ignorespaces #2\@schemata@Nudge%
        \egroup}%
    \else
      \def\\{\hfil\egroup\hbox to #1\bgroup\ignorespaces }%
      \vbox{\hbox to #1\bgroup%
      \@schemata@Adj\ignorespaces #2\hfil%
      \egroup}%
    \fi
  \else
    #2%
  \fi
  \@schemata@SWBoxfalse%
  \@schemata@NudgeBoxfalse%
}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\schema}
% \changes{1.0}{2020/03/13}{create front- and back-end; ensure long}
% \changes{1.2}{2020/11/11}{Fix namespace}
% This ``simple'' schema vertically centers two boxes of internal vertical material and puts a ``simple'' brace between the boxes based on the height of the box and the options passed to the schema.
%
% There is something of a ``magic'' value for adjusting the height used for the larger side of a \cmd{\schema}, namely \texttt{1.44265ex}. By using this adjustment, which is slightly larger than $\sqrt{2}$ times the ex-height of the font, the results look more aesthetically pleasing in terms of centering and size of the braces.
%
% By default, a schema has a box to the left, an open delimiter, and a box to the right. If any optional argument other than \texttt{open} is used, the schema prints a box to the left, a close brace, and a box to the right.
%
%    \begin{macrocode}
\ifx\fmtname\schemataLaTeX
  \newcommand{\schema}[3][open]{%
    \@schemata@schema[#1]{#2}{#3}}
\else
  \long\def\schema{\futurelet\@schemata@testchar\@schemata@schem@}
  \long\def\@schemata@schem@{%
    \ifx[\@schemata@testchar
      \let\next\@schemata@schema%
    \else
      \let\next\@schemata@@schem@%
    \fi
    \next%
  }%
  \long\def\@schemata@@schem@#1#2{%
    \@schemata@schema[open]{#1}{#2}}
\fi
\long\def\@schemata@schema[#1]#2#3{%
  \def\@schemata@option{#1}\def\@schemata@open{open}%
  \ifx\@schemata@option\@schemata@open
    \setbox\@schemata@rhs=\vbox{#3}%
    \@schemata@rheight=\ht\@schemata@rhs%
    \advance\@schemata@rheight\dp\@schemata@rhs%
    \advance\@schemata@rheight by 1.44265ex%
    \hbox{$\vcenter{#2}%
      \@schemata@lbrace{\@schemata@rheight}%
      \vcenter{#3}$}%
  \else
    \setbox\@schemata@lhs=\vbox{#2}%
    \@schemata@lheight=\ht\@schemata@lhs%
    \advance\@schemata@lheight\dp\@schemata@lhs%
    \advance\@schemata@lheight by 1.44265ex%
    \hbox{$\vcenter{#2}%
      \kern-0.2em\@schemata@rbrace{\@schemata@lheight}%
      \vcenter{#3}$}%
  \fi
}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\Schema}
% \changes{1.0}{2020/03/13}{create front- and back-end; ensure long}
% \changes{1.2}{2020/11/11}{Fix namespace}
% This is the general-purpose form of schemata. The arguments include whether it is an open or closed schema, the vertical adjustment of the left-hand side and delimiter over against the right-hand side, the size of the brace, and the contents of the left and right-hand sizes. It works about the same as above, but requires manual adjustment of the braces. Again we see the ``magic'' height adjustment value of \texttt{1.44265ex}.
%
%    \begin{macrocode}
\ifx\fmtname\schemataLaTeX
  \newcommand{\Schema}[5][open]{%
    \@schemata@Schema[#1]{#2}{#3}{#4}{#5}}
\else
  \long\def\Schema{\futurelet\@schemata@testchar\@schemata@Schem@}
  \long\def\@schemata@Schem@{%
    \ifx[\@schemata@testchar
      \let\next\@schemata@Schema%
    \else
      \let\next\@schemata@@Schem@%
    \fi
    \next%
  }%
  \long\def\@schemata@@Schem@#1#2#3#4{%
    \@schemata@Schema[open]{#1}{#2}{#3}{#4}}
\fi
\long\def\@schemata@Schema[#1]#2#3#4#5{%
  \def\@schemata@option{#1}%
  \def\@schemata@open{open}%
  \dimen0=#2%
  \ifx\@schemata@option\@schemata@open
    \hbox{$\vcenter{\vskip1.44265\dimen0#4}%
      \@schemata@biglbrace{#2}{#3}\vcenter{#5}$}%
  \else
    \hbox{$\vcenter{\vskip1.44265\dimen0#4}\kern-0.2em%
      \@schemata@bigrbrace{#2}{#3}\vcenter{#5}$}%
  \fi
}
%    \end{macrocode}
% \end{macro}
% \newpage
%
% \begin{macro}{\@schemata@lbrace}
% \changes{0.8}{2016/01/25}{Renamed}
% \changes{1.0}{2020/03/13}{ensure short}
% Draw an on-center delimiter to the left of a simple box.
%
%    \begin{macrocode}
\ifx\fmtname\schemataLaTeX
  \newcommand*{\@schemata@lbrace}[1]{%
    \ifmmode
      \left.\vcenter{\vbox to #1{\vfil}}\right\@schemata@LD%
    \fi
  }
\else
  \def\@schemata@lbrace#1{%
    \ifmmode
      \left.\vcenter{\vbox to #1{\vfil}}\right\@schemata@LD%
    \fi
  }
\fi
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@schemata@rbrace}
% \changes{0.8}{2016/01/25}{Renamed}
% \changes{1.0}{2020/03/13}{ensure short}
% Draw an on-center delimiter to the right of a simple box.
%
%    \begin{macrocode}
\ifx\fmtname\schemataLaTeX
  \newcommand*{\@schemata@rbrace}[1]{%
    \ifmmode
      \left\@schemata@RD\vcenter{\vbox to #1{\vfil}}\right.%
    \fi
  }
\else
  \def\@schemata@rbrace#1{%
    \ifmmode
      \left\@schemata@RD\vcenter{\vbox to #1{\vfil}}\right.%
    \fi
  }
\fi
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@schemata@biglbrace}
% \changes{0.8}{2016/01/25}{Renamed; use absolute value of brace size}
% \changes{1.0}{2020/03/13}{ensure short; create front- and back-end}
% Draw a vertically-adjustable delimiter to the left of a complex assortment of boxes. Again we see the ``magic'' height adjustment value of \texttt{1.44265ex}, but both positive and negative.
%
%    \begin{macrocode}
\ifx\fmtname\schemataLaTeX
  \newcommand*{\@schemata@biglbrace}[2]{%
    \@schemata@@biglbrace{#1}{#2}}
\else
  \def\@schemata@biglbrace#1#2{%
    \@schemata@@biglbrace{#1}{#2}}
\fi
\def\@schemata@@biglbrace#1#2{%
  \dimen0=#1%
  \dimen2=#2%
  \dimen4=-\dimen2%
  \ifdim\dimen4>\dimen2\dimen2=\dimen4\fi
  \ifdim\dimen0<0pt
    \ifmmode\vcenter{\hbox{$\left.%
      \vbox to 1.44265\dimen2{\vfil}%
      \right\@schemata@LD%
      \atop\vbox to -1.44265\dimen0{\vfil}$}}\fi
  \else
    \ifmmode\vcenter{\hbox{$\vbox to 1.44265\dimen0{\vfil}%
      \atop\left.%
      \vbox to 1.44265\dimen2{\vfil}%
      \right\@schemata@LD$}}\fi
  \fi
}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@schemata@bigrbrace}
% \changes{0.8}{2016/01/25}{Renamed; Use absolute value of brace size}
% \changes{1.0}{2020/03/13}{ensure short; create front- and back-end}
% Draw a vertically-adjustable delimiter to the right of a complex assortment of boxes. Again we see the ``magic'' height adjustment value of \texttt{1.44265ex}, but both positive and negative.
%
%    \begin{macrocode}
\ifx\fmtname\schemataLaTeX
  \newcommand*{\@schemata@bigrbrace}[2]{%
    \@schemata@@bigrbrace{#1}{#2}%
  }
\else
  \def\@schemata@bigrbrace#1#2{%
    \@schemata@@bigrbrace{#1}{#2}%
  }
\fi
\def\@schemata@@bigrbrace#1#2{%
  \dimen0=#1%
  \dimen2=#2%
  \dimen4=-\dimen2%
  \ifdim\dimen4>\dimen2\dimen2=\dimen4\fi
  \ifdim\dimen0<0pt
    \ifmmode\vcenter{\hbox{$\left.%
      \vbox to 1.44265\dimen2{\vfil}%
      \right\@schemata@RD%
      \atop\vbox to -1.44265\dimen0{\vfil}$}}\fi
  \else
    \ifmmode\vcenter{\hbox{$\vbox to 1.44265\dimen0{\vfil}%
      \atop\left.%
      \vbox to 1.44265\dimen2{\vfil}%
      \right\@schemata@RD$}}\fi
  \fi
}
%    \end{macrocode}
% \end{macro}
%
% If we are not using \LaTeXe, we do the equivalent of \cmd{\makeatother}.
%
%    \begin{macrocode}
\ifx\fmtname\schemataLaTeX\else
  \catcode`@=12\relax
\fi
%    \end{macrocode}
% \Finale
% \endinput
%</package>
%<*examples>
%<<examplesvb
\def\nameofplain{plain}
\def\nameofeplain{eplain}
\def\nameoflatex{LaTeX2e}
\def\nameoflollipop{Lollipop}
%
% See README.md for compiling this document.
%
\ifx\fmtname\nameoflatex
  \documentclass[10pt]{article}
  \usepackage[T1]{fontenc}
  \usepackage[polutonikogreek,american]{babel}
  \newcommand{\gk}[1]{\foreignlanguage{polutonikogreek}{#1}}
  \usepackage{schemata}
  \begin{document}
\else
  \ifx\fmtname\nameoflollipop
    \input schemata.sty
    \font\scshape=cmcsc10
    \def\textsc#1{\bgroup\scshape #1\egroup}
    \def\gk#1{\bgroup\it #1\egroup}
    \Start
  \else
    \input schemata.sty
    \font\scshape=cmcsc10
    \def\textsc#1{\bgroup\scshape #1\egroup}
    \def\gk#1{\bgroup\it #1\egroup}
  \fi
\fi

Format: \fmtname\par

$$
\Schema{-1ex}{8.7ex}
{
  \schemabox{Subjectum theo-\\
  logi\ae{} est Notitia\\
  Dei. Considerat\\
  ergo, Dei, vel}
}
{
\schema
  {
    \schemabox{\textsc{Essentiam},}
  }
  {
    \schemabox{Unitate natur\ae{}.\\
    Trinitate personarum.\\
    Operibus ad intra.}
  }\smallskip
  \schema
  {
    \schemabox{\textsc{Voluntatem},\\
    manifestatam in\\
    operibus ad extra;\\
    ut in}
  }
  {
    \schemabox{Creatione.\\
    Sustentatione natur\ae{} %
    laps\ae{}.\\
    Reparatione.\\
    Conversione.\\
    Justificatione.\\
    Sanctificatione \&\\
    Glorificatione ejusdem.}
  }
}
$$

$$
\Schema{-25ex}{20.6ex}
{
  \schemabox{Subjectum \&\\
  summa univer-\\
  s\ae{} Scriptur\ae{},\\
  est \textsc{Cognitio}\\
  vel}
}
{
  \Schema{-6.4ex}{8.5ex}
  {
    \schemabox{\textsc{Dei}, qua-\\lis sit, aut}
  }
  {
    \schema
    {\schemabox{\textsc{Per se}:\\ scilicet.}}
    {
      \schemabox{Unus in essentia.}\smallskip
      \schemabox{Trinus in personis.}
    }\smallskip
    \schema
    {\schemabox{Ad hominem\\ quem vel}}
    {
      \schemabox{Accusat \& terret, \textsc{Per Legem},\\
      Consolatur \& erigit, \textsc{Per Evangelium}.\\
      Salvat, \textsc{Per Christum}.\\
      Renovat, \textsc{Per Spiritum Sanctum}.\\
      Sanctificat, \textsc{Per Verbum} \& \textsc{Sacramenta}.\\
      Castigat, tentat \& exercet, \textsc{Per Crucem}.\\
      Glorificat \textsc{Per Resurrectionem Carnis}\\
      \textsc{\quad Ad Vitam \AE{}ternam}.}
    }\medskip
  }
  \Schema{-13.4ex}{17.4ex}
  {
    \schemabox{\textsc{Hominis},\\ qualis sit}
  }
  {
    \Schema{-4.4ex}{5ex}
    {\schemabox{\textsc{Per se}:}}
    {
      \schemabox{Ante lapsum.}\smallskip
      \schema
      {\schemabox{Post lapsum:}}
      {
        \schemabox{Ante Regenerationem \&\\
        Renovationem S. Sancti.}\medskip
        \schemabox{Post Regenerationem \&\\
        Renovationem S. Sancti.}\smallskip
      }\smallskip
    }
    \Schema{4.2ex}{14.4ex}
    {\schemabox{Ad}}
    {
      \schema
      {\schemabox{\textsc{Deum},}}
      {
        \schemabox{P\oe{}nitentia agens, agnitis peccatis \&\\
        ira Dei cognita \textsc{Ex Lege}.\\
        Erigens se \textsc{Voce Evangelii}.\\
        Credens \textsc{In Christum Salvatorem}.\\
        Non repugnans \textsc{Spiritui Sancto} impellenti.\\
        Audiens \textsc{Verbum}: \& utens \textsc{Sacramentis}.\\
        Patienter \& constanter sufferens \textsc{Crucem}.\\
        Sperans \& expectans glorificationem\\
        \textsc{\quad In Resurrectione Carnis}\\
        \textsc{\quad Ad Vitam \AE{}ternam}.}
      }\smallskip
      \schema
        {\schemabox{seipsum ratione}}
        {\schemabox{Anim\ae{}\\ vel\\ Corporis}}\smallskip
      \Schema{2ex}{5.1ex}
      {\schemabox{Proximum,}}
      {
        \schema
        {\schemabox{Amicum ra-\\ tione vel}}
        {
          \schemabox{Religionis.\\
          Politic\ae{} \& \OE{}conomic\ae{}.\\
          Cognationis.\\
          Agnationis.}
        }\smallskip
        \schemabox{Inimicum.}
      }
    }
  }
}
$$

\eject

\bgroup

\ifx\fmtname\nameofeplain
\verbatim \DoParens |endverbatim
\fi
\DoParens%
\vfil
$$
\Schema{-26ex}{21.5ex}
{
  \schemabox{Sacr\ae{}\\ litter\ae{}\\ loquuntur,\\ de}
}
{
  \schema
  {
    \schemabox{\textsc{Deo}}
  }
  {
    \schemabox{Uno, in Trinitate.}\smallskip\schemabox{Trino, in unitate.}
  }
  \Schema{-16.5ex}{23.4ex}
  {
    \vskip30ex
    \schemabox{\textsc{Dei}\\ \textsc{Operibus}}
  }
  {
    \schema
    {
      \schemabox{\textsc{Intra},\\ qu\ae{} sunt\\ divisa, ut}
    }
    {
      \schemabox{\textsc{Patris}, ab \ae{}terno gignere.\\ \textsc{Filii}, ab \ae{}terno genitum esse.\\ \textsc{Spiritus Sancti}, ab utroque\\ ab \ae{}terno procedete.}
    }
    \medskip
    \Schema{-2ex}{21ex}
    {
      \schemabox{\textsc{Extra},\\ qu\ae{} sunt\\ indivisa;\\ tervata\\ tamen\\ cujusque\\ person\ae{}\\ divinitatis\\ sua pro-\\prietate}
    }
    {
      \Schema{-0.8ex}{6.4ex}
      {
        \schemabox{Creatione\\ natur\ae{}}
      }
      {
        \schema
        {
          \schemabox{Brute ut}
        }
        {
          \schemabox{C\oe{}li} \smallskip \schemabox{Elementorum} \smallskip \schemabox{Mundi}
        }
        \smallskip
        \schema
        {
          \schemabox{\ifx\fmtname\nameoflatex\gk{logik~hs}\else\gk{logik\=es}\fi, ut}
        }
        {
          \schemabox{Angelorum.} \smallskip \schemabox{Hominum: Ad\ae{},\\ Ev\ae{} \& procreatorum\\ exipsis.}
        }
      }
      \schema
      {
        \schemabox{Sustenatione\\ natur\ae{} laps\ae{},}
      }
      {
        \schemabox{Angelorum malorum,} \smallskip \schemabox{Hominum: Ad\ae{}, Ev\ae{}\\ \& procreatorum exipsis.}
      }
      \Schema{2.6ex}{8.8ex}
      {
        \schemabox{Beneficiis\\ erga Ecc-\\ lesiam: ea\\ versantur\\ aut circa}
      }
      {
        \Schema{2.2ex}{7ex}
        {
          \schemabox{Res, ut}
        }
        {
          \schema
          {
            \schemabox{Verbum}
          }
          {
            \schemabox{Legis} \smallskip \schemabox{Evangelii} \smallskip \schemabox{Sacramentorum}
          }
          \smallskip
          \schema
          {
            \schemabox{Signa vel Veteris\\ vel Novi Testa-\\ mentum ut sunt:}
          }
          {
            \schemabox{Ceremoni\ae{}} \smallskip \schemabox{Miracula}
          }
        }
        \smallskip
        \Schema{1ex}{5ex}
        {
          \schemabox{Personas}
        }
        {
          \schema
          {
            \schemabox{Ecclesi\ae{}}
          }
          {
            \schemabox{Universalis} \smallskip \schemabox{Particularis}
          }
          \smallskip
          \schemabox{Politi\ae, ut Magistratuum}
          \smallskip
          \schemabox{\OE{}conomi\ae, ut privatorum}
        }
      }\vskip2ex
    }
  }
}
$$
\vfil

\eject

\ifx\fmtname\nameofeplain
\verbatim \DoGroups |endverbatim
\fi
\DoGroups

\vfil
$$
\Schema{-26.5ex}{21ex}
{
  \schemabox{Sacr\ae{}\\ litter\ae{}\\ loquuntur,\\ de}
}
{
  \schema
  {
    \schemabox{\textsc{Deo}}
  }
  {
    \schemabox{Uno, in Trinitate.}\smallskip\schemabox{Trino, in unitate.}
  }
  \Schema{-17ex}{23.4ex}
  {
    \vskip30ex
    \schemabox{\textsc{Dei}\\ \textsc{Operibus}}
  }
  {
    \schema
    {
      \schemabox{\textsc{Intra},\\ qu\ae{} sunt\\ divisa, ut}
    }
    {
      \schemabox{\textsc{Patris}, ab \ae{}terno gignere.\\ \textsc{Filii}, ab \ae{}terno genitum esse.\\ \textsc{Spiritus Sancti}, ab utroque\\ ab \ae{}terno procedete.\strut}
    }
    \medskip
    \Schema{-2ex}{21ex}
    {
      \schemabox{\textsc{Extra},\\ qu\ae{} sunt\\ indivisa;\\ tervata\\ tamen\\ cujusque\\ person\ae{}\\ divinitatis\\ sua pro-\\prietate}
    }
    {
      \Schema{-0.8ex}{6.4ex}
      {
        \schemabox{Creatione\\ natur\ae{}}
      }
      {
        \schema
        {
          \schemabox{Brute ut}
        }
        {
          \schemabox{C\oe{}li} \smallskip \schemabox{Elementorum} \smallskip \schemabox{Mundi}
        }
        \smallskip
        \schema
        {
          \schemabox{\ifx\fmtname\nameoflatex\gk{logik~hs}\else\gk{logik\=es}\fi, ut}
        }
        {
          \schemabox{Angelorum.} \smallskip \schemabox{Hominum: Ad\ae{},\\ Ev\ae{} \& procreatorum\\ exipsis.\strut}
        }
      }
      \schema
      {
        \schemabox{Sustenatione\\ natur\ae{} laps\ae{},}
      }
      {
        \schemabox{Angelorum malorum,} \smallskip \schemabox{Hominum: Ad\ae{}, Ev\ae{}\\ \& procreatorum exipsis.}
      }
      \Schema{2.6ex}{8.8ex}
      {
        \schemabox{Beneficiis\\ erga Ecc-\\ lesiam: ea\\ versantur\\ aut circa}
      }
      {
        \Schema{2.2ex}{7ex}
        {
          \schemabox{Res, ut}
        }
        {
          \schema
          {
            \schemabox{Verbum}
          }
          {
            \schemabox{Legis} \smallskip \schemabox{Evangelii} \smallskip \schemabox{Sacramentorum}
          }
          \smallskip
          \schema
          {
            \schemabox{Signa vel Veteris\\ vel Novi Testa-\\ mentum ut sunt:}
          }
          {
            \schemabox{Ceremoni\ae{}} \smallskip \schemabox{Miracula}
          }
        }
        \smallskip
        \Schema{0.6ex}{5.5ex}
        {
          \schemabox{Personas}
        }
        {
          \schema
          {
            \schemabox{Ecclesi\ae{}}
          }
          {
            \schemabox{Universalis} \smallskip \schemabox{Particularis}
          }
          \smallskip
          \schemabox{Politi\ae, ut Magistratuum}
          \smallskip
          \schemabox{\OE{}conomi\ae, ut privatorum}
        }
      }\vskip2ex
    }
  }
}
$$
\vfil
\egroup

\eject

$$
\Schema{-1.4ex}{10ex}
{
  \schemabox{Qu\ae{} sit\\ \textsc{Dei}, vel}
}
{
  \Schema{-1ex}{5ex}
  {
    \schemabox{\textsc{Essentia}, in}
  }
  {
    \vskip1ex\schemabox{Unitate divina,}
    \medskip
    \Schema{0ex}{3.4ex}
    {
      \schemabox{Tribus perso-\\ nis divinitatis}
    }
    {
      \Schema[close]{0ex}{3.4ex}
      {
        \NudgeSB\schemabox{Patre,\\ Filio,\\ Spiritui Sancto}
      }
      {
        \schemabox{\ifx\fmtname\nameoflatex\gk{<omoous'iois}\else\gk{homoousiois}\fi\\ \& co\ae{}ternis}
      }
    }
  }
  \medskip
  \Schema{-0.2ex}{6.4ex}
  {
    \schemabox{\textsc{Voluntas},\\ revelatur in\\ actione, sive}
  }
  {
    \Schema{0ex}{3.4ex}
    {
      \schemabox{Universali}
    }
    {
      \Schema[close]{0ex}{3.4ex}
      {
        \schemabox{Creationis,\\Sustenationis,\\ Propagationis,}
      }
      {
        \schemabox{rerum creatarum.}
      }
    }
    \medskip
    \schema
    {
      \schemabox{Speciali, in beneficiis\\ erga Ecclesiam, eam}
    }
    {
      \schemabox{Colligendo.\\ Justificando.\\ Conservando.\\
      Glorificando.}
    }
  }
}
$$

\vfill
% Use here in Plain TeX.
\newbox\mybox
$$
\Schema{-0.2ex}{14.4ex}
{\schemabox{\bf Curricula\\\bf Texts}}
{
  \DoBrackets%
  % Doable in LaTeX, not in Plain TeX, because \outer.
  % \newbox\mybox%
  \setbox\mybox=\hbox{\bf III. Philosophical }%
  \dimen0=\wd\mybox%
  \schema
    {\schemabox[\dimen0]{\bf I. General\\Studies}}
    {\schemabox{1. Collected Works\\2. Encyclopedias}}
  \smallskip
  \schema
    {\schemabox[\dimen0]{\bf II. Literary\\Disciplines}}
    {\schemabox{1. Philology\\
     2. Historical Introduction\\
     3. Literary Theory\\
     4. Application}}
  \smallskip
  \schema
      {\schemabox[\dimen0]{\bf III. Philosophical\\Disciplines}}
      {\schemabox{1. Source Texts\\
       2. History of Philosophy\\
       3. General Surveys\\
       4. Specific Studies}}
  \smallskip
  \schema
      {\schemabox[\dimen0]{\bf IV. Historical\\Disciplines}}
      {\schemabox{1. General Surveys\\
       2. Specialized Works}}
}
$$
\ifx\fmtname\nameoflatex
  \end{document}
\else
  \ifx\fmtname\nameoflollipop
    \Stop
  \else
    \bye
  \fi
\fi
%examplesvb
%</examples>
\endinput