summaryrefslogtreecommitdiff
path: root/macros/luatex/latex/novel/doc/novel-documentation.html
blob: 080086130a1b331ecb16597611dfe5a3ce911669 (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
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Document class "novel" - documentation</title>

<!--
HTML documentation for `novel' LuaLaTeX document class.
Copyright 2023 Robert Allgeyer.
This file and its component images may be distributed and/or modified under the
conditions of the LaTeX Project Public License, version 1.3c.
License URL:  https://www.latex-project.org/lppl/lppl-1-3c/
-->


<style>
body {font-family:sans-serif; color:#203310; background:#cccccc none;}
#master {position:relative;}
#toc {position:fixed; width:30%; background:#ffffff none; overflow:scroll; height:98%; float:left;}
#main {width:68%; float:right; background:#ffffff none;}
p {font-family:sans-serif,sans-serif; font-size:1em; margin:0px 16px 0px 16px; text-indent:16px;}
ol, ul {list-style-type:none; margin:0px; padding:0px;}
li {margin:3px 8px 3px 16px; padding:0px;}
li p {margin: 0px 8px 0px 44px; text-indent:-44px;}
a {text-decoration:none; color:#990000}
h1 {font-size:1.33em; margin:16px 16px 0px 8px; font-weight:bold; clear:both; padding-top:8px;}
h2 {font-size:1.25em; margin:8px 16px 0px 8px; font-weight:bold; clear:both; padding-top:8px;}
h3 {font-size:1.15em; margin:8px 16px 0px 8px; font-weight:bold; clear:both; padding-top:8px;}
h4 {font-size:1em; margin:8px 16px 0px 8px; font-weight:bold; clear:both; padding-top:8px;}
h5 {font-size:1em; margin:8px 16px 0px 8px; clear:both; padding-top:8px;}
h6 {font-size:1em; margin:8px 16px 0px 8px; clear:both; padding-top:8px;}
em {font-weight:normal}
img {max-width:100%;}
img.nodisplaynav {display:none; height:1em;}
img.openclose {display:none; height:1em;}
*.noimg {padding-left:1.5em;}
div.d1 {margin:0px 16px 16px 16px;}
div.d2 {margin:0px 0px 16px 16px; padding-bottom:1em; border-top:0; border-right: 0px;
border-bottom:1px dotted #666666; border-left:1px dotted #666666;}
div.d3 {margin:0px 0px 16px 16px; padding-bottom:1em; border-top:0; border-right: 0px;
border-bottom:1px dotted #666666; border-left:1px dotted #666666;}
div.d4 {margin:0px 0px 16px 16px; padding-bottom:1em; border-top:0; border-right: 0px;
border-bottom:1px dotted #666666; border-left:1px dotted #666666;}
div.d5 {margin:0px 0px 16px 16px; padding-bottom:1em; border-top:0; border-right: 0px;
border-bottom:1px dotted #666666; border-left:1px dotted #666666;}
div.d6 {margin:0px 0px 16px 16px; padding-bottom:1em; border-top:0; border-right: 0px;
border-bottom:1px dotted #666666; border-left:1px dotted #666666;}
div.page {padding:16px 0px 16px 0px; border-top:4px solid #505050;}
div.codeblock {overflow:auto; margin:16px; padding: 8px; border: 1px solid #000000;}
div.codeblock p {text-indent:0px; white-space:nowrap;}
code {font-size:1em; font-family:monospace,monospace; color:#200050; background:transparent none; padding:0px 3px 0px 3px;}
*.smaller {font-weight:normal; font-size:88%;}
*.noindent {text-indent:0px;}
*.noindent1 {text-indent:0px; margin-top:8px;}
*.noindent2 {text-indent:0px; margin-bottom:8px;}
*.noindentcmd {text-indent:0px; margin-top:16px;}
*.isolate {padding-left:10px;margin-top:10px; margin-bottom:10px; text-indent:0px;}
*.dbloc {padding-left:1.8em; visibility:hidden}
table.preconf {margin-left:auto; margin-right:auto; margin-top:20px; margin-bottom:20px;
border:1px solid #000000}
table.preconf caption {font-weight:bold;}
table.preconf th {text-align:left; padding:6px; font-weight:normal; border-bottom:1px solid #000000;}
table.preconf td {text-align:left; padding:6px;}
table.preconf tfoot td {border-top:1px solid #000000;}
table.preconf p {text-indent:0px; margin:6px;}
*.onedown {font-size:smaller}
*.menuitem {text-indent:-8px; margin-left:24px; margin-top:0px; margin-bottom:0px;}
small {line-height:50%;}
span.ap {color: #996633;} /* percent comment in code */
*.floatright {float:right; margin-left:1em; margin-right:16px;}
p.centerimg {text-indent:0px; text-align:center; margin-top:0.5em; margin-bottom:0.5em;}
p.code {text-indent:0px; margin: 4px 16px 4px 16px; padding-left:32px;}
p.item {text-indent:0px; padding-top:8px;}
b em {font-weight:normal;}
hr.newpage {margin-top:2em; margin-bottom:2em; height:4px; color:#505050; background:#505050;}
p.overhang {margin-left:32px; text-indent:-16px;}
*.sampledoc {margin:1em}
*.sampledoc em {font-size:92%; color:#666666}
</style>

</head>

<body>
<div id="master">

<div id="toc" class="toc">

<h3><a href="#main">Contents</a></h3>

<ul><!-- master toc ul -->

  <li id="l1"><a href="#h1"><b>1. Before You Begin</b></a>
    <ul id="u1">
      <li id="l1.1"><a href="#h1.1">1.1 Do These Things</a>
        <ul id="u1.1">
          <li><a href="#h1.1.1">1.1.1 LuaLateX Compiler</a></li>
          <li><a href="#h1.1.2">1.1.2 UTF-8 Encoding</a></li>
          <li><a href="#h1.1.3">1.1.3 Language Support</a></li>
          <li><a href="#h1.1.4">1.1.4 Open Type Fonts</a></li>
          <li><a href="#h1.1.5">1.1.5 Book Design</a></li>
        </ul>
      </li><!-- end 1.1 -->
      <li id="l1.2"><a href="#h1.2">1.2 Avoid These Things</a>
        <ul id="u1.2">
          <li><a href="#h1.2.1">1.2.1 Non-Fontspec Font Loader</a></li>
          <li><a href="#h1.2.2">1.2.2 TeX Font Sizes</a></li>
          <li><a href="#h1.2.3">1.2.3 Academic Structures</a></li>
          <li><a href="#h1.2.4">1.2.4 TeX Editors and IDEs</a></li>
        </ul>
      </li><!-- end 1.2 -->
      <li id="l1.3"><a href="#h1.3">1.3 Beware of These Things</a>
        <ul id="u1.3">
          <li><a href="#h1.3.1">1.3.1 TeX Special Characters</a></li>
          <li><a href="#h1.3.2">1.3.2 Layout Surprises</a></li>
        </ul>
      </li><!-- end 1.3 -->
    </ul>
  </li><!-- end 1 -->

  <li id="l2"><a href="#h2"><b>2. Document Class Options</b></a>
    <ul id="u2">
      <li><a href="#h2.1">2.1 draft</a></li>
      <li><a href="#h2.2">2.2 sandbox</a></li>
      <li><a href="#h2.3">2.3 shademargins</a></li>
      <li><a href="#h2.4">2.4 cropmarks</a></li>
      <li><a href="#h2.5">2.5 cropview</a></li>
      <li><a href="#h2.6">2.6 closecrop</a></li>
      <li><a href="#h2.7">2.7 xml</a></li>
      <li><a href="#h2.8">2.8 coverart (deprecated)</a></li>
      <li><a href="#h2.9">2.9 developer options</a></li>
      <li><a href="#h2.10">2.10 revert</a></li>
    </ul>
  </li><!-- end 2 -->

  <li id="l3"><a href="#h3"><b>3. Metadata, File Data, PDF/X</b></a>
    <ul id="u3">
      <li id="l3.1"><a href="#h3.1">3.1 Definitions of Terms</a>
        <ul id="u3.1">
          <li><a href="#h3.1.1">3.1.1 ISBN Metadata</a></li>
          <li><a href="#h3.1.2">3.1.2 Printed Metadata</a></li>
          <li><a href="#h3.1.3">3.1.3 File (PDF) Metadata</a></li>
        </ul>
      </li><!-- end 3.1 -->
      <li id="l3.2"><a href="#h3.2">3.2 Rules for File Data</a>
        <ul id="u3.2">
          <li><a href="#h3.2.1">3.2.1 Required, Prohibited?</a></li>
          <li><a href="#h3.2.2">3.2.2 Limited to Latin-1?</a></li>
          <li><a href="#h3.2.3">3.2.3 TeX Escapes</a></li>
          <li><a href="#h3.2.4">3.2.4 Forbidden Characters</a></li>
        </ul>
      </li><!-- end 3.2 -->
      <li id="l3.3"><a href="#h3.3">3.3 File Data Commands</a>
        <ul id="u3.3">
          <li><a href="#h3.3.1">3.3.1 \SetTitle</a></li>
          <li><a href="#h3.3.2">3.3.2 \SetAuthor</a></li>
          <li><a href="#h3.3.3">3.3.3 \SetSubtitle</a></li>
          <li><a href="#h3.3.4">3.3.4 \SetApplication, \SetProducer</a></li>
        </ul>
      </li><!-- end 3.3 -->
      <li id="l3.4"><a href="#h3.4">3.4 PDF/X</a>
        <ul id="u3.4">
          <li><a href="#h3.4.1">3.4.1 Compliance Standards</a></li>
          <li><a href="#h3.4.2">3.4.2 Output Intents</a></li>
          <li><a href="#h3.4.3">3.4.3 Built-IN OI Codes</a></li>
          <li><a href="#h3.4.4">3.4.4 Other Output Intents</a></li>
          <li><a href="#h3.4.5">3.4.5 Embed *.icc or Not?</a></li>
          <li><a href="#h3.4.6">3.4.6 Finding *.icc Files</a></li>
        </ul>
      </li><!-- end 3.4 -->
    </ul>
  </li><!-- end 3 -->

  <li id="l4"><a href="#h4"><b>4. Book Size, Page Layout, Fonts</b></a>
    <ul id="u4">
      <li id="l4.1"><a href="#h4.1">4.1 Book Dimensions</a>
        <ul id="u4.1">
          <li><a href="#h4.1.1">4.1.1 Trim Size, TrimBox</a></li>
          <li><a href="#h4.1.2">4.1.2 Media Size, MediaBox</a></li>
        </ul>
      </li><!-- end 4.1 -->
      <li id="l4.2"><a href="#h4.2">4.2 Fonts, Normal Font Size</a>
        <ul id="u4.2">
          <li><a href="#h4.2.1">4.2.1 Parent (Main) Font, Size</a>
            <ul id="u4.2.1">
              <li><a href="#h4.2.1.1">4.2.1.1 \SetParentFont</a></li>
              <li><a href="#h4.2.1.2">4.2.1.2 \SetFontSize</a></li>
            </ul>
          </li>
          <li><a href="#h4.2.2">4.2.2 Descendant Fonts</a></li>
          <li><a href="#h4.2.3">4.2.3 Advanced: Deco Font</a></li>
          <li><a href="#h4.2.4">4.2.4 Advanced: Mono, Sans, Math</a></li>
          <li><a href="#h4.2.5">4.2.5 Advanced: New Fonts</a></li>
        </ul>
      </li><!-- end 4.2 -->
      <li id="l4.3"><a href="#h4.3">4.3 Interior Page Layout</a>
        <ul id="u4.3">
          <li><a href="#h4.3.1">4.3.1 Margins</a>
            <ul id="u4.3.1">
              <li><a href="#h4.3.1.1">4.3.1.1 Gutter? Which?</a></li>
              <li><a href="#h4.3.1.2">4.3.1.2 Unsafe Zone</a></li>
            </ul>
          </li>
          <li><a href="#h4.3.2">4.3.2 Lines Per Page</a></li>
          <li><a href="#h4.3.3">4.3.3 Global Header/Footer</a>
            <ul id="u4.3.3">
              <li><a href="#h4.3.3.1">4.3.3.1 H/F Style Choices</a></li>
              <li><a href="#h4.3.3.2">4.3.3.2 Custom H/F Style</a></li>
            </ul>
          </li>
          <li><a href="#h4.3.4">4.3.4 Tweaking Global H/F Style</a>
            <ul id="u4.3.4">
              <li><a href="#h4.3.4.1">4.3.4.1 Head/Foot Jump</a></li>
              <li><a href="#h4.3.4.2">4.3.4.2 \SetHeadFont</a></li>
              <li><a href="#h4.3.4.3">4.3.4.3 \SetLooseHead</a></li>
              <li><a href="#h4.3.4.4">4.3.4.4 \SetPageNumberStyle</a></li>
              <li><a href="#h4.3.4.5">4.3.4.5 \SetEmblems</a></li>
              <li><a href="#h4.3.4.6">4.3.4.6 Header Text</a></li>
            </ul>
          </li>
          <li><a href="#h4.3.5">4.3.5 H/F Exceptional Pages</a>
            <ul id="u4.3.5">
              <li><a href="#h4.3.5.1">4.3.5.1 \thispagestyle</a></li>
              <li><a href="#h4.3.5.2">4.3.5.2 \SetChapterStartStyle</a></li>
            </ul>
          </li>
        </ul>
      </li><!-- end 4.3 -->
    </ul>
  </li><!-- end 4 -->

  <li id="l5"><a href="#h5"><b>5. Chapter Structure</b></a>
    <ul id="u5">
      <li id="l5.1"><a href="#h5.1">5.1 Starting a Chapter</a>
        <ul id="u5.1">
          <li><a href="#h5.1.1">5.1.1 \clearpage, \cleartorecto</a></li>
          <li><a href="#h5.1.2">5.1.2 ChapterStart Environment</a>
            <ul>
              <li><a href="#h5.1.2.1">5.1.2.1 \SetChapterStartStyle</a></li>
              <li><a href="#h5.1.2.2">5.1.2.2 \SetChapterStartHeight</a></li>
              <li><a href="#h5.1.2.3">5.1.2.3 Begin ChapterStart</a></li>
            </ul>
          </li>
          <li><a href="#h5.1.3">5.1.3 Chapter Title, etc.</a>
            <ul>
              <li><a href="#h5.1.3.1">5.1.3.1 \SetChapterFont, \SetSubchFont</a></li>
              <li><a href="#h5.1.3.2">5.1.3.2 \ChapterTitle, \ChapterSubtitle</a></li>
              <li><a href="#h5.1.3.3">5.1.3.3 \ChapterDeco</a></li>
              <li><a href="#h5.1.3.4">5.1.3.4 Chapter Epigraph</a></li>
            </ul>
          </li>
          <li><a href="#h5.1.4">5.1.4 ChapterStart With Image</a>
            <ul>
              <li><a href="#h5.1.4.1">5.1.4.1 Text Over Image</a></li>
              <li><a href="#h5.1.4.2">5.1.4.2 Text Within Image</a></li>
            </ul>
          </li>
        </ul>
      </li><!-- end 5.1 -->
      <li id="l5.2"><a href="#h5.2">5.2 Continuous Chapters</a>
        <ul id="u5.2">
          <li><a href="#h5.2.1">5.2.1 Short ChapterStart</a></li>
          <li><a href="#h5.2.2">5.2.2 \QuickChapter</a></li>
        </ul>
      </li><!-- end 5.2 -->
      <li id="l5.3"><a href="#h5.3">5.3 Scene Breaks</a>
        <ul id="u5.3">
          <li><a href="#h5.3.1">5.3.1 \SetScenebreakIndent</a></li>
        </ul>
      </li><!-- end 5.3 -->
      <li id="l5.4"><a href="#h5.4">5.4 Chapter Numbering</a>
      </li><!-- end 5.4 -->
      <li id="l5.5"><a href="#h5.5">5.5 First Lines</a>
        <ul id="u5.5">
          <li><a href="#h5.5.1">5.5.1 First Character Special</a></li>
          <li><a href="#h5.5.2">5.5.2 First Line Small Caps</a></li>
          <li><a href="#h5.5.3">5.5.3 Drop Caps</a></li>
        </ul>
      </li><!-- end 5.5 -->
    </ul>
  </li><!-- end 5 -->

  <li id="l6"><a href="#h6"><b>6. Text Size, Style, Position</b></a>
    <ul id="u6">
      <li id="l6.1"><a href="#h6.1">6.1 Text Sizes</a>
        <ul id="u6.1">
          <li><a href="#h6.1.1">6.1.1 Standard Sizes: Disabled!</a></li>
          <li><a href="#h6.1.2">6.1.2 Local sizing: \charscale</a></li>
          <li><a href="#h6.1.3">6.1.3 Environment: parascale</a></li>
          <li><a href="#h6.1.4">6.1.4 Open Type Scale</a></li>
        </ul>
      </li><!-- end 6.1 -->
      <li id="l6.2"><a href="#h6.2">6.2 General Styling</a>
        <ul id="u6.2">
          <li><a href="#h6.2.1">6.2.1 Italics and Emphasis</a></li>
          <li><a href="#h6.2.2">6.2.2 Bold and Semibold</a></li>
          <li><a href="#h6.2.3">6.2.3 Underlining</a></li>
          <li><a href="#h6.2.4">6.2.4 Small Caps, Midcase</a></li>
          <li><a href="#h6.2.5">6.2.5 Local Tracking</a></li>
          <li><a href="#h6.2.6">6.2.6 Local Font Selection</a></li>
          <li><a href="#h6.2.7">6.2.7 Local Font Features</a></li>
          <li><a href="#h6.2.8">6.2.8 Grayscale Text</a></li>
        </ul>
      </li><!-- end 6.2 -->
      <li id="l6.3"><a href="#h6.3">6.3 Positioning and Alignment</a>
        <ul id="u6.3">
          <li><a href="#h6.3.1">6.3.1 What to Avoid</a></li>
          <li><a href="#h6.3.2">6.3.2 Some Useful Commands</a></li>
        </ul>
      </li><!-- end 6.3 -->
      <li id="l6.4"><a href="#h6.4">6.4 Superscripts, Subscripts</a>
        <ul id="u6.4">
          <li><a href="#h6.4.1">6.4.1 Global Marker Style</a></li>
          <li><a href="#h6.4.2">6.4.2 Local Real or Fake</a></li>
        </ul>
      </li><!-- end 6.4 -->
    </ul>
  </li><!-- end 6 -->

  <li id="l7"><a href="#h7"><b>7. Images, Pictures, Drawings</b></a>
    <ul id="u7">
      <li id="l7.1"><a href="#h7.1">7.1 Technical Requirements</a>
        <ul id="u7.1">
          <li><a href="#h7.1.1">7.1.1 Interior B/W, Grayscale</a></li>
          <li><a href="#h7.1.2">7.1.2 Color Cover</a></li>
        </ul>
      </li><!-- end 7.1 -->
      <li id="l7.2"><a href="#h7.2">7.2 Placing Interior Images</a>
        <ul id="u7.2">
          <li><a href="#h7.2.1">7.2.1 Image-Like Text</a></li>
          <li><a href="#h7.2.2">7.2.2 \InlineImage</a></li>
          <li><a href="#h7.2.3">7.2.3 Text Over \InlineImage</a></li>
          <li><a href="#h7.2.4">7.2.4 \FloatImage</a></li>
          <li><a href="#h7.2.5">7.2.5 \WrapImage</a></li>
        </ul>
      </li><!-- end 7.2 -->
    </ul>
  </li><!-- end 7 -->

  <li id="l8"><a href="#h8"><b>8. Tables, Lists</b></a>
    <ul id="u8">
      <li id="l8.1"><a href="#h8.1">8.1 The toc Environment</a>
        <ul id="u8.1">
          <li><a href="#h8.1.1">8.1.1 Entries Using \tocitem</a></li>
          <li><a href="#h8.1.2">8.1.2 Example Table</a></li>
        </ul>
      </li>
    </ul>
  </li>

  <li id="l9"><a href="#h9"><b>9. Footnotes, Endnotes</b></a>
    <ul id="u9">
      <li id="l9.1"><a href="#h9.1">9.1 Footnotes</a></li>
      <li id="l9.2"><a href="#h9.2">9.2 Endnotes</a>
        <ul id="u9.2">
          <li><a href="#h9.2.1">9.2.1 Placing: \endnote</a></li>
          <li><a href="#h9.2.2">9.2.2 Writing: \endnotetext</a></li>
        </ul>
      </li>
    </ul>
  </li>



  <li><i>Appendices:</i></li>

  <li id="lA"><a href="#hA"><b>A. Sample Document</b></a>
  </li><!-- end A -->

  <li id="lB"><a href="#hB"><b>B. Six-Page Front Matter</b></a>
    <ul id="uB">
      <li><a href="#hB.1">B.1 Half-Title to Copyright</a></li>
      <li><a href="#hB.2">B.2 Post-Copyright</a></li>
    </ul>
  </li><!-- end B -->

  <li id="lC"><a href="#hC"><b>C. Shopping for Fonts</b></a>
    <ul id="uC">
      <li><a href="#hC.1">C.1 Licensing Issues</a></li>
      <li><a href="#hC.2">C.2 Technical Issues</a></li>
      <li><a href="#hC.3">C.3 Appearance Issues</a></li>
    </ul>
  </li><!-- end C -->

  <li id="lD"><a href="#hD"><b>D. Book Design</b></a>
    <ul id="uD">
      <li id="lD.1"><a href="#hD.1">D.1 Terminology</a>
        <ul id="uD.1">
          <li><a href="#hD.1.1">D.1.1 Sheet, Page, Leaf</a></li>
          <li><a href="#hD.1.2">D.1.2 Folio, Spine</a></li>
          <li><a href="#hD.1.3">D.1.3 Signature, Imposition</a></li>
        </ul>
      </li><!-- end D.1 -->
      <li id="lD.2"><a href="#hD.2">D.2 Book Manufacture</a>
        <ul id="uD.2">
          <li><a href="#hD.2.1">D.2.1 Perfect Binding</a></li>
          <li><a href="#hD.2.2">D.2.2 Library Binding</a></li>
          <li><a href="#hD.2.3">D.2.3 Other Bindings</a></li>
          <li><a href="#hD.2.4">D.2.4 Paper, Cover Materials</a></li>
        </ul>
      </li><!-- end D.2 -->
      <li id="lD.3"><a href="#hD.3">D.3 Interior Structure</a>
        <ul id="uD.3">
          <li id="lD.3.1"><a href="#hD.3.1">D.3.1 Display, Chapter-Like</a>
            <ul id="uD.3.1">
              <li><a href="#hD.3.1.1">D.3.1.1 Display Pages</a></li>
              <li><a href="#hD.3.1.2">D.3.1.2 Chapter-Like Sections</a></li>
            </ul>
          </li>
          <li id="lD.3.2"><a href="#hD.3.2">D.3.2 Front Matter</a>
            <ul id="uD.3.2">
              <li><a href="#hD.3.2.1">D.3.2.1 Half-Title, i</a></li>
              <li><a href="#hD.3.2.2">D.3.2.2 Blank, ii</a></li>
              <li><a href="#hD.3.2.3">D.3.2.3 Title Page, iii</a></li>
              <li><a href="#hD.3.2.4">D.3.2.4 Copyright Page, iv</a></li>
              <li><a href="#hD.3.2.5">D.3.2.5 Dedication</a></li>
              <li><a href="#hD.3.2.6">D.3.2.6 Epigraph</a></li>
              <li><a href="#hD.3.2.7">D.3.2.7 Table of Contents</a></li>
              <li><a href="#hD.3.2.8">D.3.2.8 Foreword, Preface, Intro</a></li>
              <li><a href="#hD.3.2.9">D.3.2.9 Acknowledgements</a></li>
              <li><a href="#hD.3.2.10">D.3.2.10 Author's Note</a></li>
              <li><a href="#hD.3.2.11">D.3.2.11 Map</a></li>
              <li><a href="#hD.3.2.12">D.3.2.12 Second Half-Title</a></li>
              <li><a href="#hD.3.2.13">D.3.2.13 End of Front Matter</a></li>
            </ul>
          </li>
          <li id="lD.3.3"><a href="#hD.3.3">D.3.3 Main Matter</a>
            <ul id="uD.3.3">
              <li><a href="#hD.3.3.1">D.3.3.1 Half-Title in Main</a></li>
              <li><a href="#hD.3.3.2">D.3.3.2 Part Separator</a></li>
              <li><a href="#hD.3.3.3">D.3.3.3 Introduction</a></li>
              <li><a href="#hD.3.3.4">D.3.3.4 Prologue</a></li>
              <li><a href="#hD.3.3.5">D.3.3.5 Chapters</a></li>
              <li><a href="#hD.3.3.6">D.3.3.6 Epilogue, Conclusion</a></li>
              <li><a href="#hD.3.3.7">D.3.3.7 End Notes, Appendix</a></li>
            </ul>
          </li>
          <li id="lD.3.4"><a href="#hD.3.4">D.3.4 At the End</a>
            <ul id="uD.3.4">
              <li><a href="#hD.3.4.1">D.3.4.1 Back Matter? Not!</a></li>
              <li><a href="#hD.3.4.2">D.3.4.2 About the Author</a></li>
            </ul>
          </li>
        </ul>
      </li><!-- end D.3 -->
    </ul>
  </li><!-- end D -->

  <li id="lE"><a href="#hE"><b>E. Fontspec Syntax</b></a>
    <ul id="uE">
      <li id="lE.1"><a href="#hE.1">E.1 Family vs. File Name</a>
        <ul id="uE.1">
          <li><a href="#hE.1.1">E.1.1 Set/New by Name</a></li>
        </ul>
      </li>
      <li id="lE.2"><a href="#hE.2">E.2 Open Type Features</a>
        <ul id="uE.2">
          <li><a href="#hE.2.1">E.2.1 Scale Pseudo-Feature</a></li>
          <li><a href="#hE.2.2">E.2.2 Color and Opacity</a></li>
          <li><a href="#hE.2.3">E.2.3 Create Font Feature</a></li>
        </ul>
      </li>
      <li id="lE.3"><a href="#hE.3">E.3 Local Font Modification</a></li>
    </ul>
  </li><!-- end E -->

  <li id="lF"><a href="#hF"><b>F. Drop Caps</b></a>
    <ul id="uF">
      <li><a href="#hF.1">F.1 Built-In vs Lettrine</a></li>
      <li><a href="#hF.2">F.2 \dropcap[]{}</a></li>
      <li><a href="#hF.3">F.3 \dropcap*[]{}</a></li>
      <li><a href="#hF.4">F.4 Drop Cap Font, Color</a></li>
      <li><a href="#hF.5">F.5 Drop Cap and First Line</a></li>
    </ul>
  </li><!-- end F -->

  <li id="lY"><a href="#hY"><b>Y. Licensing and Credits</b></a>
  </li><!-- end Y -->

  <li id="lZ"><a href="#hZ"><b>Z. Important Changes</b></a>
  </li><!-- end Z -->

</ul><!-- end master toc ul -->

<div style="height:1em"></div>

</div><!-- end toc -->


<!-- **************************************************************************************** -->

<div id="main">
<!-- **************************************************************************************** -->

<h1 id="h0" style="padding-top:16px">Document class <i>novel</i> - documentation.</h1>
<p>V. 2.1, 2024/02/17</p>

<p class="item">ALERT: If you have been using this document class prior to version 1.80 (February 2023),
see <a href="#hZ">Appendix Z</a>.</p>

<p class="item">ALERT: New user? Little knowledge of LaTeX? Try the simpler "novelette" document class.
Expected in early 2024.</p>

<!-- ********************************************************************** -->
<div id="page01" class="page">

<p class="noindent">The <i>novel</i> document class is for authors of text-intensive original fiction, such as detective novels, murder mysteries, romance, sci-fi, and collections of short stories. Academic works and graphic novels are excluded.</p>
<p>The resulting PDF uses built-in technology to produce PDF/X compliant files for print-on-demand (P.O.D.) services. There is no capability for E-books, and never will be.</p>
<p>To use <i>novel</i>, you need TeXLive 2020 or later, or recent MikTeX. Open your TeX package manager, and install both <i>novel</i> and <i>libertinus-fonts</i>.</p>


<h2 id="h1">1. Before You Begin</h2>
<div class="d2" id="d1">
<p class="noindent"><img src="html-resources/doordie.png" class="floatright" width="167" height="171" title="TeX Commandments" alt="TeX Commandments"/>This documentation assumes that you have some familiarity with TeX, but not much expertise.</p>
<p>You usually cannot take an existing document, written with some other class, and just change it to <i>novel</i>. The command set used by <i>novel</i> is very different from that used by others.</p>
<p>Before you wonder why your document doesn't work, you need to understand the differences. All of these are features, not bugs. They are done with the intent of making <i>novel</i> best for its intended purpose. But if you have been in the habit of writing academic papers, the differences may surprise you.</p>


<h3 id="h1.1">1.1. Do These Things</h3>
<div class="d3" id="d1.1">

<h4 id="h1.1.1">1.1.1. Use the LuaLaTeX Compiler</h4>
<div class="d4" id="d1.1.1">
<p class="item"><b>A.</b> At the top of your *.tex main document, before the document class, place these lines:</p>
<p class="code"><code>% !TeX TS-program = lualatex</code><br/>
<code>% !TeX encoding = UTF-8</code></p>
<p>Those instructions are read and understood by many TeX editors, and also serve as a reminder to yourself.</p>
<p class="item"><b>B.</b> If you compile by command line, try this:</p>
<p class="code"><code>lualatex your-document.tex</code></p>
<p class="item"><b>C.</b> If using a service such as ShareLaTeX online, open the Menu, and scroll down to where you can choose the compiler. Set it to lualatex.</p> 
</div><!-- end 1.1.1 -->

<h4 id="h1.1.2">1.1.2. Use UTF-8 Encoding</h4>
<div class="d4" id="d1.1.2">
<p class="item"><b>A.</b> If you use a plain text editor, or TeXWorks, or export plain text from a word processor, be sure that your text is encoded as <span style="white-space:nowrap">utf-8</span>, <i>without</i> byte order mark (BOM).</p>
<p class="item"><b>B.</b> Instead of typing TeX codes such as <code>\`{e}</code> you can simply paste <code>è</code> from a Unicode character map. Other alphabets such as Greek and Cyrillic are directly supported, as long as you choose fonts that support those character sets.</p>
<p class="item"><b>C.</b> If you are on Windows, <i>do not</i> use Notepad! The free <a class="external" rel="external" target="new" href="https://notepad-plus-plus.org">Notepad++</a> (also <a class="external" rel="external" target="new" href="https://portableapps.com/apps/development/notepadpp_portable">Portable</a> version) is a suitable plain text editor. Configure it as specified, with utf-8 but without BOM. Does not matter whether UNIX or DOS line endings, as long as you are consistent.</p>
</div><!-- end 1.1.2 -->

<h4 id="h1.1.3">1.1.3. Language Support. CHANGED IN VERSION 2.</h4>
<div class="d4" id="d1.1.3">
<p class="item"><b>A.</b> Prior to version 2 (February 2024), the polyglossia package was the only
method for language support. With version 2, you may use either polyglossia or babel.</p>
<p class="item"><b>B.</b> Do not write <code>\usepackage</code> or <code>\RequirePackage</code>
for polyglossia or babel. The correct package will be loaded automatically.</p>
<p class="item"><b>C.</b> To use polyglossia, write
<code>\setmainlanguage[<i>options</i>]{<i>language</i>}</code> in preamble.
You may also use other polyglossia commands. Do not use the document class options
to set language. See the polyglossia package documentation.</p>
<p class="item"><b>D.</b> To use babel, write <code>v2</code> as a document class option, along with your choice
of babel language options. See babel documentation.</p>
<p class="item"><b>E.</b> If you do not choose either method, then the default language
will be US English, using polyglossia.</p>
<p class="item"><b>F.</b> Some examples:</p>
<p>&bull; <code>\documentclass{novel}</code> Polyglossia.</p>
<p><span style="visibility:hidden">&bull;</span> <code>\setmainlanguage{french}</code>. french.</p>
<p>&bull; <code>\documentclass[v2,french]{novel}</code>. Babel, french.</p>
<p>&bull; <code>\documentclass[french]{novel}</code>. Uses polyglossia, because no <code>v2</code>
as class option. The request for <code>french</code> is ignored, and triggers
"unknown class option".</p>
</div><!-- end 1.1.3 -->

<h4 id="h1.1.4">1.1.4. Use Open Type Fonts</h4>
<div class="d4" id="d1.1.4">
<p class="item"><b>A.</b> The built-in <i>fontspec</i> package requires utf-8 encoding. It is able to load Open Type fonts, and access their internal feature sets. Forget Type 1 fonts and special encodings! If you wish to use Greek or Cyrillic, all you need are compatible fonts.</p>
<p class="item"><b>B.</b> If you accept the pre-configured fonts (from package <i>libertinus-fonts</i>), then you do not need to know anything about <i>fontspec</i>. But if you wish to configure your own fonts, <a href="#hE">Appendix E</a> reviews the most important parts of <i>fontspec</i> syntax.</p>
</div><!-- end 1.1.4 -->

<h4 id="h1.1.5">1.1.5. Read About Book Design</h4>
<div class="d4" id="d1.1.5">
<p class="item"><b>A.</b> This documentation has an extensive section regarding <a href="#hD">book design</a>. Read it.</p>
<p class="item"><b>B.</b> In particular, you will learn how to format pages according to their position and purpose in the book; you will learn how to construct a table of contents; you will learn how you must end your document.</p>
<div style="clear:both"></div>
</div><!-- end 1.1.5 -->
</div><!-- end 1.1 -->


<h3 id="h1.2">1.2. Avoid These Things</h3>
<div class="d3" id="d1.2">

<h4 id="h1.2.1">1.2.1. Avoid Non-Fontspec Font Loaders</h4>
<div class="d4" id="d1.2.1">
<p class="item"><b>A.</b> The method for loading fonts is described in <a href="#h4.2">section 4.2</a>. Be sure you read it.</p>
<p class="item"><b>B.</b> Do not load fonts via <code>\usepackage</code> or <code>\RequirePackage</code>, or by <code>\setmainfont</code>.</p>
</div><!-- end 1.2.1 -->

<h4 id="h1.2.2">1.2.2. Avoid TeX Font Sizes</h4>
<div class="d4" id="d1.2.2">
<p class="item"><b>A.</b> Standard text size commands, such as <code>\small</code> or <code>\LARGE</code>, will be ignored. The text will appear at its normal size, just as if the commands did not exist.</p>
<p class="item"><b>B.</b> <i>Novel</i> provides its own capability to size text, using <a href="#h6.1">different commands</a>.</p>
<p class="item" style="position:relative"><b>C.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> The <i>novel</i>-specific size commands maintain text line grid, where possible. This is important for printed fiction.</p>
</div><!-- end 1.2.2 -->

<h4 id="h1.2.3">1.2.3. Avoid Academic Structures</h4>
<div class="d4" id="d1.2.3">
<p class="item"><img class="floatright" src="html-resources/fpaper.png" width="134" height="215" alt="flunked math"/><b>A.</b> Commands such as <code>\section</code>, <code>\chapter</code>, <code>\abstract</code>, <code>\index</code>, <code>\tableofcontents</code>, <code>\maketitle</code>, and many other structural commands will not work with <i>novel</i>. This is intentional.</p>
<p class="item"><b>B.</b> The <i>float</i>, <i>picture</i>, and <i>table</i> environments are disallowed, unless you are in <a href="#h2.2">sandbox</a> mode. This is intentional. In <i>novel</i> there are specific ways to <a href="#h7.3">place images</a> or construct a <a href="#hD.3.2.7">table of contents</a>.</p>
<p class="item"><b>C.</b> <i>Novel</i> has <a href="#h5">chapter-related commands</a> specifically created for the needs of fictional works.</p>
<p class="item" style="position:relative"><b>D.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> <i>Novel</i> is focused on doing one thing well, rather than many things poorly. That is why so many "academic" commands have been discarded. They are not necessary in popular fiction.</p>
<div style="clear:both"></div>
</div><!-- end 1.2.3 -->

<h4 id="h1.2.4">1.2.4. Avoid TeX Editors and IDEs</h4>
<div class="d4" id="d1.2.4">
<p class="item"><b>A.</b> Many TeX editors assume that you are using a standard TeX document class. They may attempt to insert code that does not work in <i>novel</i> class. Or, they may not understand the commands specific to <i>novel</i>. Do not use those editors.</p>
<p class="item"><b>B.</b> The TeXWorks editor is satisfactory. Be sure that you do not run scripts that change the content of your document.</p>
</div><!-- end 1.2.4 -->
</div><!-- end 1.2 -->


<h3 id="h1.3">1.3. Beware of These</h3>
<div class="d3" id="d1.3">

<h4 id="h1.3.1">1.3.1. Beware of $, %, and Other TeX Special Characters</h4>
<div class="d4" id="d1.3.1">
<p class="item"><b>A.</b> This is standard TeX behavior. Just a reminder!</p>
<p class="item"><img class="floatright" src="html-resources/trdol.png" width="238" height="67" alt="dollar is math mode"/><b>B.</b> TeX has a number of special characters. If you type them in a document, they will not appear as an ordinary printed character, but will do something else. These are:</p>
<p class="code"><code>$ % # _ ^ & ~ \ { }</code> and sometimes <code>[ ]</code></p>
<p class="item"><b>C.</b> In some cases, an incorrect usage will provide an error message that can be easily deciphered.</p>
<p class="item"><b>D.</b> Incorrect use of the dollar sign may either place your text in math mode (not your intent) or produce a baffling error message that points to an innocent package.</p>
<p class="item"><b>E.</b> The percent symbol normally produces no error, since it is a comment character. But then, whatever text follows on that line will be missing from your PDF. Unless you carefully review the PDF, you might not notice that text is missing.</p>
<p class="item"><b>F.</b> Special characters, other than the backslash, are escaped by placing a backslash in front, thus: <code>\$</code> for the dollar sign, <code>\%</code> for percent. If you must print a backslash, <code>\string\</code> does it.</p>
<p class="item" style="position:relative"><b>G.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> To avoid unforeseen problems, you should review your document in a text editor, prior to compiling. Search for any instances of special characters, particularly dollar and percent. Backslash them as needed.</p>
<div style="clear:both"></div>
</div><!-- end 1.3.1 -->


<h4 id="h1.3.2">1.3.2. Beware of Layout Surprises</h4>
<div class="d4" id="d1.3.2">
<p class="item"><b>A.</b> In <i>novel</i>, inter-line spacing is fixed. There is no padding between paragraphs. No plus/minus "flexible glue." This is standard for printed fiction.</p>
<p class="item"><b>B.</b> When TeX processes a document on a paragraph-by-paragraph basis, it chooses the layout that has the least total "penalty." Penalties are assessed based on factors such as word spacing, hyphenation, widows, and orphans (clubs). <i>Novel</i> applies a moderately strong penalty to hyphens; they are allowed, but discouraged. Widows and orphans are penalized very little. Word spacing, and even the spacing and characters within words, are controlled by moderate settings of the built-in <i>microtype</i> package.</p>
<p class="item" style="position:relative"><b>C.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> You are likely to find widows and orphans on many pages. If you wish to remove them, you must edit your text. This choice was made for several reasons: First, attention to widows and orphans would reduce the effectiveness of the other, more important, layout penalties. Second, fiction often has numerous short paragraphs (especially with dialogue), and it is very difficult for software to deal with all of them. Third, a great deal of contemporary fiction allows widows and orphans, when they are not distracting.</p>
</div><!-- end 1.3.2 -->
</div><!-- end 1.3 -->


</div><!-- end 1 -->
</div><!-- end page01 -->
<!-- ********************************************************************** -->
<div id="page02" class="page">


<h2 id="h2">2. Document Class Options</h2>
<div class="d2" id="d2">
<p class="item"><b>A.</b> As with other LaTeX classes, <i>novel</i> is called this way:</p>
<p><code>\documentclass[options,separated,by,commas]{novel}</code></p>
<p class="item"><b>B.</b> You do NOT use class options to choose paper size, font size, or any other dimensions. The settings are described in <a href="#h4">section 4</a>.</p>
<p class="item"><b>C.</b> Default sizes are appropriate for most print-on-demand, softcover fiction.</p>

<h3 id="h2.1">2.1. draft</h3>
<div class="d3" id="d2.1">
<p class="item"><b>A.</b> May NOT be used for final, print-ready PDF.</p>
<p class="item"><b>B.</b> The word DRAFT will appear at the upper left of each page.</p>
<p class="item"><b>C.</b> When text cannot be precisely wrapped, a small black bar (overflow rule) appears at right. These locations are reported in the log file as "overfull hbox" warnings. Example:</p>
<p class="centerimg"><img src="html-resources/overflowrule.png" width="525" height="155" title="draft mode, overflow rule" alt="overflow rule"/></p>
<p class="item"><b>D.</b> Some class options are only effective when used with <i>draft</i> option.</p>
<p class="item"><b>E.</b> PDF/X compliance is turned <i>off</i>. This over-rides any PDF/X setting.</p>
<p class="item"><b>F.</b> Some packages take note of whether or not the document is in draft mode, and change their behavior accordingly. However, the included <i>microtype</i> package will always be in final mode, and the included <i>hyperref</i> package will always be in draft mode.</p>
</div><!-- end 2.1 -->

<h3 id="h2.2">2.2. sandbox</h3>
<div class="d3" id="d2.2">
<p class="noindent">You may work in <code>sandbox</code> mode as a class option:</p>
<p class="code"><code>\documentclass[sandbox]{novel}</code></p>
<p class="item"><b>A.</b> In <code>sandbox</code> mode, you can use many packages that would otherwise be prohibited. This will allow you to create tables and diagrams using nearly any methods ordinarily available in most other document classes. Of course, you may have to load some additional packages.</p>
<p>Also, when in <code>sandbox</code> mode, many glues and lengths are set to values that are typical of other document classes, rather than the special values ordinarily used by <i>novel</i>.
<p class="item"><b>B.</b> The <code>sandbox</code> is limited to 4 pages of output, regardless of document length. So, you cannot use <code>sandbox</code> for your whole book. Instead, create one or more separate <code>sandbox</code> files.</p>
<p class="item"><b>C.</b> Your <code>sandbox</code> document should have the same layout as your full document. Then it is a drawing canvas. On a per-page basis, whatever fits in <code>sandbox</code> will also fit in your main document.</p>
<p class="item"><b>D.</b> If you also enable draft mode and shademargins, you can see the size of available space on the <code>sandbox</code> pages.</p>
<p class="item"><b>E.</b> When not in draft mode, the <code>sandbox</code> pages will have empty headers and footers (no matter which style you use).</p>
<p class="item"><b>F.</b> Post-process your <code>sandbox</code> PDF using <i style="white-space:nowrap">novel-scripts</i>. Then you will obtain black/white or grayscale raster images, with surrounding white space trimmed away. These images can be placed as ordinary images in your main document.</p>
<p class="item" style="position:relative"><b>G.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Why <code>sandbox</code>? Certain ordinary TeX commands and environments will disturb the <i>novel</i> page layout. Others will invalidate PDF/X. When you create something in <code>sandbox</code>, then convert it to a raster image, those bad effects are neutralized.</p>

</div><!-- end 2.2 -->

<h3 id="h2.3">2.3. shademargins</h3>
<div class="d3" id="d2.3">
<p class="item"><img class="floatright" style="margin-top:6px" src="html-resources/shademargins.png" width="132" height="205" title="shademargins" alt="shademargins"/><b>A.</b> Only effective with <i>draft</i> option.</p>
<p class="item"><b>B.</b> Helps to visualize and detect possible layout problems.</p>
<p class="item"><b>C.</b> Applies dark gray shade to unsafe areas (if set). Applies medium gray shade to margin areas. Applies light gray shade to header/footer areas.
<p class="item"><b>D.</b> <a href="#h4.3.1">Margins</a> include areas inside and outside the <a href="#h4.3.1.2">unsafe zones</a>.</p>
<p class="item"><b>E.</b> If <a href="#h4.1.2">Media Size</a> exceeds <a href="#h4.1.1">Trim Size</a>, the area outside the Trim Size will <em>not</em> be gray, because it is not part of the finished book.</p>
<p class="item" style="position:relative"><b>F.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Technical Info: During page shipout, the gray areas are added as background colors, with a white box above it, then text (and images, if any) on top.</p>
<div style="clear:both"></div>
</div><!-- end 2.3 -->

<h3 id="h2.4">2.4. cropmarks <em>(do not use unless required)</em></h3>
<div class="d3" id="d2.4">
<p class="item"><img class="floatright" style="margin-top:6px" src="html-resources/cropmarks.png" width="205" height="265" title="cropmarks" alt="cropmarks"/><b>A.</b> May be used with or without <i>draft</i> option.</p>
<p class="item"><b>B.</b> Marks are 0.25pt weight, 0.125in long, beginning 0.125in from the <a href="#h4.1.1">TrimBox</a>, ending 0.25in away from TrimBox.</p>
<p>The illustration shows a document with <a href="#h4.1.1">Trim Size</a> floated in a larger <a href="#h4.1.2">Media Size</a>. The invisible <a href="#h4.1.1">TrimBox</a> is outlined in green. The tiny crop marks sit outside the TrimBox.</p>
<p class="item" style="position:relative"><b>C.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Do not load any package that provides other cropmarks. They are incompatible, whether or not you use the <code>cropmarks</code> option.</p>
<p class="item"><b>D.</b> Most print-on-demand services do NOT want crop marks (also known as trim marks). Do not use this option unless you are certain that you need crop marks!</p>
<p class="item"><b>E.</b> Whether or not you use <code>cropmarks</code> option: In PDF/X, the file contains invisible information (TrimBox) that is understood by automatic print/cut machines.</p>
<p class="item"><b>F.</b> The PDF term CropBox is related to <a href="#h2.5">cropview</a>, NOT crop marks.</p>
</div><!-- end 2.4 -->

<h3 id="h2.5">2.5. cropview</h3>
<div class="d3" id="d2.5">
<p class="item"><img class="floatright" style="margin-top:6px" src="html-resources/cropview.png" width="132" height="203" title="cropview" alt="cropview"/><b>A.</b> Only effective with <i>draft</i> option.</p>
<p class="item"><b>B.</b> Ignored if <a href="#h4.1.1">Trim Size</a> is same as <a href="#h4.1.2">Media Size</a>.</p>
<p class="item"><b>C.</b> Instructs PDF viewer: Only display Trim Size on screen.</p>
<p class="item"><b>D.</b> Helps to visualize trimmed book size, when Media Size is larger than Trim Size.</p>
<p class="item" style="position:relative"><b>E.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Technical Info: Normally, the PDF CropBox is equal to the MediaBox. This option sets the CropBox equal to the TrimBox.</p>
<div style="clear:both"></div>
</div><!-- end 2.5 -->

<h3 id="h2.6">2.6. closecrop</h3>
<div class="d3" id="d2.6">
<p class="item"><img class="floatright" style="margin-top:6px" src="html-resources/closecrop.png" width="110" height="186" title="closecrop" alt="closecrop"/><b>A.</b> Only effective with <i>draft</i> option.</p>
<p class="item"><b>B.</b> Minimizes white space surrounding the text/header/footer, so that the result may be viewed on a hand-held device at largest practical text size.</p>
<p class="item"><b>C.</b> Purpose: Helps you to visualize your own book, while traveling, before you make final edits.</p>
<p class="item"><b>D.</b> This is NOT an e-book. It does not meet e-book standards, and cannot be changed to meet e-book standards.</p>
<p class="item" style="position:relative"><b>E.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Technical Info: First, the live area (text plus head/foot) is calculated from the original settings. Then, small margins are added, and the Trim Size is reduced to fit. So, the closecrop PDF size is not the same as in the print-ready PDF, although the page layout is the same.</p>
<div style="clear:both"></div>
</div><!-- end 2.6 -->

<h3 id="h2.7">2.7. xml</h3>
<div class="d3" id="d2.7">
<p class="item"><b>A.</b> Only effective with PDF/X. Only effective when NOT in draft mode.</p>
<p class="item"><b>B.</b> Copies internal XMP Metadata to a separate <i>jobname-XMPasXML.xml</i> file.</p>
<p class="item"><b>C.</b> Not necessary. Only informative. Does not affect structure or content of PDF.</p>
<p class="item" style="position:relative"><b>D.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Technical Info: XMP packet may be isolated by editing the *.xml file, in a plain text editor (requires utf-8). Necessary edits are obvious.</p>
</div><!-- end 2.7 -->

<h3 id="h2.8">2.8. coverart (deprecated)</h3>
<div class="d3" id="d2.8">
<p class="item">This option is only used for cover artwork. However, in the intervening time
since <i>novel</i> was first introduced, the printing technology has evolved.
Now (late 2023) using <i>novel</i> technology is not the best way to produce
your book cover file, although it still works. See <a href="#h7.1.2">section 7.1.2</a>.</p>
</div><!-- end 2.8 -->

<h3 id="h2.9">2.9. Developer Options</h3>
<div class="d3" id="d2.9">
<p class="noindent">These options are primarily used for developer testing, not user production. Using them may cause compilation to fail, or produce an undesirable result. That is not considered a bug.</p>
<p class="item"><b>A.</b> <code>mtoff</code> The <i>microtype</i> package will not be loaded.</p>
<p class="item"><b>B.</b> <code>test</code> Only used with file <i>novel-testsuite.tex</i>.</p>
<p class="item"><b>C.</b> <code>unblock</code> Allows use of some packages that would otherwise be blocked.</p>
</div><!-- end 2.9 -->

<h3 id="h2.10">2.10. revert</h3>
<div class="d3" id="d2.10">
<p class="noindent">Version 1.80 has some minor tweaks, so that documents compile faster.
In most cases, a document compiled with earlier version 1.52 will look the same.
If it does not, the class option <code>revert</code> will undo the tweaks.</p>
</div><!-- end 2.10 -->


</div><!-- end 2 -->
</div><!-- end page02 -->
<!-- ********************************************************************* -->
<div id="page03" class="page">

<h2 id="h3">3. Metadata, File Data, and PDF/X</h2>
<div class="d2" id="d3">
<p class="item"><b>A.</b> The commands described on this page are used only in the Preamble.</p>
<p class="item"><b>B.</b> These commands write non-printing information to the PDF file. Some of the information is used to identify and classify the file. Other information is read by the printer, to assist it with printing choices.</p>
<p class="item" style="position:relative"><b>C.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Some of the terms have different meanings, depending on whether they are used in the context of printing, book distribution, or ebooks. To avoid confusion <em>within this documentation</em> I will use different terms when they mean different things. When you are communicating with your printing and distribution service, take care to ensure that your understanding of terminology is what they really mean.</p>

<h3 id="h3.1">3.1. Definition of Terms</h3>
<div class="d3" id="d3.1">
<p class="noindent">This section is more detailed than it needs to be, because my review of various online forums (unrelated to TeX) shows a lot of user confusion.</p>

<h4 id="h3.1.1">3.1.1. ISBN Metadata</h4>
<div class="d4" id="d3.1.1">
<p class="item"><b>A.</b> When you obtain the ISBN for your book, either directly through the issuing agency or via your chosen print service, you will enter <em>ISBN Metadata</em> in an online form.</p>
<p class="item"><img class="floatright" src="html-resources/bookmanglerdashboard.png" width="500" height="309" alt="online form for ISBN metadata"/><b>B.</b> This metadata goes into a database, and identifies your printed book in distribution and sales channels. It neither knows nor cares about PDF. (If you were marketing a PDF ebook, instead of print, that would be a different story.)</p>
<p class="item"><b>C.</b> ISBN Metadata includes title, author(s), subtitle if any, ISBN, and other identifying information. Once the book is released, this information (normally) cannot be changed.</p>
<p class="item"><b>D.</b> You may also enter a description, genre classification, and other information that will help people find your book by browsing, and help to sell your book. This information can usually be changed at a later date.</p>
<p class="item" style="position:relative"><b>E.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> The ISBN refers to your <em>printed book</em>, not to the PDF file. You are not selling copies of the PDF.</p>
<div style="clear:both"></div>
</div><!-- end 3.1.1 -->

<h4 id="h3.1.2">3.1.2. Printed Metadata</h4>
<div class="d4" id="d3.1.2">
<p class="item"><b>A.</b> <em>Printed Metadata</em> refers to the information that can be seen on paper, in expected places: the book cover, the title page, and the copyright page.</p>
<p class="item"><img class="floatright" src="html-resources/megatitlepagesm.png" width="165" height="256" alt="printed metadata, cover page"/><b>B.</b> Whether your book was printed from a PDF file, or by some other method, is not relevant.</p>
<p class="item"><b>C.</b> Your print service will insist that the title, subtitle (if any), author, and ISBN in these places exactly match what appears in the ISBN database. Of course, you can (and usually will) use styling or images to make the Printed Metadata more attractive than the plain-text ISBN Metadata.</p>
<p class="item"><b>D.</b> Some print services may object to artwork that is too fancy, on the grounds that it is difficult to discern the title and author. Although this is very unlikely, it is better to ask before committing resources.</p>
<div style="clear:both"></div>
</div><!-- end 3.1.2 -->

<h4 id="h3.1.3">3.1.3. File Data (PDF Metadata)</h4>
<div class="d4" id="d3.1.3">
<p class="item"><b>A.</b> Your PDF has internal metadata, which can been seen by PDF reader software.</p>
<p class="item"><img class="floatright" src="html-resources/megadocprops.png" width="298" height="215" alt="PDF metadata"/><b>B.</b> To avoid confusion, this documentation uses the term <i>File Data</i> to mean this internal PDF Metadata.</p>
<p class="item"><b>C.</b> You can see some of the File Data when you open the PDF in any reader, and go to <i>File&gt;Properties</i>. To see all of it, you need professional software (such as Adobe Acrobat Pro).</p>
<p class="item" style="position:relative"><b>D.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Be sure to read the rules for File Data, below. Some of it is generic, and some is particular to TeX or to the <i>novel</i> class.</p>
<div style="clear:both"></div>
</div><!-- end 3.1.3 -->
</div><!-- end 3.1 -->

<h3 id="h3.2">3.2. Rules for File Data</h3>
<div class="d3" id="d3.2">
<p class="item">File Data must conform to several specifications, in terms of what you may or may not write. Some of the limitations are imposed by the book distribution industry, which stores information in its databases a certain way.</p>
<p>What File Data do you need, if any? Ask your print service.</p>

<h4 id="h3.2.1">3.2.1. Required, Prohibited, Optional?</h4>
<div class="d4" id="d3.2.1">
<p class="item"><b>A.</b> If PDF/X compliance is required, then you <em>must</em> at least set the title in File Data, using the <code><a href="#h3.3.1">\SetTitle</a></code> command. Note that this title is not styled in any way.</p>
<p class="item"><b>B.</b> Some print services require a minimum amount of file data, particularly title and author, which must match the printed metadata and ISBN metadata for these fields.</p>
<p class="item"><b>C.</b> Other services may require that the book's ISBN number, with something like <i>_text</i> added, be used in place of the title. Remember that underscore is a special character in LaTeX, so it must be preceded by a backslash.</p>
<p class="item"><b>D.</b> Many print services do not care about File Data, one way or the other. Your PDF is passed through production according to its file name, not its internals. In such a case, assume that title and author are required.</p>
<p class="item" style="position:relative"><b>E.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Be sure that any included images are stripped of their own image metadata, such as EXIF. The procedure is described in <i>novel-scripts</i>.</p>
</div><!-- end 3.2.1 -->

<h4 id="h3.2.2">3.2.2. Limited to Latin-1?</h4>
<div class="d4" id="d3.2.2">
<p class="item"><b>A.</b> At least in the USA, your print service may require that File Data be limited to characters in the Latin-1 set. This is because their production and distribution software uses Latin-1 for the database.</p>
<p class="item"><b>B.</b> Latin-1 does not include curly quotes or em dash. You will still be using utf-8 encoding in your document files, but your choice of characters is restricted.</p>
<p class="item"><b>C.</b> <i>Novel</i> allows the title, and other File Data, to be in alphabets such as Greek or Cyrillic. If you are limited to Latin-1, the limitation has nothing to do with TeX or PDF.</p>
<p class="item"><b>D.</b> If your book has File Data using quotes, then use the special commands <code>\straightquote{}</code> and <code>\straightdblquote{}</code>. Be sure to use the braces, so that you don't have to worry about gobbled space. When you use these commands, you eliminate the risk that your software will automatically convert them to the forbidden curly quotes. Example:</p>
<p class="code"><code>\SetTitle{That\straightquote{}s Amore}  % That's Amore</code></p>
<p class="item"><b>E.</b> If you are limited to Latin-1 in File Data, you can still use curly quotes and em dash on the cover and title page, and in headings.</p>
<p class="item" style="position:relative"><b>F.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> There is no <code>\maketitle</code> command in <i>novel</i>. You may (and should) apply styling to the printed title, even though the File Data title cannot be styled.</p>
</div><!-- end 3.2.2 -->

<h4 id="h3.2.3">3.2.3. TeX escapes</h4>
<div class="d4" id="d3.2.3">
<p class="item"><b>A.</b> In File Data, you must obey the same TeX rules that apply everywhere: Certain characters have special meaning, and must be preceded by a backslash, if you wish to use them as ordinary characters.</p>
<p class="item"><b>B.</b> The list of special characters:</p>
<p><code># $ % &amp; _</code> &nbsp; &nbsp; (hash, dollar, percent, ampersand, underscore)</p>
<p>Example: The title <em>Doing 9% &amp; Gone</em> is coded:</p>
<p class="code"><code>\SetTitle{Doing 9\% \&amp; Gone}</code></p>
<p class="item"><b>C.</b> The above characters are rarely needed in File Data. Sometimes they must be spelled out, in order to agree with your book's ISBN Metadata. For example, you may need to write "and" rather than the ampersand, "dollar" rather than the dollar symbol, and "percent" or "per-cent" rather than the percent symbol.</p>
<p class="item"><b>D.</b> Fun fact: <i>The Seven-Per-Cent Solution</i> and <i>The 7% Solution</i> are different books, in entirely different gnres.</p>

</div><!-- end 3.2.3 -->

<h4 id="h3.2.4">3.2.4. Forbidden Characters</h4>
<div class="d4" id="d3.2.4">
<p class="item"><b>A.</b> Do not use the backslash <code>\</code> except as described above.</p>
<p class="item"><b>B.</b> Do not use the tilde <code>~</code> or the circumflex <code>^</code>.</p>
<p class="item"><b>C.</b> Do not use TeX code, such as <code>\`e</code> for e with grave; instead paste <code>è</code> directly from a character map.</p>
<p class="item"><b>D.</b> Do not use styling, such as <code>{\small text}</code> or <code>\textit{text}</code>.</p>
<p class="item"><b>E.</b> If necessary, use <code>\straightquote{}</code> and <code>\straightdblquote{}</code>. Do not use TeX code for apostrophe or quote.</p>
<p class="item"><b>F.</b> Do not use multiple hyphens to create longer dashes. Do not use em dash or en dash.</p>
</div><!-- end 3.2.4 -->
</div><!-- end 3.2 -->

<h3 id="h3.3">3.3. File Data Commands</h3>
<div class="d3" id="d3.3">
<p class="noindent">Now that you understand what File Data means, and how it may be written, you can use commands to write it.</p>

<h4 id="h3.3.1">3.3.1. <code>\SetTitle{<em>text</em>}</code></h4>
<div class="d4" id="d3.3.1">
<p class="item"><b>A.</b> The <i>novel</i> document class does not have <code>\maketitle</code>. The title is <i>not</i> automatically transferred to a title page, because there is no automatic title page.</p>
<p class="item"><b>B.</b> The title can be retrieved as <code>\theTitle</code> anywhere in your document.</p>
<p class="item"><b>C.</b> In certain page layouts, the title is used as default text in recto page headings. You may <a href="#h4.3.4.6">over-ride</a> this behavior.</p>
<p class="item" style="position:relative"><b>D.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> You may set the title as empty (or blank space). In <i>very rare</i> cases, that is useful. However, if you do that, then you must follow <code>\SetTitle{}</code> with <code>\SetPDFX{off}</code>, or an error will result. This is because PDF/X standards require a real title.</p>
</div><!-- end 3.3.1 -->

<h4 id="h3.3.2">3.3.2. <code>\SetAuthor{<em>text</em>}</code></h4>
<div class="d4" id="d3.3.2">
<p class="item"><b>A.</b> The default author is empty (no author).</p>
<p class="item"><b>B.</b> In certain page layouts, the author is used as default text in verso page headings. You may <a href="#h4.3.4.6">over-ride</a> this behavior.</p>
<p class="item"><b>C.</b> The author can be retrieved as <code>\theAuthor</code> anywhere in your document.</p>
<p class="item"><b>D.</b> If in doubt, use the name as it is spoken. <i>Correct:</i> Mary Smith. <i>Incorrect:</i> Smith, Mary. <i>Possibly correct, if true:</i> Mary Smith, Ph. D.</p>
<p class="item"><b>E.</b> Your PDF file is <i>not</i> seen by a public database. Instead, the public database contains the <a href="#h3.1.1">information you entered</a>, when you obtained the ISBN. So, if you have multiple authors or minor contributors, that is the place to provide search information.</p>
<p class="item"><b>F.</b> Ask your print service about how to enter multiple authors, and how to display them in print. Do not assume that authorship rules pertaining to academic papers will also apply to your novel.</p>
<p class="item" style="position:relative"><b>G.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Print-On-Demand services do not like to split royalty payments among multiple authors. Instead, the entire account is the responsibility of one main author or editor.</p>
<p>If anyone else is involved, that is a matter of private contract betwen the one main author/editor, and any other contributors. The print service neither knows nor cares about such agreements, and will do nothing to cooperate.</p>
<p>[DISCLAIMER] Here is my amateur advice: Consider using other contributors on a <i><span style="white-space:nowrap">work-for-hire</span></i> basis. This involves a written contract, prior payment of a fixed amount that does not depend on sales, and no grant of rights. You also need written assurance that the hired persons have the right to sell you the work they provide. If you need professional advice, then consult a professional.</p>
</div><!-- end 3.3.2 -->

<h4 id="h3.3.3">3.3.3. <code>\SetSubtitle{<em>text</em>}</code></h4>
<div class="d4" id="d3.3.3">
<p class="item"><b>A.</b> The subtitle can be retrieved as <code>\theSubtitle</code> anywhere in your document.</p>
<p class="item"><b>B.</b> The subtitle does <i>not</i> appear in File Data, and does <i>not</i> appear anywhere in your book, unless you manually write it there (either manually, or via <code>\theSubtitle</code>.</p>
<p class="item"><b>C.</b> If you want the subtitle to appear in File Data, manually include it via <code>\SetTitle</code>. Example:</p>
<p class="code"><code>\SetTitle{Megabarf: The Green Plague of London}</code></p>
<p>Then, you may need to <a href="#h4.3.4.6">adjust page headings</a> so that only the main title appears.</p>
<p class="item" style="position:relative"><b>D.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Usually, there is no benefit to including the subtitle in File Data. The search database does not read your PDF. It reads the information you entered as <a href="#h3.1.1">ISBN Metadata</a>, which does have an entry for subtitle.</p>
</div><!-- end 3.3.3 -->

<h4 id="h3.3.4">3.3.4 Advanced: <code>\SetApplication{<em>text</em>}</code> and <code>\SetProducer{<em>text</em>}</code></h4>
<div class="d4" id="d3.3.4">
<p class="item"><b>A.</b> The <i>Application</i>, also known as <i>CreatorTool</i>, is the program used to create your source document. Text editors, word processors, and page layout programs are the most common Applications (not specific to TeX).</p>
<p class="item"><b>B.</b> The PDF <i>Producer</i> is the program that converts the source document to PDF. In many cases, the Producer is a back-end, directly linked to the Application.</p>
<p class="item"><b>C.</b> These details are automatically created when you compile your document, without any input from you. However, if you have the need to provide a custom text string for the Application or Producer, these commands will do it.</p>
</div><!-- end 3.3.4 -->
</div><!-- end 3.3 -->

<h3 id="h3.4">3.4. PDF/X</h3>
<div class="d3" id="d3.4">
<p class="item"><b>A.</b> Commercial printers are very likely to require PDF/X compliance. This ensures that your PDF meets a variety of criteria, by containing those things it must contain, and omitting those things it must not contain.</p>
<p class="item"><b>B.</b> Most perfectly valid PDF files are <em>not</em> PDF/X compliant, simply because they are not intended for commercial printing.</p>
<p class="item"><b>C.</b> To set PDF/X compliance, use this command in Preamble:</p>
<p class="code"><code>\SetPDFX[<em>OutputIntent</em>]{<em>ComplianceStandard</em>}</code> &nbsp; and starred version</p>
<p class="item" style="position:relative"><b>D.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> A non-PDF/X file is not a defective file! It complies with PDF standards, but not PDF/X standards. Some print services insist on PDF/X. Others don't care, as long as the fonts are embedded (which they always are).</p>
<p class="item" style="position:relative"><b>E.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Some document class options are not used for final print production. When you use these options, PDF/X will be temporarily turned <i>off</i>, regardless of your setting.</p>

<h4 id="h3.4.1">3.4.1. Compliance Standards</h4>
<div class="d4" id="d3.4.1">
<p class="item"><b>A.</b> The following choices are available:</p>
<p><code>X-1a:2001</code> (default)</p>
<p><code>X-1a:2003</code></p>
<p><code>X-3:2002</code></p>
<p><code>X-3:2003</code></p>
<p><code>off</code></p>
<p class="item"><b>B.</b> The first of these is the one that is most widely accepted in commercial printing. Anything meeting X-1a:2001 necessarily meets the other standards.</p>
<p class="item"><b>C.</b> If your book involved complicated color artwork, then the correct choice might be crucial. But for a black and white book block, <span style="white-space:nowrap">X-1a:2001</span> is the preferred choice, unless your print service says otherwise.</p>
</div><!-- end 3.4.1 -->

<h4 id="h3.4.2">3.4.2. Output Intent</h4>
<div class="d4" id="d3.4.2">
<p class="item"><b>A.</b> Output Intent informs the printer that you "intend" your PDF to be printed according to certain technical capabilities, particularly regarding color.</p>
<p class="item"><b>B.</b> If your are using color-managed workflow with a calibrated monitor and color profile, and if the actual printer matches your intent, then you can expect accurate printed colors within the technical limits.</p>
<p class="item"><b>C.</b> If the intended printer does not match the actual printer, there are three possible results: (1) The file will still be printed, but colors may be inaccurate. Home and office printers do this routinely. (2) If the printer is very advanced, it will adjust its properties to emulate the intended printer. (3) The printer may reject the print job, because it knows that it cannot produce the intended results.</p>
<p class="item"><b>D.</b> The above considerations are very important for glossy fashion magazines, somewhat important for color book covers, and unimportant for non-color book text. Nevertheless, an Output Intent is required to meet PDF/X compliance, even when it does not matter.</p>
<p class="item"><b>E.</b> The Output Intent is an optional argument to <code>\SetPDFX</code>, because a default will be used when the Intent is not specified.</p>
</div><!-- end 3.4.2 -->

<h4 id="h3.4.3">3.4.3. Built-in Output Intent Codes</h4>
<div class="d4" id="d3.4.3">
<p class="item"><b>A.</b> There are three pre-defined choices for Output Intent:</p>
<p><code>CGATS TR 001</code> (default) (can also use CGATSTR001)</p>
<p><code>FOGRA39</code></p>
<p><code>JC200103</code></p>
<p class="item"><b>B.</b> The first of these is known as "US&nbsp;Web&nbsp;Coated&nbsp;SWOP&nbsp;v2" in the USA, and is the most commonly-used American print standard for this kind of book.</p>
<p class="item"><b>C.</b> The second is widely used in Europe, the third in Japan.</p>
</div><!-- end 3.4.3 -->

<h4 id="h3.4.4">3.4.4. Other Output Intents</h4>
<div class="d4" id="d3.4.4">
<p class="item"><b>A.</b> If you are required to use an Output Intent that is not one of the above three, then you have to code it yourself.</p>
<p class="item"><b>B.</b> In a place where TeX can find it, create a plain text file with its file name in the following format:</p>
<p class="code">File name begins with <code>novel-</code> (note the hyphen).</p>
<p class="code">No spaces or underscores in file name, no matter what the Intent.</p>
<p class="code">File extension is <code>.clo</code></p>
<p class="item"><b>C.</b> Example valid file name: <code>novel-YourIntent.clo</code>.</p>
<p class="code">The above file is loaded using <code>\SetPDFX[YourIntent]{<em>compliance</em>}</code>.</p> 
<p class="item"><b>D.</b> The file contains (up to) five <code>\gdef</code> commands. The <code>\@OIidentifier</code> is called "reference name" by some authorities. Here is the code used for <code>CGATS TR 001</code>:</p>:
<div style="margin:0px 16px 0px 16px; background: #dddddd none">
<p class="code"><code>\gdef\@OIidentifier{CGATS TR 001}</code></p>
<p class="code"><code>\gdef\@OIcondition{SWOP (Publication) printing in USA (Printing process definition: ANSI CGATS.6).}</code></p>
<p class="code"><code>\gdef\@OIinfo{U.S. Web Coated (SWOP) v2}</code></p>
<p class="code"><code>\gdef\@OIregistry{http://www.color.org}</code></p>
<p class="code"><code>\gdef\@OIprofile{USWebCoatedSWOP.icc}</code></p>
</div>
<p class="item"><b>E.</b> If the data contains any TeX special characters, such as underscore, percent, ampersand, or number sign, they must be escaped using a backslash.</p>
<p class="item"><b>F.</b> The necessary data may be provided by your print service, or perhaps can be found at resources such as the <a href="http://color.org/registry/index.xalter" rel="external" class="external" target="new">International Color Consortium</a>. Alas, this source (and others) do not make it easy to discern the data.</p>
<p class="item"><b>G.</b> Another place to look for Output Intent data is in your (texmf)/tex/latex/pdfx folder. This will be in your TeX system if package <i>pdfx</i> is installed (but do not load this package into <i>novel</i> class). Files <i>AdobeColorProfiles.tex</i> and <i>AdobeExternalProfiles.tex</i> contain code prepared by the author of the <i>pdfx</i> package. The macro names are not the same, but they are easy to decode: <code>\@OIidentifer</code> is <i>/OutputConditionIdentifier</i>; <code>\@OIcondition</code> is <i>/ProfileName</i>; <code>\@OIinfo</code> is <i>/OutputCondition</i>; <code>\@OIregistry</code> is <i>/RegistryName</i>; and <code>\@OIprofile</code> follows <i>\setCMYKcolorprofile</i>.</p>
</div><!-- end 3.4.4 -->

<h4 id="h3.4.5">3.4.5. Whether or Not to Embed *.icc</h4>
<div class="d4" id="d3.4.5">
<p class="item"><b>A.</b> Each Output Intent has a color profile, in the form of a file with extension <i>*.icc</i>.</p>
<p class="item"><b>B.</b> You usually do not need the color profile, because the printer knows which profile corresponds with which standard Output Intent code.</p>
<p class="item"><b>C.</b> When you use <code>\SetPDFX</code> in its un-starred form, the *.icc color profile will not be embedded in the PDF. This is the normal situation.</p>
<p class="item"><b>D.</b> If your print service demands that you embed the *.icc color profile, then use <code>\SetPDFX*</code> (with the asterisk). You must have the actual *.icc file available where TeX can find it.</p>
<p class="item" style="position:relative"><b>E.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Do not embed the *.icc color profile unless specifically requested by your print service. If you embed it when you should not, the result may be worse!</p>
<p class="item" style="position:relative"><b>F.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> If your printer requests "US Web Coated SWOP v2" and, as usual, requests that you <em>not</em> embed the corresponding *.icc color profile, then some software will read the Output Intent as "CGATS&nbsp;TR&nbsp;001" instead of "US&nbsp;Web&nbsp;Coated&nbsp;SWOP&nbsp;v2". They are identical.</p>
</div><!-- end 3.4.5 -->

<h4 id="h3.4.6">3.4.6. Where to Find *.icc Files</h4>
<div class="d4" id="d3.4.6">
<p class="item"><b>A.</b> You do not need an *.icc color profile unless you choose to embed it.</p>
<p class="item"><b>B.</b> Although many *.icc color profiles are freely available, they usually cannot be distributed within an open-source project. You might already have them in your system, wherever such files are stored. Note that TeX uses forward slash in file paths, not backslash, even if the platform is Windows:</p>
<p class="isolate">
Windows: <code>C:/Windows/System32/spool/drivers/color/</code><br/>
Linux: <code>/usr/share/color</code> or hidden <code>~/.local/share/icc/</code> or other places<br/>
OSX: <code>/Library/Colorsync/Profiles/</code> or hidden <code>(username)/Library/Colorsync/Profiles/</code>
</p>
<p class="item"><b>C.</b> If you do not have a file you need, look on the Internet <a href="https://www.adobe.com/support/downloads/iccprofiles/icc_eula_win_end.html" target="new">here</a> and <a href="http://www.color.org/profiles.xalter" target="new">here</a>. These links also have many other profiles, beyond the basic three.</p>
<p class="item"><b>D.</b> In a few cases, your print service may provide the necessary *.icc file.</p>
<p class="item"><b>E.</b> You want <i>printer</i> profiles, usually CMYK. Don't worry about the files being "for Windows," as they are actually cross-platform.</p>
<p class="item"><b>F.</b> If your system has the necessary <i>*.icc</i> file for your Output Intent, but <i>novel</i> cannot find it, then copy the file to the same folder as your TeX document.</p>
<p class="item" style="position:relative"><b>G.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Again: Do not embed the color profile unless the printer requests embedding.</p>
</div><!-- end 3.4.6 -->
</div><!-- end 3.4 -->


</div><!-- end 3 -->
</div><!-- end page03 -->
<!-- ************************************************************ -->
<div id="page04" class="page">


<h2 id="h4">4. Book Size, Page Layout, and Fonts</h2>
<div class="d2" id="d4">
<p class="noindent">In <i>novel</i>, you do not use class options to set the size or layout of your book, or font size.</p>

<h3 id="h4.1">4.1. Book Dimensions</h3>
<div class="d3" id="d4.1">

<h4 id="h4.1.1">4.1.1. Trim Size and TrimBox</h4>
<div class="d4" id="d4.1.1">
<p class="noindent">Trim Size is globally set in Preamble:</p>
<p class="code"><code>\SetTrimSize{<em>width</em>}{<em>height</em>}</code></p>
<p>The width and height must have dimensions, such as <i>in</i> or <i>cm</i>.</p>
<p class="item"><img src="html-resources/trimsize.png" class="floatright" width="130" height="190" alt="Trim Size" title="Trim Size"/><b>A.</b> <b>Trim Size</b> is the finished size of your book, width and height (but not thickness). In the case of softcover books, it is the exact size.</p>
<p>In the case of hardcover books, where the cover is slightly larger than the pages, your print service will tell you whether they mean the cover size or the page size.</p>
<p class="item"><b>B.</b> PDF/X internally specifies the Trim Size as a rectangular <b>TrimBox</b>. This provides invisible instructions to an automated cutting machine, when the Trim Size is smaller than the actual paper sheet. You do not set the TrimBox yourself.</p>
<p class="item"><b>C.</b> Your print service has a list of standard trim sizes. For fiction, you probably want "creme" (off-white) paper, which eliminates a few of the choices. Choice of size may also be limited by the distribution channels.</p>
<p class="item"><b>D.</b> If you do not specify the Trim Size, the default is <i>5.5in</i> wide, <i>8.5in</i> high. This is a widely-used "trade" size for softcover print-on-demand fiction in the U.S.A. If in doubt, leave the default.</p>
<p class="item" style="position:relative"><b>E.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Do not request a <i>mass-market paperback</i> Trim Size unless you really, truly, know what you are doing. Since you are not a major writer for a major publishing house, you don't know; so, don't do it.</p>
</div><!-- end 4.1.1 -->

<h4 id="h4.1.2">4.1.2. Media Size, MediaBox, Bleed, and BleedBox</h4>
<div class="d4" id="d4.1.2">
<p class="noindent"><b>PDF page size</b> is known as <b>Media Size</b>, defined by an invisible <b>MediaBox</b> in PDF internal code. It is known as <b>paperwidth</b> and <b>paperheight</b> in TeX terminology.</p>
<p class="item"><b>A.</b> For cover artwork, the PDF page size <i>must</i> be larger than the artwork <a href="#h4.1.1">Trim Size</a>, so that the image can <b>bleed</b> outside the <a href="#h4.1.1">TrimBox</a>. Use this command in Preamble:</p>
<p class="code"><code>\SetMediaSize{<i>width</i>}{<i>height</i>}</code></p>
<p>This will center the Trim Size in the larger Media Size.</p>
<p class="item"><b>B.</b> Generally, the American standard is 0.125in bleed on all four sides of the cover image; metric nations may use 3mm. Then, the Media Size would be 0.25in (or 6mm) larger than Trim Size in both dimensions.</p>
<p class="item"><b>C.</b> <b>Example:</b> Suppose that the Trim Size of your book is 5.5in wide x 8.5in high. Based on the number of pages, its spine width is 0.6in.</p>
<p>Then, the Trim Width of the (Perfect Print) cover will be 5.5in + 0.6in + 5.5in = 11.6in. The Trim Height is 8.5in.</p>
<p>If you are required to provide 0.125in bleed on all four sides, the Media Width is 0.125in + 11.6in + 0.125in = 11.85in. The Media Height is 0.125in + 8.5in + 0.125in = 8.75in. The commands:</p>
<p class="code"><code>\SetTrimSize{11.6in}{8.5in}</code></p>
<p class="code"><code>\SetMediaSize{11.85in}{8.75in}</code></p>
<p class="item"><b>D.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> If you fail to use <code>\SetMediaSize</code> with <code>coverart</code>, or choose surprising values, then you will get an error or warning from <i>novel</i>.</p>
<p class="item"><b>E.</b> For the interior book block, almost all P.O.D. services require that the PDF page size be identical to the <a href="#h4.1.1">Trim Size</a>. This is done automatically. You do not use <code>\SetMediaSize</code>.</p>
<p class="item"><b>F.</b> In rare cases, a P.O.D. service will ask you to float the interior book block in a larger, standard paper size. You may use <code>\SetMediaSize</code> for this purpose. The <i>novel</i> class does not support interior bleed, so when you are not using <code>coverart</code> mode, no BleedBox is set.</p>
</div><!-- end 4.1.2 -->
</div><!-- end 4.1 -->

<h3 id="h4.2">4.2. Fonts and Normal Font Size</h3>
<div class="d3" id="d4.2">

<h4 id="h4.2.1">4.2.1. Parent (Main) Font and Size</h4>
<div class="d4" id="d4.2.1">
<p class="item"><b>A.</b> In <i>novel</i> you do not directly set the main font (also known as <i>roman default</i>). Instead, you set a parent font, from which the main font is derived.</p>
<p class="item"><b>B.</b> The default parent font is <i>Libertinus Serif</i>, which is an updated branch of <i>Linux Libertine O</i>. You must install it as package <i>libertinus</i>.</p>
<p>Online services, such as ShareLaTeX, have <i>libertinus</i>.</p>
<p> If you do not have the Libertinus fonts, then <i>Latin Modern Roman</i> will be used as fallback. But LMR is not really suitable for use in printed fiction; it is allowed so that test documents can compile, until you choose a more suitable font.</p>
<p class="item"><b>C.</b> Choose only Open Type or TrueType fonts, not the ancient Type 1 (PostScript) or Metafonts. The font you choose does not have to be part of any TeX package, because you do not need any <i>*.sty</i> file or TeX metrics. All of that is built into the font itself. This is thanks to <i>LuaLaTeX</i> and the built-in <i>fontspec</i> package.</p>
<p class="item" style="position:relative"><b>D.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> You do <i>not</i> write <code>\usepackage{<i>fontname</i>}</code>, or <code>\RequirePackage{<i>fontname</i>}</code>, or <code>\setmainfont{<i>fontname</i>}</code>. If you do that, then a warning or error will result, and in any case the font you get won't be the one you were expecting.</p>

<h5 id="h4.2.1.1">4.2.1.1. <code>\SetParentFont[<em>features</em>]{<em>fontname</em>}</code></h5>
<div class="d5" id="d4.2.1.1">
<p class="item"><b>A.</b> In <i>novel</i> you set a parent font, which is the ancestor of several pre-defined font styles, including the main font. In Preamble:</p>
<p class="code"><code>\SetParentFont[<em>features</em>]{<em>fontname</em>}</code></p>
<p class="item"><b>B.</b> The command uses <i>fontspec</i> syntax, which is reviewed in <a href="#hE">Appendix E</a>, and described in full detail by the <i>fontspec</i> package documentation.</p>
<p class="item"><b>C.</b> Whether you use <code>\SetParentFont</code> or accept the default, the features and fontname are stored as strings in macros <code>\parentfontfeatures</code> and <code>\parentfontname</code>. You may use <code>\parentfontfeatures</code> and <code>\parentfontname</code> as arguments to other font commands.</p>
<p class="item"><b>D.</b> If you have the proper license, you can use a commercial font. For example:</p>
<p class="code"><code>\SetParentFont{Adobe Garamond Pro}</code></p>
<p>See how easy that is? By default, <i>novel</i> will apply TeX Ligatures and Kerning to the parent font and all its descendants. Common Ligatures and OldStyle numbers will be added for the main font. This is ideal for fiction.</p>
</div><!-- end 4.2.1.1 -->

<h5 id="h4.2.1.2">4.2.1.2. <code>\SetFontSize{<em>length</em>}</code></h5>
<div class="d5" id="d4.2.1.2">
<p class="item"><b>A.</b> In the <i>novel</i> document class, you do not set point size as a class option. Instead you use <code>\SetFontSize</code> in the Preamble. It applies to the parent (main) font, and is used as the basis for scaling font sizes.</p>
<p class="item"><b>B.</b> The size may be any units TeX understands, including decimal values. So, <i>12.8bp</i> and <i>13.1pt</i> are acceptable. This is because you will be using scalable, Open&nbsp;Type and TrueType fonts throughout your document. They do not need TeX metrics.</p>
<p class="item"><b>C.</b> If you insist on using ancient TeX fonts, then you may need to specify a convenient integer font size such as 11pt or 12pt. But why? Forget those fonts! Welcome to the Twenty-First Century.</p>
<p class="item"><b>D.</b> The minimum global font size is <i>8pt</i>, and the maximum is <i>18bp</i>. On a local basis, text may be larger or smaller than this.</p>
<p class="item"><b>E.</b> If you do not use <code>\SetFontSize</code>, the default will be <i>11.4pt</i> more or less. That is, the size is calculated from other layout settings. When there is less available text area, the default size is <i>11pt</i>. For larger books, the default is <i>12pt</i>.</p>
<p class="item"><b>F.</b> Once you have set the Trim Size, margins, and parent font, set the font size for readability. Depending on whom you ask, each line of free-running text should average 60 to 66 characters (including spaces). If you use all of the <i>novel</i> default settings, including <i>Libertinus Serif</i> parent font, that's what you will get. But if you change anything, then do a test document to see what font size works best.</p>
</div><!-- end 4.2.1.2 -->
</div><!-- end 4.2.1 -->

<h4 id="h4.2.2">4.2.2. Descendant Fonts: main font, chapter font, subch font, head font</h4>
<div class="d4" id="d4.2.2">
<p class="item"><b>A.</b> The descendant fonts are automatically set, as variations of the <i>parent font</i>:</p>
<p class="centerimg"><img src="html-resources/font-tree.png" width="600" height="177" title="font tree" alt="font tree"/></p>
<p>For example, the <i>main font</i> uses the <i>parent font</i> family. It has TeX Ligatures and Kerning (inherited from the <i>parent font</i>), and also Common Ligatures and OldStyle numbers.</p>
<p class="item"><b>B.</b> The <i>main font</i> is not configured directly. Instead, configure the <i>parent font</i>, then the <i>main font</i> (and other descendants) will obey. For example, if you don't want OldStyle numbers:</p>
<p class="code"><code>\SetParentFont[<em>Numbers=Lining</em>]{<em>fontname</em>}</code></p>
<p>Then, Lining numbers will be used for the <i>main font</i> (and other descendants).</p>
<p class="item"><b>C.</b> If you don't like the defaults, you can set the other descendant fonts directly, in Preamble:</p>
<p class="code">
<code>\SetChapterFont[<em>features</em>]{<em>fontname</em>}</code> &nbsp; % <em>see section <a href="#h5.1.3.1">5.1.3.1</a></em><br/>
<code>\SetSubchFont[<em>features</em>]{<em>fontname</em>}</code> &nbsp; % <em>see section <a href="#h5.1.3.1">5.1.3.1</a></em><br/>
<code>\SetHeadFont[<em>features</em>]{<em>fontname</em>}</code> &nbsp; % <em>see section <a href="#h4.3.4.2">4.3.4.2</a></em>
</p>
<p class="item"><b>D.</b> You may use <code>\parentfontfeatures</code> and/or <code>\parentfontname</code> as arguments, if you wish.</p>
</div><!-- end 4.2.2 -->

<h4 id="h4.2.3">4.2.3. Advanced: The Deco Font</h4>
<div class="d4" id="d4.2.3">
<p class="item"><b>A.</b> Open Type font <i>NovelDeco.otf</i> is packaged with the <i>novel</i> class. It is a special-purpose font that provides characters for the <code><a href="#h5.1.3.3">\decoglyph</a></code> and <code><a href="#h6.2.4">\midcase</a></code> commands.</p>
<p class="item"><b>B.</b> Normally, you do not need to configure this font, as it is automatic. The only reason for changng it is if you are an advanced user, who wishes to use a substitute font with different decorations. However, you may <i>not</i> specify just any font! The substitute must be an edited version of <i>NovelDeco.otf</i>, with a different font name. If you don't know what that means, then don't do it.</p>
<p class="code">
<code>\SetDecoFont[<em>features</em>]{<em>fontname</em>}</code> &nbsp; % <em>see section <a href="#h5.1.3.3">5.1.3.3</a></em>
</p>
</div><!-- end 4.2.3 -->

<h4 id="h4.2.4">4.2.4. Advanced: Mono, Sans, and Math Fonts</h4>
<div class="d4" id="d4.2.4">
<p class="item"><b>A.</b> There are several pre-defined fonts that do not descend from the <i>parent font</i>. In each case, an appropriate default font is selected. You will probably never need to use them; but TeX being what it is, default fonts are chosen "whether you like it or not."</p>
<p class="item"><b>B.</b> The default sans-serif font will be <i>Libertinus Sans</i> if available. If not, the fallback font is <i>Latin Modern Sans</i>. To choose your own, use this command in Preamble, with <i>fontspec</i> syntax:</p>
<p class="code"><code>\SetSansFont[<em>features</em>]{<em>fontname</em>}</code></p>
<p class="item"><b>C.</b> The default monospaced font will be <i>Libertinus Mono</i> if available. If not, the fallback font is <i>Latin Modern Mono</i>. To choose your own, use this command in Preamble, with <i>fontspec</i> syntax:</p>
<p class="code"><code>\SetMonoFont[<em>features</em>]{<em>fontname</em>}</code></p>
<p class="item" style="position:relative"><b>D.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> If you need a math font, then may I gently suggest that maybe <i>novel</i> is not the right document class for you?</p>
<p>Nevertheless, <i>Libertinus Math</i> is loaded if available; otherwise <i>Latin Modern Math</i>.</p>
<p>If neither of those fonts are found, then <i>NovelDeco.otf</i> will be loaded as a fake math font, with no actual math symbols. That allows you to proceed without a real math font. But if you attempt to print math, it will look wrong.</p>
<p>You may choose your own math font using <code>\setmathfont</code> from package <i>unicode-math</i>. See that package documentation for details.</p>
</div><!-- end 4.2.4 -->

<h4 id="h4.2.5">4.2.5. Advanced: Defining New Font Commands</h4>
<div class="d4" id="d4.2.5">
<p class="item"><b>A.</b> You can define new font commands in Preamble. The syntax depends on whether the new font is part of a family (where you might have bold and italic variants), or just a single file (no variants). If part of a family, use <code>\NewFontFamily</code>. If alone, use <code>\NewFontFace</code>.</p>
<p>The <code>\NewFontFamily</code> command (or <code>\NewFontFace</code>) takes three arguments: First, the name you assign to the new font command is required. Second, font features are optional. Third, the font name is required. The <i>fontspec</i> syntax is used in Preamble:</p>
<p class="code"><code>
\NewFontFamily<em>\pickaname</em>[<em>features</em>]{<em>fontfamily</em>}<br/>
\NewFontFace<em>\pickaname</em>[<em>features</em>]{<em>singlefont</em>}
</code></p>
<p>In the document body, you use the new font command:</p>
<p class="code"><code>{\pickaname Text in the font selected by pickaname command.}</code></p>
<p class="item"><b>B.</b> If you define a font <em>family</em> when you should have just defined a font <em>face</em>, there will be complaints in the log file, because the font loader cannot find the (nonexistent) other members of the family. But the document will compile.</p>
<p>On the other hand, if you define a font <em>face</em> when you should have defined a font <em>family</em>, then commands for bold or italic will have no effect, since the other family members were not loaded. Again, the document will compile.</p>
<p class="item"><b>C.</b> Example: Suppose your work is science fiction, and one if its characters is a talking robot. You wish to depict its utterances in a robotic-looking font, which will be called using a new <code>\robovoice</code> command. You shop around, and find that the <em>Orbitron</em> font suits your purpose, except that it is too large compared to your <i>main font</i>. So, you scale it.</p>
<p>In the Preamble, you define the new font command:</p>
<p class="code"><code>\NewFontFace\robovoice[Scale=0.8]{Orbitron} % not part of a family</code></p>
<p>After some experimentation, you realize that the \robovoice letters need to be spread apart a bit. Do not use <code>\textls</code>. Instead, go back and change the font definition like this:
<p class="code"><code>\NewFontFace\robovoice[Scale=0.8,LetterSpace=<em>number</em>]{Orbitron} % pick a number</code></p>
<p>In the document body:</p>
<p class="code"><code>
``Want some oil?'' asked Captain Withens.\par<br/>
{\robovoice ``Is it Gamma-42 Special oil?''} asked the robot.\par<br/>
``No, I got it on sale at Cosmo-Mart.''\par<br/>
{\robovoice ``Forget it. I'm an oil gourmet.''}\par
</code></p>
<p>The result:</p>
<p class="centerimg"><img src="html-resources/human-robot-talk.png" width="483" height="127" alt="conversation, human-robot"/></p>
<p class="item" style="position:relative"><b>D.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Caution: If you are using a new font within body text (as above), then it is a bad idea to use Scale greater than 1.0. Reason: An excessively tall font will cause lines to spread apart, and you will lose the line grid.</p>
<p class="item"><b>E.</b> <img class="floatright" src="html-resources/fluffy-conspiracy.png" width="265" height="409" alt="the fluffy conspiracy"/> Example: Suppose that you wish to style the title of your book, in a font that is not used for other things such as chapter titles. You purchase a license for the <em>Bernhard Modern Std</em> fonts, in Regular and Italic.</p>
<p>In the Preamble:</p>
<p class="code"><code>\NewFontFamily\booktitlefont{Bernhard Modern Std}</code></p>
<p>The title page, using <code><a href="#h6.1.2">\charscale</a></code> for size:</p>
<p class="code"><code>
\thispagestyle{empty}<br/>
\vspace*{7<span style="cursor:help" title="normal baseline skip">\nbs</span>}<br/>
\begin{center}<br/>
\charscale[3]{\booktitlefont The \textit{Fluffy} Conspiracy}\par<br/>
\vspace{6<span style="cursor:help" title="normal baseline skip">\nbs</span>}<br/>
\charscale[2]{Priscilla Milde}\par<br/>
\vfill<br/>
Nonexistent Publications • Portland, Oregon\par<br/>
\end{center}
</code></p>
<div style="clear:both"></div>
</div><!-- end 4.2.5 -->
</div><!-- end 4.2 -->

<h3 id="h4.3">4.3. Interior Page Layout</h3>
<div class="d3" id="d4.3">
<p class="noindent">Everything is pre-configured, specifically for the purpose of fiction. You only need to write a layout command if you don't like the defaults.</p>

<h4 id="h4.3.1">4.3.1. Margins</h4>
<div class="d4" id="d4.3.1">
<p class="noindent">Margins are globally set in Preamble:</p>
<p class="code"><code>\SetMargins{<em>top</em>}{<em>outer</em>}{<em>bottom</em>}{<em>inner</em>}</code></p>
<p>Mnemonic for order of margins (<i>Hamlet</i>): "TOBI, or not TOBI, that is the question."</p>
<p>Each of the settings must have dimension, such as <i>in</i> or <i>mm</i>.</p>
<p class="item"><b>A.</b> <b>Margins</b> are required on all four edges of the page (but not cover art). They do not have to be the same width. Generally the margin at the inside edge (spine margin) is wider. The <i>novel</i> class does not provide for marginal notes.</p>
<p class="item"><b>B.</b> In the case of fiction, it is usually the case that the inner margin is the widest. But this is not a rule for all books. All that is required is that each margin be "wide enough" for the printing process.</p>
<p class="item"><b>C.</b> Print services are not used to seeing books with exotic margins (such as bottom margin twice the size of top margin). They may think that there is a mistake in your PDF, or in the print job, if you do that.</p>
<p class="item"><img class="floatright" src="html-resources/margins-trim-media.png" width="202" height="264" title="Trim Size floated in larger Media Size" alt="Trim Size floated in larger Media Size"/><b>D.</b> Normally, your TeX document will be compiled to a PDF that is electronically at the exact Trim Size. And normally, print services want it to be that way. When you view your PDF, the text will shift from side to side as you move through the pages, due to the slightly increased margin at the inside edge.</p>
<p class="item"><b>E.</b> Margins are always relative to the Trim Size. If you are using a larger Media Size, the area outside the TrimBox is <i>not</i> counted among the margins; it is simply wasted area. This is illustrated at right, where a smaller Trim Size is floated in a marger Media Size. The margins are shown in gray.</p> 
<p class="item" style="clear:both"><img src="html-resources/topmargins.png" class="floatright" width="158" height="292" alt="top margins, with and without header" title="top margins, with and without header"/><b>F.</b> If you do not use <code>\SetMargins</code>, then margins are pre-configured. The minimum pre-configured margins are 0.5in at top, outside, and bottom, and 0.75in at inside. This meets the requirements of nearly any printing technology, unless your book is extremely thick. </p>
<p>If your Trim Size is among the larger ones, then the pre-configured margins are larger than these minimums.</p>
<p class="item"><b>G.</b> If your page layout uses header and/or footer, these elements sit within the rectangle bounded by the four margins. That is, they share the same space as main text.</p>
<p>At right, the top margin is shown in gray, for three situations. Layout #1 has a header. Layout #2 also has a header, but this particular page leaves the header empty. Layout #3 has no header.</p>
<div style="clear:both"></div>

<h5 id="h4.3.1.1">4.3.1.1. Gutter? Which Gutter?</h5>
<div class="d5" id="d4.3.1.1">
<p><img class="floatright" src="html-resources/whichgutter.png" width="276" height="219" title="Which gutter?" alt="Which gutter?"/>Be aware that there is a lot of confusion regarding the word "gutter."</p>
<p>In the accompanying diagram, the central shaded area is at the spine, where there must be an allowance for the book assembly process. "Gutter" might mean any of A, B, C, or D, depending on who is doing the talking, and which software is in use.</p>
<p>The <i>novel</i> class uses <em>inner margin</em>, also known as <em>spine margin</em>, to mean <i>C</i>. There is no setting for "gutter" as such.</p>
<div style="clear:both"></div>
</div><!-- end 4.3.1.1 -->

<h5 id="h4.3.1.2">4.3.1.2. Unsafe Zone</h5>
<div class="d5" id="d4.3.1.2">
<p class="noindent">Optional global setting, in Preamble:</p>
<p class="code"><code>\SetUnsafeZone{<em>top</em>}{<em>outer</em>}{<em>bottom</em>}{<em>inner</em>}</code></p>
<p class="item"><b>A.</b> This applies only to interior text block. Although cover artwork has unsafe zones, they are specified by a graphic design template.</p>
<p class="item"><img class="floatright" src="html-resources/unsafe-vs-margin.png" width="228" height="150" title="unsafe zone vs margin" alt="unsafe zone vs margin"/><b>B.</b> Printers have a "safe zone," where you are allowed to place text and images. The area outside the safe zone is the "unsafe zone." If anything lies within the unsafe zone, even in part, then the file may print badly, or be rejected by commercial printers.</p>
<p class="item"><b>C.</b> Unsafe zone is a sub-area of the margins. That is, the margins include the unsafe zone (if set), and usually some additional area. The accompanying image shows a page with narrow unsafe zone, and wider margin.</p>
<p class="item"><b>D.</b> Some printers describe the unsafe zone as "minimum margin." But in most cases, visually appealing margins are wider than the unsafe zone. You may be able to place items out there, for special effects.</p>
<p class="item"><b>E.</b> You do not need to set the unsafe zone. Whether or not you do, and regardless of any values you choose, the result does not affect the finished, final PDF. The zones are not enforced. Margins are unaffected.</p>
<p class="item"><b>F.</b> If you set unsafe zone, then the unsafe area will have a dark gray background, when you use <code>[draft,shademargins]</code> as class options. This allows you to visualize whether anything intrudes into the unsafe zone.</p>
<div style="clear:both"></div>
</div><!-- end 4.3.1.2 -->
</div><!-- end 4.3.1 -->

<h4 id="h4.3.2">4.3.2. Lines Per Page</h4>
<div class="d4" id="d4.3.2">
<p class="item"><b>A.</b> Lines per page refers only to the textblock, and does <em>not</em> include header/footer. Lines are not stretched to fill short pages.</p>
<p class="item"><b>B.</b> By default, a suitable number of lines per page are automatically set, based on other dimensions. You can change the default with this command, in Preamble:</p>
<p class="code"><code>\SetLinesPerPage{<em>integer</em>}</code></p>
<p> Any non-integer will be rounded. There is no direct command to set the <em>leading</em>, also known as line-to-line spacing or <em>baselineskip</em>. Instead, it is calculated from the textblock height and number of lines.</p>
<p class="item"><b>C.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> If you change any other dimensions (margins, head/foot, font size, etc.) then the calculated default number of lines per page will probably change. If you like the initial default value, then set it manually.</p>
<p class="item" style="position:relative"><b>D.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> If the calculated leading is less than <i>1.2x</i> the font size, an error will result. It is difficult for TeX to honor all layout settings with such a small leading, which would normally be unacceptable for fiction in any case.</p>
<p>If the calculated leading is at least <i>1.2x</i> the normal size, but less than <i>1.25x</i> the normal size, then the log file will have an Alert message, suggesting that you should consider using fewer lines per page. If the leading exceeds <i>1.4x</i> the font size, then the log will have an Alert, suggesting more lines per page. The Alert messages are friendly; you do not necessarily have to do anything.</p>
</div><!-- end 4.3.2 -->

<h4 id="h4.3.3">4.3.3. Global Header/Footer Styles</h4>
<div class="d4" id="d4.3.3">
<p class="item"><b>A.</b> Global choice of header/footer style is made in Preamble. Although some individual pages may have no visible header or footer, in reality the header/footer is "still there" in terms of occupying space, but has no content.</p>
<p class="item"><b>B.</b> There are six pre-configured header/footer styles, numbered <i>1</i> through <i>6</i>. These address every style I have seen in fiction. When you choose one of these styles, it reserves space for a header (if any) above the main text, and space for a footer (if any) below the main text. You may <i>not</i> write multi-line headers or footers.</p>
<p class="item"><b>C.</b> The default style is <i>1</i>, which has header, but no footer. Page numbers appear at the outside. Text (such as author or title) appears centered.</p>
<p class="item"><b>D.</b> Style <i>0</i> has no header or footer. This is not used in fiction, but it is available.</p>
<p class="item"><b>E.</b> Throughout the body of your document, you can use <a href="#h4.3.5">local commands</a> to <a href="#h4.3.4.6">change the content</a> of headers and footers, or blank them. But you may not change the global header/footer style mid-document.</p>

<h5 id="h4.3.3.1">4.3.3.1. List of Header/Footer Style Choices</h5>
<div class="d5" id="d4.3.3.1">
<p>&nbsp;</p>
<img class="floatright" style="margin-bottom:8px" src="html-resources/headfoot1.png" width="276" height="219" alt="style 1" title="style 1"/>
<p class="overhang">
<code><b>\SetHeadFootStyle{1}</b></code><br/>
Only Header.<br/>
Page number at outside (left verso, right recto).<br/>
Optional emblem adjacent to page number.<br/>
Text centered. Default author verso, title recto.<br/>
<em>This is the default for the novel document class.</em></p>
<div style="clear:both"></div>
<img class="floatright" style="margin-bottom:8px" src="html-resources/headfoot2.png" width="276" height="219" alt="style 2" title="style 2"/>
<p class="overhang">
<code><b>\SetHeadFootStyle{2}</b></code><br/>
Only Footer.<br/>
Page number at outside (left verso, right recto).<br/>
Optional emblem adjacent to page number.</p>
<div style="clear:both"></div>
<img class="floatright" style="margin-bottom:8px" src="html-resources/headfoot3.png" width="276" height="219" alt="style 3" title="style 3"/>
<p class="overhang">
<code><b>\SetHeadFootStyle{3}</b></code><br/>
Only Footer.<br/>
Page number centered.<br/>
Disregards emblem, if coded.</p>
<div style="clear:both"></div>
<img class="floatright" style="margin-bottom:8px" src="html-resources/headfoot4.png" width="276" height="219" alt="style 4" title="style 4"/>
<p class="overhang">
<code><b>\SetHeadFootStyle{4}</b></code><br/>
Only Header.<br/>
Page number at outside (left verso, right recto).<br/>
Optional emblem adjacent to page number.<br/>
Text towards outside, instead of centered.<br/>
Text begins or ends 1em from the emblem.<br/>
Default author verso, title recto.</p>
<div style="clear:both"></div>
<img class="floatright" style="margin-bottom:8px" src="html-resources/headfoot5.png" width="276" height="219" alt="style 5" title="style 5"/>
<p class="overhang">
<code><b>\SetHeadFootStyle{5}</b></code><br/>
Header and Footer.<br/>
Page number centered in footer.<br/>
Disregards emblem, if coded.<br/>
Text centered in header.<br/>
Default author verso, title recto.</p>
<div style="clear:both"></div>
<img class="floatright" style="margin-bottom:8px" src="html-resources/headfoot6.png" width="276" height="219" alt="style 6" title="style 6"/>
<p class="overhang">
<code><b>\SetHeadFootStyle{6}</b></code><br/>
Only Header.<br/>
Page number at outside (left verso, right recto).<br/>
Optional emblem adjacent to page number.<br/>
Text towards inside, instead of centered.<br/>
Default author verso, title recto.</p>
<div style="clear:both"></div>
</div><!-- end 4.3.3.1 -->

<h5 id="h4.3.3.2">4.3.3.2. Custom Header/Footer Style</h5>
<div class="d5" id="d4.3.3.2">
<p class="item"><b>A.</b> Before you think about writing a custom header/footer style, be sure to try the above pre-configured choices. I have looked through a lot of fiction of all kinds. The pre-configured choices include every style I have seen, with the exception of the most highly decorative.</p>
<p class="item"><b>B.</b> If none of the above are satisfactory, then you can write your own headers and footers using the syntax of the <i>fancyhdr</i> package. Strategy:</p>
<p>&bull; In the Preamble, you must use one of the above <code>\SetHeadFootStyle</code> choices to pick a starting point, in terms of whether or not there is a header and/or footer. <em>This is required, so that the layout engine knows how to calculate space.</em> After that, write the <i>fancyhdr</i> code for your custom header/footer in the Preamble. It will over-ride the numerical style in terms of appearance, but occupy the same space.</p>
<p>&bull; You normally cannot use a header or footer with more than one line. If you have the expertise, two lines can be used, with sufficient <a href="#h4.3.4.1">jump</a>. Not recommended, and not documented.</p>
<p>&bull; See the file <i>novel-HeadFootStyles.sty</i> for how it is done in the pre-configured styles. In the file, the relevant portion follows <em>Look here for the pre-defined styles, for use as models.</em></p>
<p>&bull; Particularly note that your own style will not automatically use the <i>head font</i>, or add extra space between letters, unless you include the necessary code in your own definition. Do not use the <code>\textls</code> command.</p>
<p>&bull; No cheating! If you choose a numerical style that does not have a header, then do not attempt to write a custom style that includes a header. Same with footer. Also, if you you choose a numerical style with both header and footer, then you cannot only customize one of them; you must customize both.</p>
</div><!-- end 4.3.3.2 -->
</div><!-- end 4.3.3 -->

<h4 id="h4.3.4">4.3.4. Tweaking the Global Header/Footer Style</h4>
<div class="d4" id="d4.3.4">
<p class="noindent">You may customize the appearance, and to some extent the content, of the various parts of the header and footer. These are global settings, in Preamble.</p>

<h5 id="h4.3.4.1">4.3.4.1. Gap Between Header/Footer and Main Text</h5>
<div class="d5" id="d4.3.4.1">
<p class="code"><code>\SetHeadJump{<em>number</em>}</code>, <code>\SetFootJump{<em>number</em>}</code></p>
<p class="item"><b>A.</b> These two commands control the separation between the header/footer and the main text. If your style does not have a header and/or footer, then the corresponding setting will be ignored.</p>

<p class="item"><b>B.</b> The head and/or foot "jump" is a multiple of the normal baseline skip. Each value is a number between 1 and 3, and may be decimal. The jumps do not need to be identical. Default is 1.5 for each. Measurements are from baseline to baseline.</p>
<p class="centerimg" style="text-indent:0px"><img src="html-resources/head-foot-jumps.png" width="552" height="151" alt="headjump and footjump" title="headjump and footjump"/></p>
<p class="item"><img src="html-resources/jump-change.png" class="floatright" style="padding-top:12px" width="360" height="272" alt="jump changes" title="jump changes"/><b>C.</b> When a "jump" is changed, its header or footer remains in the same place. The margins are unchanged.</p>
<p class="item"><b>D.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> If you <a href="#h4.3.2">manually choose</a> the number of lines per page, then it will remain the same when you change "jump." The inter-line spacing (baselineskip) will change.</p>
<p>However, if you allow <i>novel</i> to use the default number of lines per page, then it will change when "jump" is changed.</p>
<p class="item"><b>E.</b> Note that <i>novel</i> does not use arcane settings such as <i>headsep</i>, <i>footskip</i>, or <i>headheight</i>. Those TeX internals are automatically calculated.</p>
<p class="item" style="clear:both"><b>F.</b> The distance from the topmost baseline (whether header or main text), to the top margin, is fixed at 1 normal em. This provides adequate clearance for capital letters with upper diacritical marks.</p>
<p>The distance from the lowermost baseline (whether main text or footer), to the lower margin, is fixed at 0.3 normal em. This provides adequate clearance for descenders.</p>
<p class="item"><b>G.</b> When in draft mode, the <code>shademargins</code> option shades the margins in medium gray, and shades the area reserved for header/footer in light gray. This was used in the above image.</p>
<p class="item" style="position:relative"><b>H.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> The head/foot jumps are global, and cannot be changed later in the document.</p>
</div><!-- end 4.3.4.1 -->

<h5 id="h4.3.4.2">4.3.4.2. <code>\SetHeadFont[<em>features</em>]{<em>font</em>}</code></h5>
<div class="d5" id="d4.3.4.2">
<p class="item"><b>A.</b> The <i>novel</i> pre-configured header/footer styles automatically use the <em>head font</em>, which is pre-defined as a variation of the parent font: scaled to slightly smaller size, using lining numbers (if available), and small caps (if available). This is a general-purpose style, widely used in fiction. It may not be the most artistic, but it is unlikely to cause visual distraction:</p>
<p class="centerimg"><img src="html-resources/headfont-default.png" width="419" height="81" title="default head font" alt="default head font"/></p>
<p class="item"><b>B.</b> If you would like to use something else as <i>head font</i>, use <code>\SetHeadFont</code> to define it by its font name and Open Type features.</p>
<p>In the simplest case, you merely pick an Open Type (or TrueType) font, and <i>novel</i> automatically adds some Open Type features, including small caps:</p>
<p class="code"><code>\SetHeadFont{Roboto}</code></p>
<p class="centerimg"><img src="html-resources/headfont-roboto.png" width="419" height="81" title="Roboto head font" alt="Roboto head font"/></p>
<p class="item"><b>C.</b> The above example is not best if your style has header text, because the <i>head font</i> is too pronounced, compared to the main text. A more complex example uses <i>fontspec</i> syntax to customize the Open Type Features:</p>
<p class="code"><code>\SetHeadFont[Scale=0.75,Numbers=Lining,%<br/>
Letters=SmallCaps,%<br/>
Letters=UppercaseSmallCaps,%<br/>
ItalicFont=Montserrat-ExtraLightItalic.otf]%<br/>
{Montserrat-ExtraLight.otf}</code></p>
<p class="centerimg"><img src="html-resources/headfont-montserrat-el.png" width="419" height="81" title="Montserrat EL head font" alt="Montserrat EL head font"/></p>
<p class="item" style="position:relative"><b>D.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> If you do <i>not</i> want SmallCaps to be automatically added, use <code>Letters=ResetAll</code> as a feature:</p>
<p class="code"><code>\SetHeadFont[Letters=ResetAll]{\parentfontname}</code></p>
<div style="clear:both"></div>
</div><!-- end 4.3.4.2 -->

<h5 id="h4.3.4.3">4.3.4.3. <code>\SetLooseHead{<em>number</em>}</code></h5>
<div class="d5" id="d4.3.4.3">
<p class="item"><b>A.</b> This command applies to both headers and footers, but its effect is most noticeable when the style has header text.</p>
<p class="item"><b>B.</b> For best appearance of header text, its characters should be adjusted with a little extra space (tracking) between them, so that they are more easily distinguished from the main text. This is especially true if you are using small caps.</p>
<p class="centerimg"><img src="html-resources/looseheads.png" width="400" height="76" alt="loosehead 50 and 100"/></p>
<p class="item"><b>C.</b> The argument of <code>\SetLooseHead</code> is a number from <i>0</i> to <i>200</i>. At <i>0</i> there is no extra space between the letters. Values from <i>50</i> (default) to <i>100</i> are most useful.</p>
<p class="item"><b>D.</b> Page number tracking will be clamped at a maximum of <i>50</i>, even when a larger (looser) tracking is applied to text.</p>
<p class="item" style="position:relative"><b>E.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Do not use the <code>\textls</code> command. It is disabled in <i>novel</i>.</p>
<div style="clear:both"></div>
</div><!-- end 4.3.4.3 -->

<h5 id="h4.3.4.4">4.3.4.4. <code>\SetPageNumberStyle{<em>code using \thepage</em>}</code></h5>
<div class="d5" id="d4.3.4.4">
<p class="item"><b>A.</b> By default, the page number is styled using <i>head font</i>, but without small caps (so that page roman xiv does not show as XIV).</p>
<p class="item"><b>B.</b> If you wish to change how the page number is displayed, you can style it using <code>\SetPageNumber</code> with an argument that uses <code>\thepage</code>. Examples:</p>
<p class="code" style="text-indent:0px"><code>\SetPageNumberStyle{\textit{\thepage}} % Page number in italics.<br/>
\SetPageNumberStyle{-- \thepage{} --} % En-dashes, style 3 or 5.</code></p>
<p class="item"><b>C.</b> The <i>head font</i> is applied automatically, unless you over-ride it in your code. For example, suppose you would like the page numbers (but not anything else in header/footer) to be in a different font, which you have defined in Preamble as <code>\yourpnfont</code> using <code>\NewFontFamily</code> or <code>\NewFontFace</code>. Then you could write:</p>
<p class="code"><code>\SetPageNumberStyle{{\yourpnfont\thepage}}</code> % note double braces</p>
<p class="item" style="position:relative"><b>D.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Avoid over-doing it. If you are tempted to use a macro that counts page numbers backwards, or writes them upside-down, be aware that your print service will likely reject it. Anyway, it has already been done in fiction.</p>
<div style="clear:both"></div>
</div><!-- end 4.3.4.4 -->

<h5 id="h4.3.4.5">4.3.4.5. <code>\SetEmblems{<em>verso</em>}{<em>recto</em>}</code></h5>
<div class="d5" id="d4.3.4.5">
<p class="item"><b>A.</b> If the head/foot style supports it, you may place an "emblem" that appears at a fixed distance (2.5em) from the outer margin. Thus, it will appear to the right of the page number on verso pages, and to the left of the page number on recto pages. In the case of style <i>4</i>, there will be a clearance of 1em between the emblem and the header text.</p>
<p class="item"><b>B.</b> Emblems are minor decorations that should not distract the eye from the main text. If the style supports emblems but you do not set them, then no emblems are placed.</p>
<p class="item"><b>C.</b> <img class="floatright" src="html-resources/emblembar.png" width="380" height="104" alt="simple emblems using vertical bar"/> Most books do not use an emblem. When they do, it is typically a vertical bar, or a bullet, like this:</p>
<p class="code"><code>\SetHeadFootStyle{4}</code></p>
<p class="code"><code>\SetEmblems{|}{|}</code></p>
<p class="item"><b>D.</b> The font used for emblems will be the same as the <i>head font</i>, unless you specifically code the emblem to use a different font, or unless you use one of the built-in <code>\decoglyph</code> codes.</p>
<p class="item"><b>E.</b> The verso and recto emblems may be different. If you set one side, you must also set the other. Blanks are allowed.</p>
<p class="item"><b>F.</b> <img class="floatright" src="html-resources/emblemdingbats.png" width="380" height="104" alt="dingbat emblems"/> Emblems may be styled. For example, the header emblems shown at right were produced using the code below. Dingbats from the NovelDeco font were specified, adjusted for size and position.</p>
<p style="clear:both" class="code"><code>\SetEmblems{\charscale{1.1}{\raisebox{-0.05em}{\decoglyph{l9825}}}}%</code></p>
<p class="code"><code>{\charscale{1.1}{\raisebox{-0.05em}{\decoglyph{l9826}}}}</code></p>
<div style="clear:both"></div>
<p class="item"><b>G.</b> You may also use images, or combined images and text. If you use images, they must be at the exact resolution required by your print service (typically 300dpi for gray, 800dpi for b/w), and at exact size without scaling. The <code><a href="#h7.2.2">\InlineImage</a></code> command must be used. You may find that a vertical offset of <code>\nfs</code> (normal font size) is useful, as this will place the top of the emblem image at the top margin.</p>
<p class="code" style="text-indent:0px"><img class="floatright" src="html-resources/emblemimg.png" width="295" height="77" alt="emblem image"/>
<code>\SetHeadFootStyle{4}<br/>
\SetEmblems{\InlineImage[0pt,b]{spy.png}}%<br/>
{\InlineImage[0pt,b]{spy.png}}
</code></p>
<p class="item" style="position:relative"><b>H.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> At the small size of an emblem, it is difficult to use detailed artwork. A black/white image at 800dpi will print similarly to a font dingbat. Grayscale at 300dpi will probably not be satisfactory unless the emblem is a single shade of gray. For the above example, a character from the <i>Fontawesome</i> font was converted to a png image at mid-gray. It is less distracting than a black character from the font, but hard to discern. Note that "gray ink" will not be used for your book.</p>
<p>Ask your print service whether the presence of a small image in each page header will affect production costs. Probably not, but if there is a different per-page charge when pages have an image... Oops!</p>
<p class="item" style="position:relative"><b>I.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> The layout calculation does not care whether emblems intrude into the margins. You will have to inspect your PDF to determine whether a header emblem is too tall, or a footer emblem too deep, for the allowed top and bottom margin clearance. Class option <i>shademargins</i> (in draft mode only) is helpful.</p>
<div style="clear:both"></div>
</div><!-- end 4.3.4.5 -->

<h5 id="h4.3.4.6">4.3.4.6. Setting and Changing Header Text</h5>
<div class="d5" id="d4.3.4.6">
<p class="item"><b>A.</b> If you are using <a href="#h4.3.3.1">head/foot style</a> <i>1</i>, <i>4</i>, <i>5</i>, or <i>6</i>, it has text in the header. By default, that text is the author on verso pages, the title on recto pages. That is an accepted design for fiction, but it is not always the appropriate thing to do.</p>
<p>For example, in exotic cases you may use something such as <code>\SetTitle{ISBN9780123456789TEXTBLOCK}</code>, instead of the book's actual title, if required for the printer's database. Obviously you do not want that to appear in page headings!</p>
<p class="item"><b>B.</b> Header text may be changed to whatever you wish (as long as it fits):</p>
<p class="code"><code>\SetVersoHeadText{<em>text</em>}</code><br/>
<code>\SetRectoHeadText{<em>text</em>}</code></p>
<p class="item"><b>C.</b> These commands can be used <i>both</i> in Preamble <i>and</i> in the document body. Whatever you set will take effect immediately (for pages that have header text) and remain in effect until changed by repeating these commands. For example, you might want to do that for a collection of short stories, or if your book has a Preface.</p>
<p class="item"><b>D.</b> You may use ordinary LaTeX styling commands for the text:</p>
<p class="code"><code>\SetRectoHeadText{The \emph{Bad Boy} Chronicles}</code></p>
<p>You may also do more complicated things, such as setting certain words in a font other than the <i>head font</i>. This is not advised, because you do not want to distract the reader from the main text; but it can be done.</p>
<p class="item" style="position:relative"><b>E.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Avoid bold. Avoid underline. Really. Don't do it. No, no, no!</p>
</div><!-- end 4.3.4.6 -->
</div><!-- end 4.3.4 -->

<h4 id="h4.3.5">4.3.5. Header/Footer Exceptional Pages</h4>
<div class="d4" id="d4.3.5">
<p class="noindent">There are a number of cases where a specific page must have a header/footer style that appears to differ from the global style. The key words are "appears to differ." The global header/footer is always there, in terms of vertical space. But either or both may be blank, or have unusual content, on certain pages.</p>

<h5 id="h4.3.5.1">4.3.5.1. <code>\thispagestyle{<em>choice</em>}</code></h5>
<div class="d5" id="d4.3.5.1">
<p class="item"><b>A.</b> Command <code>\thispagestyle</code> is used in the document body, not Preamble. It changes the appearance of header/footer, only for the page on which the command appears. Ideally the command is used immediately after <code>\clearpage</code> or <code>\cleartorecto</code>, so that the applicable page is certain.</p>
<p class="item"><b>B.</b> The command will be effective if used anywhere on a page, as long as you are certain <i>which</i> page is current. So, if you know that a particular portion of text runs exactly two pages before <code>\clearpage</code>, you can use <code>\thispagestyle</code> at the beginning and end of the text, so that it applies to both pages.</p>
<p class="item"><b>C.</b> The choice of page style is <i>not</i> one of the numbered global head/foot styles. Instead, choose from the following list. These are more versatile than the choices available in other TeX document classes. They are: <i>fancy</i>, <i>empty</i>, <i>footer</i>, <i>forcenumber</i>, <i>dropfoliobeneath</i>, and <i>dropfolioinside</i>. If you choose <i>plain</i>, you will get <i>footer</i>, but that might not be what you want.</p>
<p class="overhang"><code><b>\thispagestyle{fancy}</b></code><br/>
This applies the default (fancy) page style, so it is not normally needed. Only use this command to over-ride some other <code>\thispagestyle</code> command, or to over-ride the <code>\SetChapterStartStyle</code> setting.</p>
<p class="overhang"><code><b>\thispagestyle{empty}</b></code><br/>
Header and footer are both blank.</p>
<p class="overhang"><code><b>\thispagestyle{footer}</b></code><br/>
Ignored if the style has no footer. If it does, then the usual footer appears. Note that this does <i>not</i> cause a page number to appear, when the style has no footer. Header, if any, is blank.</p>
<p class="overhang"><code><b>\thispagestyle{forcenumber}</b></code><br/>
If the style has a footer, then it appears as usual, and the header (if any) is blank. If the style has a header but no footer, then the outside portion of the header (which is presumed to contain the page number and emblem) appears, but the text portion of the header is blank.<br/>
&bull; The <i>forcenumber</i> choice is non-standard. Use it only if you must have a page number, and no other choice is suitable.</p>
<p class="overhang"><code><b>\thispagestyle{dropfoliobeneath}</b></code><br/>
In this context, "folio" means page number. The header (if any) is blank. If there is a footer, then it appears as usual. But if there is no footer, this command creates a one-page fake footer, which contains the centered page number. The fake footer is located where the next line of text would be, if the textblock were one line longer than its actual value.<br/>
&bull; For the fake footer to be acceptable in print, the bottom margin must be wider than the minimum amount required by your print service. For example, suppose that the minimum bottom margin is 0.5in, but you set the bottom margin to 0.75in. That gives you 0.25in wiggle room, into which the fake footer will probably fit, because typical baselineskip is 0.2in to 0.25in.<br/>
&bull; The document class does not know whether or not you have extra space available in the bottom margin. It is your responsibility to know.</p>
<p class="overhang">&nbsp; <code><b>\thispagestyle{dropfolioinside}</b></code><br/>
In this context, "folio" means page number. The header (if any) is blank. If there is a footer, then it appears as usual. But if there is no footer, this commands temporarily reduces the number of lines per page by one. At the bottom, where the last line of text would normally be, the page number is centered. Thus, there is no intrusion into the bottom margin.<br/>
&bull; This command may only be used following <code>\clearpage</code>. Thus, it may be used at the start of new chapters, or on pages that do not flow from a previous page. If you use it elsewhere, the print will have incorrect layout, but there will be no error or warning, since the compiler is not sure what you are trying to do.<br/>
&bull; If used on a page with <i>ChapterStart</i> environment, you must place <code>\thispagestyle{dropfolioinside}</code> <em>before</em> <code>\begin{ChapterStart}</code>. Reason: The <i>ChapterStart</i> block has a disposable blank line at its top, which is removed when <i>dropfolioinside</i> is used (instead of removing a line from the following text block).<br/>
&bull; With this style, the specified height of <i>ChapterStart</i> must be <i>4</i> or more. This command will reduce it to 3 or more.</p>
<div style="clear:both"></div>
</div><!-- end 4.3.5.1 -->

<h5 id="h4.3.5.2">4.3.5.2. <code>\SetChapterStartStyle{<em>choice</em>}</code></h5>
<div class="d5" id="d4.3.5.2">
<p class="item"><b>A.</b> The first page of each chapter, or of a section that is styled like a chapter, is usually an exception to the global page style.</p>
<p class="item"><b>B.</b> In Preamble, <code>\SetChapterStartStyle</code> sets the default <code>thispagestyle</code> that will be applied on pages with the <i>ChapterStart</i> environment. You may still over-ride locally.</p>
<p class="item"><b>B.</b> The choices are the same as available for <code>\thispagestyle</code>. Default is <i>footer</i>.</p>
</div><!-- end 4.3.5.2 -->
</div><!-- end 4.3.5 -->
</div><!-- end 4.3 -->


</div><!-- end 4 -->
</div><!-- end page04 -->
<!-- ************************************************************ -->
<div id="page05" class="page">


<h2 id="h5">5. Chapters and Chapter-Like Sections</h2>
<div class="d2" id="d5">
<p class="noindent">This section describes how chapters are designed. The <i>novel</i> class has commands specifically for this purpose. Do not use the ordinary TeX <code>\chapter</code> command, or any other TeX partitioning such as <code>\section</code>.</p>
<p>This also applies to content that is styled like a chapter, regardless of what it is called or where it appears. For example, if your book's front matter has a Preface, it is probably styled like a chapter. Something such as Acknowledgements might or might not be styled like a chapter, depending on length. Advice can be found in <a href="#h8">section 8</a> of this documentation, regarding Book Design.</p>

<h3 id="h5.1">5.1. Starting a Chapter</h3>
<div class="d3" id="d5.1">
<p class="noindent">Unlike most other TeX document classes, <i>novel</i> does <i>not</i> honor the <code>\chapter</code> command. And, <i>novel</i> does <i>not</i> automatically start chapters on a new page.</p>

<h4 id="h5.1.1">5.1.1. <code>\clearpage</code> or <code>\cleartorecto</code></h4>
<div class="d4" id="d5.1.1">
<p class="item"><b>A.</b> Unless your chapters run continuously without page break, begin a new chapter using <code>\clearpage</code> or <code>\cleartorecto</code>. The first of these provides a new page, which will be verso or recto, without skipping a page. The second forces the chapter to begin on a recto page, if necessary inserting a blank verso.</p>
<p class="item"><b>B.</b> The common modern practice in fiction is to allow new chapters to begin either verso or recto, once you get past Chapter One. The only recent book I've read (from a major publisher), where chapters always started recto, had about 20 blank pages throughout the story. I believe the reason was to pad the book, so that it looked bigger. If you are using an American P.O.D. service, such padding might knock about $0.10 (estimated) from your profit, for each copy sold. So it's up to you to think about the tradeoffs between style, profit per book, and expected sales.</p>
<p class="item"><b>C.</b> Prologue (if any), Chapter One, Epilogue (if any), and other special sections always begin recto.</p>
<p class="item" style="position:relative"><b>D.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Don't worry about using <code>\clearpage</code> or <code>\cleartorecto</code> twice. The compiler is smart enough to understand that you only meant to do it once, as long as there is no other code in between.</p>
</div><!-- end 5.1.1 -->

<h4 id="h5.1.2">5.1.2. ChapterStart Environment</h4>
<div class="d4" id="d5.1.2">
<p class="item"><b>A.</b> The ChapterStart environment creates a block of white space, with a fixed height (number of normal lines). If you do not place much inside it, or even if you place nothing inside it, the space is the same.</p>
<p class="item"><b>B.</b> If you place too much inside it, the space does not grow. Instead, the excess material overflows the bottom of the environment. There, the excess will underlie the main text. This is usually undesirable, but can sometimes be used for special effects.</p>

<h5 id="h5.1.2.1">5.1.2.1. <code>\SetChapterStartStyle{<em>choice</em>}</code></h5>
<div class="d5" id="d5.1.2.1">
<p class="item"><b>A.</b> This command may be used in Preamble. Its default setting is <i>footer</i>.</p>
<p class="item"><b>B.</b> In most cases, a <i>ChapterStart</i> page has a head/foot style that differs from the global default. Instead of writing <code><a href="#h4.3.5.1">\thispagestyle</a></code> commands for every chapter, use <code>\SetChapterStartStyle</code> to pick a style that will be applied wherever <i>ChapterStart</i> is used. The available choices are: fancy, footer, empty, dropfoliobeneath, dropfolioinside, forcenumber.</p>
<p class="item"><b>C.</b> Regardless of this setting, you can over-ride the style on a per-chapter basis, via an optional argument at the beginning of the <i>ChapterStart</i> environment.</p>
</div><!-- end 5.1.2.1 -->

<h5 id="h5.1.2.2">5.1.2.2. <code>\SetChapterStartHeight{<em>lines</em>}</code></h5>
<div class="d5" id="d5.1.2.2">
<p class="item"><b>A.</b> This command may be used in Preamble. Its default setting is <i>10</i>.</p>
<p class="item"><b>B.</b> This command sets the default height of the <i>ChapterStart</i> environment, measured as an integer number of normal lines. The smallest value is <i>3</i>.</p>
<p class="item"><b>C.</b> However, if the chapter also uses <i>dropfolioinside</i>, then the smallest value is <i>4</i>, because one line is lost when processing the <i>dropfolioinside</i> command.</p>
<p class="item"><b>D.</b> Regardless of this setting, you can over-ride the height on a per-chapter basis, via an optional argument at the beginning of the <i>ChapterStart</i> environment.</p>
</div><!-- end 5.1.2.2 -->

<h5 id="h5.1.2.3">5.1.2.3. <code>\begin{ChapterStart}[<em>lines</em>][<em>style</em>]</code></h5>
<div class="d5" id="d5.1.2.3">
<p class="item"><b>A.</b> The <i>ChapterStart</i> environment takes up to two optional arguments.</p>
<p class="item"><b>B.</b> The first optional argument over-rides the default height of <i>ChapterStart</i>, for just this chapter. Its smallest value is <i>3</i>, except that its smallest value is <i>4</i> when <i>dropfolioinside</i> is used.</p>
<p class="item"><b>C.</b> The second optional argument over-rides the header/footer style, for just this chapter. If you use the second optional argument, it must be one of the allowed choices for <code>\thispagestyle</code>, namely: fancy, footer, empty, dropfoliobeneath, dropfolioinside, forcenumber.</p>
<p class="item"><b>D.</b> To use the second argument without the first, place an asterisk: <code>[*][<em>style</em>]</code></p>
<p class="item"><b>E.</b> Whatever you place within <i>ChapterStart</i> will probably be higher on the page than you would like. To move it down, use the <code>\vspace*{<em>length</em>}</code> command (with asterisk) immediately after the environment begins.</p>
<p>As with all environments, this one must be closed using <code>\end{ChapterStart}</code>.</p>
</div><!-- end 5.1.2.3 -->
</div><!-- end 5.1.2 -->

<h4 id="h5.1.3">5.1.3. Chapter Title, Subtitle, Deco, Epigraph</h4>
<div class="d4" id="d5.1.3">
<p class="noindent">You can put anything you like within <i>ChapterStart</i>, including ordinary text and even images. All <i>ChapterStart</i> does is reserve a fixed space. However, there are special commands that make it easy to place a chapter title, chapter subtitle, and decorative element.</p>

<h5 id="h5.1.3.1">5.1.3.1. <code>\SetChapterFont[<em>features</em>]{<em>font</em>}</code><br/>
<span class="dbloc">5.1.3.1 &nbsp; </span><code>\SetSubchFont[<em>features</em>]{<em>font</em>}</code></h5>
<div class="d5" id="d5.1.3.1">
<p class="item"><b>A.</b> These global commands may be used in Preamble. They create font commands <code>\chapterfont</code> and <code>\subchfont</code> that may be used to style text anywhere in your document, like this:</p>
<p class="code"><code>{\chapterfont <em>text</em>}<br/>
{\subchfont <em>text</em>}</code></p>
<p class="item"><b>B.</b> The <i>chapter font</i> is automatically applied to text in <code>\ChapterTitle</code> commands.</p>
<p class="item"><b>C.</b> The <i>subch</i> font is automatically applied to text in chapter subtitles (see below).</p>
<p class="item"><b>D.</b> These fonts are pre-configured, based on the document's parent font. They have TeX ligatures and kerning, and use Lining numbers instead of Old Style. The <i>chapter font</i> is scaled at 1.6, and the <i>subch font</i> is scaled at 1.2, compared to normal font size. Ordinary (common) ligatures are not used, because such ligatures are best avoided with enlarged text.</p>
<p class="item"><b>E.</b> If you don't like the pre-configured fonts, then you may specify your own, using <i>fontspec</i> syntax. Here is what the default codes look like:</p>
<p class="code"><code>\SetChapterFont[Numbers=Lining,Scale=1.6]{\parentfont}<br/>
\SetSubchFont[Numbers=Lining,Scale=1.2]{\parentfont}</code></p>
</div><!-- end 5.1.3.1 -->

<h5 id="h5.1.3.2">5.1.3.2. <code>\ChapterTitle[<em>alignment</em>]{<em>text</em>}</code><br/>
<span class="dbloc">5.1.3.2. &nbsp; </span><code>\ChapterSubtitle[<em>alignment</em>]{<em>text</em>}</code></h5>
<div class="d5" id="d5.1.3.2">
<p class="item"><b>A.</b> Text within <code>\ChapterTitle</code> is styled using the <i>chapter font</i>, and text within <code>\ChapterSubtitle</code> is automatically styled using the <i>subch font</i>.</p>
<p class="item"><b>B.</b> You can locally over-ride these fonts, using font commands in the text.</p>
<p class="item"><b>C.</b> The optional <i>alignment</i> controls how the element is horizontally placed. Choices are <i>l</i>, <i>c</i>, <i>r</i> (left, center, right). Default <i>c</i>.</p>
<p class="item"><b>D.</b> You don't have to use either of these commands. Or, you can use either of them more than once! All these commands do is style the text. They do not have any meaning that is controlled by other macros.</p>
<p class="item"><b>E.</b> The styled text is limited to one line (no wrap) per command. If you have a long chapter title or subtitle, then break it into pieces of manageable size, by repeating the command(s). Example:</p>
<p class="code"><img class="floatright" src="html-resources/chaptertitlesubtitle.png" width="338" height="179" title="chapter title and subtitle, left aligned" alt="chapter title and subtitle, left aligned"/>
<code><small>
\begin{ChapterStart}<br/>
\vspace{2<span style="cursor:help" title="normal baseline skip">\nbs</span>}<br/>
\ChapterTitle[l]{XV}<br/>
\vspace{<span style="cursor:help" title="normal baseline skip">\nbs</span>}<br/>
\ChapterSubtitle[l]{In which Lord Withens, returned from his quest,}<br/>
\ChapterSubtitle[l]{encounters an Army of Gnomes at his castle gate.}<br/>
\end{\ChapterStart}<br/>
Following the dark and stormy night, it was a bright and sunny day. That did nothing to improve the demeanor of Lord Withens, who was still soaked from riding through the rain. ...\par
</small></code></p>
</div><!-- end 5.1.3.2 -->

<h5 id="h5.1.3.3">5.1.3.3. <code>\ChapterDeco[<em>alignment scale</em>]{<em>text</em>}</code></h5>
<div class="d5" id="d5.1.3.3">
<p class="item"><b>A.</b> This command is simply a way for you to remember that its content is neither the title nor subtitle of the chapter. Typical usage is to place a decorative element.</p>
<p class="item"><b>B.</b> There is a single command option, which is parsed for a letter and/or a number, with our without comma or space. The <i>alignment</i> letter is one of <i>l</i>, <i>c</i>, <i>r</i> (left, center, right). Default <i>c</i>. The numerical <i>scale</i> (may be decimal) changes the size of the text, and tweaks its vertical position. Default scale is <i>1</i>.</p>
<p class="item"><b>C.</b> For your convenience, the <i>NovelDeco</i> font (included with <i>novel</i> has a few possibilities. they are accessed via the <code>\decoglyph</code> command. The list of available decorations, and codes to access them, are in the file <i>NovelDeco-glyphs.pdf</i>, which is in the <i>extras</i> folder within this documentation. Note that the decorations can be placed anywhere in your document, not just in <code>\ChapterDeco</code>.</p>
<p class="item"><b>D.</b> <img class="floatright" src="html-resources/lowdown.png" width="300" height="141" title="chapter title with decoration" alt="chapter title with decoration"/>Most of the <code>\decoglyph</code> decorations look best when the optional <i>scale</i> is near <i>4</i>. Example:</p>
<p class="code"><code><small>
\begin{ChapterStart}[8]<br/>
\vspace{2<span style="cursor:help" title="normal baseline skip">\nbs</span>}<br/>
\ChapterTitle[l]{3}<br/>
\ChapterSubtitle[l]{The Low-Down}<br/>
\ChapterDeco[l4]{\decoglyph{n9591}\decoglyph{r9656}}<br/>
\end{ChapterStart}<br/>
I didn't hear the low-down until the following Saturday. By then, all hell had broken loose at Vinny's joint, and the boys were looking for me in trash cans, just in case that was where I was hiding, or maybe dead. ...\par
</small></code></p>
</div><!-- end 5.1.3.3 -->

<h5 id="h5.1.3.4">5.1.3.4. Chapter Epigraph</h5>
<div class="d5" id="d5.1.3.4">
<p class="item"><b>A.</b> If you would like to place an Epigraph within <i>ChapterStart</i>, there is no special command for that purpose. You do it the same way you would do it anywhere else: Use the <i>adjustwidth</i> environment to limit the text width. You may use the <i>parascale</i> environment to scale the block of text, without disturbing the following line grid, as long as you are within <i>ChapterStart</i>.</p>
<p class="item"><b>B.</b> <b>Example:</b></p>
<p class="code"><img class="floatright" src="html-resources/bookofbeirh.png" width="344" height="191" title="chapter title with epigraph" alt="chapter title with epigraph"/><code><small>
\begin{ChapterStart}<br/>
\vspace{2<span style="cursor:help" title="normal baseline skip">\nbs</span>}<br/>
\ChapterTitle{16. The Great Incantation}<br/>
\vspace{<span style="cursor:help" title="normal baseline skip">\nbs</span>}<br/>
\begin{adjustwidth}{4em}{4em}<br/>
\begin{parascale}[0.88]<br/>
In the third moon of the third raveling, in the third hour of the third day, Fingly shall come again.\par<br/>
\stake\hfill \textit{Book of Beirh}\par<br/>
\end{parascale}<br/>
\end{adjustwidth}<br/>
\end{ChapterStart}<br/>
In the latter days of the Dorf dynasty, a marvelous apparition sent the King's guard scrambling in terror. Elders soon declared that it was the return of Fingly, prophesized in the Book of Beirh. ...\par
</small></code></p>
<p class="item" style="position:relative"><b>C.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> It is not necessary to load the <i>epigraph</i> package. Simply construct your own style of epigraph using other methods. But if you do load <i>epigraph</i>: Only use <code>\epigraph</code>, or the <code>epigraphs</code> environment, within the ChapterStart environment, or on a display page. Commands <code>\epigraphhead</code>, <code>\dropchapter</code>, <code>\undocrop</code> do not work in <i>novel</i>. The <code>\cleartoevenpage[<i>option</i>]</code> command does work. Ignore the material regarding epigraphs on part pages or in bibliographies.</p>
</div><!-- end 5.1.3.4 -->
</div><!-- end 5.1.3 -->

<h4 id="h5.1.4">5.1.4. ChapterStart With Image</h4>
<div class="d4" id="d5.1.4">
<p class="item"><b>A.</b> You can use an image in chapter titles. If you place an image, use one of the image commands defined by <i>novel</i> elsewhere in the documentation.</p>
<p class="item"><b>B.</b> Be sure that you are licensed to use the image. Many clipart catalogs "for personal use only," prohibit usage in commercial books. One possible source is <a href="http://openclipart.org" rel="external" target="new">openclipart.org</a> (note the <em>.org</em>).</p>

<h5 id="h5.1.4.1">5.1.4.1. Text Over Inline Image</h5>
<div class="d5" id="d5.1.4.1">
<p class="item"><b>A.</b> <img class="floatright" src="html-resources/ctimg35.png" width="79" height="196" alt="example of chapter title image, text over"/> You may position text over an <code><a href="#h7.2.2">\InlineImage</a></code>. You must use black text, or grayscale text that is much darker than the underlying image.</p>
<p class="item"><b>B.</b> <b>Example:</b> Here, the command <code>\unifrac</code> calls for the font <i>UnifrakturMaguntia.ttf</i>. Note that the font command is <i>outside</i> \charscale:</p>
<p class="code"><code><small>\begin{ChapterStart}<br/>
\FloatImage{sword.png} <span class="ap">% centered by default</span><br/>
{\unifrak\centering\charscale[3,0pt,4<span style="cursor:help" title="normal baseline skip">\nbs</span>]{35}\par}<br/>
</small>\end{ChapterStart}</code></p>
</div><!-- end 5.1.4.1 -->

<h5 id="h5.1.4.2">5.1.4.2. Text Built Into Image</h5>
<div class="d5" id="d5.1.4.2">
<p class="item"><b>A.</b> If the text is not much darker than the background image, then it is better to include the text as part of the raster image. The reason is that "white ink" will not be used for your book. Also, you cannot use image transparency.</p>
<p class="item"><b>B.</b> <b>Example:</b> The number is built into the image itself.</p>
<p class="code"><img class="floatright" src="html-resources/smfingerprint8.png" width="86" height="70" alt="example of chapter title image, raster text"/><code><small>\begin{ChapterStart}<br/>
\FloatImage[l]{smfingerprint8.png}<br/>
\end{ChapterStart}</small></code></p>
</div><!-- end 5.1.4.2 -->
</div><!-- end 5.1.4 -->
</div><!-- end 5.1 -->

<h3 id="h5.2">5.2. Continuously Running Chapters</h3>
<div class="d3" id="d5.2">
<p class="noindent">Standard book design calls for each chapter to begin on a new page. However, some books are designed with numerous short chapters that run continously, so that chapters may start anywhere on a page. There are two ways to handle this in <i>novel</i>, or you can simply design your own method.</p>

<h4 id="h5.2.1">5.2.1. Reduced-Height ChapterStart</h4>
<div class="d4" id="d5.2.1">
<p class="item"><b>A.</b> Since the <i>ChapterStart</i> environment does not automatically begin a new page, you can use it for continuously running chapters. In Preamble, set a short height, such as <code>\SetChapterStartHeight{4}</code>. Also use <code>\SetChapterStartStyle{fancy}</code> so that headers don't disappear.</p>
<p class="item"><b>B.</b> Throughout the book, you can make local adjustments to the <i>ChapterStart</i> height, so that they don't fall at an inconvenient location (such as at the bottom of a page). Yes, I have seen this done in published works. If a particular chapter is sufficiently important that it deserves a page break, or a lot more space, you can do that easily.</p>
</div><!-- end 5.2.1 -->

<h4 id="h5.2.2">5.2.2. <code>\QuickChapter[<em>linelength</em>]{<em>chapter title</em>}</code></h4>
<div class="d4" id="d5.2.2">
<p class="item"><b>A.</b> The <code>\QuickChapter</code> command inserts two blank lines. In the gap, the chapter title is left-justified using <i>subch font</i> (not <i>chapter font</i>). It is slightly raised from the normal baseline, because this looks better; but the following text is back on-grid. By default, the start of the following text will be un-indented.</p>
<p class="item"><b>B.</b> If the optional <i>linelength</i> is provided, then a dash will be written after the title, at the position and thickness typical of the em dash in <i>subch font</i>. If <i>linelength</i> is specified in units of length, then that will be the length of the line. But if <i>linelength</i> is an asterisk, then the line will fill to the right margin.</p>
<p class="item"><b>C.</b> <code>\QuickChapter</code> is probably too obtrusive, for mere scene changes within a chapter.</p>
<p class="item"><b>D.</b> <b>Example:</b></p>
<p class="code"><code><small>Then he looked at me with a sneer, and barked, &ldquo;You better haul your can over to Vinny's joint, before the Boss finds out.&rdquo;\par<br/>
\QuickChapter[3em]{16. At Vinny&rsquo;s}<br/>
So I took his advice, and hauled my can over to Vinny&rsquo;s. It was everything I had expected, and worse.\par<br/>
The bouncer wasn't the biggest one I&rsquo;d ever seen, but he was the ugliest. ...</small></code></p>
<p class="centerimg"><img src="html-resources/quickchapter.png" width="629" height="240" alt="quick chapter"/></p>
</div><!-- end 5.2.2 -->
</div><!-- end 5.2 -->

<h3 id="h5.3">5.3. Scene Breaks</h3>
<div class="d3" id="d5.3">
<p class="item"><b>A.</b> There are several commands dedicated to the purpose of scene breaks.</p>
<p class="code"><code><b>\scenebreak</b></code> inserts a one-line blank skip. The following line of text is not indented.</p>
<p class="code"><code><b>\sceneline</b></code> inserts a one-line skip, containing a short centered line. The following line of text is not indented.</p>
<p class="code"><code><b>\scenestars</b></code> inserts a one-line skip, containing three spaced, centered asterisks. The following line of text is not indented.</p>
<p class="item"><b>B.</b> <b>Examples:</b></p>
<p class="code"><img style="float:right; margin-left:16px;" src="html-resources/scenebreaks.png" width="331" height="236" alt="scene breaks"/>
<code><small>
\noindent It was a dark and stormy night.\par<br/>
Lord Withens, the last of his line, hurried through the gloom to Castle McWhistle, where Lady McWhistle awaited.\par<br/>
\scenebreak<br/>
Well, maybe it was not very dark.\par<br/>
But to Lord Withens, it seemed dark enough. Or rather, he hoped it was dark enough. Lord McWhistle was suspicious.\par<br/>
\sceneline<br/>
Actually, it was not all that stormy, either. But the Withens clan never tolerated drizzle, much less a storm.\par<br/>
Who could blame them? It's not like they lived in Italy.\par<br/>
\scenestars<br/>
Ah, such ill fortune haunted the Withens!\par<br/>
Unfortunately, novelists of that era had so little to write about, or they would have chosen another family to pursue.\par
</small></code></p>
<p class="item"><b>C.</b> A badly-placed scene break will be detected, and a Warning message will be issued.</p>
<p>If <code>\scenebreak</code> is positioned at the very top or bottom of a page, then the Warning will advise you to substitute it with either <code>\scenestars</code> or <code>\sceneline</code>. The substitution is not automatic.</p>
<p>If any of <code>scenebreak</code>, <code>\sceneline</code>, or <code>\scenestars</code> appears just one line away from the top or bottom of a page, you will get a Warning.</p>

<h4 id="h5.3.1">5.3.1. <code>\SetScenebreakIndent{<em>true</em> or <em>false</em>}</code></h4>
<div class="d4" id="d5.3.1">
<p class="noindent">This global command may only be used in the Preamble. Default is <i>false</i>.</p>
<p>Normally, text begins without a paragraph indent, after each scene break. This is standard in fiction. If you prefer that each new scene begins indented, use this command. It works only with <code>\scenebreak</code>, <code>\sceneline</code>, and <code>\scenestars</code>.</p>
</div><!-- end 5.3.1 -->
</div><!-- end 5.3 -->

<h3 id="h5.4">5.4. Automatic Chapter Numbering</h3>
<div class="d3" id="d5.4">
<p class="noindent">By popular demand, here is how to add automatic chapter numbering, even though it is easier to just type <i>Chapter One</i> or whatever you need:</p>
<p class="item"><b>A.</b> Counter <i>novelcn</i> is pre-defined, and initialized to <i>1</i> (not zero). If you simply wish to print its value as a number, then increment the count, do something like this:</p>
<p class="code"><code>
\ChapterTitle{Chapter \the\value{novelcn}\stepcounter{novelcn}}
</code></p>
<p>That will print Chapter 1, Chapter 2, and so forth. Of course, only do this for real, numbered chapters, not for "chapter-like" sections. If your book has several parts, and each part re-sets its own chapter count, use \setcounter{novelcn}{1} prior to the first chapter in each part.</p>
<p class="item"><b>B.</b> If you would like the number to be spelled out, as in Chapter One, Chapter Two, and so forth, then try the <i>fmtcount</i> package. It can also do ordinals such as First Chapter, Second Chapter. See the <i>fmtcount</i> package documentation for details.</p>
<p class="item"><b>C.</b> If your document's language is other than English, set it <i>before</i> you load the <i>fmtcount</i> package. If you do it later, then positioning will be incorrect.</p>
<p class="item"><b>D.</b> <b>Example:</b> With <i>fmtcount</i> loaded in Preamble.</p>
<p class="code"><code>
% if necessary, use set language first.<br/>
\RequirePackage{fmtcount}<br/>
</code></p>
<p>Example usage in chapter titles:</p>
<p class="code"><code>
\ChapterTitle{\Ordinalstring{novelcn}\stepcounter{novelcn} Robbery} %1<br/>
\ChapterTitle{\Ordinalstring{novelcn}\stepcounter{novelcn} Robbery} %2<br/>
\ChapterTitle{\Ordinalstring{novelcn}\stepcounter{novelcn} Robbery} %3
</code></p>
<p class="centerimg"><img src="html-resources/robberies.png" width="411" height="98" title="odinal chapter numbering" alt="ordinal chapter numbering"/></p>
</div><!-- end 5.4 -->

<h3 id="h5.5">5.5. First Lines and Drop Caps</h3>
<div class="d3" id="d5.5">
<p class="noindent">The first line of chapter text is often treated with a style of its own. Often, all or part of the first line is in small caps. The first letter may be larger than the rest. Or, the first letter may occupy several lines (sometimes using an image). This last effect is known as <i>drop cap</i> (French <i>lettrine</i>).</p>

<h4 id="h5.5.1">5.5.1. First Character Special</h4>
<div class="d4" id="d5.5.1">
<p class="item"><b>A.</b> Use the <code>\charscale</code> command to size the first letter (or more than one letter) so that it stands above the remainder of the line. Remember that you will see a capital letter standing next to lowercase letters, so it will appear taller. You may also use a font command.</p>
<p class="item"><b>B.</b> <b>Example:</b> Where <code>\NewFontFace\alexbrush{AlexBrush-Regular.ttf}</code> appears in Preamble.</p>
<p class="code"><code>
\noindent\charscale[1.6]{\alexbrush I}\hspace{0.2em}t was a dark and stormy night. Well, it really wasn't all that dark, seeing as how this story is set in Las Vegas.
</code></p>
<p class="centerimg"><img src="html-resources/firstletterspecial.png" width="680" height="83" alt="first letter special" title="first letter special"/></p>
</div><!-- end 5.5.1 -->

<h4 id="h5.5.2">5.5.2. First Line Small Caps</h4>
<div class="d4" id="d5.5.2">
<p class="item"><b>A.</b> If you want to place a portion of the first line in small caps, then simply do it using <code>\textsc{text}</code>. This effect can also continue to additional lines. That is, it does not automatically stop at the end of the first line.</p>
<p class="item"><b>B.</b> The <i>magaz</i> package is pre-loaded in <i>novel</i>. It provides the <code>\FirstLine</code> command, which takes the entire first paragraph as its argument. Place <code>\noindent</code> inside. You may also style the first letter (or more than one) as described above; the styled letter appears inside the <code>\FirstLine</code> command.</p>
<p class="item"><b>C.</b> <b>Example:</b></p>
<p class="code"><code>
\FirstLine{\noindent\charscale[1.6]{\alexbrush I}\hspace{0.2em}t was a dark and stormy night. Well, it really wasn't all that dark, seeing as how this story is set in Las Vegas.}
</code></p>
<p class="centerimg"><img src="html-resources/firstlinespecial.png" width="682" height="84" alt="first line small caps" title="first line small caps"/></p>
</div><!-- end 5.5.2 -->

<h4 id="h5.5.3">5.5.3. Drop Caps</h4>
<div class="d4" id="d5.5.3">
<p class="item"><b>A.</b> The <i>drop cap</i> is an enlarged letter (or image) at the beginning of chapter text, with the first few lines of text wrapped around it:</p>
<p class="centerimg"><img src="html-resources/dropcap.png" width="431" height="112" title="drop cap" alt="drop cap"/></p>
<p class="item"><b>B.</b> Works of popular fiction rarely use drop caps. Instead, having a special first character (<a href="#h5.5.1">section 5.5.1</a>) is more common, as it presents fewer layout problems, and is less distracting.</p>
<p class="item" style="position:relative"><b>C.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/>  The <code>\dropcap</code> command is native to <i>novel</i>. You may also load and use <i>lettrine</i>. An extensive discussion of drop caps is in <a href="#hF">Appendix F</a>.</p>
</div><!-- end 5.5.3 -->
</div><!-- end 5.5 -->


</div><!-- end 5 -->
</div><!-- end page05 -->
<!-- ************************************************************ -->
<div id="page06" class="page">


<h2 id="h6">6. Text Sizes and Styling</h2>
<div class="d2" id="d6">
<p class="noindent">This section describes how to change the size of text, how to style text (such as italics), and how to move it around. It also describes some miscellaneous commands that are intended to modify text.</p>
<p class="item"><b>A.</b> Information about how to choose the global, main text point size is described in <a href="#h4.2.1.2">section 4.2.1.2</a>. General information about choosing fonts and font features is in <a href="#hC">Appendix C</a> and <a href="#hE">Appendix E</a>. Styles particularly used at chapter openings are described in <a href="#h5">section 5</a>.</p>
<p class="item"><b>B.</b> There is no direct setting for normal baselineskip; it is automatically calculated from the size of the textblock (using Trim Size, Margins, and header/footer layouts) and <a href="#h4.3.2">lines per page</a>.</p>
<p class="item"><b>C.</b> The included <i>microtype</i> package is pre-configured, using these settings:</p>
<p class="code"><code>\microtypesetup{config=novel-microtype,final,stretch=20,shrink=20}</code></p>
<p>File <i>novel-microtype.cfg</i> uses settings typical of the kind of book-weight font that you are likely to use. The stretch and shrink factors are moderate. Calculation is always final, so that you see the same effect whether or not you use the <i>draft</i> class option. If you wish to change any of these, see the <i>microtype</i> package documentation. Note that since you are compiling with LuaLaTeX, some features of <i>microtype</i> may not be available.</p>

<h3 id="h6.1">6.1. Text Sizes</h3>
<div class="d3" id="d6.1">
<p class="noindent">Be sure to read through this. In <i>novel</i>, standard TeX font size commands are disabled. There are new commands that address the limited needs for font sizing, in the context of fiction. These new commands are primarily for local adjustments of a few characters, or for display pages that are outside the main flow of text.</p>

<h4 id="h6.1.1">6.1.1. Surprise! Traditional TeX Font Size Commands Are Disabled.</h4>
<div class="d4" id="d6.1.1">
<p class="item"><b>A.</b> Standard LaTeX font size commands, such as <code>\small</code> and <code>\LARGE</code>, are disabled in <i>novel</i>. If you use them, they will be ignored, and the affected text will be printed without modification. This is by intent, for the purpose of maintaining the baseline grid.</p>
<p class="item"><b>B.</b> The one exception is that <a href="#h6.5.1">footnotes</a> will appear with smaller than normal size and skip. But this is done automatically. You cannot manipulate it with a size command.</p>
<p class="item"><b>C.</b> Use <i>novel's</i> own commands for manipulating font size. The correct command depends on the quantity of text involved.</p>
</div><!-- end 6.1.1 -->

<h4 id="h6.1.2">6.1.2. <code>\charscale[<em>scale,hoffset,voffset</em>]{<em>text, but not image</em>}</code> and starred</h4>
<div class="d4" id="d6.1.2">
<p class="item"><b>A.</b> The contents of <code>\charscale{}</code> occupy no vertical space. Thus, scaled text does not push baselines apart. Excessive scale may cause characters to overlap; in some cases this is a desirable special effect.</p>
<p class="item"><b>B.</b> The optional argument has up to three comma-separated components. The first is a number, which scales the text relative to its natural size. If the text was already scaled by some other operation (such as using <i>fontspec</i> to define the font with Scale feature), then the effect is cumulative.</p>
<p>Do not use a scale close to zero, or negative. The result is unpredictable.</p>
<p class="item"><b>C.</b> <code>\charscale</code> may be used for a short amount of text, where there is no line break, and no wrap. The command will throw an error if the included text has <code>\\</code> or <code>\par</code> or any other method that breaks the line.</p>
<p>Excessive text will not wrap. It will overflow into the right margin.</p>
<p class="item"><b>D.</b> <b>Example:</b> In this example, line 4 is so enarged that its ascenders and descenders overlap other text.</p>
<p class="code" style="margin-left:0px"><img class="floatright" src="html-resources/jackbequick.png" width="222" height="94" title="use of \charscale" alt="use of \charscale"/><code><small>
Jack be quick. (1)\par<br/>
\charscale[1.2]{Jack be quick.} (2)\par<br/>
\charscale[1.5]{Jack be quick.} (3)\par<br/>
\charscale[2.5]{Jack be quick.} (4)\par<br/>
\charscale[1.2]{Jack be quick, JACK} (5)\par
</small></code></p>
<p class="item"><b>E.</b> The second optional component, if used, is horizontal offset. The third optional component, if used, is vertical offset. Offsets are lengths, measured in units such as <code>em</code> or <code><span style="cursor:help" title="normal baseline skip">\nbs</span></code>.</p>
<p class="item"><b>F.</b> In its starred form, the contents of <code>\charscale*{}</code> occupy neither vertical nor horizontal space. <b>Example:</b></p>
<p class="code" style="margin-left:0px"><img class="floatright" src="html-resources/alphabetagamma.png" width="263" height="124" title="use of \charscale" alt="use of \charscale"/><code><small>
Alpha \charscale[1.25]{Beta} Gamma. (1)\par<br/>
Alpha \charscale[1.25,8em,1.3<span style="cursor:help" title="normal baseline skip">\nbs</span>]{Beta} Gamma. (2)\par<br/>
Alpha Gamma. (3)\par<br/>
Alpha\charscale*[1.25,8em,1.3<span style="cursor:help" title="normal baseline skip">\nbs</span>]{Beta} Gamma. (4)\par
</small></code></p>
<p>In line 1, Beta is enlarged, but not offset. It occupies slightly more width than it would have occupied unscaled. In line 2, Beta has been offset. Since the unstarred <code>\charscale</code> was used, the horizontal space is still there.</p>
<p>Line 3 has no Beta. Line 4 uses the starred <code>\charscale*</code> to offset Beta, but no width is left behind. Note that the space between Alpha and Gamma is an ordinary inter-word space, because there is a space following the command.</p>
<p class="item"><b>G.</b> <code>\charscale</code> is very effective on <a href="#hD.3.1.1">display pages</a>, where you can scale and move text however you wish. The starred version is especially useful, since back-to-back <code>\charscale*</code> will place text from a single vantage point.</p>
<p class="item"><b>H.</b> In main text, the most practical application of <code>\charscale</code> is to enlarge the first character of chapter text. See <a href="#h5.5.1">section 5.5.1</a>. Otherwise, the command is rarely used, mostly for local correction of characters that need some size adjustment.</p>
<p class="item" style="position:relative"><b>I.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> <code>\charscale</code> does not commute with some other TeX commands. That is, the results of <code>\charscale{\othercommand{<em>text</em>}}</code> and <code>\othercommand{\charscale{<em>text</em>}}</code> may differ.</p>
</div><!-- end 6.1.2 -->

<h4 id="h6.1.3">6.1.3. <code>\begin{parascale}[<em>scale</em>] ... \end{parascale}</code></h4>
<div class="d4" id="d6.1.3">
<p class="item"><b>A.</b> The <i>parascale</i> environment is used on a paragraph basis. More than one paragraph may be included. The scale is applied to the font size and to the baselineskip within.</p>
<p>Note that the scale is an optional argument. Default is <code>1</code>.</p>
<p class="item"><b>B.</b> The <i>parascale</i> environment is allowed to cross page boundaries.</p>
<p>Trick: If you place an ordinary paragraph in <i>parascale</i> at scale <code>1</code>, then you will know whether or not that paragraph remains on one page.</p>
<p class="item"><b>C.</b> For scale less than or equal to <code>1</code>, the first line in <i>parascale</i> will be at the normal baseline position. The following lines will progressively depart from the normal grid (unless scale is <code>1</code>). Thus, you will usually need to add some amount of vertical space following <i>parascale</i>, in order to restore subsequent text to the line grid.</p>
<p class="item"><b>D.</b> You will usually get a Warning message, advising you that <i>parascale</i> caused the subsequent text (after the environment closed) to be off-grid. Fix by adding the requisite <code>\vspace</code> just prior to <code>\end{parascale}</code>.</p>
<p>If <i>parascale</i> is entirely on a single page, you may also split the <code>\vspace</code>: Place part of it prior to <code>\begin{parascale}</code>, and part of it prior to <code>\end{parascale}</code>.</p>
<p class="item"><b>E.</b> If multiple <i>parascale</i> end on a single page, the line deficit is cumulative. For example, if the first deficit is <code>0.5\nbs</code> and the second defict is <code>0.8\nbs</code>, you would fix them by adding <code>0.5\nbs</code> and <code>0.3\nbs</code> respectively.</p>
<p class="item"><b>E.</b> Example:</p>
<p class="code"><code><small>
Lord Withens sneaked out the door of the veranda, and hastily opened the letter. In it was a message that curled his jodphurs:\par<br/>
\begin{parascale}[0.87]<br/>
We knows where youse been a-goin all a them dark and stormy nights. We knows what you been doin out there. We got yer number, Jack. So youse better play nice or we gonna rat to the lady.\par<br/>
\vspace{0.26\nbs} % Without this, a Warning is issued, adivisng 0.26\nbs.<br/>
\end{parascale}<br/>
Even after his jodphurs had finally uncurled, Lord Withens could not master his rage. ``My name's not Jack,'' he mumbled.\par
</small></code></p>
<p class="centerimg"><img src="html-resources/parascale.png" width="598" height="214" title="parascale with vspace" alt="parascale with vspace"/></p>
</div><!-- end 6.1.3 -->

<h4 id="h6.1.4">6.1.4. Open Type Scale (fontspec)</h4>
<div class="d4" id="d6.1.4">
<p class="item"><b>A.</b> If you will be using a font in a way that it will <em>always</em> be at a size different from the normal font size, you may use the <a href="#hE.2.1">Scale</a> feature when you first define the font. This is defined by the <i>fontspec</i> package, which is automatically loaded with <i>novel</i>. Example:</p>
<p class="code"><code>\NewFontFamily\minifont[Scale=0.75,Numbers=Lining]{\parentfont}</code></p>
<p class="item"><b>B.</b> The scaled font can be used anywhere. It is not limited to a single line, and it will maintain the line grid at scales not exceeding 1.</p>
<p class="item" style="position:relative"><b>C.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Scaled text may disturb the line grid, if its scale is more than 1.</p>
</div><!-- end 6.1.4 -->
</div><!-- end 6.1 -->

<h3 id="h6.2">6.2. General Styling</h3>
<div class="d3" id="d6.2">
<p class="noindent">Many of these commands are directly from LaTeX, and are mentioned here because they are frequently used. Other commands are specific to <i>novel</i>.</p>

<h4 id="h6.2.1">6.2.1. Italics and Emphasis</h4>
<div class="d4" id="d6.2.1">
<p class="item"><b>A.</b> <code>\itshape{<em>text, may cross paragraphs</em>}</code> is a general-purpose command for italics.</p>
<p class="item"><b>B.</b> <code>\textit{<em>text</em>}</code> will not cross paragraphs.</p>
<p class="item"><b>C.</b> <code>\emph{<em>text</em>}</code> changes regular text to italics, and italic text to regular. You may nest <code>\emph</code> commands. Many writers opine that this is the preferred way to specify italics. It cannot cross paragraphs.</p>
<p class="item"><b>D.</b> If the italicized text leans too far into the following space, try adding <code>\/</code> (back and forward slashes) just before closing the braces.</p>
<p class="item" style="position:relative"><b>E.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Italics are not faked (such as by slanting). If the font does not have an italic font file, then regular text will appear. You may use <i>fontspec</i> syntax to substitute a different italic font, if necessary. See <a href="#hE.1.1">Appendix E.1.1</a> <i>file name combinations</i>.</p>
</div><!-- end 6.2.1 -->

<h4 id="h6.2.2">6.2.2. Bold, Semibold, etc.</h4>
<div class="d4" id="d6.2.2">
<p class="item"><b>A.</b> <code>\bfshape{<em>text, may cross paragraphs</em>}</code> is a general-purpose command for bold.</p>
<p class="item"><b>B.</b> <code>\textbf{<em>text</em>}</code> will not cross paragraphs.</p>
<p class="item"><b>C.</b> The default main font in <i>novel</i> is <i>Libertinus Serif</i>, which has both bold and semibold weights. In versions prior to 1.80 (2023), The semibold weight is pre-configured to substitute for bold. Version 1.80 does not make this substitution.</p>
<p class="item"><b>D.</b> If you use a different font, and it has an alternative to bold weight, see <a href="#hE.1.1">Appendix E.1.1</a> <i>file name combinations</i> for how to configure the choice. Bold is not faked by thickening.</p>
<p class="item" style="position:relative"><b>E.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Bold is rare in fiction. It <em>might</em> be the case that this weight is useful for titles, but you ought to consider a fancy-looking font for that purpose, rather than mere Bold. Or, make the letters big and bold, but balance the effect by using gray.</p>
</div><!-- end 6.2.2 -->

<h4 id="h6.2.3">6.2.3. Underlining</h4>
<div class="d4" id="d6.2.3">
<p class="noindent">Underlining is inappropriate for fiction. Don't do it. Besides, there are some issues regarding line grid and appearance, which are not a problem in academic works, but are noticeable in fiction.</p>
<p>If you are using a line for its graphic effect, the <code><a href="#bigemdash">\bigemdash</a></code> command might be helpful.</p>
</div><!-- end 6.2.3 -->

<h4 id="h6.2.4">6.2.4. Small Caps and Midcase</h4>
<div class="d4" id="d6.2.4">
<p class="item"><b>A.</b> <code>\scshape{text, may cross paragraphs}</code> is a general-purpose command for converting lowercase to small caps.</p>
<p class="item"><b>B.</b> <code>\textsc{<em>text</em>}</code> does not cross paragraphs. Alias: <code>\smcp{<em>text</em>}</code>.</p>
<p class="item"><b>C.</b> <code>\allsmcp{<em>text</em>}</code> places both uppercase and lowercase letters in small caps. It does not cross paragraphs.</p>
<p class="item"><b>D.</b> Small caps are taken from the font's <i>smcp</i> Open Type feature. If the font is not Open Type, or does not have this feature, then small caps will not be faked. Command <code>\allsmcp</code> also uses feature <i>c2sc</i> if it is available; otherwise it converts letters to lowercase, then applies <i>smcp</i>.</p>
<p class="item" style="position:relative"><b>E.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> If you require small caps, but your font does not have them, you can fake them by scaling uppercase. But this is usually unattractive. A better method is described in the <i>fontspec</i> package documentation: You may appoint a different font that will provide small caps.</p>
<p class="item" style="position:relative"><b>F.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> If you insist on using old-fashioned TeX fonts, which do not have the <i>smcp</i> Open Type feature, then you may need to write this code in the Preamble:</p>
<p class="code"><code>\let\smcp\oldscshape\relax<br/>
\let\textsc\oldscshape\relax<br/>
\let\scshape\oldscshape\relax</code></p>
<p>The above code sends you in a time machine back to the Twentieth Century.</p>
<p class="item"><b>G.</b> <code>\midcase{<em>text</em>}</code> is special to <i>novel</i>. If the <i>NovelDeco</i> font is installed, uppercase letters in the text will be converted to "mid-size capitals," and lowercase will remain lowercase, but with ascenders slightly reduced. The purpose of this command is so that acronyms such as NASA and NATO blend well with surrounding text. I have found that whereas ordinary uppercase is too conspicuous, small caps also looks wrong. Example:</p>
<p class="code"><img class="floatright" src="html-resources/acronym2.png" width="192" height="89" alt="midcase"/>
<code>
The NATO alliance...\par<br/>
The \midcase{NATO} alliance...\par<br/>
The \allsmcp{NATO} alliance...\par
</code></p>
<p class="item" style="position:relative"><b>H.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Whether or not to use the <code>\midcase</code> command, is up to you. Since its letters are drawn from the <i>NovelDeco</i> font, rather than your main font, there may be some stylistic differences if your <i>parent font</i> is not Libertinus Serif.</p>
</div><!-- end 6.2.4 -->

<h4 id="h6.2.5">6.2.5. Local Tracking Adjustment</h4>
<div class="d4" id="d6.2.5">
<p class="item"><b>A.</b> <i>Tracking</i> refers to how tight or loose is the space between adjacent letters. This is a property of the font itself, and is automatically tweaked by the included <i>microtype</i> package. Do not confuse tracking with <i>inter-word spacing</i>, which is more widely adjusted during paragraph layout calculations.</p>
<p class="item"><b>B.</b> If only two adjacent letters are involved, use the <code>\kern</code> or <code>\hspace</code> command. The following examples have the same effect. Note that there is no added space character, and that the units of length are <code>em</code>:</p>
<p class="code"><code>
I\kern-.05emt was a dark and stormy night.<br/>
I\hspace{-.05em}t was a dark and stormy night.
</code></p> 
<p class="item"><b>C.</b> Loose tracking is often used in page header text. In <i>novel</i>, this is addressed by a special command. See <a href="#h4.3.4.3">section 4.3.4.3</a>.</p>
<p class="item"><b>D.</b> Do not use the <code>\textls</code> command. It will be ignored, and its contents will be rendered with ordinary tracking.</p>
<p class="item"><b>E.</b> The included <i>fontspec</i> package allows you to globally set the tracking of an Open Type font, or locally change its tracking, using the <i>LetterSpace</i> feature. It is unlikely that you will need this capability. If you do, see <i>fontspec</i> package documentation 6.8.</p>
</div><!-- end 6.2.5 -->

<h4 id="h6.2.6">6.2.6. Local Font Selection</h4>
<div class="d4" id="d6.2.6">
<p class="item"><b>A.</b> The following font commands are pre-defined in <i>novel</i>: \rmfamily (alias <a href="#h4.2.2">\mainfont</a>) <a href="#h4.2.4">\sffamily</a> <a href="#h4.2.4">\ttfamily</a> <a href="#h5.1.3.1">\chapterfont</a> <a href="#h5.1.3.1">\subchfont</a> <a href="#h4.3.4.2">\headfont</a> <a href="#h4.2.3">\decofont</a> <a href="#hF.4">\decodropcapfont</a>.</p>
<p class="item"><b>B.</b> Although most of the pre-defined font commands are automatically applied in specific situations, you may apply any of them yourself, in any location, using this syntax:</p>
<p class="code"><code>{\subchfont This text will be in the subch font.}</code></p>
<p class="item"><b>C.</b> If you wish, use <i>fontspec</i> syntax to create additional font selection commands. See <a href="#h4.2.5">section 4.2.5</a> and <a href="#hE">Appendix E</a> for the essentials. For example, if you have the licensed font, this code would define the font selection command <code>\agarp</code> in Preamble:</p>
<p class="code"><code>\NewFontFamily\agarp[Numbers=OldStyle,Ligatures=Common]{Adobe Garamond Pro}</code></p>
<p>Then you would apply it to text:</p>
<p class="code"><code>{\agarp Text to appear in that font.}</code></p>
</div><!-- end 6.2.6 -->

<h4 id="h6.2.7">6.2.7. Local Feature Changes</h4>
<div class="d4" id="d6.2.7">
<p class="noindent"><code><b>{\addfontfeature{<em>feature</em>} <em>text</em>}</b></code> for changing Open Type features.</p>
<p class="item"><b>A.</b> If a font is already defined, you can locally add one or more <a href="#hE.2">features</a>. For example, suppose that you defined <code>\mynewfont</code> without using its Open Type feature <i>ss03</i> (we will assume that the font actually has this feature). In a particular place, you wish to activate <i>ss03</i>. The code looks like this:</p>
<p class="code"><code>{\mynewfont\addfontfeature{RawFeature=+ss03} <em>text</em>}</code> % Note + sign. Braces outside.</p>
<p>That limits the scope of the feature to the included group, in TeX terminology.</p>
<p class="item"><b>B.</b> You can modify features used by any defined font, whether you defined it yourself or it is one of the <i>novel</i> built-in font commands. You can add more than one feature. If the requested feature does not exist in the font, then your request will be ignored.</p>
<p class="item"><b>C.</b> What about removing a feature that is already present in the font definition? Suppose you defined <code>\mynewfont</code> so that <i>Numbers=OldStyle</i> is used. On a local basis, can you change the style of numbers? Usually, yes. You could use <i>Numbers=Lining</i> to over-ride the feature. Sometimes it depends on how you chose the features, as a matter of syntax. See the <i>fontspec</i> documentation.</p>
</div><!-- end 6.2.7 -->

<h4 id="h6.2.8">6.2.8. Grayscale Text</h4>
<div class="d4" id="d6.2.8">
<p class="item"><b>A.</b> <code><b>\color{<em>name</em>}</b></code> or <code><b>\color[gray]{<em>scale</em>}</b></code> is used within a group. All text will be in grayscale, from where the command is placed, until the group ends. If the command is not at the beginning of the group, it does not affect prior text. Example:</p>
<p class="code"><code>
\begingroup<br/>
This text is unaffected by the following command.<br/>
\color{lightgray} % Alternative: \color[gray]{number 0 to 1}<br/>
This text is in lightgray, until the group ends.<br/>
\endgroup
</code></p>
<p style="margin-top:10px"><code><b>\textcolor{<em>text</em>}</b></code> or <code><b>\textcolor[gray]{<em>scale</em>}{<em>text</em>}</b></code> affects only the included text.</p>
<p class="code"><code>\textcolor{gray7}{This text is in color gray7, a medium-light gray.}<br/>
\textcolor[gray]{0.32}{This text is in 32 percent gray.}</code></p>
<p style="margin-top:10px">Whether you use <code>\color</code> or <code>\textcolor</code>, there are two ways to specify the color: by name, or by scale, using package <i>xcolor</i> syntax.</p>
<p class="item"><b>B.</b> The following color names are accepted, and will be converted to some shade of gray (from dark to light): black, blue, violet, darkgray, purple, red, teal, olive, magenta, gray, brown, green, orange, cyan, lightgray, lime, pink, yellow, white.</p>
<p class="item"><b>C.</b> The above names are often not helpful, so <i>novel</i> also allows you to use these: black, gray1, gray2, gray3, gray4, gray5, gray6, gray7, gray8, gray9, white. The scale is not uniform (gray5 is not 50 percent gray), but the values are usefully spaced.</p>
<p class="item"><b>D.</b> To specify color by scale, follow the color command with <i>[gray]{<em>scale</em>}</i>, where the scale is a number between 0 (black) and 1 (white). Example:<code> \color[gray]{0.63}</code>.</p>
<p>If you use <i>xcolor</i> syntax to request an rgb color, it will be converted to 1-channel grayscale.</p>
<p class="item" style="position:relative"><b>E.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Absolutely no transparency!</p>
<p class="item" style="position:relative"><b>F.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Other names "known to dvips," such as <i>Apricot</i>, do not work. An error will result.</p>
</div><!-- end 6.2.8 -->
</div><!-- end 6.2 -->

<h3 id="h6.3">6.3. Positioning and Alignment</h3>
<div class="d3" id="d6.3">
<p class="noindent">By now, you already know: In <i>novel</i> there are new ways to position or align text, and some of the standard TeX methods are discouraged or disabled.</p>

<h4 id="h6.3.1">6.3.1. What to Avoid</h4>
<div class="d4" id="d6.3.1">
<p class="item"><b>A.</b> The <code>\raisebox</code> command does not play well with novel. It can be used on a <a href="#hD.3.1.1">display page</a>, where line grid is less important. In main text, avoid it. Use <code><a href="#h6.1.2">\charscale</a></code> instead.</p>
<p class="item"><b>B.</b> If you must use the <code>\vspace</code> command (or its relative, <code>\vskip</code>) be sure to measure the space in units of <code><span style="cursor:help" title="normal baseline skip">\nbs</span></code> (normal baseline skip).</p>
<p class="item"><b>C.</b> Avoid the <i>minipage</i> and <i>parbox</i> environments. These are likely to disrupt the line grid. When that happens, restoring the grid is your own responsibility. You may find the <i>adjustwidth</i> environment to be useful, as described in the next section.</p>
<p class="item"><b>D.</b> In most cases, do not use the center environment. You may use <code>{\centering ... \par}</code> instead, for a single paragraph. The center environment may cause the text to go off-grid. That's not a problem on some <a href="#hD.3.1.1">display pages</a> where you don't care about the grid, but it is ugly in the middle of running text.</p>
<p class="item"><b>E.</b> Avoid positioning via the <i>textblock</i> or <i>textblock*</i> environments (package <i>textpos</i>).</p>
<p>Actually, <i>novel</i> uses that code internally. But if not handled with more care than usual, positioned text can disrupt the baseline and position of surrounding text. You may use <code><a href="#h6.1.2">\charscale</a></code> to position small amounts of text safely, but not on a paragraph basis.</p>
<p>Images have built-in positioning arguments.</p>
<p class="item"><b>F.</b> Do not use floats (except in <a href="#h2.2">sandbox</a>). Use <i>novel's</i> own <code>\FloatImage</code>.</p>
<p class="item"><b>G.</b> Do not use tables (except in <a href="#h2.2">sandbox</a>). But <i>novel</i> has its <a href="#hD.3.2.7">own provision</a> for a Table of Contents, and the code may be used for other purposes as well.</p>
<p class="item"><b>H.</b> Do not use picture environment (except in <a href="#h2.2">sandbox</a>). Use only the image commands provided by novel: <code><a href="#h7.2.2">\InlineImage</a></code>, <code><a href="#h7.2.4">\FloatImage</a></code>, and <code><a href="#h7.2.5">\WrapImage</a></code>. There is also a special provision for <a href="#h7.1.2">color cover artwork</a> (deprecated).</p>
</div><!-- end 6.3.1 -->

<h4 id="h6.3.2">6.3.2. Some Useful Commands</h4>
<div class="d4" id="d6.3.2">
<p class="noindent">This is not a complete list. It merely addresses a few situations that you are likely to encounter, without the need for elaborate code, and without loading additional packages.</p>
<p style="margin-top:10pt"><code>\begin{adjustwidth}{<em>left</em>}{<em>right</em>} ... \end{adjustwidth}</code></p>
<p>This environment, from the included <i>changepage</i> package, is the most useful way to create block indents. The included text may have multiple paragraphs and span pages. The left and right arguments are lengths, being the amount to <em>increase</em> the respective margins from their normal values.</p>
<p style="margin-top:10pt"><code>\rotatebox{<em>text</em>}</code></p>
<p>NOTE: Do not use rotation unless you really need it. Some P.O.D. printers robot-screen files, and a rotated box may be rejected (even though it is good).</p>
<p>This command is from the included <i>graphicx</i> package. It rotates the text, about an axis at the lower left of the text. If you wish to rotate the text about its center, use <code>\rotatebox[origin=c]{text}</code>.</p>
<p>This command plays nicely with <code>\charscale</code>, so you can size, rotate, and displace a string of text (single line). It makes a difference which command goes inside the other. More likely than not, the effect you want is obtained by using <code>\charscale</code> on the outside, with <code>\rotatebox</code> inside.</p>
<p>To avoid disturbing the line grid, <code>\rotatebox</code> is best used with <a href="#h6.1.2">\charscale</a> and a few blank lines.</p>
<p style="margin-top:10pt"><code>\phantom{<em>text</em>}</code></p>
<p>Does not print the text, but leaves a horizontal gap as if the text were there. Caution: In some locations, this command has unexpected results, such as by adding a line.</p>
<p style="margin-top:10pt"><code>\mbox{<em>text</em>}</code></p>
<p>Prevents a specific word from being hyphenated, or to ensure that two consecutive words always appear on the same line. The box will not be broken across lines. However, it may overhang the margin, which is undesirable.</p>
<p style="margin-top:10pt"><code>\makebox[<em>width</em>][<em>alignment</em>]{<em>text</em>}</code></p>
<p>Puts the text in a box of fixed width (usually much larger than the text's own width) and aligns it left, center, or right in the box. If using this across the full textwidth, be sure to precede it with <code>\noindent</code> to prevent offset.</p>
<p style="margin-top:10pt"><code>\hspace{<em>length</em>}</code></p>
<p>Creates a horizontal space.</p>
<p style="margin-top:10pt"><code>\strut</code></p>
<p>Places an invisible box with no width, which has the height and depth of the font. Sometimes used as a placeholder.</p>
<p style="margin-top:10pt"><code>\stake</code></p>
<p>Placeholder like <code>\strut</code>, but does not occupy the height or depth of the font.</p>
<p style="margin-top:10pt"><code>\indent</code>, <code>\noindent</code>, <code>\forceindent</code>, <code>\backindent</code></p>
<p>Commands <code>\indent</code> and <code>\noindent</code> have their ordinary TeX meaning. Sometimes, the action of other macros will remove an indent that should be there, or add an indent that should not be there. If writing <code>\indent</code> and <code>\noindent</code> do not fix the problems, use <code>\forceindent</code> and <code>\backindent</code> as more forceful solutions.</p>
<p style="margin-top:10pt"><code>\hfill</code></p>
<p>Pushes the following text to the right end of the line. Actual effect depends on what precedes and follows. Sometimes a \strut is needed at the beginning of a line.</p>
<p style="margin-top:10pt"><code>\vfill</code>, <code>\vfill*</code></p>
<p>Pushes the following text to the bottom of the page. Actual effect depends on paragraph organization. Use the asterisk if there is nothing printed above this command, on the same page.</p>
<p style="margin-top:10pt"><code>\kern</code></p>
<p>Tweaks the spacing between consecutive letters. A tricky command, as it is always used without braces, and makes the surrounding text illegible in your source code. If you use it, the units of length should always be <i>em</i>, rather than <i>pt</i>. Example:</p>
<p class="code"><code>It wa\kern-.02ems a da\kern.03emrk and stormy ni\kern-.004emght.</code></p>
<p>The <code>\kern</code> command is not useful for globally changing kern values.</p>
<p id="bigemdash" style="margin-top:10pt"><code>\bigemdash[<em>yoffset,thickness</em>]</code></p>
<p>Simulates a "big emdash" of variable length. Horizontal width is from command to end of line marked by <code>\par</code>, or limited by a fixed width such as created by <code>\makebox</code>. If placed in other situations, the line may be missing or too long.</p>
<p>The line's normal position is at the typical height of an emdash, which is slightly above half the height of lowercase x. Its normal width is typical of an emdash width. Thus, the line is like an extended emdash.</p>
<p>You can tweak the line using its optional argument. The first value tweaks the vertical position by a scale factor, where 1 equals its normal position (so that 0.9 places it a little lower). The second argument, if used, is separated from the first by a comma. It tweaks the line thickness by a scale factor (so that 0.9 makes it a little thinner).</p>
<p>Since <code>\bigemdash</code> allows an optional argument, but no mandatory argument, you may not immediately follow it with text. If it is boxed, then first close the box; otherwise, end the paragraph.</p>
<p style="margin-top:10pt"><code>\straightquote{}</code>, <code>\straightdblquote{}</code></p>
<p>These insert the single quote (apostrophe), and double quote, as ASCII straight characters. Prevents TeX (or your software) from automatically substituting the curly characters. The empty braces are mandatory.</p>
</div><!-- end 6.3.2 -->
</div><!-- end 6.3 -->

<h3 id="h6.4">6.4 Superscripts, Subscripts</h3>
<div class="d3" id="d6.4">
<p class="item"><b>A.</b> In <i>novel</i>, superscripts and subscripts are called "markers." Most book-quality Open Type fonts have markers in style sets (<i>sups</i>, <i>sinf</i>, <i>subs</i>).</p>
<p class="item"><b>B.</b> In professional fonts, marker glyph weights are adjusted for consistent appearance compared to ordinary glyphs. However, many free fonts do not adjust marker glyph weights, so the markers may appear too small, or too light. You may choose whether to use a font's own markers, or allow <i>novel</i> to generate markers, depending on whichever you think looks better.</p>
<p class="item"><b>C.</b> <i>real</i> markers attempt to use the Open Type feature <i>sups</i> for superscripts, and the feature <i>sinf</i> (preferred) or <i>subs</i> (alternate) for subscripts. Real markers are the best choice for professional fonts. If the requested feature is not available for the font, then it will be automatically faked, by scaling/raising/lowering ordinary characters from the basefont (lining numerals will be used).</p>
<p class="item"><b>D.</b> <i>fake</i> markers ignore whether the Open Type features are available, and simply fakes them. Sometimes this is the best choice for fonts that do not have properly designed markers.</p>

<h4 id="h6.4.1">6.4.1. <code>\SetMarkerStyle[<em>real,fake</em>]{<em>asterisk, dagger, number</em>}</code></h4>
<div class="d4" id="d6.4.1">
<p class="item"><b>A.</b> This command may only be used in the Preamble. It globally sets the kind of marker to be used. Default is <i>real</i> and <i>asterisk</i>.</p>
<p class="item"><b>B.</b> The optional argument applies real or fake markers, as described above.</p>
<p class="item"><b>C.</b> The required argument applies only to markers created by the <a href="#h9.1"><code>\footnote</code></a> command. It does not apply to endnotes, or to manually placed superscripts and subscripts.</p>
<p class="item"><b>D.</b> The available choices for marker style:</p>
<p>&bull; <i>asterisk</i> (default) uses symbolic footnote markers. The symbols rotate in order * † ‡ § ** †† ‡‡ §§ until reset.</p>
<p>&bull; <i>dagger</i> uses symbolic footnote markers, but without asterisks. The symbols rotate in order † ‡ § †† ‡‡ §§ until reset.</p>
<p>&bull; <i>number</i> uses numerical footnote markers. Due to possible conflict, the log file will have a "Big Bad Warning" if you use a numerical footnote marker in a document that also has endnotes, since endnotes always have numerical markers.</p>
</div><!-- end 6.4.1 -->

<h4 id="h6.4.2">6.4.2. <code>\realmarker</code>, <code>\fakemarker</code></h4>
<div class="d4" id="d6.4.2">
<p class="item"><b>A.</b> Within the body of the document, you may use <code>\realmarker</code> and <code>\fakemarker</code> to change your preference. The choice remains in effect until you change it again.</p>
<p class="item"><b>B.</b> The option real/fake applies wherever superscripts or subscripts are used, not just for footnotes or endnotes.</p>
</div><!-- end 6.4.2 -->
</div><!-- end 6.4 -->


</div><!-- end 6 -->
</div><!-- end page06 -->
<!-- ************************************************************ -->
<div id="page07" class="page">


<h2 id="h7">7. Images, Pictures, Drawings</h2>
<div class="d2" id="d7">
<p class="item"><b>A.</b> <b>Interior Bleed</b> is not supported. Only cover artwork has bleed.</p>
<p>If your book consists primarily of artwork, rather than text, then you should use a page layout program designed for that purpose, instead of TeX.</p>
<p class="item"><b>B.</b> The <b>picture environment</b> is not supported.</p>
<p>If you try to use a <code>picture</code> environment, it will probably not throw an error, because pictures are used in the internal code. However, you will get unexpected layout. In any case, <b>caption</b> is not supported.</p>
<p class="item"><b>C.</b> Most <b>vector drawings</b> (pgfplots, pstricks, TikZ) are not supported.</p>
<p class="item" style="position:relative"><b>D.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> You may work with the picture environment, and use vector drawings, in <code><a href="#h2.2">sandbox</a></code> mode.</p>
<p>This requires you to create your picture or drawing in a separate document, then process the PDF to a raster image. The raster image is placed in your main document, using the commands provided in this section.</p>
<p class="item"><b>E.</b> You cannot crop, transform, resize, or resample images within <i>novel</i>. Each image must be placed at exact size and resolution.</p>
<p>So, if an image has print size 1.5" by 2" at 300dpi resolution, then its dimensions must be 450x600 pixels. Be sure that the image file contains its resolution.</p>

<h3 id="h7.1">7.1. Technical Requirements for Raster Images</h3>
<div class="d3" id="d7.1">

<p class="noindent">Interior images may be black/white line art, or grayscale. Interior color is not supported. Color cover artwork has strong support.</p>

<h4 id="h7.1.1">7.1.1. Black/White and Grayscale Interior Images</h4>
<div class="d4" id="d7.1.1">
<p class="item"><b>A.</b> Interior images may be grayscale, or black/white. There is no provision for color interior.</p>
<p class="item"><b>B.</b> There is no provision for interior bleed. No image may approach the edge of the page. The amount of clearance is specified by your print service, and is often called the <a href="#h4.3.1.2">unsafe zone</a>.</p>
<p class="item"><b>C.</b> Black/White line art has a single channel, at 1-bit per pixel. This format is only used for material that is inherently black and white, without shading. It is also useful for including black text prepared as an image. Most print services request resolution 600 to 800 pixels per inch.</p>
<p class="item"><b>D.</b> Grayscale images have a single channel, at 8-bits per pixel. This format is used for photos and shaded artwork. It is also useful for including text prepared as an image, where the text is not black. Most print services request resolution 300 pixels per inch.</p>
 <p class="item"><b>E.</b> Each image must be flat (no layers, no transparency).</p>
<p class="item"><b>F.</b> Most print services require that images must be stripped of private metadata (such as EXIF), and that the color space be DeviceGray, rather than specified by a transfer profile.</p>
<p class="item"><b>G.</b> Black/White images must be in <i>png</i> file format. Grayscale images may be in either <i>png</i> or <i>jpg</i> file format.</p>
<p class="item" style="position:relative"><b>H.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> In the documentation <i>extras</i> folder, <i style="white-space:nowrap">novel-scripts.zip</i> will help you comply with these requirements. Complete usage information is provided there.</p>
 <p class="item"><b>I.</b> Now <i>novel</i> detects whether or not an interior image was pre-processed using <i>novel-scripts</i>. If yes, it is "known good". If no, it is "unknown" and may be good or bad.</p>
<p>If your document has any "unknown" images, you will get a Warning. The list of "unknown" images is written near the bottom of the log file.</p>
<p>If you know that an image meets specs (because you are a graphic artists who knows these things), but it wasn't processed by <i>novel-scripts</i>, you can manually add it to the list of "known good" images. In Preamble:</p>
<p class="code"><code>\SetKnownGoodImages{somefile.png anotherfile.jpg}</code></p>
</div><!-- end 7.1.1 -->

<h4 id="h7.1.2">7.1.2. Color Cover (deprecated)</h4>
<div class="d4" id="d7.1.2">
<p>As of late 2023, most print services no longer have the same requirements as they once did,
regarding color cover artwork. Although the method provided by <i>novel</i> still works,
it is the hard way to do something that (nowadays) does not have to be hard.</p>
<p class="item"><b>A.</b> The book cover may be (usually is) in color. Bleed is required.</p>
<p class="item"><b>B.</b> If your print service allows you to submit cover artwork as an ordinary RGB image file, that's the easiest way to do it. Then, <i>novel</i> is not used.</p>
<p class="item" style="position:relative"><b>C.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Complete support for creating a PDF/X-1a:2001 (or other) color cover, with image in CMYK at 240% ink limit, is provided in <i>novel-scripts.zip</i>. This format is required by some American print-on-demand services.</p>
<p>The scripts, and supporting documentation, are in the <i>novel</i> documentation <i>extras</i> folder.</p>
</div><!-- end 7.1.2 -->
</div><!-- end 7.1 -->


<h3 id="h7.2">7.2. Placing Interior Images</h3>
<div class="d3" id="d7.2">
<p class="item"><b>A.</b> If your book has a lot of images mingled with text, then you should consider using a page layout program (such as Scribus) instead of TeX. That's because the best strategies for an image-intensive picture book are very different from the strategies adoped by <i>novel</i>.</p>
<p class="item"><b>B.</b> Images are not allowed to overlap each other, in the kind of commercial printing that is likely to be used for your book. However, since overlap is generally legal in PDF, TeX will not issue an error.</p>
<p class="item"><b>C.</b> Remember: Images must be at exact size and resolution.</p>

<h4 id="h7.2.1">7.2.1. Image-Like Effects in Text</h4>
<div class="d4" id="d7.2.1">
<p class="noindent">You may scale, rotate, and displace text. This is done using text commands, and the result is still text. When cleverly done, it provides an image-like effect. See <a href="#h6">section 6</a> for the possibilities.</p> 
</div><!-- end 7.2.1 -->

<h4 id="h7.2.2">7.2.2. <code>\InlineImage[<em>hoffset,voffset</em>]{<em>imageFile.png or .jpg</em>}</code> and starred version</h4>
<div class="d4" id="d7.2.2">
<p class="item"><b>A.</b> This command places the image as an inline element, at 100% scale. The use of <i>png</i> or <i>jpg</i> images, with file extension, is required.</p>
<p class="item"><b>B.</b> You may offset the image horizontally or vertically. Positive direction is to the right and up. If you use one offset, then you must use both (if necessary, <i>0em</i>). Any units of length may be used, but the preferred units are <i>em</i> or <code>\textwidth</code> for horizontal, and <i>em</i> or <code><span style="cursor:help" title="normal baseline skip">\nbs</span></code> for vertical.</p>
<p class="item"><b>C.</b> By default, the <em>top</em> of the image is at the text baseline. If you prefer that the <em>bottom</em> of the image be at the text baseline, use voffset <i>b</i>. Example:</p>
<p class="code"><code>\InlineImage[0em,b]{imageFile.png}</code></p>
<p class="item"><b>D.</b> Thanks to the included <i>calc</i> package, offsets may use <code>\widthof{<em>text</em>}</code>, <code>\heightof{<em>text</em>}</code>, or <code>\depthof{<em>text</em>}</code>  as lengths. The most useful of these is when you wish to align the top of an image at the X-height of surrounding text:</p>
<p class="code"><code>\InlineImage[0em,\heightof{X}]{imageFile.png}</code></p>
<p>You may also use <code>\heightof{\Aring}</code> for the tallest accented letter normally found in Latin-1.</p>
<p>Another possibility is to align the bottom of an image with the lowercase descender:</p>
<p class="code"><code>\InlineImage[0em,b-\depthof{gjpqy}]{imageFile.png}</code></p>
<p class="item"><b>E.</b> Lengths <code>\imagewidth</code> and <code>\imageheight</code> may also be used for offsets. These lengths remain set, and can be used for other purposes (such as displacing text) until another image is placed.</p>
<p class="item"><b>F.</b> Offsets may be written as combinations of lengths. If you use the baseline <i>b</i> as above, it must be the first character of voffset. If you use <code>\widthof</code> or <code>\heightof</code>, then its backslash must be the first character <em>unless</em> it is preceded by another length. Thus, an offset of <code style="white-space:nowrap">-\heightof{X}</code> is prohibited, but you can use <code>0pt-\heightof{X}</code>.
<p>Here are some examples of allowable code:</p>
<p class="code"><code>
\InlineImage[2.3em, -0.4em]{imageFile.png}<br/>
\InlineImage[0pt-\widthof{eee}, b+\heightof{X}-0.2em]{imageFile.jpg}
</code></p>
<p class="item"><b>G.</b> The image occupies zero vertical space. So, it will not push apart baselines. The next line(s) of text may overlie the image. In some cases, this is desirable. If you do not want that effect, then you can either insert a suitable number of <code>\null</code> lines after the image, or use the <code>\FloatImage</code> command instead.</p>
<p class="item"><b>H.</b> With the un-starred <code>\InlineImage</code> command, the image occupies its natural horizontal width. That is, text following the image will (if it fits) continue from the right edge of the image. But with the starred <code>\InlineImage*</code> command, the image occupies zero width. In this case, text following the image will continue from the left of the image, and overlie the image.</p>
<p class="item"><b>I.</b> Having text overlie the image is allowable, and can create some interesting special effects. But when your print service sees what you have done, they may think that it is a mistake. Be sure that you discuss this with them.</p>
<p>If you do allow text to overlie an image, be sure that the image is very light. Repeat: <em>very light</em>. Depending on the printing technology, an image may print darker than you see on your computer screen, and that would make text hard to read. At low print volume, your print service will probably use a technology that can make very sharp text over images. However, if your book goes to volume production, then the technology will be different. Volume printing will use halftoned images, and the text overlay may also become halftoned, which will reduce its sharpness considerably.</p>
<p class="item"><b>J.</b> An image may be placed in a way that prints some of the image in the margin. That's allowable if your margin is wider than the minimum required for printing clearance. But even if it is not allowable, there will be no complaint or warning from TeX. Use the <a href="#h2.3">shademargins</a> class option to ascertain position, and consider setting an <a href="#h4.3.1.2">unsafe zone</a>.</p>
<p class="item" style="position:relative"><b>K.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Do not place an image so that it approaches or goes beyond the page edge. That requires a "bleed box" which is not part of <i>novel</i> capabilities (except for cover art). If your book needs that kind of image handling, use a page layout program instead.</p>
</div><!-- end 7.2.2 -->

<h4 id="h7.2.3">7.2.3. Text Over <code>\InlineImage</code></h4>
<div class="d4" id="d7.2.3">
<p class="item"><b>A.</b> As noted above, an <code>\InlineImage</code> (or its starred version) can be used as the background to any subsequent text. Whatever sits atop an image must be darker. If you need text in gray, it is better to integrate the rasterized text with the image in an external graphics program, instead of using gray text in your document.</p>
<p class="item"><b>B.</b> When text overlies an image, it retains its identity as vector paths, as far as the PDF is concerned. In some printing processes, particularly those for very low volume production, the result will be as sharp and dark as ordinary text. However, if your book sells well (or is being prepared to sell well), the image will be converted to halftone, and the text that lies above it may also be converted to halftone. This will reduce the sharpness of the text. It is not necessarily a problem, unless your text is very small or has fine details.</p>
<p>If the text-over-image is part of a title, then the text is naturally large and dark, and will easily withstand halftoning.</p>
<p class="item"><b>C.</b> Not all print services will accept text over images. It's not that they <em>cannot</em> do it; after all, your home and office printers can easily do it. The reason they object is because the pages of your book will be handled in small volume by persons who are unfamiliar with the book. Text over an image may be flagged as a printing error or a bug in the PDF. In the advertising world, text over image is routine. But in the world of fictional novels, it is unusual.</p>
<p class="item"><b>D.</b> An inline image occupies zero vertical space. If you place its top near the bottom of the textblock, then the image will happily flow into the lower margin and perhaps off the bottom of the page, without an error (but the print service will reject it). The reason that TeX does not provide an error message is quite simple: Technically, it is not an error! It is just not what you meant to do. The software cannot read your mind. This is where the <a href="#h2.3">shademargins</a> class option helps, especially when you set an <a href="#h4.3.1.2">unsafe zone</a>.</p>
<p>Example:</p>
<p class="code"><code>
\noindent\InlineImage*[0pt,1.2<span style="cursor:help" title="normal baseline skip">\nbs</span>]{gavel.png} Lord Withens took a seat at the rear of the courtroom, attempting to be inconspicuous. Yet his effort was in vain, as he was the only person there with a riding crop and spurs.\par<br/>
He would have taken the car, had it not been stolen. But that was why he was here, at the arraignment of the person charged with the theft. It was most unfortunate that the accused was his own elderly father; but then, theft ran in the family line.\par
</code></p>
<p class="centerimg"><img src="html-resources/inlineimagest.png" width="651" height="249" alt="example of InlineImage*"/></p>
</div><!-- end 7.2.3 -->

<h4 id="h7.2.4">7.2.4. <code>\FloatImage[<em>floatmethod,xoffset,yoffset</em>]{<em>ImageFile .png or .jpg</em>}</code></h4>
<div class="d4" id="d7.2.4">
<p class="item"><b>A.</b> <code>\FloatImage</code> places the image in its own block, like a paragraph.</p>
<p class="item"><b>B.</b> The image will always be horizontally centered. If that is not what you wish, then you can widen the image in a graphics program, adding white space as needed. Or, you can use <code>xoffset</code> to move the image.</p>
<p class="item"><b>C.</b> The top of the image will be positioned at the baseline of text, where text would have been without the image. You may adjust that position using <code>yoffset</code> (a positive length is upward). In some cases, <code>\normalXheight</code> (the normal text X height) is a good choice for <code>yoffset</code>.</p>
<p class="item"><b>D.</b> The height of the image is automatically measured, so that the following paragraph will be positioned at an integer number of baseline skips. This maintains the text line grid.</p>
<p class="item"><b>E.</b> The optional argument is comma-separated, with up to three values. The first is float method. The second (if used) is horizontal offset. The third (if used) is vertical offset. In some cases, changing the vertical offset will determine where the image fits.</p>
<p class="item"><b>F.</b> The <i>float method</i> is a code describing how the floated image should be placed. The available choices are <code>t</code>, <code>b</code>, <code>ht</code>, and <code>hb</code>. Default is <code>ht</code>. Any un-listed float method will be substituted with <code>ht</code>.</p>
<p class="code"><code>ht</code> places the float "here" (mid-page, where code appears) if possible. But if the image doesn't fit, it will appear at the top of the following page.</p>
<p class="code"><code>hb</code> places the float "here" (mid-page, where code appears) if possible. But if the image doesn't fit, it will appear at the bottom of the following page. This method is unusual.</p>
<p class="code"><code>t</code> places the float at the top of the following page. It may appear at the top of the page where the code is written, but only if the image happens to be the first content there.</p>
<p class="code"><code>b</code> places the float at the first page bottom where it can fit.</p>
<p class="item"><b>G.</b> No other kind of float is available, not even by loading other packages. The <i>novel</i> class is not intended for books that rely on floats. Other document classes already have that capability. Or, consider using a page layout program instead of TeX.</p>
<p class="item"><b>H.</b> When a floated image is pushed to the following page, it will appear there, even if the image is too large for the page size. Other TeX classes will defer it.</p>
<p class="item"><b>I.</b> The <i>floatpag</i> package does not work in <i>novel</i>. If a floated image occupies a full page, you cannot customize the head/foot style for that page; it will be the same as it was on the calling page.</p>
</div><!-- end 7.2.4 -->

<h4 id="h7.2.5">7.2.5. <code>\WrapImage[<em>position</em>]{<em>ImageFile.png or .jpg</em>}</code></h4>
<div class="d4" id="d7.2.5">
<p class="item"><b>A.</b> The <code>\WrapImage</code> command is a front-end to the included <i>wrapfig</i> package. Do not use commands from <i>wrapfig</i> directly.</p>
<p class="item"><b>B.</b> <code>\WrapImage</code> is written between paragraphs. The image will appear with the next paragraph (unless moved). You cannot achieve the effect of wrapping an image mid-paragraph.</p>
<p class="item" style="text-align:justify"><b>C.</b> <img class="floatright" style="position:relative; top:6px; margin-right:0px" src="html-resources/wrapme.png" width="104" height="104" alt="Wrap me!" title="Wrap me!"/><code>\WrapImage</code> allows text (may be more than one paragraph) to wrap around an image. What you are now reading uses this technique in HTML. The text is wrapped around the image at right. Next to the image, the lines of text are shorter. Past the bottom of the image, the line length is restored to its usual size. In HTML, this is called <i>floating</i> an image; but in TeX, it is called <i>wrapping</i>. Wrapped images are uncommon in fiction, but they might be more useful on display pages, which have many positioned elements but little running text.</p>
<p class="item"><b>D.</b> The optional argument is position, any one of these letters: <code style="white-space:nowrap">l r o i L R O I</code>. Default is <code>r</code>. The letters place the image at left, right, outside, or inside (spine).</p>
<p>Lowercase position places the image where you wrote the code. However, if there is not enough space to fit it (too close to bottom of page), then both the image and the wrapped text will be moved to the next page. This leaves a white gap at the bottom of the previous page, which is undesirable. But it guarantees that the image remains attached to the expected text.</p>
<p>Uppercase position places the image where you wrote the code, if possible. However, if the image cannot fit there, then the image is floated to the next page, and accompanies the first new paragraph. This avoids a white gap at page bottom, but the image no longer accompanies the expected text. If you use this kind of position, avoid referring to "the image at right" or anything else that makes no sense if the image is moved.</p>
<p class="item"><b>E.</b> The top of the image will be placed as the X-height of normal text. This provides a good compromise between visual clearance and conserving space. You cannot increase the separation between text and image via command. If you need more white space around the image, then enlarge it in a graphics program, with surrounding white areas.</p>
<p class="item"><b>F.</b> You cannot wrap around a shape other than a rectangle. For that, you need a page layout program. Note: Actually, it can be done in TeX, but the code is mind-boggling and not part of any package. Don't ask.</p>
</div><!-- end 7.2.5 -->
</div><!-- end 7.2 -->


</div><!-- end 7 -->
</div><!-- end page07 -->
<!-- ************************************************************ -->
<div id="page08" class="page">


<h2 id="h8">8. Tables and Lists</h2>
<div class="d2" id="d8">
<p class="item"><b>A.</b> <b>Lists</b> are not supported.</p>
<p>If you attempt to use any of the well-known list environments, an error will result. This is because lists are typeset using layout incompatible with the rest of <i>novel</i></p>
<p>If you need a list, you can use <code><a href="#h2.2">sandbox</a></code> mode in a separate document, convert the list to a raster image, then place the image in your main document.</p>
<p class="item"><b>B.</b> <b>Tables</b> are not supported, except for the built-in <code><a href="#h8.1">toc</a></code>.</p>
<p>If you attempt to use any of the well-known table environments, an error will result. This is because tables are typeset using layout incompatible with the rest of <i>novel</i></p>
<p>If you need a table, you can use <code><a href="#h2.2">sandbox</a></code> mode in a separate document, convert the table to a raster image, then place the image in your main document. This is unnecessary if you use <code><a href="#h8.1">toc</a></code>.</p>

<h3 id="h8.1">8.1. The <code>toc</code> Environment</h3>
<div class="d3" id="d8.1">
<p class="item"><b>A.</b> You may create a Table of Contents in your own style, or use the <i>toc</i> environment for <i>novel's</i> own style. The choice is yours.</p>
<p class="item"><b>B.</b> Since <code>toc</code> is not synchronized against any other code, you may use it more than once, and you may use it for any purpose (not necessarily a Table of Contents).</p>
<p class="item"><b>C.</b> The <code>toc</code> is an environment:</p>
<p class="code"><code>\begin{toc}[<em>extra entry separation</em>]{<em>extra margins</em>} <em>...</em> \end{toc}</code></p>
<p>The table is not indented, and text within it is not indented.</p>
<p class="item"><b>D.</b> The optional argument is a number. It is the portion of normal baselineskip that will be added beneath each <code><a href="#h8.1.1">\tocitem</a></code> entry. Default is 0, meaning that there is no extra skip between items, and normal baselineskip is maintained.</p>
<p>A value greater than 0 spreads the entries, which could be attractive if there are only a few chapters and you'd like to use more space on the page. For example, a value of <i>0.25</i> means that a gap of 0.25 normal baselineskip will be added beneath each entry.</p>
<p>A small negative value will crowd the lines together, but there is a limit (approximately -0.1) before the lines cannot be squeezed any tighter.</p>
<p>Note that the optional argument only applies to <code>\tocitem</code> entries, not to any other text within the environment.</p>
<p class="item"><b>E.</b> The required argument is a length, which will be the amount of extra margin added at left and right of the table (using <i>adjustwidth</i>). A value of <i>0em</i> allows the table to occupy the full width of the textblock. A value of <i>2em</i> adds 2em to the margin on each side, so that the width of the table is 4em less than the width of the textblock.</p>
<p> It is best to specify horizontal lengths in units of <i>em</i> or the proportional <code>\parindent</code> or <code>\textwidth</code>.</p>
<p class="item" style="position:relative"><b>F.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Place at least one empty line above the Table's title, using <code>\null</code> or <code>\vspace*</code>. This will prevent the title (which is normally enlarged using <code>\charscale</code>) from encroaching into the top margin.</p>

<h4 id="h8.1.1">8.1.1. Entries Using <code>\tocitem</code></h4>
<div class="d4" id="d8.1.1">
<p class="code"><code>\tocitem[<em>chapter number</em>]{<em>description</em>}{<em>page number</em>}</code> and starred</p>
<p class="item"><b>A.</b> Use <code>\tocitem</code> for entries in <code>toc</code>. Do not use it for non-Table text on the page.</p>
<p class="item"><b>B.</b> The optional argument is the <i>chapter number</i>, at most two digits. The number will be left-aligned, with a period automatically added. Following the period will be whatever amount of space is needed to keep the following description aligned.</p>
<p>&bull; If the optional argument is omitted (or empty), then the <i>description</i> will align to the left of the table.</p>
<p>&bull; If the optional argument is the tilde character <code>~</code> then no number or period is printed, but the space for <i>chapter number</i> is occupied, so that the following <i>description</i> aligns as if you had entered a <i>chapter number</i>.</p>
<p class="item"><b>C.</b> The <i>description</i> is usually the chapter title. If it cannot easily fit on one line, then use an additional <code>\tocitem</code>, because the text cannot be wrapped. The following example shows how this can be done.</p>
<p class="item"><b>D.</b> Without the asterisk, <code>\tocitem</code> fills the area between the description and the page number with empty space. The more popular, starred <code>\tocitem*</code> command fills with a dotted line, and is very attractive.</p>
<p class="item"><b>E.</b> You may use ordinary style commands, such as <code>\textit</code>, in the entries.</p>
</div><!-- end 8.1.1 -->

<h4 id="h8.1.2">8.1.2. Example Table of Contents</h4>
<div class="d3" id="d8.1.2">
<p class="code" style="text-indent:0px; font-size:small"><img class="floatright" src="html-resources/toc.png" width="264" height="408" alt="toc example"/>
<code>
\cleartorecto % because ToC must start recto<br/>
\thispagestyle{empty}<br/>
\vspace*{4<span style="cursor:help" title="normal baseline skip">\nbs</span>}<br/>
\begin{toc}[0.25]{5.5em}<br/>
{\centering\charscale[1.25]{Contents}\par}<br/>
\null\null<br/>
\tocitem*{Prologue}{1}<br/>
\tocitem*[1]{The Evil Weeds}{5}<br/>
\tocitem*[2]{A Plan of Attack}{18}<br/>
\tocitem*[3]{Lady Withens Objects}{35}<br/>
\tocitem*[4]{Back-Hoe to the Rescue}{48}<br/>
\tocitem*[5]{Invasion of the Dandelions}{63}<br/>
\tocitem*[~]{\emph{Interlude}}{90}<br/>
\tocitem*[6]{Army of the Gardeners}{94}<br/>
\tocitem*[7]{Too Much Rain}{113}<br/>
\tocitem*[8]{To Nuke, or Not to Nuke?}{145}<br/>
\tocitem*[9]{Revenge of the Zucchini}{162}<br/>
\tocitem*[10]{Lady Withens Sneezes}{180}<br/>
\tocitem*[11]{The Concrete Lawn}{206}<br/>
\tocitem*{Epilogue}{228}<br/>
\end{toc}<br/>
\clearpage 
</code>
</p>
<div style="clear:both"></div>
</div><!-- end 8.1.2 -->
</div><!-- end 8.1 -->

</div><!-- end 8 -->
</div><!-- end page08 -->
<!-- ************************************************************ -->
<div id="page9" class="page">


<h2 id="h9">9. Footnotes and Endnotes</h2>
<div class="d2" id="d9">
<p class="item"><b>A.</b> The <i>novel</i> class has <em>limited</em> support for <a href="#h9.1">footnotes</a>. The support is adequate for the needs of fictional works, but not academic works.</p>
<p class="item"><b>B.</b> There is <em>em</em> limited support for <a href="#h9.2">endnotes</a>. The primary difference between <i>novel's</i> method, and the method used by other document classes, is that <i>novel</i> only places a marker. It does not remember or automate the text of endnotes. You must write the notes yourself.</p>
<p class="item"><b>C.</b> You may use both footnotes and endnotes.</p>
<p class="item"><b>D.</b> In the running text, markers for footnotes and endnotes are superscripts. You may control their appearance using the method of <a href="#h6.4">section 6.4</a>.</p>
<p class="item"><b>E.</b> The actual footnote (at base of page) or endnote (wherever placed) does <i>not</i> use a superscript for its marker. Instead, the marker has ordinary size and position. This is the recommended style.</p>
<p class="item"><b>F.</b> <b>Margin notes</b> are not supported.</p>

<h3 id="h9.1">9.1. Footnotes</h3>
<div class="d3" id="d9.1">
<p class="item"><b>A.</b> Footnotes appear at the bottom of the page where they are placed. There is no option to accumulate them to another location. Very long footnotes might straddle pages, but that is automatic, and not within your control.</p>
<p class="code"><code>\footnote[<em>option</em>]{<em>text</em>}</code></p>
<p class="item"><b>B.</b> The <code>\footnote</code> command places a <a href="#h6.4">superscript</a> "marker" at the place where the command is written. The included text is written at the bottom of the page, beneath a short line that separates it from the main text. The footnote text is at smaller size and line skip, and has the same marker placed before it (but not as superscript). All of this is automatic.</p>
<p class="item"><b>C.</b> You may, if necessary, apply some style to the footnote text. For example, if you are referring to another work, its title might be in italics.</p>
<p class="item"><b>D.</b> Normally, no option is used. If you use option <i>0</i> (zero) then no marker will appear in the main text, and the footnote text will also appear without a marker. The count of markers is not incremented. This applies whether the markers are numbers or symbols.</p>
<p><b>E.</b> If you are normally using footnote <i>numbers</i>, but wish to place a particular footnote using a <i>symbol</i> instead, you can do it manually. For example:</p>
<p class="code"><code>He blinked.*\footnote[0]{* No, he didn't.}</code></p>
<p><b>F.</b> Avoid use of underlining or bold. It is considered bad style, due to visual distraction. If necessary, use italics.</p>
<p class="item" style="position:relative"><b>G.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> Sorry, but even though there are numerous TeX packages for custom footnote styles, they will not work in <i>novel</i>. This is intentional.</p>
</div><!-- end 9.1 -->

<h3 id="h9.2">9.2. Endnotes</h3>
<div class="d3" id="d9.2">
<p class="item"><b>A.</b> Endnotes are sometimes used in fiction. Often, the endnotes are also fictional.</p>
<p class="item"><b>B.</b> You may use both footnotes and endnotes. However, if endnotes are used, then footnotes must be marked by symbols, rather than by numbers, to avoid confusion. The counts for endnotes and footnotes are independent.</p>
<p class="item"><b>C.</b> If you gather endnotes at the rear of your book, then arabic page numbering continues. Think of the endnotes as just another chapter. If you use page headings, then the preferred style is to use something like <i>Notes to Chapters 3-4</i> in the headings, changing it on a page by page basis using <code><a href="#h4.3.4.6">\SetRectoheadText</a></code> and <code><a href="#h4.3.4.6">\SetVersoheadText</a></code>.</p>
<p class="item" style="position:relative"><b>D.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> The <i>endnotes</i> package may not be used, due to conflict with <i>novel's</i> built-in commands.</p>

<h4 id="h9.2.1">9.2.1. <code>\endnote{<i>comment</i>}</code>, <code>\ResetEndnote</code></h4>
<div class="d4" id="d9.2.1">
<p class="item"><b>A.</b> The <code>\endnote</code> command inserts a numerical superscript in the text. A running count of the numbers is automatically updated.</p>
<p class="item"><b>B.</b> Endnote numbers normally run continuously through the text. If you wish to reset the count (perhaps at new chapters), you have to do it manually, using <code>\ResetEndnote</code> at the appropriate location.</p>
<p class="item"><b>C.</b> No argument is needed. But if you write <code style="white-space:nowrap">\endnote{<i>some comment</i>}</code>, then the comment will not print. It is merely a note to yourself, reminding you why you put an endnote there. The comment is not stored for later use, so it is not the actual content of the endnote text.</p>
<p class="item"><b>D.</b> You may not immediately follow <code>\endnote</code> with a square bracket <code>[</code>. If you do that, an error results. If you need to follow the command with a printing square bracket, then use <code>\endnote{}[</code>.
<p class="item" style="position:relative"><b>E.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> The <i>novel</i> class does not know, and does not care, whether or not you actually write the endnotes later. The <code>\endnote</code> command merely places a marker. It does not record data for later use.</p>
</div><!-- end 9.2.1 -->

<h4 id="h9.2.2">9.2.2. <code>\endnotetext{<i>number</i>}{<i>text</i>}</code></h4>
<div class="d4" id="d9.2.2">
<p class="item"><b>A.</b> The built-in <code>\endnotetext{}{}</code> takes two mandatory arguments. No optional argument. If you follow <code>\endnotetext</code> with a square bracket <code>[</code>, then an error results.</p>
<p class="item"><b>B.</b> The first argument is usually the endnote number. A period and following space will automatically be added. You may use <code>\emph{<em>number</em>}</code> if you prefer the number to be in italics.</p>
<p class="item"><b>C.</b> The text will be block-indented. It is limited to one paragraph. If the note needs more than one paragraph, then continue like this, with an empty note number:</p>
<p class="code"><code>\endnotetext{}{\indent <em>text</em>}</code></p>
<p class="item"><b>D.</b> Example of an endnote:</p>
<p class="code">
<code><small>
\endnotetext{9}{Yang Sho-Nuff was the twelfth son of the elder god of the ancient Who-Zit Clan, with power over the forces of rust.\par}<br/>
\endnotetext{}{\indent However, since this was not yet the Iron Age, the terrible might of Yang Sho-Nuff was largely unrecognized.\par}<br/>
\endnotetext{10}{As Professor Withens notes in his treatise, \emph{When Sho-Nuff Was Not Enough}, the ceremony of daily human sacrifice had a devastating effect on the tribal population.\par}
</small></code></p>
<p class="centerimg"><img src="html-resources/endnotetext.png" width="447" height="151" alt="using endnotetext"/></p>
<p class="item" style="position:relative"><b>E.</b> <img src="html-resources/info18.png" width="18" height="18" style="position:relative; bottom:-3px" title="tech info" alt="tech info"/> If you don't like the built-in <code>\endnotetext</code> style, you can change it to suit your needs, using <code>\renewcommand</code>. Coding is up to you!</p>
</div><!-- end 9.2.2 -->
</div><!-- end 9.2 -->


</div><!-- end 9 -->
</div><!-- end page09 -->
<!-- ************************************************************ -->
<div id="pageA" class="page">


<h2 id="hA">Appendix A. Sample Document</h2>
<div class="d2" id="dA">
<p class="noindent">If you click on a command, you will be taken to its documentation.
There are many other commands available, but they are not specific to novel class.</p>
<div class="sampledoc">
<p>Non-empty default values are <em>shown like this</em>.<br/>
&nbsp;</p>
<p style="text-indent:0">
<a href="#h1.1.1">% !TeX TS-program = lualatex</a><br/>
<a href="#h1.1.2">% !TeX encoding = UTF-8</a><br/>
<a href="#h2">\documentclass{novel}</a> % See list of class options; usually none needed.<br/>
%%% METADATA (FILE DATA):<br/>
<a href="#h3.3.1">\SetTitle{<em>IMPORTANT: Provide Book Title</em>}</a> % Required for PDF/X.<br/>
<a href="#h3.3.3">\SetSubtitle{}</a> % Default: empty.<br/>
<a href="#h3.3.2">\SetAuthor{}</a> % Default: empty.<br/>
<a href="#h3.3.4">\SetApplication{<em>LuaLaTeX with novel and microtype</em>}</a><br/>
<a href="#h3.3.4">\SetProducer{<em>LuaLaTeX with novel-pdfx and hyperref</em>}</a><br/>
<a href="#h3.4">\SetPDFX[<em>CGATSTR001</em>]{<em>X-1a:2001</em>}</a><br/>
%%% DIMENSIONS:<br/>
<a href="#h4.1.1">\SetTrimSize{<em>5.5in</em>}{<em>8.5in</em>}</a> % Sets width, height of your book.<br/>
% Default Media Size equals Trim Size.<br/>
% Rarely-used over-ride, except for cover artwork:<br/>
% <a href="#h4.1.2">\SetMediaSize[<em>alignment</em>]{<em>width</em>}{<em>height</em>}</a><br/>
% Default margins vary with Trim Size. Defaults for {5.5in}{8.5in}:<br/>
<a href="#h4.3.1">\SetMargins{<em>0.5in</em>}{<em>0.5in</em>}{<em>0.5in</em>}{<em>0.75in</em>}</a><br/>
%%% GENERAL FONTS:<br/>
% Percent at end of line is necessary, when writing font settings multi-line:<br/>
<a href="#h4.2.1.1">\SetParentFont[%<br/>
<em>SmallCapsFeatures={Renderer=Basic},</em></a>% Effective when small caps requested locally.<br/>
<a href="#h4.2.1.1"><em>Kerning=On,</em> %<br/>
<em>Ligatures=TeX,</em> %<br/>
]{<em>Libertinus&nbsp;Serif</em>}</a><br/>
% Main text font automatically adds <em>Numbers=OldStyle,Ligatures=Common</em>.<br/>
% Default main font size is based on other layout settings.<br/>
% Varies from 11pt to 12pt. With all default layouts, value is 11.4pt.<br/>
% You may manually choose a different main font size:<br/>
% <a href="#h4.2.1.2">\SetFontSize{<em>length</em>}</a><br/>
% Default lines per page (main textblock) is calculated from other layout settings.<br/>
% When using all defaults, the calculated value is 35.<br/>
% If used, \SetLinesPerPage manually chooses the value:<br/>
% <a href="#h4.3.2">\SetLinesPerPage{<em>integer</em>}</a><br/>
<a href="#h4.2.3">\SetDecoFont{<em>NovelDeco.otf</em>}</a><br/>
<a href="#h4.2.4">\setsansfont{<em>Libertinus Sans</em>}</a><br/>
<a href="#h4.2.4">\setmonofont{<em>Libertinus Mono</em>}</a><br/>
<a href="#h4.2.4">\setmathfont{<em>Libertinus Math</em>}</a> % unicode-math<br/>
%%% HEADERS/FOOTERS:<br/>
<a href="#h4.3.3">\SetHeadFootStyle{<em>1</em>}</a> % This style has headers only.<br/>
<a href="#h4.3.4.1">\SetHeadJump{<em>1.5</em>}</a><br/>
<a href="#h4.3.4.1">\SetFootJump{<em>1.5</em>}</a><br/>
<a href="#h4.3.4.3">\SetLooseHead{<em>50</em>}</a><br/>
<a href="#h4.3.4.5">\SetEmblems{}{}</a> % Default blanks.<br/>
<a href="#h4.3.4.2">\SetHeadFont[<em>\parentfontfeatures,Letters=SmallCaps,Scale=0.92</em>]{<em>\parentfontname</em>}</a><br/>
<a href="#h4.3.4.4">\SetPageNumberStyle{<em>\thepage</em>}</a><br/>
<a href="#h4.3.4.6">\SetVersoHeadText{<em>\theAuthor</em>}</a><br/>
<a href="#h4.3.4.6">\SetRectoHeadText{<em>\theTitle</em>}</a><br/>
%%% CHAPTERS:<br/>
<a href="#h5.1.2.1">\SetChapterStartStyle{<em>footer</em>}</a> % Equivalent to empty, when style has no footer.<br/>
<a href="#h5.1.2.2">\SetChapterStartHeight{<em>10</em>}</a><br/>
<a href="#h5.1.3.1">\SetChapterFont[<em>Numbers=Lining,Scale=1.6</em>]{<em>\parentfontname</em>}</a><br/>
<a href="#h5.1.3.1">\SetSubchFont[<em>Numbers=Lining,Scale=1.2</em>]{<em>\parentfontname</em>}</a><br/>
<a href="#h5.3.1">\SetScenebreakIndent{<em>false</em>}</a><br/>
%%% CUSTOM FONTS:<br/>
% <a href="#h4.2.5">\NewFontFamily[]{}</a> % Optional command.<br/>
% <a href="#h4.2.5">\NewFontFace[]{}</a> % Optional command.<br/>
% <a href="#hE.2.3">\CreateFontFeature{}{}</a> % Optional command.<br/>
%%% OTHER:<br/>
<a href="#h1.1.3">Language Support</a>
<a href="#h6">\microtypesetup{<em>config=novel-microtype,stretch=20,shrink=20,final</em>}</a> % microtype<br/>
%%% BEGIN DOCUMENT:<br/>
\begin{document}<br/>
<a href="#hD.3.2">\frontmatter</a> % Required.<br/>
% Typically <a href="#hB">six pages</a> of front matter, but <a href="#hD.3.2">could be more</a>.<br/>
<a href="#hD.3.3">\mainmatter</a> % Required<br/>
% <a href="#h5">Chapters</a> go here. SAMPLE Chapter structure:<br/>
<a href="#h5.1.1">\clearpage</a> % or <a href="#h5.1.1">\cleartorecto</a><br/>
<a href="#h5.1.2.3">\begin{ChapterStart}</a><br/>
\vspace*{2<span style="cursor:help" title="normal baseline skip">\nbs</span>} % Space above chapter title. \nbs = normal baseline skip.<br/>
<a href="#h5.1.3">\ChapterTitle{</a>— 1 —<a href="#h5.1.3">}</a> % Perhaps also <a href="#h5.1.3">ChapterSubtitle</a>, <a href="#h5.1.3">ChapterDeco</a>.<br/>
<a href="#h5.1.2.3">\end{ChapterStart}</a><br/>
It was a dark and stormy night, etc.<br/>
<a href="#h5.1.1">\clearpage</a> % or <a href="#h5.1.1">\cleartorecto</a><br/>
\end{document}
</p>
</div>


</div><!-- end A -->
</div><!-- end Appendix A -->
<!-- ************************************************************ -->
<div id="pageB" class="page">


<h2 id="hB">Appendix B. &nbsp; Basic Six-Page Front Matter</h2>
<div class="d2" id="dB" style="padding-top:0.5em">
<p class="imgcentered"><img src="html-resources/sixpage-frontmatter.png" width="740" height="189" alt="Six-page front matter, with Epigraph on page v." title="Six-page front matter."/></p>
<p class="noindent1">In many instances, six pages of front matter are all you need for fiction. This is often true for major publishers, not just self-published P.O.D. authors.</p>
<p class="noindent1">You can use six pages, provided that:</p>
<p class="overhang">&bull; Your front matter does not contain material written by someone else (such as a Foreword), no matter how short. Exception: You may use an Epigraph.</p>
<p class="overhang">&bull; Your front matter contains at most one of the following, limited to a single page: Dedication, Epigraph, Table of Contents, Acknowledgements, Author's Note, Map.</p>
<p class="noindent2">If both of the above points apply, then your front matter is organized as follows. Be sure that your document begins with the <code>\frontmatter</code> command, and that each page begins with <code>\thispagestyle{empty}</code> and ends with <code>\clearpage</code>.</p>

<h3 id="hB.1">B.1. &nbsp; Half-Title to Copyright</h3>
<div class="d3" id="dB.1">
<p class="noindent">The first four pages (i - iv) are the same for nearly every book.</p>
<p class="overhang"><b>Page i. Half-Title.</b></p>
<p class="overhang"><b>Page ii. Blank.</b> Alternatively, if you wrote numerous books, you can provide a list of them. However, many print/distribution services will not allow such a list, unless they carry everything on the list.</p>
<p class="overhang"><b>Page iii. Title Page.</b></p>
<p class="overhang"><b>Page iv. Copyright Page.</b></p>
</div><!-- end B.1 -->

<h3 id="hB.2">B.2. &nbsp; Post-Copyright</h3>
<div class="d3" id="dB.2">
<p class="noindent">After the copyright page, there may be some variation.</p>
<p class="overhang"><b>Page v. Varies.</b> One of: Dedication, Epigraph, Table of Contents, Acknowledgements, Author's Note, Map. If you have none of them, then repeat the Half-Title.</p>
<p>Don't be afraid to simply repeat the Half-Title. Even major publishers do it, when they have nothing else to say in front matter.</p>
<p class="overhang"><b>Page vi. Blank.</b> Exception: If Page v does not have an Epigraph or Half-Title, you may place an Epigraph here, provided that it does not visually detract from the story that begins on the facing page.</p>
</div><!-- end B2 -->

<h3 id="hB.3">B.3. &nbsp; Sample TeX Code</h3>
<div class="d3" id="dB.3">
<div style="margin-left:32px">
<p class="code"><code>
\begin{document}<br/>
\frontmatter % Sets page number to i.<br/>
\thispagestyle{empty}<br/>
% Half-Title Page.<br/>
\clearpage<br/>
\thispagestyle{empty}<br/>
\null % Necessary for blank page.<br/>
% Alternatively, List of Books.<br/>
\clearpage<br/>
\thispagestyle{empty}<br/>
% Title Page.<br/>
\clearpage<br/>
\thispagestyle{empty}<br/>
% Copyright Page.<br/>
\clearpage<br/>
\thispagestyle{empty}<br/>
% Dedication or Epigraph or TOC or Acknowledgements or Author's Note or Map.<br/>
% Alternatively, repeat the Half-Title.<br/>
\clearpage<br/>
\thispagestyle{empty}<br/>
\null % Necessary for blank page.<br/>
% Alternatively, Epigraph if it does not detract from facing page.<br/>
\clearpage<br/>
\mainmatter % Sets page number to 1 for following material.
</code></p>
</div>
</div><!-- end B.3 -->


</div><!-- end B -->
</div><!-- end Appendix B -->
<!-- ************************************************************ -->
<div id="pageC" class="page">


<h2 id="hC">Appendix C. &nbsp; Shopping for Fonts</h2>
<div class="d2" id="dC">
<p class="noindent1">Since the <i>novel</i> class uses only <i>LuaLaTeX</i> and <i>fontspec</i> with utf-8 encoding, you may use any Open&nbsp;Type or TrueType font, subject to licensing. You are not limited to TeX fonts.</p>
<p>Many TeX fonts are only available in older Type 1 format (PostScript). Use of such fonts is <i>strongly discouraged</i>, due to possible issues in <i>novel</i> class (which will not be fixed, if they appear).</p>
<p>In some other cases, a TeX font package provides both the older format, and a newer Open&nbsp;Type or TrueType format. The different formats will have different font names. Sometimes the difference is very slight. Carefully look at the font name for the Open&nbsp;Type format, using TrueType only as a second choice. Remember that most on-line discussions will refer to the older Type 1 PostScript fonts, simply because they have been around longer. For example: <i>Linux&nbsp;Biolinum</i> is a sans-serif font available via TeX as a PostScript font. But <i>Linux&nbsp;Biolinum&nbsp;O</i> (note the O) is an Open&nbsp;Type font. If you need this font, then call for <i>Linux&nbsp;Biolinum&nbsp;O</i>, not simply <i>Linux&nbsp;Biolinum</i>.</p>
<p><b>Important:</b> Do not attempt to load a font by the <code>\RequirePackage</code> or <code>\usepackage</code> commands. Instead, if you choose to use fonts other than the defaults, load them via the <a href="#h4.2">font setting commands</a> described in this documentation. If you attempt to load a font the wrong way, you may get an error message, or the font may quietly fail to load.</p>

<h3 id="hC.1">C.1. &nbsp; Licensing Issues</h3>
<div class="d3" id="dC.1">
<p class="noindent1">Presumably, you are writing your novel for commercial value, and do not intend to give anything away for free. For that reason, avoid any font licensed under the GPL (GNU Public License) unless it has the <a class="external" rel="external" target="new" href="https://en.wikipedia.org/wiki/GPL_font_exception">font exception</a> clause. Many TeX fonts, and many non-TeX free fonts, are licensed under GPL, but <i>without</i> the relatively-recent font exception clause. Be careful!</p>
<p>Beware of fonts "free for personal use" from download sites. Your commercial application is not "personal use." Of course, if you like the font, you may purchase its commercial license.</p>
<p>Also beware of fonts generically labeled as "freeware" with no particular designer name. If you don't know who created the font, then how do you know that it can be given away for free? Even if there is a designer name, some of them had second thoughts about "freeware." They intended the fonts to be free only if you give your own work away for free. But they didn't mention it. Maybe they have no legal recourse, but you don't want them making anonymous negative reviews of your book.</p>
<p>You have numerous fonts already installed in your operating system, and perhaps others that came bundled with a particular application. If you intend to use those fonts, carefully read their licenses. It is often the case that fonts bundled with an application may <em>only</em> be used for documents created within, or processed by, that application. Or, the fonts may be OK to use for printing directly by your own home printer, but not for embedding in a PDF that will go to a commercial printer.</p>
<p>Although it does not pertain to TeX, another issue can arise if you later publish an ebook version. Fonts licensed for printing are often not licensed for an ebook. Indeed, the ebook distributor may ban them.</p>
<p>Always look for a Copyright notice, which can be identified with a particular person or organization. Copyright is good! It means that someone is claiming authorship of the font software. Only the Copyright owner has the right to give the font away for free, or license it to you after payment (often through an intermediary).</p>
<p>If you prefer free fonts, the most widely accepted license is the <a class="external" rel="external" target="new" href="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&amp;id=OFL">SIL Open Font License</a>. This allows you to use the font for commercial purposes, embed it in PDF, modify it to suit your needs (if you change the font name), and even re-distribute the modifications. The recommended default <i>Libertinus Serif</i> bears this font license. So does the included font <i>NovelDeco</i>.</p>
</div><!-- end C.1 -->

<h3 id="hC.2">C.2. &nbsp; Technical Issues</h3>
<div class="d3" id="dC.2">
<p class="noindent1">Many fonts have technical errors, even among professional fonts. Some of the errors are so minor that they are not worth fixing.</p>
<p>However, beware of fonts based on traced artwork. The late 1990s had an explosion of amateur dingbat and decorative fonts produced this way, by scanning images from old books and digitizing the scan. The resulting vector glyphs rarely meet standards, and often are quite awful. The problem is that when a commercial printer renders your PDF to print, the printer's software is very different from what you have on your home computer. A technically erroneous glyph might look OK at home, but be rejected commercially.</p>
<p>If you have the knowledge, you can open a font in font editor software (such as <i>FontForge</i>) and ask it for validation. Missing extrema are rarely a problem, even if a lot of them are missing. Self-intersecting glyphs are not a problem if the the glyph is composed of two elements stuck together, such as Ç composed of C with separate cedilla. However, a self-intersecting glyph may be a problem if its lines criss-cross each other. Open paths, and outer paths drawn the wrong way, are often a problem. If the errors are confined to glyphs that you will not be using, then it can pass.</p>
</div><!-- end C.2 -->

<h3 id="hC.3">C.3. &nbsp; Appearance Issues</h3>
<div class="d3" id="dC.3">
<p class="noindent1">There are general expectations for book fonts, in terms of character sizes and shapes, and weights. Many of the widely-used TeX fonts, including Latin&nbsp;Modern, are unacceptable in fiction for this reason. Times&nbsp;New&nbsp;Roman is not quite acceptable for fiction; but it is often mis-used by amateurs with a word processor.</p>
<p>The best way to assess a font is to print it to paper, at actual size. Use an inkjet (not laser) printer with only-black cartridge.</p>
<p>Depending on whom you ask for an opinion, fiction is most easily read when there are about 60 to 66 characters (including spaces) per line. To evaluate a font for the main text, print out some paragraphs about 4" to 4.25" wide, and scale the font's point size so that you get an average number of characters per line in that range. Be sure to do that. Adobe&nbsp;Garamond&nbsp;Pro at 12pt, Libertinus&nbsp;Serif at 11.4pt, and Libre&nbsp;Caslon&nbsp;Text at 9.6pt (!) provide about the same number of characters per line of text. At the proper point size, some fonts will look too dark, and others will look too light.</p>
<p>Things to look for: (1) Are the lowercase letters too tall? If they are, then it is hard for readers in many Western languages to find where sentences start, by looking for capital letters. Also, there is less white space between lines, which makes the text appear dense and harder to read. (2) Is the shape of the characters so natural that you don't notice them? That's good! It is your writing, not the font, that is to be noticed. (3) Remember that some fonts are designed for use at large size, in posters; such fonts tend to look mechanical in fiction. Other fonts are designed for computer screens; the letters will be too widely-spaced in fiction. Nearly all modern fonts have decent kerning and important ligatures, so that's not usually a decisive factor.</p>
<p>The prevailing rule: If you notice the font, it's wrong.</p>
</div><!-- end C.3 -->


</div><!-- end C -->
</div><!--end Appendix C -->
<!-- ************************************************************ -->
<div id="pageD" class="page">


<h2 id="hD">D. Book Design</h2>
<div class="d2" id="dD">
<p class="noindent">Most authors in P.O.D. use an ordinary word processor, particularly MS Word. For that reason, many print services, and most online user forums, refer to the terminology and settings of MS Word, rather than to the meanings in traditional book publishing. In the case of images, Photoshop settings are often described.</p>
<p>Since you are neither using MS Word nor Photoshop, you must understand the terminology of printed book design. Then, you can apply that knowledge to the physical layout and internal design of your book, using <i>novel</i> document class.</p>

<h3 id="hD.1">D.1. Terminology</h3>
<div class="d3" id="dD.1">
<p class="noindent">You <i>must</i> understand these terms, as used in printing.</p>

<h4 id="hD.1.1">D.1.1. Sheet, Page, Leaf</h4>
<div class="d4" id="dD.1.1">
<p class="noindent">A <b>sheet</b> of paper is a single, physical piece of paper, regardless of whether anything is printed on it, or where. Often, paper starts out as a large sheet that will subsequently be cut into smaller sheets. The size doesn't matter. A sheet of paper is, in ordinary understanding, a piece of paper.</p>
<p><img class="floatright" src="html-resources/page-leaf.png" width="490" height="155" alt="page, leaf"/> In a finished book, a <b>page</b> is one side of a <b>leaf</b>. Thus, there are always exactly twice as many pages are there are leaves. From the manufacturer's point of view, a 240-page (double-sided printing) book has 120 leaves, regardless of whether or not anything is printed on the pages, or how they are numbered.</p>
</div><!-- end D.1.1 -->

<h4 id="hD.1.2">D.1.2. Folio, Spine</h4>
<div class="d4" id="dD.1.2">
<p class="noindent">Imagine a single sheet of US Letter 8.5"Wx11"H paper. It has two pages, since you can print on both sides (even if one is empty).</p>
<p>If you fold that sheet in half across its width, it is still one sheet. But now you have a <b>folio</b>, consisting of two leaves of size 5.5"Wx8.5"H. Each leaf has two pages, so you now have four pages. The fold is at the <b>spine</b>.</p>
<p>Caution: The term "folio" has several different meanings, even in the narrow field of book publishing. It may refer to folded paper, as mentioned above. Or it may refer to a particular sheet size of paper ("foolscap"). Or, it may simply refer to the number printed on a page. This last use of "folio" is discussed in the context of headers and footers.</p>
</div><!-- end D.1.2 -->

<h4 id="hD.1.3">D.1.3. Signature, Imposition</h4>
<div class="d4" id="dD.1.3">
<p class="noindent"><img class="floatright" src="html-resources/signature.png" width="133" height="102" alt="signature"/> When a book is commercially manufactured, folios are nested to form <b>signatures</b>. The number of folios in a signature is typically 6 to 16 (that would be 24 to 64 pages). If you were hand-making a single book at home, you might use only one folio per signature.</p>
<p>Now, think about how those pages must be ordered. Suppose a book contains a single signature of 4 folios. The outermost folio is printed with pages 1 and 16 on one side (before folding), and pages 2 and 15 on its other side. The next nested folio has pages 3/14 and 4/13. Nested inside is 5/12 and 6/11. Innermost is 7/10 and 8/9.</p>
<p>Re-arranging the page order is part of the <b>imposition</b> process. The process may involve tweaking the position of each page slightly, to account for offset due to paper thickness when the folios are grouped into signatures. If numerous folios are printed on a larger sheet of paper before cutting, the process may involve rotating folios so that they waste less paper.</p>
<p>Your home printer software can probably do imposition for a single-folio design (four pages). Anything beyond that is left to professional software. You don't need to do it. The print service does it for you, automatically.</p>
</div><!-- end D.1.3 -->
</div><!-- end D.1 -->

<h3 id="hD.2">D.2. Book Manufacture</h3>
<div class="d3" id="dD.2">
<p class="noindent">In many cases, when you choose how your book will be manufactured, you will have <i>at most</i> these choices: Trim Size, interior b/w or color, paper, binding, cover finish. The <i>novel</i> class does not address the particular requirements of color interiors (grayscale is OK, since it is emulated by black and white). When you choose the Trim Size, other options may be limited.</p>

<h4 id="hD.2.1">D.2.1. Perfect Binding</h4>
<div class="d4" id="dD.2.1">
<p class="noindent"><img class="floatright" src="html-resources/perfectbinding.png" width="160" height="290" alt="perfect binding"/>Most modern softcover books (and some inexpensive hardcovers) are manufactured using a process named <b>Perfect Binding</b>.
<p>In Perfect Binding, the signatures are clamped together, and the folded area is removed by a cutting machine. Then there are no longer any folios, just individual leaves.</p>
<p>The leaves are glued together at the spine, possibly with reinforcement. Note that the glue is not merely at the edge of the leaves; it penetrates the paper slightly, for better strength. Finally, the cover is attached.</p>
<p>The Perfect Binding method is inexpensive, and is more than adequate for a book that will not receive rough handling. Whether using P.O.D. or a major mass-quantity publisher, most softcover books have been made this way for a long time. Unless you know that your book will be acquired by libraries for addition to their long-term literary collection, there is little reason to have your book manufactured by any other process. The possible exception would be books for small children, which receive rough handling under all circumstances.</p>
</div><!-- end D.2.1 -->

<h4 id="hD.2.2">D.2.2. Library Binding</h4>
<div class="d4" id="dD.2.2">
<p class="noindent">Libraries rarely purchase Perfect Binding books (regardless of soft or hard cover) due to lack of durability in a library environment. The exceptions are popular books of no lasting literary value, and how-to books for evolving technologies. These may be obtained by libraries in the cheapest softcover version, because such books will be discarded long before they wear out.</p>
<p>Unless you are sure that your book will be acquired by numerous libraries for long-term addition to their collections, there is little reason to produce a quality hardcover version. Not all P.O.D. services offer hardcover. If you do need a hardcover version, then be sure to carefully inquire regarding its manufacture, and preferably obtain a copy of someone else's book manufactured that way.</p>
<p><img class="floatright" src="html-resources/smythsewn.png" width="177" height="141" title="Smyth sewing" alt="Smyth sewing"/> The best hardcovers, suitable for library use, are made using the <b>Smyth Sewing</b> process. A Smyth Sewn book has signatures of (typically) 12 or 16 folios. But instead of removing the creases after folding, each signature is sewn through its crease using strong thread, onto a durable spine material. The pages will remain attached, even with hard usage. If the spine material is sufficiently flexible, then the book will lie flat when opened.</p>
<p>Be sure to ask about spine flexibility. The most flexible methods have a soft, curved spine, and are best suited to thick novels. There is also a variety that has a square (flat) spine, which will not quite lie flat when opened. Square-spine Smyth Sewn books seem to be the fashion for documenting intellectual property.</p>
<p>If a major publisher is producing a book that is sure to be ordered by many libraries, due to its author's popularity or maybe a movie tie-in, then it is likely to be released as a Smyth Sewn hardcover. That's because the production method is affordable in quantity. But on a P.O.D. basis, it is a significant expense.</p>
<p>Different bindings must have different ISBNs, because they are different products.</p>
<p>If you are ordering a hardcover edition, and the supplier calls it <b>casebound</b>, be careful. If a hardcover book is Smyth sewn, then it is almost certain to be casebound. But not the other way around! A book can be casebound, without being Smyth sewn.</p>
</div><!-- end D.2.2 -->

<h4 id="hD.2.3">D.2.3. Other Bindings</h4>
<div class="d4" id="dD.2.3">
<p class="noindent">A Perfect Bound softcover cannot be retroactively converted to Smyh Sewn. However, it is possible to convert it to a glued-on casebound. Sometimes the original paper cover will be glued onto the new hard cover. Books of this type are sometimes used as souvenirs.</p>
<p>If a book has very few copies, intended for permanent archiving (as with patents, and other large legal documents), then in addition to gluing, the pages may be sewn cross-wise at the spine, before attaching a hard cover. This techique is only used when the book must be tamper-resistant. It is not suited to casual reading.</p>
</div><!-- end D.2.3 -->

<h4 id="hD.2.4">D.2.4. Paper and Cover Materials</h4>
<div class="d4" id="dD.2.4">
<p class="noindent">The interior paper may be white or "creme" (off-white). White paper is generally used for nonfiction, and must be used if there are interior color images (<i>novel</i> does not do interior color). Creme paper is generally used for fiction. The idea is that white paper creates an air of authority, whereas creme paper is more comfortable for lengthy reading. I agree. I recently read a novel that was (mis-) printed on white paper, and it was hard to read in a bright area. So, for your novel, choose creme paper.</p>
<p>The cover of a Perfect-Binding softcover book may be produced with a glossy or a matte finish. The fashion is to use glossy for nonfiction, matte for fiction. Again, the idea is authority versus comfort. But you may choose what you wish. "Instant Best-Seller" mass-market paperbacks  often have an embossed texture, and maybe even metal foil. In the print-on-demand market, forget it. Don't even think about it.</p>
<p>If you do request a hardcover edition, then it may or may not have a dust jacket (costs extra). The general rule is that books for libraries have a dust jacket, which will be encased in plastic by the library. Books for documentation generally have no dust jacket, with the title and other info embossed in the cover material, for permanance. If the printer offer harcover, but does not even offer you the option of purchasing a dust jacket, then beware: Are you sure that the book is <a href="#hD.2.2">Smyth Sewn</a>?</p>
</div><!-- end D.2.4 -->
</div><!-- end D.2 -->

<h3 id="hD.3">D.3. Interior Structure</h3>
<div class="d3" id="dD.3">
<p class="noindent">This section discusses how a book is designed, in terms of its component pages, where they are placed, and how they are styled. The emphasis is on popular fiction. Some sections that would be required in a dissertation or other nonfiction, are much rarer in popular fiction, or are entirely missing. There is also considerable "wiggle room" in terms of structure, particularly for genres that <i>pretend to be</i> a truthful report of someone else's writing.</p>
<p>The advice you are about to receive is <em>not</em> authoritative. It is combined from <i style="cursor:help" title="Chicago Manual of Style">CMoS</i> (which focuses on nonfiction) and on actual practice, as I have seen by looking through numerous professionally-published works of popular fiction at the local public library. There is a certain amount of variation.</p>

<h4 id="hD.3.1">D.3.1. Display Pages vs. Chapter-Like Sections</h4>
<div class="d4" id="dD.3.1">

<h5 id="hD.3.1.1">D.3.1.1. Display Pages</h5>
<div class="d5" id="dD.3.1.1">
<p class="noindent">A <em>Display Page</em> has its own design, and stands by itself. Examples are Half-Title, Title, Copyright, Dedication, Epigraph, Table of Contents, Map, Part Separator, and of course Blank.</p>
<p>Half-Title, Title, Dedication, and Part Separators are always single-page recto. A Table of Contents begins recto, but may continue verso. An Epigraph is single-page, and may be recto or verso.</p>
<p>Maps are one per page, and may be recto or verso. If you intend to create a large map that spreads verso-recto, be aware that the technology you will be using does not allow continuous image through the spine area. Instead, you must create two separate maps, one per page. There will be the usual inside margins.</p>
<p>A Blank page is almost always verso; the only exception is when multiple blanks appear at the very end of the book.</p>
<p>Each kind of display page has its own style, and position. What they have in common is that all of them lack a header or footer (and thus, lack a printed page number). Use <code>\thispagestyle{empty}</code>.</p>
<p>If a display page extends to a second page (such as Table of Contents), then use <code>\thispagestyle{empty}</code> at its begining and end, to ensure that both pages omit header and footer.</p>
</div><!-- end D.3.1.1 -->

<h5 id="hD.3.1.2">D.3.1.2. Chapter-Like Sections</h5>
<div class="d5" id="dD.3.1.2">
<p>A <em>Chapter-Like Section</em> includes things that are styled like a chapter. This includes Foreword, Preface, Introduction, Author's Note, Acknowledgements, Prologue, Chapters, Epilogue, Conclusion, Endnotes.</p>
<p>Almost all Chapter-Like Sections begins recto. However, chapters <i>after</i> Chapter One may begin recto or verso. If there is subsequent material (Epilogue, Conclusion, Endnotes, etc.) then the begin-recto rule applies.</p>
<p>The first page of a Chapter-Like Section section has no header, but <i>may</i> have a footer with page number. See the available choices for <code><a href="#h4.3.5.1">\thispagestyle</a></code>.</p>
<p>Remaining pages in the section will have such header/footer style as pertains to ordinary chapters in the book. Exception: If a Chapter-Like Section in front matter is only two pages long, then you may optionally omit the header, or footer, on both pages. Then, use <code>\thispagestyle</code> at the end of the section, with choice that matches its beginning.</p>
<p>When a Chapter-Like Section appears in front matter, its page headers (if any) do <em>not</em> show the author and title of the book, the way they would appear in main matter. Instead, they show the name of the section (such as Author's Note) both verso and recto. Commands <code><a href="#h4.3.4.6">\SetVersoHeadText</a></code> and <code><a href="#h4.3.4.6">\SetRectoheadText</a></code> are your friends, as they permit you to dynamically change header text as you move through the book.</p>
</div><!-- end D.3.1.2 -->
</div><!-- end D.3.1 -->

<h4 id="hD.3.2">D.3.2. Front Matter</h4>
<div class="d4" id="D.3.2">
<p class="noindent">The <code><b>\frontmatter</b></code> command must be written immediately after <code>\begin{document}</code>. This sets page numbering to lowercase roman, and performs some other actions.</p>
<p>A book's front matter is <em>about the book</em>. It is not part of the story. The only mandatory front matter is the Title Page and its verso, the Copyright Page. On a practical basis, six pages of front matter are the minimum, and this minimum is often used, even by major publishers. See <a href="#hB">Appendix B</a> for how to construct basic six-page front matter.</p>

<h5 id="hD.3.2.1">D.3.2.1. Half-Title, page i</h5>
<div class="d5" id="dD.3.2.1">
<p class="noindent"><p>Some book manufacturers (particulary in hardcover) place a blank or decorative <em>flyleaf</em> before any part of the book interior. A flyleaf (if present) is added at the bookbinding factory, and is not part of your book's interior PDF file.</p>
<p>Your book's first interior recto page is a Half-Title. It is a <a href="#hD.3.1.1">Display Page</a>. Historically it was a protective page for the full title page, in the era when a printed interior was not immediately bound. That tradition lives on.</p>
<p>The Half-Title contains nothing but the book's title. No subtitle. It should be styled in the same manner as is used on the full Title Page, but typically smaller. You can place the title anywhere it looks good. It is almost never placed upper left.</p>
</div><!-- end D.3.2.1 -->

<h5 id="hD.3.2.2">D.3.2.2. Blank, page ii</h5>
<div class="d5" id="dD.3.2.2">
<p class="noindent">Verso page ii is a <a href="#hD.3.1.1">Display Page</a>. In most cases, it will be blank. This is achieved by using <code>\cleartorecto</code> at the end of the Half-Title page. But if you wish to manually create a blank page, verso or recto:</p>
<p class="code"><code>
\clearpage\thispagestyle{empty}\null\clearpage</code></p>
<p>Instead of blank, prolific authors may show a list of their books. However, even if you wrote other books, many print services won't allow you to list them, unless the same service exclusively carries all of them.</p>
<p>Major publishers may provide an advertisement for the related movie. In the good old days (looong ago) an expensive book might have a high-quality illustration, known as <b>Frontispiece</b>. Unless you truly know what you are doing, avoid these, and just use a blank page.</p>
<p>At the very fancy end of book design, or often for children's picture books, the full title uses two pages, beginning here and ending on the usual title page iii. You can do that, but <i>novel</i> does not provide for continuing an image (or text) across the spine. Each page is independent, and there will be the usual inside margins. So, a two-page title is not recommended.</p>
</div><!-- end D.3.2.2 -->

<h5 id="hD.3.2.3">D.3.2.3. Title Page, iii</h5>
<div class="d5" id="dD.3.2.3">
<p class="noindent">The Title Page is a recto <a href="#hD.3.1.1">display page</a>. It shows the title, subtitle (if any), and author. These elements are often very decorative, and may involve imagery. They must exactly match the information you provided when you obtained the book's ISBN. Exception: Some services allow the author's name to use initials.</p>
<p>If there is a publisher's imprint, it goes at the base. This is achieved by using <code>\vfill</code> just above it.</p>
<p>Remember that a self-publishing service is not the publisher; <em>you are</em>. That's why it is called self-publishing. If you don't have anything else to put there, and don't like leaving the base of the page empty, you might use "Independently Published in Your City, YourState" or something similar.</p>
<p>&bull; Note: Others have written (and I agree) that the surest sign that a book was written by an amateur, is when the Title Page simply uses the book's main text font (perhaps bold and larger). That has "term paper" written all over it. Instead, be creative.</p>
</div><!-- end D.3.2.3 -->

<h5 id="hD.3.2.4">D.3.2.4. Copyright Page, iv</h5>
<div class="d5" id="D.3.2.4">
<p class="noindent">The Copyright Page is a verso <a href="#hD.3.1.1">display page</a>. It is primarily legalistic in nature, providing essential details about the book, as an item in commerce.</p>
<p>Some nations require specific information to appear on a Copyright Page. That is your responsibility to know, and is beyond the scope of this documentation.</p>
<p>At least in the U.S.A., the nation where the book is printed must be indicated, either on the Copyright Page or some other allowed location (such as the final verso). Many print-on-demand services use multiple printers, which may be in various nations, depending on who purchases your book. With the services I have used, this is solved by omitting "Printed in the United States of America" on the Copyright page, because it may not be true. At the printing factory, the necessary information is added by them, as a Colophon on the final verso page. This is one reason why that final verso page must be blank (in your PDF). Ask your P.O.D. service.</p>
<p>A Copyright Page is in ordinary text, perhaps using minimal styling such as italics or small caps. In all cases, its overall page style must differ from the page style of main text. Almost always, the content of the Copyright Page is forced downward, so that excess white space is on top, and the final line appears at the base of the textblock. This is achieved using <code>\null\vfill</code> at the beginning of the page.</p>
<p>The <i>legalese</i> environment prevents hyphenation, aligns paragraphs ragged-right (instead of justified), and omits paragraph indents. This style is widely used for a Copyright Page. Be sure to use <code>\null</code>, or a similar vertical spacing command, to separate paragraphs. If you nest the <code>center</code> environment within <i>legalese</i>, it will over-ride the ragged-right alignment.</p>
<p>The <i>adjustwidth</i> environment can be used to set the width of the lines at less than the full width. This is especially helpful if you have little to say, and choose to center the content.</p>
<p>Always review where lines break, if necessary inserting manual line breaks, to ensure that the meaning is sensible.</p>
<p>If you use them, certain words or phrases such as <span style="text-transform:lowercase; font-variant:small-caps">FIRST EDITION</span> are traditionally set in all small caps. Use <code>\allsmcp{FIRST EDITION}</code>.</p>
<p>Numbers, such as date and ISBN, may be Old Style or Lining. The text default is probably Old Style. If you prefer Lining (looks more legalistic), then use <code>\lnum{<em>numbers</em>}</code>. Anything other than digits (and related characters) will remain unchanged by the <code>\lnum</code> command.
<p>The Copyright Symbol © is pasted from a Unicode character map. Avoid using TeX code.</p>
<p>I have never seen a Copyright Page extend to a second page. Never. If you have that much to say, it may be that some of the information may be moved to an Author's Note or Acknowledgements section. Or, if necessary, you may use the <a href="#h6.1.3">parascale</a> environment to slightly shrink the text and baseline skip.</p>
<p>If you have a Cataloging-in-Publication data block (probably you do not), then be aware that its content may be provided to you in MS Word format. Pay attention to indents, as they are part of how the data is presented. Use <code>\forceindent</code> or <code>\backindent</code> to over-ride the normal indentation (or lack thereof). Use the <i>adjustwidth</i> environment for block indents, but be aware that nesting one <i>adjustwidth</i> inside another may cause problems. It is better to end one <i>adjustwidth</i> before beginning a new one.</p>
<p>Also, CIP data uses emdash in places. MS Word may represent an emdash with <i>two</i> hyphens, whereas TeX uses <i>three</i> hyphens. Better to simply paste the emdash from a Unicode character map, which will appear the same in both MS Word and TeX.</p>
<p>If you need straight apostrophe or straight quotes, use <code>\straightquote{}</code> and <code>\straightdblquote{}</code> to insert a character that won't be converted to curly.</p>
</div><!-- end D.3.2.4 -->

<h5 id="hD.3.2.5">D.3.2.5. Dedication</h5>
<div class="d5" id="dD.3.2.5">
<p class="noindent">If you use a Dedication, it is a recto <a href="#hD.3.1.1">display page</a>, and must be placed immediately facing the Copyright Page.</p>
<p>A Dedication is not required. But sadly, nowadays many authors write a frivolous Dedication, which detracts from the book. If you feel that you need a Dedication, why not put it on your web site? Then you can always edit or remove it, if the subject of your affection runs off with someone else (or, you do). Keep it simple.</p>
<p>A Dedication is centered. If it is more than a few words, use the <i>adjustwidth</i> environment to keep it bounded, as you would for an Epigraph.</p>
</div><!-- end D.3.2.5 -->

<h5 id="hD.3.2.6">D.3.2.6. Epigraph</h5>
<div class="d5" id="dD.3.2.6">
<p class="noindent">If you use an Epigraph, it is a <a href="#hD.3.1.1">display page</a>, which may be placed verso or recto.</p>
<p>An Epigraph is optional. It is a short quotation, traditionally from a work by someone else. Its purpose is to set the tone of your own book, or shamelessly imply that your own talents resemble that of the person quoted. However, even though it is short, do not place copyrighted material there, unless you have the necessary legal permission. You probably don't, so forget about quoting a famous contemporary author or performer. Quotations from the Bible, Shakespeare, and Nineteenth-Century authors are popular; but even then, a more recent translation may be still under copyright.</p>
<p>Alternatively, you can quote from your own book, or make up something entirely new. One famous Epigraph is used in J.R.R. Tolkien's <i>Lord of the Rings</i> trilogy, in which each book uses the long form of the Ring's incantation as its Epigraph.</p>
<p>One possible use of an Epigraph is on recto page v, in books that lack a Dedication, a Table of Contents, or other important front matter beyond the Copyright Page. Alternatively, if a book has both Dedication and Table of Contents, an Epigraph may be placed on the otherwise-blank verso page vi between them. Or, an Epigraph may appear in some later convenient place in front matter.</p>
<p>In general, an Epigraph is set as a centered block, not occupying the full page width. The <i>adjustwidth</i> environment serves this purpose. You will have to manually adjust the widths at left and right, for best visual effect.</p>
<p>The source of the quotation should be right-justified within the block, and may be preceded by an emdash. Typically, names of people are not italicized, but titles of books are. It is not necessary to give elaborate details; this is not a bibliography.</p>
<p>It is not necessary to load the <i>epigraph</i> package. Simply construct your own style of epigraph using other methods. But if you do load <i>epigraph</i>: Only use <code>\epigraph</code>, or the <code>epigraphs</code> environment, within the ChapterStart environment, or on a display page. Commands <code>\epigraphhead</code>, <code>\dropchapter</code>, <code>\undocrop</code> do not work in <i>novel</i>. The <code>\cleartoevenpage[<i>option</i>]</code> command does work. Ignore the material regarding epigraphs on part pages or in bibliographies.</p>

<h6 id="hD.3.2.6.1">D.3.2.6.1. Example Epigraph: Real Quotation</h6>
<div class="d6" id="uD.3.2.6.1">
<p class="noindent">This might be used for an action adventure:</p>
<p class="code"><img class="floatright" src="html-resources/shakepi.png" width="131" height="208" alt="sample epigraph: Shakespeare"/>
<code><small>
\clearpage<br/>
\thispagestyle{empty}<br/>
\vspace*{10<span style="cursor:help" title="normal baseline skip">\nbs</span>}<br/>
\begin{adjustwidth}{7em}{7em}<br/>
Cowards die many times before their deaths;\\<br/>
The valiant never taste of death but once.\par<br/>
\stake\hfill---Shakespeare\par<br/>
\end{adjustwidth}<br/>
\clearpage
</small></code></p>
<div style="clear:both"></div>
</div><!-- end D.3.2.6.1 -->

<h6 id="hD.3.2.6.2">D.3.2.6.2. Example Epigraph: Imaginary Quotation</h6>
<div class="d6" id="uD.3.2.6.2">
<p class="noindent">This might be used for contemporary fiction with a humorous style. The fictional speaker will appear as a character in the book:</p>
<p class="code"><img class="floatright" src="html-resources/dorfmcnorf.png" width="131" height="208" alt="sample epigraph: imaginary"/>
<code><small>
\clearpage<br/>
\thispagestyle{empty}<br/>
\vspace*{10<span style="cursor:help" title="normal baseline skip">\nbs</span>}<br/>
\begin{adjustwidth}{7em}{7em}<br/>
Let me tell you, there's nothing more exciting than the brouhaha at Mickey's Pub each Saturday night in April.\par<br/>
\stake\hfill---Dorf McNorf\par<br/>
\end{adjustwidth}<br/>
\clearpage
</small></code></p>
<div style="clear:both"></div>
</div><!-- end D.3.2.6.2 -->
</div><!-- end D.3.2.6 -->

<h5 id="hD.3.2.7">D.3.2.7. Table of Contents</h5>
<div class="d5" id="dD.3.2.7">
<p class="noindent">If you use a Table of Contents, it is a <a href="#hD.3.1.1">display page</a>, beginning recto. If a second page is needed, add <code>\thispagestyle{empty}</code> after the table completes, but before you clear that page.</p>
<p>Most fiction does not have, and does not need, a Table of Contents. It is more useful when the story consists of discrete episodes with distinctive names, not just numbers. Or, if the book is a collection of short stories, a table of contents is suggested. If your book is a critical edition, or has sections by different authors, then a Table of Contents is mandatory.</p>
<p><img src="html-resources/simpletoc.png" class="floatright" width="232" height="342" title="simple table of contents" alt="simple table of contents"/> A basic Table of Contents uses the <i>center</i> environment, so that the Table's title and each entry appear centered on the page, without any fancy layout. The text may be italics. So simple. So effective. However, if you prefer a more formal, rectangular table, <i>novel</i> has its own <code><a href="#h8.1">toc environment</a></code>.</p>
<p>Avoid any of the table environments that come with TeX or its packages. These do not provide the most attractive presentation for fiction, without a lot of work on your part. But if you wish the use them, do it using <a href="#h2.2">sandbox</a> mode.</p>
<p>A Table of Contents has no header or footer, and no printed page number. Use <code>\thispagestyle{empty}</code>. If it continues to a second page, add <code>\thispagestyle{empty}</code> at the end, if you don't know where the page breaks.</p>
<p>Anything preceding a Table of Contents is not listed in the table. Neither is the table itself. An Epigraph is normally not listed, even if it follows the table.</p>
<p>You may or may not list maps or other illustrations in the table. Fiction rarely has more than a map or two, easily located in front matter by the reader, so there's no need to mention them. Use your judgement. That's different from the practice in nonfiction, especially academic works, where the illustrations convey factual data rather than artistry.</p>
</div><!-- end D.3.2.7 -->

<h5 id="hD.3.2.8">D.3.2.8. Foreword, Preface, Introduction</h5>
<div class="d5" id="dD.3.2.8">
<p class="noindent">A Foreword, Preface, or Introduction is a <a href="#hD.3.1.2">Chapter-Like Section</a>, beginning recto.</p>
<p>A <i>Foreword</i> is written by someone other than the author. It is essentially a marketing tool, by which the publisher addes credence to the work, or mere publicity, by having an expert or celebrity write something in front matter. Introductions are common in nonfiction, but extremely rare (I have never seen one) in fiction, except for critical editions of older works (where the new, original material is essentially nonfiction).</p>
<p>A <i>Preface</i> is written by the author, speaking as author, and may include a general discussion of how the author came to write the book. It may also include acknowledgements, if they are not in a separate section. A Preface is rather formal, and very rare in popular fiction. If you wish to address the reader, the less-formal <i>Author's Note</i> is better for your purpose.</p>
<p>An <i>Introduction</i>, when used in front matter, is written by the author. Its purpose is to provide sufficient background for understanding the material that is to follow. Thus, an Introduction is sometimes seen in the front matter of historical or technical nonfiction.</p>
<p>An Introduction in front matter is inappropriate for popular fiction, but I suppose it <i>might</i> be used for the purpose of world-building in that genre, where the main story assumes that the reader is familiar with the setting. In such a case, the setup is described by the author (as author), but <i>not</i> by a character in the story. Also see <i>Author's Note</i>.</p>
<p>A Foreword, Preface, or Introduction is a "chapter-like" section. That is, its style is the same as if it were a chapter, in terms of how it is titled, and the use of page header/footer. But there is a significant exception: If your book design uses header text, you do <i>not</i> write the author and title in headers. Instead, you use <code>\SetVersoHeadText</code> and <code>\SetRectoHeadText</code> to write Foreword, Preface, or Introduction in both. See the example <a href="#hD.3.2.10">Author's Note</a>, below, for how this is done.</p>
<p>A Foreword or Preface is often signed at the end by its writer, with place and date. A lengthy Foreword might instead place its writer's name and credentials under the Foreword title.</p>
</div><!-- end D.3.2.8 -->

<h5 id="hD.3.2.9">D.3.2.9. Acknowledgements</h5>
<div class="d5" id="dD.3.2.9">
<p class="noindent">If you use Acknowledgements, it begins recto. If very short, style it as a <a href="#hD.3.1.1">Display Page</a>, possibly even using limited text width (as with an <a href="#hD.3.2.6">Epigraph</a>, above). Otherwise, it is a <a href="#hD.3.1.2">Chapter-Like Section</a>.</p>
<p>Most fiction doesn't need acknowledgements. Don't write Acknowledgements just because you can. Acknowledgements are for those who provided real assistance. If you want to provide a shout-out to your friends for their encouragement, consider doing it on a web page.</p>
<p>If you have a Preface or Author's Note, you can often include acknowledgements there (if you wish), rather than in separate Acknowledgements.</p>
<p>If styled like a chapter, in a book that has page headers, the verso and recto head text is set to Acknowledgements, not the author and title. Then, the opening page of Acknowledgements has no header (as with a chapter), but following pages have the header. See the Author's Note, below, for how this is done.</p>
</div><!-- end D.3.2.9 -->

<h5 id="hD.3.2.10">D.3.2.10. Author's Note</h5>
<div class="d5" id="dD.3.2.10">
<p class="noindent">If you use an Author's Note, it begins recto. If very short, style it as a <a href="#hD.3.1.1">Display Page</a>, possibly even using limited text width (as with an Epigraph, above). Otherwise, it is a <a href="#hD.3.1.2">Chapter-Like Section</a>.</p>
<p>An Author's Note directly addresses the reader, from the author. It is often signed with name, place, and date at the end. There is no particular content. Some authors point out that a particular element of the story, which seems fictional, is actually based on a real historical event. Others babble their life stories, and how they came to write the book. Others use it as a catch-all, including acknowledgements and whatever else fits.</p>
<p>There is some wiggle room regarding whether the Author's note is fact or fancy. For example, in the "lost manuscript" genre, authors may (fictionally) tell how the manuscript came into their hands; but a lengthy tale of discovery is better placed in main matter, as a fictional Introduction.</p>
<p>If an Author's Note is two pages long, then on the second page use the same page style that you would ordinary use to start a chapter. Normally, this is <code>\thispagestyle{footer}</code>.</p>
<p>If an Author's Note is three or more pages long, then a header is permitted (if the book's main style has header). You may allow author and title to appear in header text, but it is better to indicate that this is <em>not</em> the main story, using <code>\SetVersoHeadText{Author's&nbsp;Note}</code> and <code>\SetRectoHeadText{Author's&nbsp;Note}</code>.</p>

<h6 id="hD.3.2.10.1">D.3.2.10.1. Example Author's Note</h6>
<div class="d6" id="uD.3.2.10.1">
<p class="noindent">In a book of historical fiction, based on the author's own travels and expertise:</p>
<p class="code"><code><small>
\cleartorecto % begins recto<br/>
\SetVersoHeadText{Author's Note}<br/>
\SetRectoHeadText{Author's Note}<br/>
\begin{ChapterStart} % because chapter-like<br/>
\null\null<br/>
\ChapterTitle{Author's Note}<br/>
\end{ChapterStart}<br/>
After many years of studying the late Roman Empire... \lipsum[1]<br/>
The Third-Century burial practices of the Alemanni... \lipsum[1-2]<br/>
I have taken great liberty with the likely behavior... \lipsum[1]<br/>
The battles with Roman forces are entirely imaginary... \lipsum[1-2]<br/>
Finally, I would like to thank... \lipsum[1]<br/>
\null<br/>
\stake\hfill \textsc{Dirk Hardcase}\par<br/>
\stake\hfill Springfield, September 22, 2016\par<br/>
\clearpage<br/>
% Be sure to re-set the verso and recto head texts!
</small></code></p>
<p class="centerimg"><img src="html-resources/authorsnote.png" width="813" height="415" alt="sample author's note in frontmatter"/></p>
<div style="clear:both"></div>
</div><!-- end D.3.2.10.1 -->
</div><!-- end D.3.2.10 -->

<h5 id="hD.3.2.11">D.2.1.11. Map</h5>
<div class="d5" id="dD.3.2.11">
<p class="noindent">A Map is a <a href="#hD.3.1.1">Display Page</a>, which may be verso or recto. You may use more than one Map, but be aware that in the printing technology available to you via <i>novel</i> class, a single Map cannot be continued as a spread across the spine; you must break it into two independent Maps, allowing for the inside margins.</p>
<p>Many works of fiction have a map or other diagram. It might be the map of a real or fictional geographic area. It might be the map of a crime scene. It might be an inheritance chart. Even though fictional, it is usually placed in front matter, presumably because a map does not actually tell any part of the story.</p>
<p>I have seen maps placed very early, or very late, in front matter. The general rule seems to be, "put it where it fits." However, do not place a map where some other item <i>must</i> be located, and do not place a map on the final verso that faces the beginning of main matter, due to its visual distraction.</p>
<p>A single map, or maybe two, need not be mentioned in a table of contents or illustrations. If you have a lot of them strewn around the book, then they should be listed in such a table; but this is very rare in fiction.</p>
<p>As with all images, a map must be placed using <i>novel's</i> own <a href="#h7">image placement methods</a>.</p>

<h6 id="hD.3.2.11.1">D.3.2.11.1. Example Map</h6>
<div class="d6" id="uD.3.2.11.1">
<p class="noindent">Typically, there will be nothing but the single image on a Map page, with all text self-contained. But in this example, the image only occupies part of the page. It is followed by ordinary text for the numbered locations:
<p class="code"><img class="floatright" src="html-resources/map.png" width="178" height="274" alt="sample map"/>
<code><small>
\clearpage<br/>
\thispagestyle{empty}<br/>
\FloatImage{areamap.png} <span class="ap">% b/w</span><br/>
\vspace{2<span style="cursor:help" title="normal baseline skip">\nbs</span>}<br/>
\begin{center}<br/>
1. Alice Springs\\<br/>
2. Tuktoyaktuk\\<br/>
3. Pflugerville\\<br/>
4. Pucallpa\\<br/>
5. Kolwezi\\<br/>
6. Dushanbe\\<br/>
7. Mittenwald\\<br/>
8. Sanya\\<br/>
9. Ice Station 414\par<br/>
\end{center}<br/>
\clearpage
</small></code></p>
<div style="clear:both"></div>
</div><!-- end D.3.2.11.1 -->
</div><!-- end D.3.2.11 -->

<h5 id="hD.3.2.12">D.3.2.12. Second Half-Title</h5>
<div class="d5" id="dD.3.2.12">
<p class="noindent">In many cases, front matter has very little content. After the Copyright Page, there is nothing else to say. But it is visually bad practice to go directly from verso Copyright Page to the start of the story on recto page 1. This can be solved by repeating the Half-Title as recto page <i>v</i>, with blank verso page <i>vi</i>. I've seen it with major writers and major publishers.</p>
<p>You can do the same thing with longer front matter, if it would otherwise end on a verso page.</p>
<p>When there is a lot of front matter (no particular amount), it is customary to use a second Half-Title to mark the boundary where front matter finally ends.</p>
<p><i style="cursor:help" title="Chicago Manual of Style">CMoS</i> recommends that a second Half-Title be the first page of main matter. Thus, it would be page 1, with the actual story beginning on page 3. But it acknowledges that a <i>common practice</i> is for a second Half-Title and its verso to remain part of front matter, so that main matter begins with the story on page 1. Although I have seen a few books that follow the <i style="cursor:help" title="Chicago Manual of Style">CMoS</i> recommendation, it appears that the great majority of them follow the <i>common practice</i>.</p>
<p>If your book has <a href="#hD.3.3.2">Part Separators</a> in main matter, then you can do without a second Half-Title.</p>
</div><!-- end D.3.2.12 -->

<h5 id="hD.3.2.13">D.3.2.13. Final Page of Front Matter</h5>
<div class="d5" id="dD.3.2.13">
<p class="noindent">The final page of front matter is always verso. It is almost always blank. The easiest way to insert a blank page is to write <code>\cleartorecto</code> at the end of the preceding recto page.</p>
<p>Why is the final page of front matter almost always blank? It is because it faces the opening page of the main story, and you don't want to show anything that detracts from the scene or mood. But there are exceptions. For example, an Epigraph might usefully contribute to the setting. Or, in the case of an old-style English murder mystery (where you already know that the murderer did it with arsenic to inherit the family estate), a map of the estate, or a family tree, would not detract from the setting. The choice is yours.</p>
</div><!-- end D.3.2.13 -->
</div><!-- end D.3.2 -->

<h4 id="hD.3.3">D.3.3. Main Matter</h4>
<div class="d4" id="dD.3.3">
<p class="noindent">Main matter begins with the <code>\mainmatter</code> command. It forces its page to recto, changes the page numbering to Arabic, and sets the count to 1.</p>
<p>Main matter is <i>the story itself</i>. In some cases, this also includes a fictional setup (Introduction or Prologue) that leads to the longer story line. It also includes material in the aftermath of the story, such as Epilogue, Conclusion, and end notes.</p>

<h5 id="hD.3.3.1">D.3.3.1. Half-Title in Main Matter ?</h5>
<div class="d5" id="dD.3.3.1">
<p class="noindent">The <i style="cursor:help" title="Chicago Manual of Style">CMoS</i> prefers that a second Half-Title page (if used) mark the beginning of main matter. Thus, it would be page 1 (number not printed). Then, the story begins on page 3.</p>
<p>However, <i style="cursor:help" title="Chicago Manual of Style">CMoS</i> also notes that this is not the regular practice, especially with fiction. In fact, among the many popular fiction books I have inspected, when a second Half-Title is used, it is <i>almost</i> always the last recto page of front matter, followed by a blank verso; then main matter begins with page 1 of the story.</p>
<p>The choice is yours. I suggest agreeing with regular practice: If you use a second Half-Title, keep it in front matter.</p>
</div><!-- end D.3.3.1 -->

<h5 id="hD.3.3.2">D.3.3.2. Part Separator in Main Matter</h5>
<div class="d5" id="dD.3.3.2">
<p class="noindent">If used, a Part Separator is a recto <a href="#hD.3.1.1">Display Page</a>.</p>
<p>Some books are partitioned into distinct sub-books. A sub-book is of substantial length, not individual chapters or short stories.</p>
<p>If your book has distinct sub-books, then each of them has its own recto cover page, known as a Part Separator. Its verso is blank or an Epigraph. Then the accompanying story begins recto.</p>
<p>A Part Separator is <i>always</i> main matter. So, the first Part Separator is <i>always</i> page 1 (number not printed). Then its text begins on page 3. Do not re-initialize the page count when you get to the next Part Separator.</p>
<p>Part separators could be simply <i>Part I</i>, <i>Part II</i>, and so forth. They could be <i>Book I</i>, <i>Book II</i>. Or, they could have distinctive titles, such as <i>The Northern Front</i> and <i>The Southern Front</i>. If your book is "two in one" then the Part Separators would be the title (and subtitle, if any) of the individual parts. Sometimes a Part Separator has a brief description of its purpose, as in <i>Book I. On Earth</i> followed by <i>Book II. On Mars</i>.</p>
<p>Unless your book has a very complex structure, do <i>not</i> use both a second Half-Title (whether in front matter or main matter) and a Part Separator. Combine them as the recto main matter page 1: <i>The Withens Chronicles. Part I</i>, or simply <i>Part I</i>. Then the next Part Separator would be <i>Part II</i>.</p>
<p>In one book I recently noticed, there were five parts, each of which corresponded to one calendar day. The Part Separator showed the day, as in <i>Monday, September 25</i>. Then within each part there were several chapters, each of which took us to some different event in a different setting, all on that same day. I also note that this book had no Table of Contents; the progress of the novel was therefore a surprise, by its author's intent.</p>
</div><!-- end D.3.3.2 -->

<h5 id="hD.3.3.3">D.3.3.3. Introduction in Main Matter</h5>
<div class="d5" id="dD.3.3.3">
<p class="noindent">An Introduction is a <a href="#hD.3.1.2">Chapter-Like Section</a>. If the book is nonfiction and the Introduction is factual, it belongs in front matter, as described above. But in fiction, where an Introduction is a fictional lead-in to the larger story, it belongs in main matter.</p>
<p>A main matter Introduction is typically used in the "lost manuscript" genre, where some fictional adventurer or archaeologist describes how the manuscript was found and translated. Often, the narration is a moderately lengthy adventure tale, told in the first person, by some adventurer or achaeologist. Following such an Introduction, the various chapters will reveal the contents of the manuscript. If the voice of the Introduction returns at the end, it is called a Conclusion, and is in main matter.</p>
<p>If an Introduction is in main matter, its header text (if any) is whatever is used throughout the main story. Typically that's author verso, title recto. The reason is that such an Introduction is actually part of the overall story.</p>
</div><!-- end D.3.3.3 -->

<h5 id="hD.3.3.4">D.3.3.4. Prologue in Main Matter</h5>
<div class="d5" id="dD.3.3.4">
<p class="noindent">A Prologue, even if one page, is a <a href="#hD.3.1.2">Chapter-Like Section</a>. It belongs in main matter.</p>
<p>The purpose of a Prologue is to provide a quick lead-in or setting for the story, and get the reader's attention. It is confined in place and time (one scene, one perspective). The narrator may be first-person or third-person.</p>
<p>Do not use a Prologue for the voice of the author speaking about the book, as author; that goes in front matter, as an <a href="#hD.3.2.10">Author's Note</a>.</p>
<p>If a book has a Prologue, then it is likely to have an Epilogue after the main story ends. An Epilogue also belongs in main matter.</p>
<p>I do not know of any fiction with both a fictional Introduction and a Prologue. If so, Introduction precedes Prologue.</p>
<p>Note: I have seen some web pages advising that a Prologue should go in front matter, and be narrated by a character who appears in the following story. Based on <i style="cursor:help" title="Chicago Manual of Style">CMoS</i> and actual books, I do not think that is correct.</p>
</div><!-- end D.3.3.4 -->

<h5 id="hD.3.3.5">D.3.3.5. Chapters</h5>
<div class="d5" id="dD.3.3.5">
<p class="noindent">Finally, you have arrived at Chapter One! Not surprisingly, it is a <a href="#hD.3.1.2">Chapter-Like Section</a>. Chapter One is always recto, whether or not preceded by an Introduction or Prologue.</p>
<p>Subsequent chapters may begin recto or verso. Or, the book may be designed so that each chapter always begins recto. In the majority of novels I have seen, recto/verso is used. The <code>\clearpage</code> command starts a new page (recto or verso), and the <code>\cleartorecto</code> command will (if necessary) insert a blank verso, so that the following material is always recto.</p>
<p>In the case of short stories, especially if they are by different authors, it is customary to begin each one as recto.</p>
</div><!-- end D.3.3.5 -->

<h5 id="hD.3.3.6">D.3.3.6. Epilogue, Conclusion</h5>
<div class="d5" id="dD.3.3.6">
<p class="noindent">If your book has an Epilogue or Conclusion, it begins recto as a <a href="#hD.3.1.2">Chapter-Like Section</a> in main matter.</p>
<p>An Epilogue is structurally like a Prologue, but tells the aftermath of the story. A Conclusion is like an Introduction, in which we step outside the main story. I am not aware of any book that has both; but if so, Epilogue precedes Conclusion.</p>
</div><!-- end D.3.3.6 -->

<h5 id="hD.3.3.7">D.3.3.7. End Notes, Appendix, etc.</h5>
<div class="d5" id="dD.3.3.7">
<p class="noindent">If used, End Notes begin recto, as a <a href="#hD.3.1.2">Chapter-Like Section</a> in main matter. The same applies to an Appendix and like material.</p>
<p>Page numbering continues Arabic. It may surprise you to learn that this is still main matter, but <i style="cursor:help" title="Chicago Manual of Style">CMoS</i> says so, and that's what was done in the few fictional books that have them, among those I have seen.</p>
<p>The reason is that this kind of material, which is fictional, is actually the original author's writing, entwined with the main story. It was always intended to be part of the book. Never mind that it "looks like" academic material added later.</p>
</div><!-- end D.3.3.7 -->
</div><!-- end D.3.3 -->

<h4 id="hD.3.4">D.3.4. At the End</h4>
<div class="d4" id="dD.3.4">
<p class="noindent">The final page of your book is necessarily verso. P.O.D. printers (and many others) require that it be completely blank, because they will add some manufacturing information to that page.</p>
<p>So, if the text of your book finishes on a recto page, then one blank page is automatically added. However, if the text of your book finishes on a verso page, then <i>two</i> blank pages are automatically added.</p>

<h5 id="hD.3.4.1">D.3.4.1. Backmatter? Not!</h5>
<div class="d5" id="dD.3.4.1">
<p class="noindent">
Once upon a time, when printing was not so electronically automated, it was difficult to add material to the end of a previously-typeset section of front matter. So, if there was a subsequent printing of the book, with new material that ought to go in front matter, the problem was solved by placing the new material in "back matter." Then, the original pagination did not have to be altered. To stress that the added material was not part of the original, it would have non-Arabic page numbering, which might be a continuation of lowercase roman numerals from where the front matter left off, or might begin with uppercase Roman numerals.</p>
<p>A similar situation applied to critical editions of earlier works, which added material from different authors. The added material was never part of the original book.</p>
<p>That is a situation you are never likely to address. When most authors speak about "back matter," what they mean is explanatory material that follows the end of the story. That is, anything after the final Chapter, Epilogue, or Conclusion. A good example can be found in J.R.R. Tolkien's <i>The Return of the King,</i> which has quite a bit of material following the end of the story. That material discusses the language and history of the Elves, and a variety of other things. But its page numbering continues Arabic. It looks like critical commentary, but it is part of Tolkien's original, fictional structure for the book. Thus, it is main matter.</p>
<p>So, your book is unlikely to have true back matter. If you use the <code>\backmatter</code> command, it does nothing. If you really wish to change page numbering, then you must code it manually. This is not advised for P.O.D. books, as it may confuse someone performing quality inspection; true back matter is so rare.</p>
</div><!-- end D.3.4.1 -->

<h5 id="hD.3.4.2">D.3.4.2. About the Author</h5>
<div class="d5" id="dD.3.4.2">
<p class="noindent">A hardcover book often has "About the Author" on the inside flap of its dust jacket. Softcover doesn't have a dust jacket, so one strategy is to add a leaf after the story finishes, and place "About the Author" on its recto. That avoids repagination of the original. It is still treated as main matter, with continued (non-printing) Arabic page number. Thus:</p>
<p class="code"><code>
.. and they rode off into the sunset. % end of story<br/>
\cleartorecto<br/>
\thispagestyle{empty}<br/>
\begin{ChapterStart}<br/>
\ChapterTitle{About the Author}<br/>
\end{ChapterStart}<br/>
Dirk Hardcase is a former... etc.\par<br/>
\end{document}
</code></p>
<p>&bull; I suggest that if you wish to tell about yourself, you can put it on a web site instead, where you can easily edit or delete it.</p>
</div><!-- end D.3.4.2 -->
</div><!-- end D.3.4 -->
</div><!-- end D.3 -->


</div><!-- end D -->
</div><!-- end Appendix D -->
<!-- ************************************************************ -->
<div id="pageE" class="page">


<h2 id="hE">Appendix E. &nbsp; Overview of <i>fontspec</i> Syntax</h2>
<div class="d2" id="dE">
<p class="noindent">Much of what follows is a digested portion of the full <i>fontspec</i> package documentation. There are many more features, and ways to use them, than will be described below.</p>

<h3 id="hE.1">E.1. &nbsp; Font (Family) Name vs. Font File Name</h3>
<div class="d3" id="dE.1">
<p class="noindent">A <em>font file</em> is an individual file, with its own <em>file name</em>, including file extension. For example, libertinusserif-regular.otf and libertinusserif-italic.otf are two different font files. This much is obvious.</p>
<p>A <em>font family name</em>, often merely called <em>font name</em>, refers to one or more font files that are variations of the same basic font. Some fonts are so unique that the family consists of just one file. For example, the <i>NovelDeco</i> font family consists of the one file <i>NovelDeco.otf</i>. Typically, a font family has four files, consisting of Regular, Italic, Bold, and BoldItalic variants. Even though there are four font files, there is a single font family name.</p>
<p>Many font families have more than four files, including Semibold and Light weights, and Condensed tracking. It is up to the font designer to decide whether a Condensed variation of the "Bubble Turble" font should be treated as a member of the "Burble Turble" family, or as a separate "Burble Turble Condensed" family.</p>
<p>The font (family) name can be learned by opening font files in your system font viewer. Currently, the Windows 10 font viewer uses "Font name" and the Ubuntu font viewer puts the font name in more prominent type. A font (family) name may contain more than one word, with or without spaces, and may contain a general classification such as <em>serif</em>, <em>sans</em>, or <em>mono</em>, because those are actually different families. But it will not contain words such as <em>regular</em>, <em>medium</em>, <em>semibold</em>, <em>bold</em>, or <em>italic</em>; those are for individual members of the same family. Within TeX, some of the older PostScript fonts have been re-worked as newer TrueType and Open Type fonts. The family names are slightly different, so pay attention.</p>
<p class="centerimg">
<img src="html-resources/win10libser.png" width="268" height="184" alt="Windows 10 font viewer"/> &nbsp;
<img src="html-resources/ublibser.png" width="431" height="176" alt="Ubuntu font viewer"/>
</p>

<h4 id="hE.1.1">E.1.1. &nbsp; Set/New by Font Name vs. File Name</h4>
<div class="d4" id="dE.1.1">
<p class="noindent">When you set an existing font, or create a new font command, you can use either the font (family) name, or the specific font file name. However, there may be a big difference in results!</p>
<p style="margin-top:10px"><b>By family name:</b></p>
<p><img class="floatright" style="padding-top:12px" src="html-resources/fontbyfamily.png" width="338" height="42" alt="font family defined"/> When you use the <em>font family name</em>, you configure all of the Regular, Italic, Bold, and BoldItalic variants. The usual TeX commands will be applied:</p>
<p>Preamble:</p>
<p class="code" style="clear:both"><code>\NewFontFamily\rway{Raleway}</code></p>
<p>Document Body:</p>
<p class="code"><code>{\rway I came, \textbf{I saw}, \emph{I conquered}, \textsc{I left}.}</code></p>
<p style="margin-top:10px"><b>By file name:</b></p>
<p><img class="floatright" style="padding-top:12px" src="html-resources/fontbyfilenamei.png" width="335" height="44" alt="font file defined"/> However, if you specify a single <em>font file name</em>, then <em>only</em> that font file will be used, regardless of requests for bold or italic. Small caps will be honored, if the specific file has them:</p>
<p>Preamble:</p>
<p class="code" style="clear:both"><code>\NewFontFamily\rwayi{Raleway-Regular-Italic.otf}</code></p>
<p>Document Body:</p>
<p class="code"><code>{\rwayi I came, \textbf{I saw}, \emph{I conquered}, \textsc{I left}.}</code></p>
<p style="margin-top:10px"><b>File Name Combinations:</b></p>
<p><img class="floatright" style="padding-top:12px" src="html-resources/frankenfont.png" width="312" height="41" alt="frankenfont"/> What you write is what you get. You can customize a font family by individually selecting its members. Here is the syntax. Case-sensitive, so what you see here may differ from what you have.</p>
<p>Preamble:</p>
<p class="code" style="clear:both"><code>\NewFontFamily\frankenfont[% note the % at linebreaks<br/>
&nbsp; ItalicFont=BaskervilleF-Italic.otf,%<br/>
&nbsp; BoldFont=libertinusserif-semibold.otf,%<br/>
&nbsp; BoldItalicFont=texgyrepagella-bolditalic.otf,%<br/>
]{Raleway-Medium.otf}</code></p>
<p>Document Body:</p>
<p class="code"><code>{\frankenfont I came, \textbf{I saw}, \emph{I conquered}, \textsc{I left}.}</code></p>
<p style="margin-top:10px"><b>Semibold, Light, etc.:</b> The above syntax is especially useful when you wish to specify semibold (if available), rather than bold. It is also a way to select something such as light versions:</p>
<p class="code"><code>\NewFontFamily\rwlight[% note the % at linebreaks<br/>
&nbsp; ItalicFont=Raleway-Light-Italic.otf,%<br/>
&nbsp; BoldFont=Raleway-Medium.otf,%<br/>
&nbsp; BoldItalicFont=Raleway-Medium-Italic.otf,%<br/>
]{Raleway-Light.otf}</code></p>
<p>Note that the font file in braces is the one used as the "regular" font, in this definition.</p>
</div><!-- end E.1.1 -->
</div><!-- end E.1 -->

<h3 id="hE.2">E.2. &nbsp; Open Type Features</h3>
<div class="d3" id="dE.2">
<p class="noindent">Features are variations, contained within a single font file. In the bad old days, when you wanted true small caps, you had to load a separate font file that had them (and did not have ordinary lowercase letters). Now, if an Open Type font file has the <i>smcp</i> feature (most do), you obtain the small caps from within the same file, by asking for them. Requests for the feature may be made on-the-fly, or pre-loaded for global use.</p>
<p>Here are several of the most frequently-used features, relevant to fiction writing. There are many more, and most fonts have only a few of them. Even when a font has a feature, it may be limited to some portion of the characters. For example, it is common for small caps to be available only for Latin-1 letters, even though the font also contains Greek and Cyrillic. To put this another way: The availability of a feature does not tell you its breadth of coverage. Unless the font has documentation showing coverage of its features, the only way to find out is to create and print a test page.</p>
<table class="preconf">
<caption>
Some Frequently-Used Open Type Features
</caption>
<thead>
<tr>
<th>Description</th>
<th>Open Type code &nbsp;</th>
<th>fontspec code</th>
</tr>
</thead>
<tbody>
<tr>
<td><p>kerning</p></td>
<td><p>kern</p></td>
<td><p>Kerning=On<br/><em>enabled by default</em></p></td>
</tr>
<tr>
<td><p>common ligatures</p></td>
<td><p>liga</p></td>
<td><p>Ligatures=Common<br/><em>enabled: mainfont, sansfont</em></p></td>
</tr>
<tr>
<td><p>Tex ligatures</p></td>
<td><p>tlig</p></td>
<td><p>Ligatures=TeX<br/><em>enabled by default</em></p></td>
</tr>
<tr>
<td><p>lowercase letters to small caps</p></td>
<td><p>smcp</p></td>
<td><p>Letters=SmallCaps</p></td>
</tr>
<tr>
<td><p>uppercase letters to small caps</p></td>
<td><p>c2sc</p></td>
<td><p>Letters=UppercaseSmallCaps</p></td>
</tr>
<tr>
<td><p>lining numerals</p></td>
<td><p>lnum</p></td>
<td><p>Numbers=Lining</p></td>
</tr>
<tr>
<td><p>oldstyle numerals</p></td>
<td><p>onum</p></td>
<td><p>Numbers=OldStyle<br/><em>enabled: mainfont, sansfont</em></p></td>
</tr>
</tbody>
</table>
<p>&bull; Kerning is the automatic adjustment of spacing between letters, so that they fit together nicely. The values are read from tables within the font.</p>
<p>&bull; Common ligatures are substitutions, such as a combined <i>ff</i> character for two consecutive <i>f</i> characters. It is up to the font designer to determine which ligatures, if any, are common.</p>
<p>&bull; TeX ligatures (such as replacing `` with “ and --- with &mdash;) are not actually an Open Type feature, but they are treated that way by the software. All of these are enabled by default. The <i>fontspec</i> manual explains how to disable them, if necessary.</p>
<p>&bull; The SmallCaps feature applies only to lowercase letters; ordinary capitals remain ordinary capitals. UppercaseSmallCaps deals only with converting ordinary capitals to small caps. If you want both, use both. In most fonts that have them, small caps are slightly taller than lowercase, and slightly more widely spaced. What distinguishes real small caps from fake ones (obtained by scaling ordinary capitals) is that the weight and spacing are more compatible with surrounding text.</p>
<p class="centerimg"><img src="html-resources/smallcapsrealfake.png" width="478" height="43" alt="real vs fake small caps"/></p>
<p>&bull; Lining numerals are the ones most familiar to you, from math or accounting. They sit on the baseline and have the height of capital letters. That's just right for doing calculations, and is acceptable for things such as page numbers and chapter numbers.</p>
<p>&bull; When lining numerals are mingled with flowing text, they may stand out too much. OldStyle numerals are more like flowing text: Most of the numerals are at lowercase height, with ascenders and descenders. Compare the first number as OldStyle, the second as Lining:</p>
<p class="centerimg"><img src="html-resources/jollybeers.png" width="499" height="52" alt="oldstyle vs lining numerals"/></p>
<p>Most fonts use Lining numerals as their default. A few default to OldStyle numerals. Thus, you should explicitly call for the kind of numerals you wish to use.</p>
<p>&bull; True OldStyle numerals have a flat top on <em>one</em>, and a very round <em>zero</em>: <img src="html-resources/10trueold.png" width="37" height="13" alt="true oldstyle 10"/> This may be a bit distracting. Some fonts use a transitional form, where the one has a tilted top (like big 1) and the zero is not so round: <img src="html-resources/10transold.png" width="37" height="13" alt="transitional oldstyle 10"/> Others offer you a choice, via an Open Type "style set." See the <i>fontspec</i> manual for how to code style sets.</p>
<p>&bull; There are many more Open Type features, most of which are not useful in ordinary fiction writing. Fonts rarely have more than a few features. Some features (such as the ones shown above) have a specific meaning. Other features, such as "style sets", have whatever meaning the font designer assigns them; Thus the <i>ss03</i> feature of one font may do something very different from <i>ss03</i> in a different font.</p>

<h4 id="hE.2.1">E.2.1. &nbsp; Scale as Pseudo-Feature</h4>
<div class="d4" id="dE.2.1">
<p class="noindent">Although it is not an Open Type feature, <i>Scale=number</i> may be written like a feature. <i>Scale</i> globally adjusts the size of the font, relative to what it would otherwise be. If a local font size command is also applied, then the result is the compounded value.</p>
<p>If the font will be mingled with other fonts in the same place, Scale can tweak a font so that it does not stand out. If Scale does not exceed 1, then the baselineskip will not be affected. Over 1 risks spreading lines to accomodate the extra size; this should not be done for fonts that will appear in the flowing main text. But over 1 is acceptable for display fonts that do not wrap lines and do not mingle with main text.</p>
<p>Example: <em>Orbitron</em> is a special-purpose font with a mechanical or futuristic look. Its characters are much larger and heavier than would be found in book fonts. If I wish to mingle Orbitron with ordinary text, I might load the font like this:</p>
<p class="code"><code>\NewFontFace\orbitron[Scale=0.6]{Orbitron} % Preamble</code></p>
<p>Then in the document body, I could use it like this:</p>
<p class="code"><code>The message was brief: {\orbitron DIE, EARTHLING.} Captain Withens smiled as he oiled his ray-gun. But ray-guns don't use oil.\par</code></p>
<p class="centerimg"><img src="html-resources/charscaletext.png" width="522" height="63" alt="charscale text"/>
<p>Scale is more often used for fonts that are pre-defined to have a special meaning and location, such as <a href="#h5.1.3.1">chapter titles</a> or <a href="#h4.3.4.2">page headers</a>. There, the font is not mingled with ordinary text, and it is OK to use a larger Scale. Then, it is not necessary to use local font scaling commands each time the font is used.</p>
</div><!-- end E.2.1 -->

<h4 id="hE.2.2">E.2.2. &nbsp; Color and Opacity</h4>
<div class="d4" id="dE.2.2">
<p class="noindent">Even though the <i>fontspec</i> syntax allows you to set <i>Color</i> and <i>Opacity</i> as pseudo-features when you define a font, <em>the novel class blocks these features.</em> If you attempt to set them as features in a font definition, an error will result. The same applies if you attempt to add them, using <code>\addfontfeature</code>. However, you can still make use of grayscale using ordinary, local color commands.</p>
<p>You may write text in grayscale, using commands from the included <i>xcolor</i> package. You should only do this for text that is in special locations. For example, if you begin each chapter with a number that is very large, you might wish to make that number gray, so that it does not overpower the main text.</p>
<p>To avoid possible conflicts, the color specification should be chosen from a limited list of names. In order from dark to light: black, blue, violet, darkgray, purple, red, teal, olive, magenta, gray, brown, green, orange, cyan, lightgray, lime, pink, yellow, white. They will all be rendered in <em>shades of gray</em> (of course, black and white will be themselves). You may also choose from this more convenient list: black, gray1, gray2, gray3, gray4, gray5, gray6, gray7, gray8, gray9, white.</p>
<p>&bull; Placing light text over a dark background may produce unexpected results in print, even if it looks good in PDF. If you need this effect, it is better to build the text into the background, as a single image.</p>
</div><!-- end E.2.2 -->

<h4 id="hE.2.3">E.2.3. &nbsp; <code>\CreateFontFeature{<em>code</em>}{<em>substitutions</em>}</code></h4>
<div class="d4" id="dE.2.3">
<p class="noindent">Once in a while, a font has a glyph that you would like to use, but it is not included in any of the font's Open Type feature sets. So, how to you grab that particular glyph? For example: One well-known font has a glyph named <em>emdash.alt</em>, which is not as long as the font's ordinary <em>emdash</em> glyph, and looks better in text. Unfortunately, <em>emdash.alt</em> is not in any of the font's style sets. Without some trickery, only a program such as InDesign can grab that glyph.</p>
<p>Thanks to <i>fontspec</i>, <i>novel</i> has the necessary trickery. Command <code>\CreateFontFeature</code> creates a fake Open Type feature code, and assigns your list of substitutions to that code. Use comma-separated entries if there are multiple substitutions. For the case in question:</p>
<p class="code"><code>\CreateFontFeature{myem}{emdash=emdash.alt}</code></p>
<p>The code <i>myem</i> was randomly chosen as something that is not already defined among Open Type feature codes. Once specified, the fake feature may be used in any font definition, such as this:</p>
<p class="code"><code>\SetParentFont[RawFeature=+myem]{Adobe Garamond Pro}</code></p>
<p>Of course, the fake feature has no effect if the font does not have the substitution character.</p>
<p>This technique may be used for more complicated features, but that is beyond the scope of this documentation. See the <i>fontspec</i> manual if you need to do more.</p>
</div><!-- end E.2.3 -->
</div><!-- end E.2 -->

<h3 id="hE.3">E.3. &nbsp; Local Modifications to Open Type Features</h3>
<div class="d3" id="dE.3">
<p class="noindent">If you specify a particular Open Type feature, it will be generally used for that font command. So if you define a new font command with <i>Letters=SmallCaps</i> as a feature (and if the font actually has them), then small caps will be used for that font, whether or not you locally request them with a command such as <code>\textsc</code>.</p>
<p>Often, you can add (or sometimes remove) features on a local basis. For example, suppose that you defined the font without using its <i>ss03</i> style set. You can locally add that feature to some text, using a command that looks like this:</p>
<p class="code"><code>{\addfontfeature{<em>which feature</em>} <em>applied to this text</em>}</code></p>
<p>The above code assumes that you are already using the font in that location. You cannot apply <i>ss03</i> from one font to an entirely different font!</p>
<p>See the <i>fontspec</i> documentation for details of <code>\addfontfeature</code>.</p>
<p>As an alternative to changing features locally, you can define different font commands to call the same underlying font, but with different features.</p>
<p>Two ways to accomplish the same thing:</p>
<p class="code"><code>
\NewFontFamily\baskf{BaskervilleF}<br/>
\NewFontFamily\baskftab[Numbers=Monospaced]{BaskervilleF} % tnum feature<br/>
\begin{document}<br/>
Some text {\baskftab hello 123} is here.<br/>
Some text {\baskf\addfontfeature{Numbers=Monospaced} hello 123} is here.
</code></p>
</div><!-- end E.3 -->


</div><!-- end E -->
</div><!-- end Appendix E -->
<!-- ************************************************************ -->
<div id="pageF" class="page">


<h2 id="hF">Appendix F. &nbsp; Drop Caps</h2>
<div class="d2" id="dF">
<p class="item">A <i>drop cap</i> is an enlarged letter (or image) at the beginning of chapter text, with the first few lines of text wrapped around it:</p>
<p class="centerimg"><img src="html-resources/dropcap.png" width="431" height="112" title="drop cap" alt="drop cap"/></p>
<p>Drop caps are out of fashion, largely because they do not look good when used with dialog or with short paragraphs. If you intend to use them, be prepared to write in a style where each chapter begins with a substantial paragraph. Or, consider using a specially designed <a href="#h5.5">first line</a> instead.</p>
<p>If you use a drop cap, the first paragraph must be long enough to fill all of the shortened lines, and continue to the line beneath the drop cap letter. If instead you try to have two or more short paragraphs, then the drop cap will not work as expected. To solve this problem, you can break using <code>\\</code> to fake a paragraph ending, then use <code>\forceindent</code> to fake a new paragraph indent.</p>

<h3 id="hF.1">F.1. &nbsp; Built-In Method vs. Lettrine</h3>
<div class="d3" id="dF.1">
<p class="item"><b>A.</b> In <i>novel</i>, the built-in <code>\dropcap</code> command is preferred to any other method for creating a drop cap. See the next section for its usage.</p>
<p class="item"><b>B.</b> Alternatively, you may load the <i>lettrine</i> package, and use it as described in its own documentation. If <i>lettrine</i> is detected, <i>novel</i> will configure it so that lines remain on grid, and are not pushed down.</p>
<p class="item"><b>C.</b> You may use both <code>\dropcap</code> and <code>\lettrine</code> in the same document, as they are independent, and use different settings.</p>
<p class="item"><b>D.</b> In <i>novel</i>, the <code>\lettrine</code> command does not accept an image. Use <code>\dropcap</code>.</p>
<p class="item"><b>E.</b> Only <i>lettrine</i> offers the rarely-used <i>slope</i> feature.</p>
<p class="item"><b>F.</b> Both <code>\dropcap</code> and <code>\lettrine</code> are incompatible with <code>\FirstLine</code>. If you need to set the entire first line in small caps, you are more likely to be successful using <code>\dropcap</code> as described below.</p>
</div><!-- end F.1 -->

<h3 id="hF.2">F.2. &nbsp; \dropcap[<em>options</em>]{<em>letter or image</em>}</h3>
<div class="d3" id="dF.2">
<p class="item"><b>A.</b> The <code>\dropcap</code> command is based on <i>lettrine</i> technology, but has different options and behavior.</p>
<p class="item"><b>B.</b> The <code>\dropcap</code> command accepts the following options as <span style="white-space:nowrap">comma-separated</span> key values:</p>
<p class="code"><code>lines=<em>integer</em></code> &nbsp; Number of lines indented by the drop cap. Default 3.</p>
<p class="code"><code>gap=<em>length</em></code> &nbsp; Distance from drop cap to indented text. Default 0.25em. (note 1)</p>
<p class="code"><code>hoffset=<em>length</em></code> &nbsp; Moves drop cap horizontally. Default 0em.</p>
<p class="code"><code>voffset=<em>length</em></code> &nbsp; Moves drop cap vertically. Default 0em.</p>
<p class="code"><code>ante={<em>text</em>}</code> &nbsp; Precedes drop cap with normal text. Default empty. (notes 2,4)</p>
<p class="code"><code>ante*={<em>text</em>}</code> &nbsp; Like <code>ante={<em>text</em>}</code> but auto-hangs text in left margin. (notes 3,4)</p>
<p class="code"><code>scale=<em>number</em></code> &nbsp; Scales drop cap letter (not image). Default 1.</p>
<p class="code"><code>bloat=<em>number</em></code> &nbsp; Horizontally scales drop cap letter (not image). Default 1. (note5)</p>
<p class="code"><code>depth=<em>integer</em></code> &nbsp; Adds blank line(s) beneath drop cap baseline. Default 0. (note 6)</p>
<p><img src="html-resources/dropcap-gap.png" class="floatright" width="82" height="150" title="dropcap gap" alt="dropcap gap"/>&bull; Note 1: The <code>gap</code> is equivalent to <i>lettrine's</i> <code>findent</code>. There is no equivalent to <code>nindent</code> or <code>slope</code>. If you wish to move the first line of text closer to the drop cap, use <code>\kern</code> or <code>\hspace</code> there.</p>
<p>&bull; Note 2: <code>ante</code> is typically used for placing quotation mark before the drop cap. But the authoritative <i style="cursor:help" title="Chicago Manual of Style">CMoS</i> recommends that such an opening mark be omitted, at least in American style. If the mark is placed, it is at normal text font, size, and position (this is the style used).</p>
<p><img src="html-resources/dropcap-antestar.png" class="floatright" width="110" height="102" title="ante*=``" alt="ante*=``"/>&bull; Note 3: <code>ante</code> begins at the margin, and thus pushes the drop cap to the right. With <code>ante*</code> its text hangs in the left margin, so that the drop cap is aligned with the margin. This is visually better, providing that you have enough margin to accomodate the ante text. Setting an <i>unsafe zone</i> may be helpful. See the main documentation.</p>
<p>Example at right: <code>\dropcap[ante*=``]{O}</code></p>
<p>&bull; Note 4: You may use <code>\charscale</code> to manipulate the size and position of ante text. No other styling (such as font or color) may be applied. The ante text will always be black, in the main font. This is standard.</p>
<p><img src="html-resources/dropcap-scalebloat.png" class="floatright" width="98" height="107" title="scale=1.2,bloat=.75" alt="scale=1.2,bloat=.75"/>&bull; Note 5: <code>bloat</code> multiplies <code>scale</code> horizontally. The primary use of <code>bloat</code> is to tweak where the lines break, by making the drop cap slightly narrower or thicker.</p>
<p>Example at right: <code>\dropcap[scale=1.2,bloat=0.75]{O}</code>. The effective vertical scale is 1.2, and the effective horizontal scale is 1.2x0.75=0.8.</p>
<p>&bull; Note 6: If the drop cap character has a prominent descender, then you may need to create room underneath it using <code>depth</code>, or the descender will intrude into the text beneath it. This can only be decided on a per-character basis, depending on the font.</p>
<p class="item"><img src="html-resources/I-shade.png" class="floatright" width="84" height="88" title="dropcap I image" alt="dropcap I image"/><b>C.</b> If the content of the drop cap ends with png, PNG, jpg, JPG, jpeg, or JPEG, it will be interpreted as an image. It will be aligned so that its bottom is at the lowest indented baseline. You may position the image using the <code>hoffset</code> and <code>voffset</code> option keys. The image cannot be scaled by <code>hscale</code> or <code>vscale</code>, because it must be at exact size and resolution. Thus, whether or not the image's top aligns in the desired location, depends on how you created the image.</p>
<p>Example at right: <code>\dropcap[voffset=-0.15em]{I-shade.png}</code>.</p>
<p class="item"><b>D.</b> If <code>lines=1</code>, then <code>\dropcap</code> has no effect. This applies whether or not the command or <code>ante</code> is starred. That is, the following lines of code have the same result:</p>
<p class="code"><code>&ldquo;It was dark and stormy,&rdquo; he said.</code></p>
<p class="code"><code>\dropcap[<i>any keys</i>,lines=1,ante*=&ldquo;]{I}t was dark and stormy,&rdquo; he said.</code></p>
<p class="item"><b>E.</b> When the drop cap is a letter (not image) without scale, or with <code>scale=1</code>, its top will lie at the capital X-height of main text. This is the most commonly-used style. If the letter has upper diacritical mark, then the mark will be set higher.</p>
</div><!-- end F.2 -->

<h3 id="hF.3">F.3. &nbsp; \dropcap*[<em>options</em>]{<em>letter</em>} &nbsp; starred version</h3>
<div class="d3" id="dF.3">
<p class="item"><b>A.</b> <img src="html-resources/Iboxcap.png" class="floatright" width="84" height="191" title="starred dropcap and image" alt="starred dropcap and image"/>In its starred form, <code>\dropcap*</code> will place a rectangular box around the drop cap letter (but not image).</p>
<p class="item"><b>B.</b> If the letter is in the Latin-1 or Latin Extended A character sets, then the box will ignore any upper diacritical mark, so that the mark sits above the box.</p>
<p class="item"><b>C.</b> The boxed letter is a convenient reference frame, in case you wish to create an image of the letter in a graphics program. If you do that, then you will probably need to apply some negative <code>voffset</code> to the image. You may also wish to kern the first line closer to the image.</p>
<p class="item"><b>D.</b> Example: At right, the top section shows a drop cap I with box. This portion of the PDF was imported to a graphics program, and the boxed area was used as template for the image shown in the lower section. Then the image was substituted for the original boxed letter.</p>
</div><!-- end F.3 -->

<h3 id="hF.4">F.4. &nbsp; Drop Cap Font and Color</h3>
<div class="d3" id="dF.4">
<p class="item"><b>A.</b> These settings apply to <code>\dropcap</code>, but not <code>\lettrine</code>.</p>
<p class="item"><b>B.</b> The default drop cap font is <i>NovelDeco.otf</i> with its Open Type feature <i>dcap</i>. These glyphs are modeled after the <i>Libertinus Serif Display</i> font, and are specially designed to look good at the enlarged size of drop caps, as well as align with the left margin. Also, characters with prominent descenders (such as Ccedilla) are designed so that the descender, rather than the base letter, sits at the baseline. This avoids the need for <code>depth</code> setting.</p>
<p class="item"><b>C.</b> To change the font used by <code>\dropcap</code>, you must first define one or more font commands in Preamble. For example:</p>
<p class="code"><code>\NewFontFace\mynicedc[<em>features</em>]{font file name}</code></p>
<p>Then, you set the font. This may be changed anywhere:</p>
<p class="code"><code>\SetDropCapFont{\mynicedc}</code></p>
<p class="item"><b>D.</b> Do not use Type1 or Metafont fonts. If the desired font is only available in one of those formats, you can use a font editor such as <a href="https://fontforge.org" class="external" rel="external" target="new">FontForge</a> to convert it to Open Type or TrueType format. Then, as described above, load the converted file by its exact file name. If the font has mssing extrema, that is almost never a problem. Overlapped hints are rarely a problem. But self-intersecting glyphs and open paths may be a problem, if you use those glyphs.</p>
<p class="item"><b>E.</b> Default drop cap color is black. To change it, use <i>xcolor</i> syntax. Either of these:</p>
<p class="code"><code>\SetDropCapColor[<em>color model</em>]{<em>color value</em>}</code></p>
<p class="code"><code>\SetDropCapColor{<em>color name</em>}</code></p>
<p>Only grayscale may be used.</p>
</div><!-- end F.4 -->

<h3 id="hF.5">F.5. &nbsp; Drop Cap With First Line Small Caps</h3>
<div class="d3" id="dF.5">
<p class="item"><b>A.</b> The <code>\FirstLine</code> command does not play well with either <code>\dropcap</code> or <code>\lettrine</code>. This is not a trivial fix.</p>
<p class="item"><b>B.</b> If you require a drop cap to be followed by an entire first line in small caps, Then you must manually code it. You will probably get better results using <code>\dropcap</code> instead of <code>\lettrine</code>.
<p class="item"><b>C.</b> Use <code>\dropcap{letter or image}\textsc{some text} rest of paragraph.</code></p>
<p class="item"><b>D.</b> Guess at how much <code>{some text}</code> needs to be. Compile, look at result, then adjust and try again.</p>
<p class="item"><b>E.</b> It is possible (although unsightly) to end <code>{some text}</code> at a hyphenation point in its final word.</p>
<p class="item"><b>F.</b> Again: There is no known better way to do this.</p>
</div><!-- end F.5 -->


</div><!-- end F -->
</div><!-- end Appendix F -->
<!-- ************************************************************ -->


<!-- Future appendices go here. -->


<!-- ************************************************************ -->
<div id="pageY" class="page">


<h2 id="hY">Appendix Y. &nbsp; Licensing and Credits</h2>
<div class="d2" id="dY">

<p class="item"><b>A. Licensing:</b> The <i>novel</i> document class, including software, examples, documentation and supporting images, is distributed under the terms of the <a class="external" rel="external" target="new" href="https://www.latex-project.org/lppl/lppl-1-3c/">LaTeX Project Public License, version 1.3c only</a>. Exception: The included font <i>NovelDeco.otf</i> is distributed under terms of the <a class="external" rel="external" target="new" href="http://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web">SIL Open Font License, v.1.1.</a></p>
<p>To ensure that your book may be sold commercially, be careful to use only fonts that allow commercial usage. That may exclude some of the fonts in the LaTeX font catalog. See <a href="#hC">Appendix&nbsp;C</a>.</p>

<p class="item"><b>B. Credits:</b> Within the TeX code files, you will find places where small or large pieces of code are the work of someone else. Names or organizations are credited in-place within the TeX code, according to license.</p>
<p>Various clipart graphics were obtained from <a class="external" rel="external" target="new" href="https://openclipart.org">openclipart.org</a>.</p>
<p>Font <i>NovelDeco.otf</i> was created using <a class="external" rel="external" target="new" href="https://fontforge.org">FontForge</a>. The font is partly derived from <i>Libertinus Serif</i>, which in turn is derived from <a class="external" rel="external" target="new" href="http://www.linuxlibertine.org/"><span style="white-space:nowrap"><i>Linux Libertine O</i></span></a>.</p>
<p>In places, I offer opinions or make suggestions regarding design. These are largely based on my own inspection of popular fiction books, at my local public library. In some cases, I follow the <a class="external" rel="external" target="new" href="http://www.chicagomanualofstyle.org/home.html"><i>Chicago Manual of Style</i></a> (CMoS), hardcover 16th edition. However, please do not regard my opinions and suggestions as authoritative.</p>
<p>&nbsp;</p>


</div><!-- end Y -->
</div><!-- end Appendix Y -->
<!-- ************************************************************ -->
<div id="pageZ" class="page">


<h2 id="hZ">Appendix Z. &nbsp; Changes in v.2.1.</h2>
<div class="d2" id="dZ">

<h4>Important Changes</h4>
<div class="d3">
<p>Version 2.1  (2024) Added choice babel/polyglossia. Revised uuid.</p>
<p>Version 1.86 (2024) docs edited.</p>
<p>Version 1.84 (2023) docs edited. Probably final update.</p>
<p>Version 1.83 (2023) corrected minor typo. Will not affect most users.</p>
<p>Version 1.82 (2023) adds a user setting, to change the default indent.</p>
<p>Version 1.80 (2023) tweaks some internal code, for faster compiling.
No new features or bugs. If you have a document built with the earlier
version 1.52, use class option <code>revert</code> to avoid using the tweaks.
In any case, if you are re-building an earlier document, pay careful attention
to line breaks and pagination. Due to various adjustments in component
packages and fonts, a document built in the past may look slightly different
if re-built now.</p>
</div>


</div><!-- end Z -->
</div><!-- end Appendix Z -->
<!-- ************************************************************ -->



</div><!-- end main -->
<div style="clear:both"></div>
</div><!-- end master -->
</body>
</html>