-
Notifications
You must be signed in to change notification settings - Fork 0
/
pmboxdraw.dtx
5461 lines (5447 loc) · 144 KB
/
pmboxdraw.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 meta-comment
%
% File: pmboxdraw.dtx
% Version: 2019/12/05 v1.4
% Info: Poor man's box drawing characters
%
% Copyright (C)
% 2006, 2011 Heiko Oberdiek
% 2016-2019 Oberdiek Package Support Group
% https://github.com/ho-tex/pmboxdraw/issues
%
% 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. This version of this license is in
% https://www.latex-project.org/lppl/lppl-1-3c.txt
% and the latest version of this license is in
% https://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of
% LaTeX version 2005/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% The Current Maintainers of this work are
% Heiko Oberdiek and the Oberdiek Package Support Group
% https://github.com/ho-tex/pmboxdraw/issues
%
% This work consists of the main source file pmboxdraw.dtx
% and the derived files
% pmboxdraw.sty, pmboxdraw.pdf, pmboxdraw.ins, pmboxdraw.drv,
% pmboxdrawenc.dfu, pmboxdraw-test1.tex.
%
% Distribution:
% CTAN:macros/latex/contrib/pmboxdraw/pmboxdraw.dtx
% CTAN:macros/latex/contrib/pmboxdraw/pmboxdraw.pdf
%
% Unpacking:
% (a) If pmboxdraw.ins is present:
% tex pmboxdraw.ins
% (b) Without pmboxdraw.ins:
% tex pmboxdraw.dtx
% (c) If you insist on using LaTeX
% latex \let\install=y\input{pmboxdraw.dtx}
% (quote the arguments according to the demands of your shell)
%
% Documentation:
% (a) If pmboxdraw.drv is present:
% latex pmboxdraw.drv
% (b) Without pmboxdraw.drv:
% latex pmboxdraw.dtx; ...
% The class ltxdoc loads the configuration file ltxdoc.cfg
% if available. Here you can specify further options, e.g.
% use A4 as paper format:
% \PassOptionsToClass{a4paper}{article}
%
% Programm calls to get the documentation (example):
% pdflatex pmboxdraw.dtx
% makeindex -s gind.ist pmboxdraw.idx
% pdflatex pmboxdraw.dtx
% makeindex -s gind.ist pmboxdraw.idx
% pdflatex pmboxdraw.dtx
%
% Installation:
% TDS:tex/latex/pmboxdraw/pmboxdraw.sty
% TDS:tex/latex/pmboxdraw/pmboxdrawenc.dfu
% TDS:doc/latex/pmboxdraw/pmboxdraw.pdf
% TDS:source/latex/pmboxdraw/pmboxdraw.dtx
%
%<*ignore>
\begingroup
\catcode123=1 %
\catcode125=2 %
\def\x{LaTeX2e}%
\expandafter\endgroup
\ifcase 0\ifx\install y1\fi\expandafter
\ifx\csname processbatchFile\endcsname\relax\else1\fi
\ifx\fmtname\x\else 1\fi\relax
\else\csname fi\endcsname
%</ignore>
%<*install>
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
\Msg{* Package: pmboxdraw 2019/12/05 v1.4 Poor man's box drawing characters (HO)}
\Msg{************************************************************************}
\keepsilent
\askforoverwritefalse
\let\MetaPrefix\relax
\preamble
This is a generated file.
Project: pmboxdraw
Version: 2019/12/05 v1.4
Copyright (C)
2006, 2011 Heiko Oberdiek
2016-2019 Oberdiek Package Support Group
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. This version of this license is in
https://www.latex-project.org/lppl/lppl-1-3c.txt
and the latest version of this license is in
https://www.latex-project.org/lppl.txt
and version 1.3 or later is part of all distributions of
LaTeX version 2005/12/01 or later.
This work has the LPPL maintenance status "maintained".
The Current Maintainers of this work are
Heiko Oberdiek and the Oberdiek Package Support Group
https://github.com/ho-tex/pmboxdraw/issues
This work consists of the main source file pmboxdraw.dtx
and the derived files
pmboxdraw.sty, pmboxdraw.pdf, pmboxdraw.ins, pmboxdraw.drv,
pmboxdrawenc.dfu, pmboxdraw-test1.tex.
\endpreamble
\let\MetaPrefix\DoubleperCent
\generate{%
\file{pmboxdraw.ins}{\from{pmboxdraw.dtx}{install}}%
\file{pmboxdraw.drv}{\from{pmboxdraw.dtx}{driver}}%
\usedir{tex/latex/pmboxdraw}%
\file{pmboxdraw.sty}{\from{pmboxdraw.dtx}{package}}%
\file{pmboxdrawenc.dfu}{\from{pmboxdraw.dtx}{utf8}}%
}
\catcode32=13\relax% active space
\let =\space%
\Msg{************************************************************************}
\Msg{*}
\Msg{* To finish the installation you have to move the following}
\Msg{* files into a directory searched by TeX:}
\Msg{*}
\Msg{* pmboxdraw.sty, pmboxdrawenc.dfu}
\Msg{*}
\Msg{* To produce the documentation run the file `pmboxdraw.drv'}
\Msg{* through LaTeX.}
\Msg{*}
\Msg{* Happy TeXing!}
\Msg{*}
\Msg{************************************************************************}
\endbatchfile
%</install>
%<*ignore>
\fi
%</ignore>
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{pmboxdraw.drv}%
[2019/12/05 v1.4 Poor man's box drawing characters (HO)]%
\documentclass{ltxdoc}
\usepackage{holtxdoc}[2011/11/22]
\usepackage{color}
\let\orgdimexpr\dimexpr
%\let\dimexpr\relax
\usepackage{pmboxdraw}
\let\dimexpr\orgdimexpr
\usepackage{longtable}
\setcounter{tocdepth}{2}
\hypersetup{bookmarksdepth=3}
\begin{document}
\DocInput{pmboxdraw.dtx}%
\end{document}
%</driver>
% \fi
%
%
%
% \GetFileInfo{pmboxdraw.drv}
%
% \title{The \xpackage{pmboxdraw} package}
% \date{2019/12/05 v1.4}
% \author{Heiko Oberdiek\thanks
% {Please report any issues at \url{https://github.com/ho-tex/pmboxdraw/issues}}}
%
% \maketitle
%
% \begin{abstract}
% Package \xpackage{pmboxdraw} declares box drawings characters of
% old code pages, e.g. cp437. It uses rules instead of using a font.
% \end{abstract}
%
% \tableofcontents
%
% \DoNotIndex{\dimen,\dimen@,\z@,\tw@,\wd,\ht,\dp}
% \DoNotIndex{\@width,\@height,\@depth}
% \DoNotIndex{\advance,\hss,\kern,\rlap,\vrule}
%
% \section{User interface}
%
% \begin{quote}
% \ttfamily\fontfamily{lmtt}\selectfont
% \catcode`=\active
% \catcode`|\active
% \catcode`-\active
% \def={\textSFxliii}
% \def|{\textSFxxiv}
% \def-{\textSFx}
% \def~{\mbox{ }}
% \textSFxxxix===================\textSFxxv\\
% | P M B O X D R A W |\\
% \textSFxxxviii ==\textSFxlvii============\textSFxlvii===\textSFxxvi\\
% ~~~\textSFxi~2019/12/05 \textSFxi\\
% ~~~\textSFii------------\textSFiv
% \end{quote}
%
% \subsection{Introduction}
%
% In old code pages (CP 437, \dots) many slots are occupied
% by graphical characters. The definition files for the input
% encodings that come with \LaTeX's package \xpackage{inputenc}
% ignore these characters. This packages tries to close this gap.
% Package \xpackage{inputenx} provides more complete definitions
% files of input encodings (\cite{inputenx}).
%
% The graphical characters are available in some fonts, mostly
% some derivates of Courier. However, the symbols are usually
% used to gegnerate some kind of ASCII art. Thus it should fit
% with the current typewriter font in use. That means:
% \begin{itemize}
% \item Same and constant symbol width.
% \item Use of the full line height. Vertical lines should not be
% interrupted if the symbols that contribute to that lines
% are in adjacent text lines.
% \end{itemize}
% Therefore I decided to generate the symbols by rules.
% Parameters such as rule width and box dimensions are accessible
% at macro level. This avoids to generate many fonts for the used
% typewriter fonts (Courier, LuxiMono, Computer/Latin Modern, \dots).
%
% The disadvantage is that there are no characters in the output
% file, just rules. Thus operations such as cut and paste or text
% search will not detect these graphical characters.
%
% \subsection{Setup}
%
% Usually the box drawings symbols of this package derive its parameters
% from the current font. But they can be set explicitly.
%
% \begin{declcs}{pmboxdrawbox} \M{template}
% \end{declcs}
% The \meta{template} is used as size template for the symbols.
% It is initialized by |\strut0|. (Usually |\strut| carries the information
% about the \cs{baselineskip} and |0| the symbol width.)
%
% \begin{declcs}{pmboxdrawrulewidth} \M{dimen}
% \end{declcs}
% This macro allows the setup of the rule width used in the symbols.
% It is initialized with |0.1\width|, that means 10\,\% of the symbol
% width. \cs{width}, \cs{height}, and \cs{depth} can be used here and
% are set to the corresponding symbol box parameter.
%
% \begin{declcs}{pmboxdrawdoublerulesep} \M{dimen}
% \end{declcs}
% Some symbols have double lines. The distance between the lines is
% configured by this macro. It is set to |0.25\width|, a quarter of
% the symbol width. Also \cs{height} and \cs{depth} are available.
%
% \subsection{Symbol list}
%
% The macro names for the symbols in \LaTeX\ (LICR) are derived
% from Adobe's glyph names for these characters (\cite{aglfn}).
% Example:
% \begin{quote}
% U+2580 (\textupblock) with glyph name \textsf{upblock}: \cs{textupblock}
% \end{quote}
% Some glyph names start with |SF|, two individual digits follow and
% the name is closed by four digits zero. For the LICR name the
% two individual digits form a number that is converted to lowercase
% roman number. The trailing zeros are dropped. Example:
% \begin{quote}
% U+2556 (\textSFxxi) with glyph name \textsf{SF210000}: \cs{textSFxxi}
% \end{quote}
%
% The three gray symbols require package \xpackage{color}:
% \begin{quote}
% U+2591 (\textltshade) light shade: \cs{textltshade}\\
% U+2592 (\textshade) medium shade: \cs{textshade}\\
% U+2593 (\textdkshade) dark shade: \cs{textdkshade}
% \end{quote}
%
% It follows a list with all graphical symbols provided by this
% package:
%
% \begingroup
% \def\entrygen#1#2#3#4{%
% \textcolor{blue}{^^A
% \fbox{\color{black}\texttt{\csname text#3\endcsname}}^^A
% }
% & \texttt{U+25#1}
% & \texttt{#2}
% & \texttt{\textbackslash text#3}
% \\*[-\fboxsep]
% &
% \multicolumn{3}{l}{\lowercase{#4}}\\^^A
% }
% \def\entryU#1#2{%
% \textcolor{blue}{^^A
% \fbox{\color{black}\texttt{\pmboxdrawuni{25#1}}}^^A
% }
% & \texttt{U+25#1}
% & \texttt{uni25#1}
% & \texttt{\textbackslash pmboxdrawuni\{25#1\}}
% \\*[-\fboxsep]
% &
% \multicolumn{3}{l}{\lowercase{#2}}\\^^A
% }
% \def\entry#1#2{\entrygen{#1}{SF#20000}{SF\romannumeral#2}}
% \def\entryB#1#2{\entrygen{#1}{#2}{#2}}
% \begin{longtable}{clll}
% Symbol & Unicode & Glyph name & LICR\\
% \hline
% \endhead
% \entry{00}{10}{BOX DRAWINGS LIGHT HORIZONTAL}
% \entryU{01}{BOX DRAWINGS HEAVY HORIZONTAL}
% \entry{02}{11}{BOX DRAWINGS LIGHT VERTICAL}
% \entryU{03}{BOX DRAWINGS HEAVY VERTICAL}
% \entry{0C}{01}{BOX DRAWINGS LIGHT DOWN AND RIGHT}
% \entryU{0D}{BOX DRAWINGS DOWN LIGHT AND RIGHT HEAVY}
% \entryU{0E}{BOX DRAWINGS DOWN HEAVY AND RIGHT LIGHT}
% \entryU{0F}{BOX DRAWINGS HEAVY DOWN AND RIGHT}
% \entry{10}{03}{BOX DRAWINGS LIGHT DOWN AND LEFT}
% \entryU{11}{BOX DRAWINGS DOWN LIGHT AND LEFT HEAVY}
% \entryU{12}{BOX DRAWINGS DOWN HEAVY AND LEFT LIGHT}
% \entryU{13}{BOX DRAWINGS HEAVY DOWN AND LEFT}
% \entry{14}{02}{BOX DRAWINGS LIGHT UP AND RIGHT}
% \entryU{15}{BOX DRAWINGS UP LIGHT AND RIGHT HEAVY}
% \entryU{16}{BOX DRAWINGS UP HEAVY AND RIGHT LIGHT}
% \entryU{17}{BOX DRAWINGS HEAVY UP AND RIGHT}
% \entry{18}{04}{BOX DRAWINGS LIGHT UP AND LEFT}
% \entryU{19}{BOX DRAWINGS UP LIGHT AND LEFT HEAVY}
% \entryU{1A}{BOX DRAWINGS UP HEAVY AND LEFT LIGHT}
% \entryU{1B}{BOX DRAWINGS HEAVY UP AND LEFT}
% \entry{1C}{08}{BOX DRAWINGS LIGHT VERTICAL AND RIGHT}
% \entryU{1D}{BOX DRAWINGS VERTICAL LIGHT AND RIGHT HEAVY}
% \entryU{1E}{BOX DRAWINGS UP HEAVY AND RIGHT DOWN LIGHT}
% \entryU{1F}{BOX DRAWINGS DOWN HEAVY AND RIGHT UP LIGHT}
% \entryU{20}{BOX DRAWINGS VERTICAL HEAVY AND RIGHT LIGHT}
% \entryU{21}{BOX DRAWINGS DOWN LIGHT AND RIGHT UP HEAVY}
% \entryU{22}{BOX DRAWINGS UP LIGHT AND RIGHT DOWN HEAVY}
% \entryU{23}{BOX DRAWINGS HEAVY VERTICAL AND RIGHT}
% \entry{24}{09}{BOX DRAWINGS LIGHT VERTICAL AND LEFT}
% \entryU{25}{BOX DRAWINGS VERTICAL LIGHT AND LEFT HEAVY}
% \entryU{26}{BOX DRAWINGS UP HEAVY AND LEFT DOWN LIGHT}
% \entryU{27}{BOX DRAWINGS DOWN HEAVY AND LEFT UP LIGHT}
% \entryU{28}{BOX DRAWINGS VERTICAL HEAVY AND LEFT LIGHT}
% \entryU{29}{BOX DRAWINGS DOWN LIGHT AND LEFT UP HEAVY}
% \entryU{2A}{BOX DRAWINGS UP LIGHT AND LEFT DOWN HEAVY}
% \entryU{2B}{BOX DRAWINGS HEAVY VERTICAL AND LEFT}
% \entry{2C}{06}{BOX DRAWINGS LIGHT DOWN AND HORIZONTAL}
% \entryU{2D}{BOX DRAWINGS LEFT HEAVY AND RIGHT DOWN LIGHT}
% \entryU{2E}{BOX DRAWINGS RIGHT HEAVY AND LEFT DOWN LIGHT}
% \entryU{2F}{BOX DRAWINGS DOWN LIGHT AND HORIZONTAL HEAVY}
% \entryU{30}{BOX DRAWINGS DOWN HEAVY AND HORIZONTAL LIGHT}
% \entryU{31}{BOX DRAWINGS RIGHT LIGHT AND LEFT DOWN HEAVY}
% \entryU{32}{BOX DRAWINGS LEFT LIGHT AND RIGHT DOWN HEAVY}
% \entryU{33}{BOX DRAWINGS HEAVY DOWN AND HORIZONTAL}
% \entry{34}{07}{BOX DRAWINGS LIGHT UP AND HORIZONTAL}
% \entryU{35}{BOX DRAWINGS LEFT HEAVY AND RIGHT UP LIGHT}
% \entryU{36}{BOX DRAWINGS RIGHT HEAVY AND LEFT UP LIGHT}
% \entryU{37}{BOX DRAWINGS UP LIGHT AND HORIZONTAL HEAVY}
% \entryU{38}{BOX DRAWINGS UP HEAVY AND HORIZONTAL LIGHT}
% \entryU{39}{BOX DRAWINGS RIGHT LIGHT AND LEFT UP HEAVY}
% \entryU{3A}{BOX DRAWINGS LEFT LIGHT AND RIGHT UP HEAVY}
% \entryU{3B}{BOX DRAWINGS HEAVY UP AND HORIZONTAL}
% \entry{3C}{05}{BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL}
% \entryU{3D}{BOX DRAWINGS LEFT HEAVY AND RIGHT VERTICAL LIGHT}
% \entryU{3E}{BOX DRAWINGS RIGHT HEAVY AND LEFT VERTICAL LIGHT}
% \entryU{3F}{BOX DRAWINGS VERTICAL LIGHT AND HORIZONTAL HEAVY}
% \entryU{40}{BOX DRAWINGS UP HEAVY AND DOWN HORIZONTAL LIGHT}
% \entryU{41}{BOX DRAWINGS DOWN HEAVY AND UP HORIZONTAL LIGHT}
% \entryU{42}{BOX DRAWINGS VERTICAL HEAVY AND HORIZONTAL LIGHT}
% \entryU{43}{BOX DRAWINGS LEFT UP HEAVY AND RIGHT DOWN LIGHT}
% \entryU{44}{BOX DRAWINGS RIGHT UP HEAVY AND LEFT DOWN LIGHT}
% \entryU{45}{BOX DRAWINGS LEFT DOWN HEAVY AND RIGHT UP LIGHT}
% \entryU{46}{BOX DRAWINGS RIGHT DOWN HEAVY AND LEFT UP LIGHT}
% \entryU{47}{BOX DRAWINGS DOWN LIGHT AND UP HORIZONTAL HEAVY}
% \entryU{48}{BOX DRAWINGS UP LIGHT AND DOWN HORIZONTAL HEAVY}
% \entryU{49}{BOX DRAWINGS RIGHT LIGHT AND LEFT VERTICAL HEAVY}
% \entryU{4A}{BOX DRAWINGS LEFT LIGHT AND RIGHT VERTICAL HEAVY}
% \entryU{4B}{BOX DRAWINGS HEAVY VERTICAL AND HORIZONTAL}
% \entry{50}{43}{BOX DRAWINGS DOUBLE HORIZONTAL}
% \entry{51}{24}{BOX DRAWINGS DOUBLE VERTICAL}
% \entry{52}{51}{BOX DRAWINGS DOWN SINGLE AND RIGHT DOUBLE}
% \entry{53}{52}{BOX DRAWINGS DOWN DOUBLE AND RIGHT SINGLE}
% \entry{54}{39}{BOX DRAWINGS DOUBLE DOWN AND RIGHT}
% \entry{55}{22}{BOX DRAWINGS DOWN SINGLE AND LEFT DOUBLE}
% \entry{56}{21}{BOX DRAWINGS DOWN DOUBLE AND LEFT SINGLE}
% \entry{57}{25}{BOX DRAWINGS DOUBLE DOWN AND LEFT}
% \entry{58}{50}{BOX DRAWINGS UP SINGLE AND RIGHT DOUBLE}
% \entry{59}{49}{BOX DRAWINGS UP DOUBLE AND RIGHT SINGLE}
% \entry{5A}{38}{BOX DRAWINGS DOUBLE UP AND RIGHT}
% \entry{5B}{28}{BOX DRAWINGS UP SINGLE AND LEFT DOUBLE}
% \entry{5C}{27}{BOX DRAWINGS UP DOUBLE AND LEFT SINGLE}
% \entry{5D}{26}{BOX DRAWINGS DOUBLE UP AND LEFT}
% \entry{5E}{36}{BOX DRAWINGS VERTICAL SINGLE AND RIGHT DOUBLE}
% \entry{5F}{37}{BOX DRAWINGS VERTICAL DOUBLE AND RIGHT SINGLE}
% \entry{60}{42}{BOX DRAWINGS DOUBLE VERTICAL AND RIGHT}
% \entry{61}{19}{BOX DRAWINGS VERTICAL SINGLE AND LEFT DOUBLE}
% \entry{62}{20}{BOX DRAWINGS VERTICAL DOUBLE AND LEFT SINGLE}
% \entry{63}{23}{BOX DRAWINGS DOUBLE VERTICAL AND LEFT}
% \entry{64}{47}{BOX DRAWINGS DOWN SINGLE AND HORIZONTAL DOUBLE}
% \entry{65}{48}{BOX DRAWINGS DOWN DOUBLE AND HORIZONTAL SINGLE}
% \entry{66}{41}{BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL}
% \entry{67}{45}{BOX DRAWINGS UP SINGLE AND HORIZONTAL DOUBLE}
% \entry{68}{46}{BOX DRAWINGS UP DOUBLE AND HORIZONTAL SINGLE}
% \entry{69}{40}{BOX DRAWINGS DOUBLE UP AND HORIZONTAL}
% \entry{6A}{54}{BOX DRAWINGS VERTICAL SINGLE AND HORIZONTAL DOUBLE}
% \entry{6B}{53}{BOX DRAWINGS VERTICAL DOUBLE AND HORIZONTAL SINGLE}
% \entry{6C}{44}{BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL}
% \entryU{74}{BOX DRAWINGS LIGHT LEFT}
% \entryU{75}{BOX DRAWINGS LIGHT UP}
% \entryU{76}{BOX DRAWINGS LIGHT RIGHT}
% \entryU{77}{BOX DRAWINGS LIGHT DOWN}
% \entryU{78}{BOX DRAWINGS HEAVY LEFT}
% \entryU{79}{BOX DRAWINGS HEAVY UP}
% \entryU{7A}{BOX DRAWINGS HEAVY RIGHT}
% \entryU{7B}{BOX DRAWINGS HEAVY DOWN}
% \entryU{7C}{BOX DRAWINGS LIGHT LEFT AND HEAVY RIGHT}
% \entryU{7D}{BOX DRAWINGS LIGHT UP AND HEAVY DOWN}
% \entryU{7E}{BOX DRAWINGS HEAVY LEFT AND LIGHT RIGHT}
% \entryU{7F}{BOX DRAWINGS HEAVY UP AND LIGHT DOWN}
% \entryB{80}{upblock}{UPPER HALF BLOCK}
% \entryU{81}{LOWER ONE EIGHTH BLOCK}
% \entryU{82}{LOWER ONE QUARTER BLOCK}
% \entryU{83}{LOWER THREE EIGHTHS BLOCK}
% \entryB{84}{dnblock}{LOWER HALF BLOCK}
% \entryU{85}{LOWER FIVE EIGHTHS BLOCK}
% \entryU{86}{LOWER THREE QUARTERS BLOCK}
% \entryU{87}{LOWER SEVEN EIGHTHS BLOCK}
% \entryB{88}{block}{FULL BLOCK}
% \entryU{89}{LEFT SEVEN EIGHTHS BLOCK}
% \entryU{8A}{LEFT THREE QUARTERS BLOCK}
% \entryU{8B}{LEFT FIVE EIGHTHS BLOCK}
% \entryB{8C}{lfblock}{LEFT HALF BLOCK}
% \entryU{8D}{LEFT THREE EIGHTHS BLOCK}
% \entryU{8E}{LEFT ONE QUARTER BLOCK}
% \entryU{8F}{LEFT ONE EIGHTH BLOCK}
% \entryB{90}{rtblock}{RIGHT HALF BLOCK}
% \entryB{91}{ltshade}{LIGHT SHADE}
% \entryB{92}{shade}{MEDIUM SHADE}
% \entryB{93}{dkshade}{DARK SHADE}
% \entryU{94}{UPPER ONE EIGHTH BLOCK}
% \entryU{95}{RIGHT ONE EIGHTH BLOCK}
% \entryU{96}{QUADRANT LOWER LEFT}
% \entryU{97}{QUADRANT LOWER RIGHT}
% \entryU{98}{QUADRANT UPPER LEFT}
% \entryU{99}{QUADRANT UPPER LEFT AND LOWER LEFT AND LOWER RIGHT}
% \entryU{9A}{QUADRANT UPPER LEFT AND LOWER RIGHT}
% \entryU{9B}{QUADRANT UPPER LEFT AND UPPER RIGHT AND LOWER LEFT}
% \entryU{9C}{QUADRANT UPPER LEFT AND UPPER RIGHT AND LOWER RIGHT}
% \entryU{9D}{QUADRANT UPPER RIGHT}
% \entryU{9E}{QUADRANT UPPER RIGHT AND LOWER LEFT}
% \entryU{9F}{QUADRANT UPPER RIGHT AND LOWER LEFT AND LOWER RIGHT}
% \end{longtable}
% \endgroup
%
% \StopEventually{
% }
%
% \section{Implementation}
%
% \subsection{Initial stuff}
%
% \begin{macrocode}
%<*package>
% \end{macrocode}
% Reload check, especially if the package is not used with \LaTeX.
% \begin{macrocode}
\begingroup\catcode61\catcode48\catcode32=10\relax%
\catcode13=5 % ^^M
\endlinechar=13 %
\catcode35=6 % #
\catcode39=12 % '
\catcode44=12 % ,
\catcode45=12 % -
\catcode46=12 % .
\catcode58=12 % :
\catcode64=11 % @
\catcode123=1 % {
\catcode125=2 % }
\expandafter\let\expandafter\x\csname [email protected]\endcsname
\ifx\x\relax % plain-TeX, first loading
\else
\def\empty{}%
\ifx\x\empty % LaTeX, first loading,
% variable is initialized, but \ProvidesPackage not yet seen
\else
\expandafter\ifx\csname PackageInfo\endcsname\relax
\def\x#1#2{%
\immediate\write-1{Package #1 Info: #2.}%
}%
\else
\def\x#1#2{\PackageInfo{#1}{#2, stopped}}%
\fi
\x{pmboxdraw}{The package is already loaded}%
\aftergroup\endinput
\fi
\fi
\endgroup%
% \end{macrocode}
% Package identification:
% \begin{macrocode}
\begingroup\catcode61\catcode48\catcode32=10\relax%
\catcode13=5 % ^^M
\endlinechar=13 %
\catcode35=6 % #
\catcode39=12 % '
\catcode40=12 % (
\catcode41=12 % )
\catcode44=12 % ,
\catcode45=12 % -
\catcode46=12 % .
\catcode47=12 % /
\catcode58=12 % :
\catcode64=11 % @
\catcode91=12 % [
\catcode93=12 % ]
\catcode123=1 % {
\catcode125=2 % }
\expandafter\ifx\csname ProvidesPackage\endcsname\relax
\def\x#1#2#3[#4]{\endgroup
\immediate\write-1{Package: #3 #4}%
\xdef#1{#4}%
}%
\else
\def\x#1#2[#3]{\endgroup
#2[{#3}]%
\ifx#1\@undefined
\xdef#1{#3}%
\fi
\ifx#1\relax
\xdef#1{#3}%
\fi
}%
\fi
\expandafter\x\csname [email protected]\endcsname
\ProvidesPackage{pmboxdraw}%
[2019/12/05 v1.4 Poor man's box drawing characters (HO)]%
% \end{macrocode}
%
% \begin{macrocode}
\begingroup\catcode61\catcode48\catcode32=10\relax%
\catcode13=5 % ^^M
\endlinechar=13 %
\catcode123=1 % {
\catcode125=2 % }
\catcode64=11 % @
\def\x{\endgroup
\expandafter\edef\csname pmbd@AtEnd\endcsname{%
\endlinechar=\the\endlinechar\relax
\catcode13=\the\catcode13\relax
\catcode32=\the\catcode32\relax
\catcode35=\the\catcode35\relax
\catcode61=\the\catcode61\relax
\catcode64=\the\catcode64\relax
\catcode123=\the\catcode123\relax
\catcode125=\the\catcode125\relax
}%
}%
\x\catcode61\catcode48\catcode32=10\relax%
\catcode13=5 % ^^M
\endlinechar=13 %
\catcode35=6 % #
\catcode64=11 % @
\catcode123=1 % {
\catcode125=2 % }
\def\TMP@EnsureCode#1#2{%
\edef\pmbd@AtEnd{%
\pmbd@AtEnd
\catcode#1=\the\catcode#1\relax
}%
\catcode#1=#2\relax
}
\TMP@EnsureCode{34}{12}% "
\TMP@EnsureCode{36}{3}% $
\TMP@EnsureCode{38}{4}% &
\TMP@EnsureCode{39}{12}% '
\TMP@EnsureCode{42}{12}% *
\TMP@EnsureCode{43}{12}% +
\TMP@EnsureCode{44}{12}% ,
\TMP@EnsureCode{45}{12}% -
\TMP@EnsureCode{46}{12}% .
\TMP@EnsureCode{47}{12}% /
\TMP@EnsureCode{60}{12}% <
\TMP@EnsureCode{62}{12}% >
\TMP@EnsureCode{91}{12}% [
\TMP@EnsureCode{93}{12}% ]
\TMP@EnsureCode{96}{12}% `
\edef\pmbd@AtEnd{\pmbd@AtEnd\noexpand\endinput}
% \end{macrocode}
%
% \subsection{Resources}
%
% \begin{macrocode}
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname RequirePackage\endcsname\relax
\def\TMP@RequirePackage#1[#2]{%
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname ver@#1.sty\endcsname\relax
\input #1.sty\relax
\fi
}%
\else
\let\TMP@RequirePackage\RequirePackage
\fi
\TMP@RequirePackage{ltxcmds}[2010/12/12]%
\TMP@RequirePackage{kvsetkeys}[2011/01/30]%
\TMP@RequirePackage{kvdefinekeys}[2011/01/30]%
\TMP@RequirePackage{infwarerr}[2010/04/08]%
% \end{macrocode}
% \begin{macro}{\ifpmbd@latex}
% \begin{macrocode}
\ltx@newif\ifpmbd@latex
\ltx@IfUndefined{fmtname}{}{%
\def\pmbd@tmp{LaTeX2e}%
\ifx\pmbd@tmp\fmtname
\pmbd@latextrue
\fi
}
% \end{macrocode}
% \end{macro}
%
% \subsection{Dummy font encoding}
%
% Using a dummy font encoding because of
% \begin{quote}
% |\usepackage[utf8]{inputenc}|
% \end{quote}
% \begin{macrocode}
\ifpmbd@latex
\DeclareFontEncoding{pmboxdraw}{}{}%
\DeclareFontFamily{pmboxdraw}{pmboxdraw}{}%
\DeclareFontShape{pmboxdraw}{pmboxdraw}{m}{n}{ <-> cmr10 }{}%
\DeclareFontSubstitution{pmboxdraw}{pmboxdraw}{m}{n}%
% \end{macrocode}
%
% \subsection{Setup}
%
% \subsubsection{Options}
%
% \begin{macrocode}
\RequirePackage{kvoptions}[2010/02/22]%
\SetupKeyvalOptions{%
family=PMBD,%
prefix=pmbd@%
}%
\fi
% \end{macrocode}
% \begin{macrocode}
\ltx@IfUndefined{dimexpr}{%
\catcode36=9 %
\catcode38=14 %
}{%
\catcode36=14 %
\catcode38=9 %
}
% \end{macrocode}
% \begin{macro}{\pmbd@ProtectedDef}
% \begin{macrocode}
\ltx@IfUndefined{protected}{%
\def\pmbd@ProtectedDef#1{%
\let\pmbd@temp\ltx@gobble
\@ifdefinable#1{%
\def\pmbd@temp{\DeclareRobustCommand*#1}%
}%
\pmbd@temp
}%
\def\pmbd@ProtectedDefOne#1{%
\let\pmbd@temp\ltx@gobble
\@ifdefinable#1{%
\def\pmbd@temp{\DeclareRobustCommand*#1[1]}%
}%
\pmbd@temp
}%
}{%
\def\pmbd@ProtectedDef#1{%
\let\pmbd@temp\ltx@gobble
\@ifdefinable#1{%
\def\pmbd@temp{\protected\def#1}%
}%
\pmbd@temp
}%
\def\pmbd@ProtectedDefOne#1{%
\let\pmbd@temp\ltx@gobblethree
\@ifdefinable#1{%
\def\pmbd@temp{\protected\def#1}%
}%
\pmbd@temp##1%
}%
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\pmboxdrawsetup}
% \begin{macrocode}
\pmbd@ProtectedDef\pmboxdrawsetup{%
\kvsetkeys{PMBD}%
}
% \end{macrocode}
% \end{macro}
% \begin{macrocode}
\catcode47=11 %
\def\pmbd@temp#1#2{%
\DeclareStringOption[\width]{#1/width}%
\DeclareStringOption[\height]{#1/height}%
\DeclareStringOption[\depth]{#1/depth}%
\DeclareStringOption[{#2}]{#1/box/default}%
\expandafter\DeclareStringOption\expandafter[%
\csname pmbd@#1/box/default\endcsname
]{#1/box}%
}
\pmbd@temp{BoxDrawing}{\strut0}%
\pmbd@temp{Block}{%
\begingroup
\sbox\z@{\strut}%
\dimen@=\ht\z@
\advance\dimen@\dp\z@
\wd\z@=\dimen@
\box\z@
\endgroup
}%
\pmbd@temp{Shade}{%
\begingroup
\sbox\z@{\strut}%
\dimen@=\ht\z@
\advance\dimen@\dp\z@
\wd\z@=\dimen@
\box\z@
\endgroup
}%
\pmbd@temp{TerminalGraphic}{%
\begingroup
\sbox\z@{\"A}%
\wd\z@=\ht\z@
\dp\z@=\z@
\box\z@
\endgroup
}%
\DeclareStringOption[.1\width]{BoxDrawing/thinlinewidth}
\DeclareStringOption[.25\width]{BoxDrawing/thicklinewidth}
\DeclareStringOption[.25\width]{BoxDrawing/doublelinesep}
%
\DeclareStringOption[\strut0]{box} %%
\DeclareStringOption[.1\width]{rulewidth}
\DeclareStringOption[.25\width]{doublerulesep}
% \end{macrocode}
%
% \begin{macro}{\pmboxdrawUniRobust}
% \begin{macrocode}
\pmbd@ProtectedDefOne\pmboxdrawUniRobust{%
\comma@parse{#1}{%
\ltx@IfUndefined{pmbd@U+\comma@entry}{%
\begingroup\expandafter\endgroup
\expandafter
\TextSymbolUnavailable\csname U+\comma@entry\endcsname
}{%
\csname pmbd@U+\comma@entry\endcsname
}%
\@gobble
}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\pmboxdrawuni}
% \begin{macrocode}
\newcommand*{\pmboxdrawuni}[1]{%
\ifx\texorpdfstring\ltx@undefined
\expandafter\ltx@firstoftwo
\else
\ifx\texorpdfstring\relax
\expandafter\expandafter\expandafter\ltx@firstoftwo
\else
\expandafter\expandafter\expandafter\texorpdfstring
\fi
\fi
{%
\pmboxdrawUniRobust{#1}%
}{%
\expandafter\ifx\csname ifHy@unicode\expandafter\endcsname
\csname iftrue\endcsname
\expandafter\unichar\expandafter{\number"#1}%
\fi
}%
}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Setup commands of version 1.0}
%
% \begin{macro}{\pmboxdrawbox}
% \begin{macrocode}
\pmbd@ProtectedDefOne\pmboxdrawbox{%
\def\pmbd@box{#1}%
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\pmboxdrawrulewidth}
% \begin{macrocode}
\pmbd@ProtectedDefOne\pmboxdrawrulewidth{%
\def\pmbd@rulewidth{#1}%
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\pmboxdrawdoublerulesep}
% \begin{macrocode}
\pmbd@ProtectedDefOne\pmboxdrawdoublerulesep{%
\def\pmbd@doublerulesep{#1}%
}
% \end{macrocode}
% \end{macro}
%
% \subsection{Utils}
%
% \begin{macro}{\pmbd@UniDef}
% \begin{macrocode}
\def\pmbd@UniDef#1#2{%
\expandafter\pmbd@ProtectedDef\expandafter#1\expandafter{%
\csname pmbd@U+#2\endcsname
}%
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\pmbd@SetLength}
% \begin{macrocode}
\ltx@ifpackageloaded{calc}{%
\def\pmbd@SetLength{%
\setlength
}%
}{%
\ltx@IfUndefined{dimexpr}{%
\def\pmbd@SetDim#1#2{%
#1=#2\relax
}%
}{%
\def\pmbd@SetDim#1#2{%
#1=\dimexpr#2\relax
}%
}%
\def\pmbd@SetLength{%
\ltx@ifpackageloaded{calc}{%
\setlength
}{%
\pmbd@SetDim
}%
}%
\AtBeginDocument{%
\ltx@ifpackageloaded{calc}{%
\def\pmbd@SetLength{\setlength}%
}{%
\let\pmbd@SetLength\pmbd@SetDim
}%
}%
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\pmbd@W}
% \begin{macrocode}
\newdimen\pmbd@W
% \end{macrocode}
% \end{macro}
% \begin{macro}{\pmbd@H}
% \begin{macrocode}
\newdimen\pmbd@H
% \end{macrocode}
% \end{macro}
% \begin{macro}{\pmbd@L}
% \begin{macrocode}
\newdimen\pmbd@L
% \end{macrocode}
% \end{macro}
% \begin{macro}{\pmbd@Thin}
% \begin{macrocode}
\newdimen\pmbd@Thin
% \end{macrocode}
% \end{macro}
% \begin{macro}{\pmbd@Thick}
% \begin{macrocode}
\newdimen\pmbd@Thick
% \end{macrocode}
% \end{macro}
% \begin{macro}{\pmbd@Sep}
% \begin{macrocode}
\newdimen\pmbd@Sep
% \end{macrocode}
% \end{macro}
% \begin{macro}{\pmbd@A}
% \begin{macrocode}
\dimendef\pmbd@A=2 %
% \end{macrocode}
% \end{macro}
% \begin{macro}{\pmbd@B}
% \begin{macrocode}
\dimendef\pmbd@B=4 %
% \end{macrocode}
% \end{macro}
% \begin{macro}{\pmbd@C}
% \begin{macrocode}
\dimendef\pmbd@C=6 %
% \end{macrocode}
% \end{macro}
% \begin{macro}{\pmbd@D}
% \begin{macrocode}
\dimendef\pmbd@D=8 %
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\pmbd@BeginBox}
% \begin{macrocode}
\def\pmbd@BeginBox#1{%
\ltx@leavevmode
\@begin@tempboxa\hbox{%
\csname pmbd@#1/box\endcsname
}%
\pmbd@SetLength\pmbd@W{%
\csname pmbd@#1/width\endcsname
}%
\pmbd@SetLength\pmbd@H{%
\csname pmbd@#1/height\endcsname
}%
\pmbd@SetLength\pmbd@L{%
\csname pmbd@#1/depth\endcsname
}%
\advance\pmbd@H\pmbd@L
\setbox\ltx@zero\hbox to \pmbd@W\bgroup
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\pmbd@EndBox}
% \begin{macrocode}
\def\pmbd@EndBox{%
\hss
\egroup
\ht\ltx@zero=\pmbd@H
\dp\ltx@zero=\z@
\ifdim\pmbd@L=\z@
\else
\lower\pmbd@L
\fi
\box\ltx@zero
\@end@tempboxa
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\pmbd@Rule}
% \begin{macrocode}
\def\pmbd@Rule#1#2#3{%
\vrule\@width#1\@height#2\@depth#3\relax
}
% \end{macrocode}
% \end{macro}
%
%
% \subsection{Block elements}
%
% \begin{macrocode}
\def\pmbd@begin{%
\begingroup
\sbox\z@{\pmbd@box}%
\ltx@leavevmode
\setbox\tw@\hb@xt@\wd\z@\bgroup
}
\def\pmbd@end{%
\egroup
\ht\tw@\ht\z@
\dp\tw@\dp\z@
\box\tw@
\endgroup
}
% \end{macrocode}
%
% \begin{macro}{\pmbd@LowerBlock}
% \begin{macrocode}
\def\pmbd@LowerBlock#1{%
\pmbd@BeginBox{Block}%
\pmbd@Rule\pmbd@W{#1\pmbd@H}\z@
\pmbd@EndBox
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\pmbd@LeftBlock}
% \begin{macrocode}
\def\pmbd@LeftBlock#1{%
\pmbd@BeginBox{Block}%
\pmbd@Rule{#1\pmbd@W}\pmbd@H\z@