-
Notifications
You must be signed in to change notification settings - Fork 1
/
synthslant.dtx
5598 lines (5314 loc) · 288 KB
/
synthslant.dtx
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
% \iffalse
%
% Copyright (C) 2024 by Ch. L. Spiel
%
% This work may be distributed and/or modified under the conditions
% of the LaTeX Project Public License, either version 1.3c of this
% license or (at your option) any later version. The latest version
% of this license is in
% httpc://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% \fi
%
% \iffalse
%<*driver>
\documentclass{ltxdoc}
\tracingonline=0
%--\OnlyDescription
\EnableCrossrefs
\CodelineIndex
\RecordChanges
\PassOptionsToClass{a4paper}{article}
\PassOptionsToPackage{hyperfootnotes=false}{hyperref}
\PassOptionsToPackage{dvipsnames}{xcolor}
\usepackage{amsmath}
\usepackage{array}
\usepackage{booktabs}
\usepackage{caption}
\usepackage{dtk-logos}
\usepackage{enumitem}
\usepackage{etoolbox}%--\tracingpatches
\usepackage{fancyhdr}
\usepackage[T1]{fontenc}
\usepackage{hypdoc}
\usepackage{hyphenat}
\usepackage{mathtools}
\iftrue
\usepackage[letterspace=0, shrink=10, stretch=10, tracking=true]{microtype}
\DeclareMicrotypeSet[tracking]{italics}
{encoding=*, font={SourceSerifPro-LF/m/it/*}}
\UseMicrotypeSet[tracking]{italics}
\SetTracking[context=synthnegslant, no ligatures={f}, spacing={10*,,}]
{encoding=*, shape=it}{10}
\else
\newcommand*{\textls}[2][]{#2}
\fi
\usepackage{needspace}
\usepackage[section]{placeins}
\usepackage{ragged2e}
\usepackage{setspace}
\usepackage[slant=.18, negslant=-.16]{synthslant}
\usepackage{titlesec}
\usepackage[most]{tcolorbox}
\usepackage{titlesec}\renewcommand*{\bottomtitlespace}{.15\textheight}%nobottomtitles*
\usepackage{wrapfig}
\usepackage{xcolor}
\usepackage[default, lining, proportional, regular, semibold]{sourceserifpro}
\usepackage[lining, proportional, regular, semibold]{sourcesanspro}
\usepackage[lining, regular]{sourcecodepro}
\usepackage[scaled=1.08, uprightscript, xcharter]{newtxmath}
\setstretch{1.04166}% \baselineskip: 12.5pt
\makeatletter
\def\@get@fontclan#1-#2\relax{#1}
\newcommand*{\fontclan}{\expandafter\@get@fontclan\f@family\relax}
\makeatother
\DeclareRobustCommand{\proportionalliningfigures}{\fontfamily{\fontclan-LF}\selectfont}
\DeclareRobustCommand{\proportionaloldstylefigures}{\fontfamily{\fontclan-OsF}\selectfont}
\DeclareRobustCommand{\tabularliningfigures}{\fontfamily{\fontclan-TLF}\selectfont}
\DeclareRobustCommand{\tabularoldstylefigures}{\fontfamily{\fontclan-TOsF}\selectfont}
\DeclareRobustCommand{\textdenominator}[1]{{\fontfamily{\fontclan-Dnom}\selectfont #1}}
\DeclareRobustCommand{\textinferior}[1]{{\fontfamily{\fontclan-Inf}\selectfont #1}}
\DeclareRobustCommand{\textnumerator}[1]{{\fontfamily{\fontclan-Numr}\selectfont #1}}
\DeclareRobustCommand{\textsuperior}[1]{{\fontfamily{\fontclan-Sup}\selectfont #1}}
\newcommand*{\nativetextfraction}[2]
{\mbox{\textnumerator{#1}\textfractionsolidus\textdenominator{#2}}}
\makeatletter
\renewcommand*{\@makefnmark}{\hbox{\sf\textsuperior{\@thefnmark}}}
\newenvironment*{tabfigures}
{\edef\rmdefault{\fontclan-T\sourceserifpro@figurestyle}\rm\ignorespaces}
{\ignorespacesafterend}
\makeatother
\DeclareRobustCommand{\elseries}{\fontseries{el}\selectfont}
\DeclareTextFontCommand{\textel}{\elseries}
\DeclareRobustCommand{\lseries}{\fontseries{l}\selectfont}
\DeclareTextFontCommand{\textl}{\lseries}
%%--\DeclareRobustCommand{\mdseries}{\fontseries{m}\selectfont}
%%--\DeclareTextFontCommand{\textmd}{\mdseries}
\DeclareRobustCommand{\sbseries}{\fontseries{sb}\selectfont}
\DeclareTextFontCommand{\textsb}{\sbseries}
\DeclareRobustCommand{\bseries}{\fontseries{b}\selectfont}
\DeclareTextFontCommand{\textb}{\bseries}
\DeclareRobustCommand{\ebseries}{\fontseries{eb}\selectfont}
\DeclareTextFontCommand{\texteb}{\ebseries}
\DeclareRobustCommand{\ubseries}{\fontseries{k}\selectfont}
\DeclareTextFontCommand{\textub}{\ubseries}
\usepackage{cleveref}
\expandafter\GetFileInfo\expandafter{\jobname.sty}
\def\aspdfdate#1/#2/#3\relax{D:#1#2#3}
\edef\pdffiledate{\expandafter\aspdfdate\filedate\relax}
\hypersetup{
citecolor = blue,
colorlinks = true,
linkcolor = blue,
linktocpage = true,
pdfauthor={Dr. Christoph L. Spiel},
pdfcreationdate={\pdffiledate},
pdfkeywords={LaTeX, font, italic, oblique, slant, upright},
pdflang=en-US,
pdfsubject={Synthetic generation of slanted glyphs in LaTeX},
pdftitle={Package synthslant \fileversion},
raiselinks = false,
urlcolor = [rgb]{0, 0, .5}% = navy
}
\SetExtraKerning[context=drop-left-sidebearing, name=source-code-normal, unit=space]
{font={T1/SourceCodePro-LF/m/n/44, T1/SourceCodePro-TLF/m/n/44}}
{
1={-150,},
2={-120,},
3={-120,},
4={-40,},
A={-100,},
B={-170,}
}
\newlength{\sectiontocindent}
\newlength{\sectionnumberwidth}
\newlength{\subsectiontocindent}
\newlength{\subsectionnumberwidth}
\newlength{\subsubsectiontocindent}
\newlength{\subsubsectionnumberwidth}
\setlength{\sectiontocindent}{0pt}
\setlength{\sectionnumberwidth}{40pt}
\setlength{\subsectiontocindent}{40pt}
\setlength{\subsectionnumberwidth}{25pt}
\setlength{\subsubsectiontocindent}{65pt}
\setlength{\subsubsectionnumberwidth}{30pt}
\makeatletter
\renewcommand*{\l@section}[2]
{\ifnum \c@tocdepth >\z@
\addpenalty\@secpenalty
\addvspace{1.0em \@plus\p@}%
\setlength{\@tempdima}{\sectionnumberwidth}%
\begingroup
\def\numberline##1{\hb@xt@\@tempdima{%
\tt\lseries
\fontsize{44}{0}\selectfont
\microtypecontext{kerning=drop-left-sidebearing}%
\iffalse\raisebox{-30pt}[0pt][0pt]{\rule{0.1pt}{40pt}}\fi
\textcolor{customred3}{##1}%
\hfil}}%
\parindent \z@
\rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode
\advance\leftskip\@tempdima
\hskip -\leftskip
\bfseries
\iffalse
\nobreak\hfil
\nobreak\hb@xt@\@pnumwidth{\hss #2\kern-\p@\kern\p@}%
\else
{\sffamily\large #1}\quad
{#2}\hfil\hbox{}
\fi
\par
\endgroup
\fi}
\renewcommand*{\@dottedtocline}[5]
{\ifnum #1>\c@tocdepth
\else
\vskip \z@ \@plus.2\p@
\begingroup
\leftskip #2\relax
\rightskip \@tocrmarg
\parfillskip -\rightskip
\parindent #2\relax\@afterindenttrue
\interlinepenalty\@M
\leavevmode
\@tempdima #3\relax
\advance\leftskip \@tempdima
\null\nobreak
\hskip -\leftskip
{#4}\nobreak
\iffalse
\leaders\hbox{$\m@th \mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}\hfill
\nobreak\hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5\kern-\p@\kern\p@}%
\else
\hbox{\quad\normalfont\bfseries #5}\nobreak\hfill\hbox{}%
\fi
\par
\endgroup
\fi}
\renewcommand*{\l@subsection}{\@dottedtocline{2}{\subsectiontocindent}{\subsectionnumberwidth}}
\renewcommand*{\l@subsubsection}{\@dottedtocline{3}{\subsubsectiontocindent}{\subsubsectionnumberwidth}}
\newrobustcmd*{\tocsquashedsubsections}
{\def\l@subsection{\@dottedtocline{2}{0pt}{\subsubsectionnumberwidth}}%
\def\l@subsubsection{\@dottedtocline{3}{0pt}{\subsubsectionnumberwidth}}}
\makeatother
\Crefname{equation}{Equation}{Equations}
\crefname{equation}{Equ.}{Equs.}
\creflabelformat{equation}{#2#1#3}
\Crefname{figure}{Figure}{Figures}
\crefname{figure}{Fig.}{Figs.}
\Crefname{page}{Page}{Pages}
\crefname{page}{p.}{p.}
\Crefname{section}{Section}{Sections}
\crefname{section}{Sec.}{Secs.}
\Crefname{table}{Table}{Tables}
\crefname{table}{Tab.}{Tabs.}
\newcommand*{\floatcaptionwidth}{.79\textwidth}
\captionsetup[figure]{font=small, justification=centerlast,
labelfont=sc, width=\floatcaptionwidth}
\captionsetup[table]{font=small, justification=centerlast,
labelfont=sc, width=\floatcaptionwidth}
\newsavebox{\listlabelbox}
\sbox{\listlabelbox}{---}
\SetEnumitemKey{noindent}{
label={---},
labelwidth=\wd\listlabelbox,
leftmargin=!
}
\SetEnumitemKey{nestedinspecialsection}{
leftmargin=10pt
}
\SetEnumitemKey{notopsep}{
after=\vskip.8em plus .2em minus .4em,
partopsep=0pt,
topsep=0pt
}
\newlength{\marginindicatorsep}
\setlength{\marginindicatorsep}{10pt}
\newcommand*{\marginalizesectionnumber}[1]
{\makebox[0pt][r]{#1\hspace{\marginindicatorsep}}}
\fancypagestyle{pagenumberonly}{
\fancyhf{}
\fancyhead[L]{}
\fancyhead[R]{\thepage}
}
\fancypagestyle{fancy}{
\fancyhf{}
\fancyhead[L]{\rightmark}
\fancyhead[R]{\thepage}
}
\newcommand*{\resetfancyhead}
{\fancyhead[L]{\textsf{\textsc{\textls[20]{\nouppercase\rightmark}}}}}
\renewcommand*{\headrulewidth}{0pt}
\renewcommand*{\sectionmark}[1]
{\def\truesectionname{#1}%
\markright{\textsf{\marginalizesectionnumber{\thesection}%
\textsc{\textls[20]{#1}}}}}
\renewcommand*{\subsectionmark}[1]
{\markright{\textsf{\marginalizesectionnumber{\thesubsection}%
\textsc{\textls[20]{\truesectionname:\enspace}}#1}}}
\titleformat{\section}[hang]
{\sffamily\Large\bfseries}{\marginalizesectionnumber{\thesection}}{0pt}{}
\titleformat{\subsection}[hang]
{\sffamily\large\bfseries}{\marginalizesectionnumber{\thesubsection}}{0pt}{}
\titleformat{\subsubsection}[hang]
{\sffamily\normalsize\bfseries}{\marginalizesectionnumber{\thesubsubsection}}{0pt}{}
\titleformat{\paragraph}[runin]
{\sffamily\normalsize\bfseries}{\theparagraph}{1em}{}
\let\footnoterule=\relax% suppress footnote rule
\interfootnotelinepenalty=10000
\makeatletter
\renewcommand*{\@makefntext}[1]
{\noindent
\llap{\let\@textsuperscript=\relax% use "normal" figures for the footnote numbers
\let\textsuperior=\relax
\@makefnmark
\hspace{\marginindicatorsep}}% separate the footnote number and the body
#1}
\makeatother
\pretocmd{\DescribeEnv}{\needspace{25pt}}{\relax}{\PrependingFailed}
\pretocmd{\DescribeMacro}{\needspace{25pt}}{\relax}{\PrependingFailed}
\setlength{\columnsep}{20pt}
\setlength{\skip\footins}{25pt}
\setlength{\overfullrule}{3pt}
\newrobustcmd*{\acronym}[1]{\mbox{\scshape\MakeLowercase{#1}}}
\newcommand*{\application}[1]{\mbox{\sffamily #1}}
\renewcommand*{\arraystretch}{1.12}
\newcommand*{\bibauthor}[1]{\mbox{\textsc{#1}}}
\newcommand*{\bibtitle}[1]{\textit{#1}}
\newcommand*{\biburl}[1]{\url{#1}}
\newcommand*{\bottomstrut}{\rule[-.5em]{0pt}{0pt}}
\newenvironment*{codeexample}
{\vspace{.5\smallskipamount}
\par
\centering
\begin{minipage}{\linewidth}
\ttfamily
\begin{tabbing}}
{\end{tabbing}
\end{minipage}
\par
\vspace{.5\smallskipamount}}
\makeatletter
\newcommand*{\citenum}[1]{\@nameuse{b@#1}}
\makeatother
\renewcommand*{\code}[1]{\texttt{#1}}
\newcommand*{\codelineindicator}{\mbox{\small$\mathscr{l}$}}
\newrobustcmd*{\command}[1]{\mbox{\textbf{#1}}}
\newcommand*{\degree}{{}^\circ}
\newcommand*{\detoxindex}[1]{\index{\detokenize{#1}}}
\newcommand*{\doublequotes}[1]{\guillemetright\kern-.03333em #1\guillemetleft}
\newcommand*{\dumpmacro}[1]{\texttt{\detokenize\expandafter{#1}\unskip}}
\newcommand*{\filesystem}[1]{\mbox{\textit{#1\/}}}
\newcommand*{\filledrectangle}[2]{\rule{#1}{#2}}
\newcommand*{\filledsquare}[1]{\filledrectangle{#1}{#1}}
\newcommand*{\foreignphrase}[1]{\textsl{#1}}
\makeatletter
\renewcommand*{\fps@figure}{htbp}
\renewcommand*{\fps@table}{htbp}
\makeatother
\apptocmd{\GlossaryParms}
{\RaggedRight\normalsize}
{\relax}
{\AppendingFailed}
\let\oldhdclindex=\hdclindex
\renewcommand*{\hdclindex}[2]
{\ifstrequal{#2}{code}
{\oldhdclindex{#1}{codeidx}}
{\oldhdclindex{#1}{#2}}}
\let\oldhdpindex=\hdpindex
\renewcommand*{\hdpindex}[2]{\textbf{\oldhdpindex{#1}{#2}}}
\newcommand*{\hollowrectangle}[2]
{\setlength{\fboxrule}{.5pt}%
\setlength{\fboxsep}{0pt}%
\framebox{\rule{#1}{0pt}\rule{0pt}{#2}}}
\newcommand*{\hollowsquare}[1]{\hollowrectangle{#1}{#1}}
\apptocmd{\IndexParms}
{\RaggedRight\small}
{\relax}
{\AppendingFailed}
\makeatletter
\ExplSyntaxOn
\apptocmd{\index@prologue}
{\legacy_if:nTF {codeline@index}
{We\space prefix\space all\space references\space
to\space code\space lines\space with~\singlequotes{\codelineindicator}.}
{}}
{\relax}
{\AppendingFailed}
\newcommand*{\linenumberdecoration}
{\legacy_if:nTF {codeline@index}
{\codelineindicator}
{}}
\ExplSyntaxOff
\makeatother
\newcommand*{\logmacro}[1]
{\ifdef{#1}
{\message{^^JDump of macro \string#1 follows.^^J}
\message{\detokenize\expandafter{#1}}
\message{^^JEnd macro dump.^^J}}
{\message{^^JMacro \string#1 is not defined.^^J}}}
\newenvironment*{widebody}
{\begin{list}{}{\leftmargin=-\marginparwidth
\listparindent=\parindent
\parsep=\parskip
\rightmargin=0pt
\topsep=0pt}
\item\relax}
{\end{list}}
\let\originalmulticols=\multicols
\let\endoriginalmulticols=\endmulticols
\RenewDocumentEnvironment{multicols}{m o o}
{\ifnum #1=1
\IfNoValueTF{#2}{\relax}{#2}%
\else
\IfNoValueTF{#2}
{\originalmulticols{#1}}
{\originalmulticols{#1}[#2]}%
\fi}
{\ifnum #1=1
\relax
\else
\endoriginalmulticols
\fi}
\newenvironment*{multilinecodeexample}
{\begin{quote}\tt
\def\indent{\mbox{}\hspace{25pt}}%
\def\pushright{\mbox{}\hfill}%
\ignorespaces}
{\end{quote}}
\newcommand*{\needtocspace}[1][3]
{\addtocontents{toc}{\protect\needspace{#1\baselineskip}}}
\newcommand*{\numberset}[1]{\mathbb{#1}}
\newcommand*{\packagename}[1]{\mbox{\textsf{#1}}}
\newcommand*{\programname}[1]{\mbox{\textbf{#1}}}
\newcommand*{\propername}[1]{\mbox{\textsc{#1}}}
\newcommand*{\pstrickslogo}{\mbox{PSTricks}}
\newcommand*{\quarterspace}{\hspace{.25em}}
\newcommand*{\sample}[1]
{\setbox0=\hbox{#1}% H: 6.19849pt, /: 7.49817
\mbox{\raisebox{\dimexpr -.15em - \dp0}{\tiny$\llcorner$}%
\kern-.15em\copy0\kern-.15em
\raisebox{\ifdim\ht0>.7em\dimexpr\ht0 - .1em\else .45em\fi}{\tiny$\urcorner$}}}
\newcommand*{\sinceversion}[1]{% modeled after \NewIn of "doc.dtx"
\leavevmode
\marginpar{\hfill\textcolor{\markercolor}{\sf\proportionaloldstylefigures\scshape #1}}%
\ignorespaces
}
\newcommand*{\singlequotes}[1]{\mbox{\guilsinglright #1\guilsinglleft}}
\definecolor{customred1}{rgb}{.890, .282, .282}%-- https://paletton.com/
\definecolor{customred2}{rgb}{.831, .110, .110}
\definecolor{customred3}{rgb}{.686, .043, .043}
\definecolor{customred4}{rgb}{.569, .000, .000}
\definecolor{customred5}{rgb}{.420, .000, .000}
\newcommand*{\specialsectionheading}[1]{\textcolor{\markercolor}{\textit{\textbf{#1}}}}
\newcommand*{\markercolor}{customred4}
\newcommand*{\specialsectionmarker}{\color{\markercolor}\filledsquare{5pt}}
\newcommand*{\specialsectionbegin}
{\llap{\raisebox{1pt}{\specialsectionmarker}%
\hspace{\marginindicatorsep}}}
\newcommand*{\specialsectionend}
{\ifmmode
\specialsectionmarker
\else
\leavevmode
\unskip
\penalty9999\mbox{}\nobreak
\hfill
\quad
\mbox{\specialsectionmarker}%
\fi}
\newtoggle{printspecialsectionmarker}
\NewDocumentEnvironment{specialsection}{m m}
{\Needspace{4\baselineskip}%
\toggletrue{printspecialsectionmarker}%
\begin{list}
{\specialsectionheading{#1\ifblank{#2}{}{\textup{\space---\space#2}}}}
{\itemindent=0pt
\labelwidth=10pt
\leftmargin=15pt
\listparindent=15pt
\parsep=0pt
\topsep=\medskipamount}
\newcommand*{\specialsectionendhere}
{\specialsectionend
\global\togglefalse{printspecialsectionmarker}}
\item
\nointerlineskip
\leavevmode\par
\noindent}
{\iftoggle{printspecialsectionmarker}{\specialsectionend}{\relax}%
\end{list}}
\newenvironment*{caution}[1][]{\begin{specialsection}{Caution}{#1}}{\end{specialsection}}
\newenvironment*{example}[1][]{\begin{specialsection}{Example}{#1}}{\end{specialsection}}
\newenvironment*{futuredirection}[1][]
{\begin{specialsection}{Anticipated Changes \& Possible Extensions}{#1}\small}
{\end{specialsection}}
\newenvironment*{important}[1][]{\begin{specialsection}{Important}{#1}}{\end{specialsection}}
\newenvironment*{note}[1][]{\begin{specialsection}{Note}{#1}}{\end{specialsection}}
\newenvironment*{notes}[1][]{\begin{specialsection}{Notes}{#1}}{\end{specialsection}}
\newenvironment*{tip}[1][]{\begin{specialsection}{Tip}{#1}}{\end{specialsection}}
\newenvironment*{tips}[1][]{\begin{specialsection}{Tips}{#1}}{\end{specialsection}}
\newenvironment*{usecase}[1][]{\begin{specialsection}{Use Case}{#1}\small}{\end{specialsection}}
\newenvironment*{usecases}[1][]{\begin{specialsection}{Use Cases}{#1}\small}{\end{specialsection}}
\newcommand*{\specialcodesectionheading}[1]{\textcolor{\markercolor}{\textbf{\textit{#1}}}}
\newenvironment*{specialcodesection}[1]
{\Needspace{4\baselineskip}%
\begin{tcolorbox}[blanker,
borderline west={3pt}{0pt}{\markercolor},
breakable,
left=15pt]
\sffamily
\begin{list}
{\specialcodesectionheading{#1}}
{\itemindent=0pt
\labelwidth=20pt
\leftmargin=25pt
\listparindent=15pt
\parsep=0pt
\topsep=\medskipamount}
\item
\nointerlineskip
\leavevmode\par
\fussy
\noindent}
{\end{list}
\end{tcolorbox}}
\newenvironment*{anticipatedchange}
{\begin{specialcodesection}{Anticipated Change}}
{\end{specialcodesection}}
\newenvironment*{implementationnote}
{\begin{specialcodesection}{Implementation Note}}
{\end{specialcodesection}}
\newenvironment*{knownbug}
{\begin{specialcodesection}{Known Bug}}
{\end{specialcodesection}}
\newenvironment*{suspendshortverb}
{\DeleteShortVerb{\|}}
{\MakeShortVerb{\|}}
\definecolor{cold-silver}{cmyk}{.08, 0, 0, .18}
\newenvironment*{synopsis}
{\begin{tcolorbox}[boxrule=.25pt, colback=cold-silver]%
\phantomsection}
{\end{tcolorbox}}
\newcommand*{\synthslantlogo}
{{\sf
S\hspace{-.06em}\synthslantbox{.15}{y}\hspace{.04em}nth%
\hspace{-.02em}%
Slant}}
\newenvironment*{tablenotes}
{\medskip
\centering
\begin{minipage}{\floatcaptionwidth}}
{\end{minipage}}
\newcommand*{\tablenotemark}[1]{\smash{\textsuperscript{#1}}}
\newcommand*{\termparbox}[1]{\parbox[t]{\linewidth}{#1\bottomstrut}}
\newcommand*{\thousandsseparator}{\mbox{,}}
\newcommand*{\tikzlogo}{\textrm{Ti\textit{k\/}Z}}
\newcommand*{\toccontinuesonnextpage}
{\addtocontents{toc}{\par
\bigskip
\hfill\textit{Table of Contents continued on next page.}\par
\clearpage}}
\newcommand*{\topstrut}{\rule{0pt}{1.3em}}
\newcommand*{\transpose}[1]{{#1}^{\text{T}}}
\newlength{\ttellipsisgap}
\setlength{\ttellipsisgap}{.4em}
\newcommand*{\ttdots}
{\setbox0=\hbox{.}%
\wd0=0pt%
\copy0\kern\ttellipsisgap
\copy0\kern\ttellipsisgap
\box0\kern\ttellipsisgap}
\newcommand*{\unmarkedfntext}[1]
{{\def\thefootnote{}\footnote{#1}%
\addtocounter{footnote}{-1}}}
\newcommand*{\userman}[1]{\textbf{\hyperpage{#1}}}
\newcommand*{\visualpar}{\textcolor{\markercolor}{\P}\linebreak[1]\enspace}
\newenvironment*{widecodeexample}
{\begin{widebody}
\flushright
\begin{minipage}{\textwidth}
\ttfamily
\begin{tabbing}}
{\end{tabbing}
\end{minipage}
\end{widebody}}
\hyphenation{% https://hyphenateit.com/en-us
neg-slant-context
neg-slant-environment
slant-context
slant-environment
synth-neg-slant
synth-slant
synth-slant-box
text-synth-slant
text-synth-upright-italic
}
\newcommand*{\librecaslonmapline}
{LibreCsln-Italic-osf-t1--base LibreCsln-Italic
" -0.12 SlantFont AutoEnc_etzx2kxblronahmbt4swbkr7jb ReEncodeFont "
<[lcsln_etzx2k.enc <LibreCsln-Italic.pfb}
\ifdefined\pdfoutput
\ifnum\pdfoutput>0
\pdfmapline{=\librecaslonmapline}
\else
\special{pdf:mapline \librecaslonmapline}
\fi
\else
\special{pdf:mapline \librecaslonmapline}
\fi
\begin{document}
\DocInput{synthslant.dtx}
\end{document}
%</driver>
%<*index-style>
actual '='
delim_0 "\\nobreak\\enspace"
delim_1 "\\nobreak\\enspace"
delim_2 "\\nobreak\\enspace"
heading_prefix "\\pagebreak[3]\\smallskip\n\n{\\sffamily\\bfseries\\large "
heading_suffix "}\\nopagebreak\n"
headings_flag 1
level '>'
line_max 65536
quote '!'
%</index-style>
%<*changes-style>
actual '='
delim_0 "\\nobreak\\enspace"
delim_1 "\\nobreak\\enspace"
delim_2 "\\nobreak\\enspace"
heading_prefix "\\pagebreak[3]\\smallskip\n\n{\\sffamily\\bfseries\\large "
heading_suffix "}\\nopagebreak\n"
headings_flag 0
item_x1 "\\efill\n\\subitem "
item_x2 "\\ "
keyword "\\glossaryentry"
level '>'
line_max 65536
postamble "\n\\end{theglossary}\n"
preamble "\\begin{theglossary}\n \\makeatletter\\scan@allowedfalse"
quote '!'
%</changes-style>
% \fi
%
%
% \DoNotIndex{\-}
% \DoNotIndex{\begingroup,\bool,\box}
% \DoNotIndex{\DeclareOptionX,\def,\dim,\dimen,\discretionary,\draw}
% \DoNotIndex{\edef,\else}
% \DoNotIndex{\endgroup,\endmicrotypecontext,\endnegslantenvironment,\endslantenvironment}
% \DoNotIndex{\expandafter,\ExplSyntaxOff,\ExplSyntaxOn}
% \DoNotIndex{\fi,\font,\fontdimen,\fontspec,\fp,\fpeval}
% \DoNotIndex{\hbox,\hskip}
% \DoNotIndex{\ifcase,\ifcsdef,\ifdefined,\ifluatex,\ifmmode,\ifnum,\ifpdftex,\ifx,\itshape}
% \DoNotIndex{\kern}
% \DoNotIndex{\l,\let,\llap}
% \DoNotIndex{\mbox,\microtypecontext}
% \DoNotIndex{\NeedsTeXFormat}
% \DoNotIndex{\newbox,\newcommand,\NewDocumentCommand,\NewDocumentEnvironment,\newenvironment,\newrobustcmd}
% \DoNotIndex{\node,\nolinebreak}
% \DoNotIndex{\or}
% \DoNotIndex{\PackageError,\PackageInfo,\PackageWarning,\ProcessOptionsX,\providecommand,\ProvidesPackage}
% \DoNotIndex{\pdfoutput,\pdfrestore,\pdfsave,\pdfsetmatrix,\pstilt}
% \DoNotIndex{\relax,\RequirePackage}
% \DoNotIndex{\sbox,\skip,\space,\string}
% \DoNotIndex{\tikz}
% \DoNotIndex{\upshape,\usebox}
% \DoNotIndex{\wd}
% \DoNotIndex{\xdef}
%
%
% \changes{v0.1}{2024-2-12}{Initial version.}
%
%
% \pagenumbering{roman}
%
% \title{\synthslantlogo{} -- Synthetically Slanted Glyphs}
% \author{Ch.~L.~Spiel\footnote{\quarterspace\texttt{[email protected]}}}
% \date{\fileversion\qquad \filedate}
% \maketitle
% \thispagestyle{empty}
%
%
% \begingroup
% \let\small=\normalsize
% \begin{abstract}
% \noindent
% Package~\packagename{synthslant} provides macros to slant arbitrary glyphs in both
% directions. It can be used to fake a real slanted font for \emph{short} pieces of text
% and it can generate startling effects, like, for example, upright italics.
% \end{abstract}
% \endgroup
%
%
% \iffalse
%<*title>
prologues := 3;
string roman_font;
roman_font := "pplr8r"; % URW Palladio L - Roman
string italics_font;
italics_font := "pplri8r"; % URW Palladio L - Italic
string sample_text;
sample_text := "fga";
u := 70;
font_scale := 7;
color light_gray;
light_gray := .8 white;
color original_color, slanted_color;
original_color := light_gray;
slanted_color := black;
pair loc[];
loc[1] := (0, 0); % roman
loc[2] := (1.9u, 0); % italics
loc[3] := (2.03u, 1.1u); % slanted roman
loc[4] := (-.1u, -1.1u); % upright italics
picture roman;
roman := thelabel.rt(sample_text infont roman_font scaled font_scale, loc[1]);
picture italics;
italics := thelabel.rt(sample_text infont italics_font scaled font_scale, loc[2]);
picture slanted_roman;
slanted_roman := thelabel.rt(sample_text infont roman_font scaled font_scale slanted .2, loc[3]);
picture upright_italics;
upright_italics := thelabel.rt(sample_text infont italics_font scaled font_scale slanted -.2, loc[4]);
beginfig(1);
draw roman withcolor original_color;
draw italics withcolor original_color;
draw slanted_roman withcolor slanted_color;
draw upright_italics withcolor slanted_color;
endfig;
end
%</title>
% \fi
%
%
% \begin{center}
% \includegraphics{title.mps}
% \end{center}
%
% \vfill
%
% \begingroup
% \footnotesize
% \noindent
% This package is copyright \textcopyright~2024 Ch.~L.~Spiel. It may be distributed and/or
% modified under the conditions of the \href{https://www.latex-project.org/lppl.txt}{\LaTeX{}
% Project Public License} \acronym{(LPPL)}, either version~1.3c of this license or --~at your
% option~-- any later version. This work has the \acronym{LPPL} maintenance status
% \doublequotes{author-maintained}.\par
% \endgroup
%
%
% \clearpage
% \pagestyle{pagenumberonly}
%
% \unmarkedfntext{The font samples~\singlequotes{fga} on the title page were generated with the
% help of \MP{} using \doublequotes{\acronym{URW} Palladio} in styles~\singlequotes{roman}
% and~\singlequotes{italic}. The affine transformations were\enspace \code{slanted
% .2}\enspace for the slanted roman and\enspace \code{slanted -.2}\enspace for the upright
% italics.}
% \tableofcontents
%
% \vspace{\fill}
%
% \listoftables
% \bigskip
% \listoffigures
%
% \vspace{\fill}
%
%
% \clearpage
% \phantomsection
% \addcontentsline{toc}{section}{\numberline{}Quick Reference}
% \addtocontents{toc}{\medskip}
% \section*{Quick Reference}
%
% Alphabetically sorted list of all user macros and environments defined by
% package~\packagename{synthslant}. The list of all package options can be found on
% \cpageref{sec:package-options} and \pageref{secend:package-options}. The
% \hyperref[sec:index]{Index} on pages~\pageref{sec:index} to~\pageref{secend:index} may
% provide some more detailed insights.
%
% \begin{list}{}{\itemindent=-\leftmargin
% \itemsep=5pt plus 2pt minus 1pt}
% \NewDocumentCommand{\qritem}{m m O{}}
% {\item
% \hyperref[#1]{#2}#3\relax
% \def\qrref{\quad\textbf{\pageref{#1}}}%
% \leavevmode
% \linebreak
% \ignorespaces}
% \qritem{syn:negslantcontext}{\cs{negslantcontext}}
% Name of the \packagename{microtype} context used when typesetting backward slanted
% text.\qrref
%
% \qritem{syn:negslantenvironment}{\code{negslantenvironment}}
% Wrapper around \cs{synthslantbox} when slanting backward with
% \cs{textsynthuprightitalic}.\qrref
%
% \qritem{syn:slantcontext}{\cs{slantcontext}}
% Name of the \packagename{microtype} context used when typesetting forward slanted
% text~(\cpageref{syn:slantcontext})
%
% \qritem{syn:slantenvironment}{\code{slantenvironment}}
% Wrapper around \cs{synthslantbox} when slanting forward with
% \cs{textsynthslant}.\qrref
%
% \qritem{syn:synthnegslant}{\cs{synthnegslant}}
% Slant value used by \cs{textsynthuprightitalic}.\qrref
%
% \qritem{syn:synthslantbox}{\cs{synthslantbox}}[\marg{slant}\marg{text}]
% Slant \meta{text} (forward or backward) with \meta{slant}.\qrref
%
% \qritem{syn:synthslant}{\cs{synthslant}}
% Slant value used by \cs{textsynthslant}.\qrref
%
% \qritem{syn:textsynthslant}{\cs{textsynthslant}}[\marg{text}]
% Forward slant \meta{text}.\qrref
%
% \qritem{syn:textsynthuprightitalic}{\cs{textsynthuprightitalic}}[\marg{text}]
% Backward slant \meta{text}.\qrref
% \end{list}
%
%
% \clearpage
% \pagenumbering{arabic}
% \section{Introduction}\label{sec:introduction}
%
% The \packagename{synthslant} package provides a translator (e.\,g.~\LaTeX, \pdfLaTeX, or
% \LuaLaTeX) independent interface to shearing glyphs. It implements a generic operation where
% a short piece of text gets slanted forward or backward. Moreover, specialized macros for the
% two most important use cases are provided, namely slanting an upright font forward and making
% an italics font upright. Unbeknown to some users, \pdfTeX{} performs a similar operation
% under the hood: of the 40\thousandsseparator210~map lines in my \filesystem{pdftex.map}
% currently 1\thousandsseparator236 instruct \pdfTeX{} to artificially slant a font. This
% means some three percent of the shapes are generated this way.
%
% Similar transformations can be achieved by other means. I elaborate on one of the
% alternatives in \cref{sec:alternative} on \cpageref{sec:alternative}.
% Package~\packagename{synthslant} however focuses on ease of use and strict locality of the
% glyph manipulation.
%
%
% \subsection{Appeal for Artificially Slanted Type}\label{sec:appleal-for-artificially-slanted}
%
% Artificially slanted type have a lousy reputation. Whenever there is an order to round up
% the usual font suspects synthetically slanted, bolded\footnote{Package~\packagename{amsbsy}
% defines a \doublequotes{Poor Man's Bold} macro~\cs{pmb} that works by
% \singlequotes{overprinting}. The authors of \packagename{amsbsy} recommend to prefer
% package~\packagename{bm} for bold mathematical symbols, though.}, and condensed type along
% with artificial small-caps swiftly are stuffed into the black Maria.\footnote{See for example
% Ref.~\citenum{strizver:2014}, p.~97, but compare p.~142 and also
% Ref.~\citenum{middendorp:2014}, p.~68n, for a more nuanced assessment.} I can retrace this
% condescension for synthetic bold and condensed variants. They spoil the glyphs' outline
% because they do not (and cannot) conserve the necessary proportions. For small-caps the
% problems are somewhat minor and I wonder how far one could get with an
% \propername{OpenType}~font that supports a
% \code{size}~axis\index{font>axis>size=\code{size}|userman} as well as an
% \code{opsz}~axis\index{font>axis>opsz=\code{opsz}|userman} in the necessary ranges to
% construct convincing small-caps out of the multiple-master font.
%
% In my view artificial slanting keeps much of the font's character intact. In fact one
% accusation of synthetically slanted type is that is creates less contrast than a proper
% italic~\cite[p.~141]{strizver:2014} to which I object that less contrast can in fact be
% enough contrast in a particular setting. Moreover, small contrast with respect to the main
% type is a problem of second order. It does not devalue the shape \foreignphrase{per se} as
% is true for artificial bold and condensed fonts.
%
% What seems to have gotten lost in the discussion is the shapes of true italics that were
% designed alongside with the roman type. If we have an unbiased look at it --~for example at
% the title~page of this manual~-- the italic versions of the upright characters are so
% markedly different that I would like to ask whether they match the upright shape in a strict
% sense. For the double-storey~\sample{a} becomes single-storey, the start of the loop
% of~\sample{g} moves from the far left into the middle. Alongside, the aspect ratio of both
% of the counters change. These defy the common guidelines~\cite[Ch.~6]{stamm:2020} of font
% pairing. We can make sense of the seeming contradiction by recognizing that the italics
% shape is not simply slanted, but creates tension in respect to the upright type by a variety
% of additional design features. A famous quote of \propername{Zuzana Li\v{c}ko} applies once
% again:
%
% \begin{quote}
% The most popular typefaces are the easiest to read; their popularity has made them
% disappear from conscious cognition. It becomes impossible to tell if they are easy to read
% because they are commonly used, or if they are commonly used because they are easy to read.
% \end{quote}
%
%
% \subsection{Some History}\label{sec:history}
%
% Italics accompanying a roman font date back to one of the earliest print shops, namely that
% of \href{https://it.wikipedia.org/wiki/Aldo_Manuzio}{\propername{Aldus Manutius}} around
% 1500\:A.\,C\@. Artificially slanted, also known as \singlequotes{oblique}, versions of
% upright fonts appear in the twentieth century, when type designers and foundries start to
% save time and money by automatically constructing a slanted version of a given roman
% type~\cite[p.~68n]{middendorp:2014}. \packagename{Synthslant} closely follows on their
% steps.
%
% Some fonts in current \LaTeX{} distributions offer slanted series right out of the box.
% \foreignphrase{Eureka!} In particular the oldest (and once upon a time the only) font family
% shipping with \TeX, \href{https://tug.org/FontCatalogue/cmrfonts.html}{\acronym{CM}
% Roman}\index{font>typeface>CM Roman=\acronym{CM} Roman|userman} --~nowadays member of the
% \acronym{CM}-Super family~-- is available in a deluge of almost thirty shapes. It covers not
% just slanted roman or slanted smallcaps but also slanted typewriter and somewhat surprisingly
% upright italics. Furthermore, the \LaTeXe{} font selection scheme provisions
% \singlequotes{\code{sl}} for slanted shapes and \singlequotes{\code{ui}} for upright
% italics~\cite{fntguide}. The former is accompanied by the macros~\cs{slshape}
% and~\cs{textsl}.
%
% \begin{wraptable}{r}{.382\textwidth}
% \renewcommand*{\floatcaptionwidth}{\textwidth}
% \small