-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathplatex.dtx
1857 lines (1839 loc) · 70.6 KB
/
platex.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: platex.dtx
%
% Copyright 1995,1996 ASCII Corporation.
% Copyright (c) 2010 ASCII MEDIA WORKS
% Copyright (c) 2016-2022 Japanese TeX Development Community
%
% This file is part of the pLaTeX2e system (community edition).
% -------------------------------------------------------------
%
% \fi
%
% \iffalse
%<*driver|pldoc>
\ifx\JAPANESEtrue\undefined
\expandafter\newif\csname ifJAPANESE\endcsname
\JAPANESEtrue
\fi
%</driver|pldoc>
% \fi
%
% \setcounter{StandardModuleDepth}{1}
% \makeatletter
%\ifJAPANESE
% \def\chuui{\@ifnextchar[{\@chuui}{\@chuui[$BCm0U!'(B]}}
%\else
% \def\chuui{\@ifnextchar[{\@chuui}{\@chuui[Attention: ]}}
%\fi
% \def\@chuui[#1]{\par\vskip.5\baselineskip
% \noindent{\em #1}\par\bgroup\gtfamily\sffamily}
% \def\endchuui{\egroup\vskip.5\baselineskip}
% \makeatother
%
% \iffalse
%<*driver|pldoc>
\def\eTeX{$\varepsilon$-\TeX}
\def\pTeX{p\kern-.15em\TeX}
\def\epTeX{$\varepsilon$-\pTeX}
\def\pLaTeX{p\kern-.05em\LaTeX}
\def\pLaTeXe{p\kern-.05em\LaTeXe}
%</driver|pldoc>
% \fi
%
% \StopEventually{}
%
% \iffalse
%\ifJAPANESE
% \changes{v1.0}{1995/05/08}{$B:G=i$N%P!<%8%g%s(B}
% \changes{v1.0a}{1995/08/25}{$B8_49@-$K$D$$$F!"(B\dst{}$B$N;H$$J}!";29MJ88%$rDI2C(B}
% \changes{v1.0b}{1996/02/01}{\file{omake-sh.ins}, \file{omake-pl.ins}$B$r(B
% \dst{}$B$NJQ99$K$H$b$J$&JQ99$r$7$?(B}
% \changes{v1.0c}{1997/01/23}{\dst{}$B$K$H$b$J$&JQ99(B}
% \changes{v1.0c}{1997/01/23}{\LaTeX\ \textt{!<1996/12/01!>}$B$K9g$o$;$F=$@5(B}
% \changes{v1.0c}{1997/01/23}{gind.ist$B$H(Bgglo.ist$B$r(B
% \$TEXMF/tex/latex2e/base$B%G%#%l%/%H%j$+$i%3%T!<$7$J$$$h$&$K$7$?(B}
% \changes{v1.0c}{1997/01/25}{pldoc.dic$B$r(Bfilecontents$B4D6-$K$h$j:n@.(B}
% \changes{v1.0c}{1997/01/29}{\file{pltpatch.ltx}$B$r(B\file{plpatch.ltx}$B$KL>>NJQ99(B}
% \changes{v1.0d}{2016/01/27}{\pLaTeXe{}$B$KIUB0$9$k%U%!%$%k$N@bL@$r99?7(B}
% \changes{v1.0d}{2016/01/27}{rm$B%3%^%s%I<B9TA0$KB8:_3NG'$9$k$h$&$K$7$?(B}
% \changes{v1.0e}{2016/02/16}{platexrelease$B$N@bL@$rDI2C(B}
% \changes{v1.0f}{2016/04/12}{$B%I%-%e%a%s%H$r99?7(B}
% \changes{v1.0g}{2016/05/07}{$B%U%)!<%^%C%H:n@.;~$K(B\LaTeX{}$B$N%P%J!<$r0lC6J]B8(B}
% \changes{v1.0h}{2016/05/08}{$B%I%-%e%a%s%H$+$i(B\file{plpatch.ltx}$B$r=|30(B}
% \changes{v1.0i}{2016/05/12}{$B0l;~%3%^%s%I(B\cs{orgdump}$B$r:G=*E*$KL$Dj5A$X(B}
% \changes{v1.0j}{2016/05/20}{pfltrace$B$N@bL@$rDI2C(B}
% \changes{v1.0k}{2016/05/21}{$BJQ99MzNr$b=PNO$9$k$h$&$K$7$?(B}
% \changes{v1.0l}{2016/06/19}{$B%Q%C%A%l%Y%k$r(B\file{plvers.dtx}$B$+$i<hF@(B}
% \changes{v1.0m}{2016/08/26}{\file{platex.cfg}$B$NFI$_9~$_$r(B
% \file{plcore.ltx}$B$+$i(B\file{platex.ltx}$B$X0\F0(B}
% \changes{v1.0n}{2016/09/14}{\LaTeX{}$B$N%P%J!<$NJ]B8$7$+$?$r2~NI(B}
% \changes{v1.0o}{2017/09/24}{$B%Q%C%A%l%Y%k$,Ii$N?t$N>l9g$r(Bpre-release$B07$$$X(B}
% \changes{v1.0p}{2017/11/11}{\LaTeX{}$B$N%P%J!<$rJ]B8$9$k%3!<%I$r(B
% \file{platex.ltx}$B$+$i(B\file{plcore.ltx}$B$X0\F0(B}
% \changes{v1.0q}{2017/11/29}{$B1Q8lHG%I%-%e%a%s%H$rDI2C(B}
% \changes{v1.0r}{2017/12/02}{$B1Q8l$N;29MJ88%$bDI2C(B}
% \changes{v1.0s}{2017/12/05}{$B%G%U%)%k%H@_Dj%U%!%$%k$NFI$_9~$_$r(B
% \file{plcore.ltx}$B$+$i(B\file{platex.ltx}$B$X0\F0(B}
% \changes{v1.0t}{2018/02/07}{ascmac$B%Q%C%1!<%8$rFHN)$5$;$?(B}
% \changes{v1.0u}{2018/02/18}{nidanfloat$B%Q%C%1!<%8$rFHN)$5$;$?(B}
% \changes{v1.0v}{2018/04/06}{$B:G?7$N(Bsource2e$B$X$NDI?o(B}
% \changes{v1.0w}{2018/04/08}{$B0BA4$N$?$a%U%)!<%^%C%H:n@.;~$N(B
% $B%P%J!<I=<($r$d$a$?(B}
% \changes{v1.0x}{2018/09/03}{$B%I%-%e%a%s%H$r99?7(B}
% \changes{v1.0x}{2018/09/03}{platexcheat$B$K8@5Z(B}
% \changes{v1.0x}{2018/09/03}{plautopatch$B$K8@5Z(B}
% \changes{v1.0y}{2018/09/22}{$B:G=*99?7F|$r(B\file{pldoc.pdf}$B$KI=<((B}
% \changes{v1.0z}{2019/09/29}{$B%?%$%]=$@5(B}
% \changes{v1.1}{2020/03/24}{$B%I%-%e%a%s%H$r99?7(B}
% \changes{v1.1a}{2020/09/26}{\file{plexpl3.dtx}$B$rDI2C(B}
% \changes{v1.1b}{2020/09/28}{defs$BFI9~8e$K%U%C%/DI2C(B}
% \changes{v1.1c}{2021/02/25}{\file{latex.ltx}$B$NFI9~%A%'%C%/(B}
% \changes{v1.1d}{2021/03/14}{expl3$B%3%^%s%I$r0u;z$G$-$k$h$&$K(B}
% \changes{v1.1e}{2022/03/06}{$B?7(B\file{ltxdoc.cls}$B$KBP1~(B}
%\else
% \changes{v1.0}{1995/05/08}{first edition}
% \changes{v1.0a}{1995/08/25}{Added 'Compatibility', `Usage of \dst{}'
% and `References'}
% \changes{v1.0b}{1996/02/01}{Adjusted for the latest
% \dst\ (\file{omake-sh.ins} and \file{omake-pl.ins}.}
% \changes{v1.0c}{1997/01/23}{Adjusted for the latest \dst.}
% \changes{v1.0c}{1997/01/23}{Adjusted for \LaTeX\ \textt{!<1996/12/01!>}.}
% \changes{v1.0c}{1997/01/23}{Don't copy gind.ist and gglo.ist from
% \$TEXMF/tex/latex2e/base directory.}
% \changes{v1.0c}{1997/01/25}{Add to filecontents environment for pldoc.dic.}
% \changes{v1.0c}{1997/01/29}{Rename \file{pltpatch.ltx} to \file{plpatch.ltx}.}
% \changes{v1.0d}{2016/01/27}{Updated descriptions of \pLaTeXe\ files}
% \changes{v1.0d}{2016/01/27}{Add -e test before rm command}
% \changes{v1.0e}{2016/02/16}{Add a description of platexrelease}
% \changes{v1.0f}{2016/04/12}{Update document.}
% \changes{v1.0g}{2016/05/07}{Save \LaTeX\ banner}
% \changes{v1.0h}{2016/05/08}{Exclude \file{plpatch.ltx} from the document}
% \changes{v1.0i}{2016/05/12}{Undefine temporary command
% \cs{orgdump} in the end.}
% \changes{v1.0j}{2016/05/20}{Add description of `pfltrace'}
% \changes{v1.0k}{2016/05/21}{Print also changes.}
% \changes{v1.0l}{2016/06/19}{Get the patch level from \file{plvers.dtx}}
% \changes{v1.0m}{2016/08/26}{Moved loading \file{platex.cfg}
% from \file{plcore.ltx} to \file{platex.ltx}}
% \changes{v1.0n}{2016/09/14}{Improved banner saving method}
% \changes{v1.0o}{2017/09/24}{Allow negative patch level for pre-release}
% \changes{v1.0p}{2017/11/11}{Moved banner saving code from
% \file{platex.ltx} to \file{plcore.ltx}}
% \changes{v1.0q}{2017/11/29}{New English documentation added.}
% \changes{v1.0r}{2017/12/02}{English references added}
% \changes{v1.0s}{2017/12/05}{Moved loading default settings
% from \file{plcore.ltx} to \file{platex.ltx}}
% \changes{v1.0t}{2018/02/07}{Moved ascmac package to separate bundle}
% \changes{v1.0u}{2018/02/18}{Moved nidanfloat package to separate bundle}
% \changes{v1.0v}{2018/04/06}{Sync with the latest \file{source2e.tex}}
% \changes{v1.0w}{2018/04/08}{Stop showing banner during
% format generation for safety}
% \changes{v1.0x}{2018/09/03}{Update document.}
% \changes{v1.0x}{2018/09/03}{Mention platexcheat (Japanese only).}
% \changes{v1.0x}{2018/09/03}{Mention plautopatch.}
% \changes{v1.0y}{2018/09/22}{Show last update info on \file{pldoc.pdf}}
% \changes{v1.0z}{2019/09/29}{Fix typos in document.}
% \changes{v1.1}{2020/03/24}{Update document.}
% \changes{v1.1a}{2020/09/26}{Add \file{plexpl3.dtx}}
% \changes{v1.1b}{2020/09/28}{Add hook after loading defs}
% \changes{v1.1c}{2021/02/25}{Check for \file{latex.ltx} status}
% \changes{v1.1d}{2021/03/14}{Print expl3 commands correctly}
% \changes{v1.1e}{2022/03/06}{Adapt to new \file{ltxdoc.cls}}
%\fi
% \fi
%
% \iffalse
%<*driver>
\NeedsTeXFormat{pLaTeX2e}
% \fi
\ProvidesFile{platex.dtx}[2022/03/06 v1.1e pLaTeX document file]
% \iffalse
\RequirePackage{plautopatch}
\documentclass[dvipdfmx,a4paper]{jltxdoc}
\usepackage{plext}
\GetFileInfo{platex.dtx}
\ifJAPANESE
\title{\pLaTeXe{}$B$K$D$$$F(B}
\author{$BCfLn(B $B8-(B \& $BF|K\8l(B\TeX{}$B3+H/%3%_%e%K%F%#(B}
\date{$B:[email protected]|!'(B\filedate}
\renewcommand{\refname}{$B;29MJ88%(B}
\GlossaryPrologue{\section*{$BJQ99MzNr(B}%
\markboth{$BJQ99MzNr(B}{$BJQ99MzNr(B}%
\addcontentsline{toc}{section}{$BJQ99MzNr(B}}
\else
\title{About \pLaTeXe{}}
\author{Ken Nakano \& Japanese \TeX\ Development Community}
\date{Date: \filedate}
\renewcommand{\refname}{References}
\GlossaryPrologue{\section*{Change History}%
\markboth{Change History}{Change History}%
\addcontentsline{toc}{section}{Change History}}
\fi
\makeatletter
\ifJAPANESE
\def\levelchar{>$B!&(B}
\fi
\def\changes@#1#2#3{%
\let\protect\@unexpandable@protect
\edef\@tempa{\noexpand\glossary{#2\space#1\levelchar
\ifx\saved@macroname\@empty
% \space\actualchar\generalname: %% comment out (platex.dtx only)
\else
\expandafter\@gobble
\saved@macroname\actualchar
\string\verb\quotechar*%
\verbatimchar\saved@macroname
\verbatimchar:
\fi
#3}}%
\@tempa\endgroup\@esphack}
\makeatother
\RecordChanges
\begin{document}
\MakeShortVerb{\+}
\maketitle
\DocInput{\filename}
\StopEventually{\end{document}}
\clearpage
% Make TeX shut up.
\hbadness=10000
\newcount\hbadness
\hfuzz=\maxdimen
\PrintChanges
\let\PrintChanges\relax
\end{document}
%</driver>
% \fi
%
%
%\ifJAPANESE
% \changes{v1.0f}{2016/04/12}{$B%I%-%e%a%s%H$r99?7(B}
% \changes{v1.0k}{2016/05/21}{$BJQ99MzNr$b=PNO$9$k$h$&$K$7$?(B}
% \changes{v1.0q}{2017/11/29}{$B1Q8lHG%I%-%e%a%s%H$rDI2C(B}
% \changes{v1.0x}{2018/09/03}{$B%I%-%e%a%s%H$r99?7(B}
% \changes{v1.0z}{2019/09/29}{$B%?%$%]=$@5(B}
% \changes{v1.1}{2020/03/24}{$B%I%-%e%a%s%H$r99?7(B}
%\else
% \changes{v1.0f}{2016/04/12}{Update document.}
% \changes{v1.0k}{2016/05/21}{Print also changes.}
% \changes{v1.0q}{2017/11/29}{New English documentation added.}
% \changes{v1.0x}{2018/09/03}{Update document.}
% \changes{v1.0z}{2019/09/29}{Fix typos in document.}
% \changes{v1.1}{2020/03/24}{Update document.}
%\fi
%\ifJAPANESE
% \begin{chuui}
% \pLaTeXe{}$B$O!"(B\LaTeXe{}$B$rF|K\8lAHHGMQ$K3HD%!&D4@0$7$?$b$N$G$9!#(B
% $B$3$NJ8=q$G$O!V%3%_%e%K%F%#HG(B\pLaTeXe{}$B!W$K$D$$$F4JC1$K@bL@$7$^$9!#(B
% $B3t<02q<R%"%9%-!<$*$h$S3t<02q<R%"%9%-!<!&%a%G%#%"%o!<%/%9$,(B
% $BG[I[$7$F$$$?(B\pLaTeXe{}$B!J0J2<!"!V%"%9%-!<HG(B\pLaTeXe{}$B!W!K$H$O(B
% $B0[$J$j$^$9$N$G!"Cm0U$7$F$/$@$5$$!#(B
% \end{chuui}
%\else
% ^^A \begin{chuui}[]
% ^^A This document provides a brief description of \pLaTeXe, the Japanese
% ^^A extended version of \LaTeXe. Current maintainer of
% ^^A \pLaTeXe\ is Japanese \TeX\ Development Community.
% ^^A \end{chuui}
%\fi
%
%\ifJAPANESE
% 2010$BG/0J9_!"%"%9%-!<(B\pTeX\footnote{$B%"%9%-!<F|K\8l(B\pTeX:
% \texttt{https://asciidwango.github.io/ptex/}}$B$O!"(B
% $B9q:]E*$K9-$/;H$o$l$F$$$k(B\TeX\ Live$B$H$$$&%G%#%9%H%j%S%e!<%7%g%s$K(B
% $B<h$j9~$^$l!"$=$3$GFH<+$N2~NI$d;EMMJQ99$,2C$($i$l$F$-$^$7$?!#(B
% $B:G6a!J(B2011$BG/0J9_!K$N(B\TeX\ Live$B$d(BW32\TeX{}$B$G$O!"(B\pLaTeX{}$B$b(B
% $B85!9$N(B\pTeX{}$B$G$O$J$/!"$=$N3HD%HG(B\epTeX{}$B$r%(%s%8%s$KMQ$$$k$h$&$K$J$C$F(B
% $B$$$^$9!#$^$?!"(B\pLaTeX{}$B$N%Y!<%9$G$"$k(B\LaTeX{}$B$b99?7$,?J$a$i$l$F$$$^$9!#(B
%
% $B$3$&$7$?N.$l$K$"$o$;$??7$7$$(B\pLaTeX{}$B$H$7$F!"%"%9%-!<HG$+$i(Bfork$B$7$F(B
% $BF|K\8l(B\TeX{}$B3+H/%3%_%e%K%F%#(B (Japanese \TeX\ Development Community) $B$,(B
% $BG[I[$7$F$$$k$b$N$,!"%3%_%e%K%F%#HG(B\pLaTeX{}$B$G$9!#3+H/Cf$NHG$O(BGitHub$B$N(B
% $B%j%]%8%H%j(B\footnote{\texttt{https://github.com/texjporg/platex}}$B$G(B
% $B4IM}$7$F$$$^$9!#%3%_%e%K%F%#HG(B\pLaTeX{}$B$O%"%9%-!<HG$H$O0[$J$j$^$9$N$G!"(B
% $B%P%0%l%]!<%H$O%"%9%-!<08$F$G$O$J$/!"F|K\8l(B\TeX{}$B3+H/%3%_%e%K%F%#$KJs9p(B
% $B$7$F$/$@$5$$!#(B\TeX\ Forum$B$d(BGitHub$B$N(BIssue$B%7%9%F%`$,MxMQ$G$-$^$9!#(B
%
% $B$3$NJ8=q(B(platex.pdf)$B$O%3%_%e%K%F%#HG(B\pLaTeX{}$B$N35MW$r@bL@$7$?$b$N$G$9(B
% $B$,!"FbMF$O%"%9%-!<HG!J(B1995$BG/:"!K$+$i$[$H$s$IJQ$o$C$F$$$^$;$s$N$G!"(B
% $B:#$G$ONr;KE*$JJ8=q$H$$$&$3$H$K$7$F$*$-$^$9!#(B
% $B:G6a$N(B\pLaTeX{}$B$N99?7FbMF$O(B\pLaTeX{}$B%K%e!<%9!J%"%9%-!<HG!'(Bplnews*.pdf$B!"(B
% $B%3%_%e%K%F%#HG!'(Bplnewsc*.pdf$B!K$r;2>H$7$F$/$@$5$$!#$^$?!"(B
% $B<B:]$N(B\pLaTeX{}$B$N%=!<%9%3!<%I$O(Bpldoc.pdf$B$G@bL@$7$F$$$^$9!#(B
%\else
% \def\JLaTeX{\leavevmode\lower.5ex\hbox{J}\kern-.15em\LaTeX}
% \pLaTeX\ is a Japanese \LaTeX\ format, which is adjusted/extended
% to be more suitable for writing Japanese documents.
% It requires \pTeX\footnote{The \pTeX\ website:
% \texttt{https://asciidwango.github.io/ptex/} (in Japanese)},
% a \TeX\ engine with extensions for Japanese typesetting,
% which is designed for high-quality
% Japanese book ``p''ublishing.\footnote{There is another
% old implementation of Japanese \LaTeX\ by
% NTT Electrical Communications Laboratories, named
% \JLaTeX\ (unavailable in \TeX\ Live).
% Also, MiK\TeX\ has another program \texttt{platex} for Polish, but
% it has nothing to do with our Japanese \pLaTeX!}
% Both of them were developed by ASCII Corporation
% (and its successor ASCII Media Works),
% so they are often referred to as ``ASCII \pTeX'' and ``ASCII \pLaTeX''
% respectively.
%
% In 2010, ASCII \pTeX\ was incorporated into the
% world-wide \TeX\ distribution, \TeX\ Live. Since then, \pTeX\ has
% been maintained/improved/changed along with \TeX\ Live sources.
% In recent versions of \TeX\ Live and W32\TeX\ (around 2011),
% the default engine of \pLaTeX\ changed from original \pTeX\ to
% \epTeX\ (\pTeX\ with \eTeX\ extension).
% Also, the original \LaTeX\ itself is also frequently updated.
% On the other hand, \pLaTeX\ remained unchanged since 2006,
% which resulted in some incompatibility and limitations.
%
% To follow these upstream changes, we (Japanese \TeX\ Development
% Community\footnote{\texttt{https://texjp.org}}) decided to fork
% ASCII \pLaTeX\ and distribute the ``community edition.''
% The development version is available from
% GitHub repository\footnote{\texttt{https://github.com/texjporg/platex}}.
% The forked community edition is different from the original ASCII
% edition, so any bug reports and requests should be sent to
% Japanese \TeX\ Development Community, using GitHub Issue system.
%
% This document (platex-en.pdf) is a brief explanation of
% the \pLaTeXe\ community edition. It is somewhat of a historical
% document now, since \pLaTeXe\ came into existence in 1995
% (although the English translation has been done by
% Japanese \TeX\ Development Community since 2017).
% ^^A The detail of source codes are described separately in pldoc-en.pdf.
%\fi
%
%
% \clearpage
%
%\ifJAPANESE
% \section{$B$3$NJ8=q$K$D$$$F(B}\label{platex:intro}
% $B$3$NJ8=q$O(B\pLaTeXe{}$B$N35MW$r<($7$F$$$^$9$,!";H$$J}$N%,%$%I$G$O$"$j$^$;$s!#(B
% \pLaTeXe{}$B$N5!G=A4HL$K$D$$$F$O!"(B\cite{platex2e-book}$B$r;2>H$7$F$/$@$5$$!#(B
% $B$^$?!"(B\cite{tate-book}$B$G@bL@$5$l$F$$$?=DAH8~$1$N3HD%%3%^%s%I$K(B
% $B$D$$$F$O!"(B\file{pldoc.pdf}$B$NCf$N(B\file{plext.dtx}$B$N9`L\$r;2>H$7$F$/$@$5$$!#(B
%
% $BF|K\8l$NAHHG=hM}$K$D$$$F$O!"(B
% \pTeX{}$B!J$"$k$$$O$=$NA0?H$N!VF|K\8l(B\TeX{}$B!W!K$K4X$9$kJ88%(B
% \cite{jtex-tech}$B$d(B\cite{ajt2008okumura}$B!J1Q8l!K(B, \cite{tb29hamano}$B!J1Q8l!K$b(B
% $BJ;$;$F$4;2>H$/$@$5$$!#(B
%
% \LaTeX{}$B$N5!G=$K$D$$$F$O!"(B\cite{latex-book2}$B$d(B\cite{latex-comp}$B$J$I$r(B
% $B;2>H$7$F$/$@$5$$!#?7$7$$5!G=$K$D$$$F$O(B\file{usrguide.tex}$B$r;2>H$7$F$/$@$5$$!#(B
% \pLaTeX{}$B$N%3%^%s%I0lMw$O!V(B\pLaTeXe{}$B%A!<%H%7!<%H!W(B(platexsheet.pdf) $B$^$?$O(B
% $B$=$N(B\textsf{jsclasses}$BHG(B (platexsheet-jsclasses.pdf) $B$,;29M$K(B
% $B$J$k$G$7$g$&(B\footnote{$BN><T$N(BPDF$B$H$b!"%3%^%s%I%i%$%s$G(B
% \texttt{texdoc -l platexcheat}$B$r<B9T$9$k$HI=<($5$l$^$9!#(B}$B!#(B
% \changes{v1.0}{1995/05/08}{$B:G=i$N%P!<%8%g%s(B}
% \changes{v1.0a}{1995/08/25}{$B8_49@-$K$D$$$F!"(B\dst{}$B$N;H$$J}!";29MJ88%$rDI2C(B}
% \changes{v1.0r}{2017/12/02}{$B1Q8l$N;29MJ88%$bDI2C(B}
% \changes{v1.0x}{2018/09/03}{platexcheat$B$K8@5Z(B}
%\else
% \section{Introduction to this document}\label{platex:intro}
% This document briefly describes \pLaTeXe, but is not a manual of \pLaTeXe.
% For the basic functions of \pLaTeXe, see \cite{platex2e-book} (in Japanese).
% For extensions of some commands for vertical writing (which were first
% described in \cite{tate-book} in Japanese), see \file{plext.dtx} section
% in \file{pldoc-en.pdf}.
%
% For Japanese typesetting, please refer to the documentation of \pTeX\ (or
% ``Japanese \TeX''; the preliminary version of \pTeX),
% \cite{jtex-tech} (in Japanese), \cite{ajt2008okumura} (in English)
% and \cite{tb29hamano} (in English).
% \changes{v1.0}{1995/05/08}{first edition}
% \changes{v1.0a}{1995/08/25}{Added 'Compatibility', `Usage of \dst{}'
% and `References'}
% \changes{v1.0r}{2017/12/02}{English references added}
% \changes{v1.0x}{2018/09/03}{Mention platexcheat (Japanese only).}
%\fi
%
%\ifJAPANESE
% $B$3$NJ8=q$N9=@.$O<!$N$h$&$K$J$C$F$$$^$9!#(B
%
% \begin{quote}
% \begin{description}
% \item[$BBh(B\ref{platex:intro}$B@a(B]
% $B$3$N@a$G$9!#$3$NJ8=q$K$D$$$F$N35MW$r=R$Y$F$$$^$9!#(B
%
% \item[$BBh(B\ref{platex:plcore}$B@a(B]
% \pLaTeXe{}$B$G3HD%$7$?5!G=$K$D$$$F$N35MW$G$9!#(B
% $BIUB0$N%/%i%9%U%!%$%k$d%Q%C%1!<%8%U%!%$%k$K$D$$$F$b4JC1$K(B
% $B@bL@$7$F$$$^$9!#(B
%
% \item[$BBh(B\ref{platex:compatibility}$B@a(B]
% $B8=:_$N%P!<%8%g%s$N(B\pLaTeX{}$B$H5l%P!<%8%g%s!"$"$k$$$O85$H$J$C$F$$$k(B
% \LaTeX{}$B$H$N8_49@-$K$D$$$F=R$Y$F$$$^$9!#(B
%
% \item[$BIUO?(B\ref{app:dst}]
% $B$3$NJ8=q%=!<%9(B(platex.dtx)$B$N(B
% \dst{}$B$N$?$a$N%*%W%7%g%s$K$D$$$F=R$Y$F$$$^$9!#(B
%
% \item[$BIUO?(B\ref{app:pldoc}]
% \pLaTeXe{}$B$N(Bdtx$B%U%!%$%k$r$^$H$a$F!"0l$D$N%=!<%9%3!<%I@bL@=q$K(B
% $B$9$k$?$a$NJ8=q%U%!%$%k$N@bL@$r$7$F$$$^$9!#(B
%
% \item[$BIUO?(B\ref{app:omake}]
% $BIUO?(B\ref{app:pldoc}$B$G@bL@$7$?J8=q%U%!%$%k$r=hM}$9$k(Bsh$B%9%/%j%W%H!J<j=g!K!"(B
% \dst{}$BJ8=q%U%!%$%kFb$NF~$l;R$NBP1~$rD4$Y$k(Bperl$B%9%/%j%W%H$J$I$K$D$$$F(B
% $B@bL@$7$F$$$^$9!#(B
% \end{description}
% \end{quote}
%\else
% This document consists of following parts:
%
% \begin{quote}
% \begin{description}
% \item[Section \ref{platex:intro}]
% This section; describes this document itself.
%
% \item[Section \ref{platex:plcore}]
% Brief explanation of extensions in \pLaTeXe.
% Also describes the standard classes and packages.
%
% \item[Section \ref{platex:compatibility}]
% The compatibility note for users of the old version of
% \pLaTeXe\ or those of the original \LaTeXe.
%
% \item[Appendix \ref{app:dst}]
% Describes \dst\ Options for this document.
%
% \item[Appendix \ref{app:pldoc}]
% Description of `pldoc.tex' (counterpart for `source2e.tex' in \LaTeXe).
%
% \item[Appendix \ref{app:omake}]
% Description of a shell script to process `pldoc.tex', and
% a tiny perl program to check \dst\ guards, etc.
% \end{description}
% \end{quote}
%\fi
%
%
%\ifJAPANESE
% \section{\pLaTeXe{}$B$N5!G=$K$D$$$F(B}\label{platex:plcore}
% \pLaTeXe{}$B$,Ds6!$9$k%U%!%$%k$O!"<!$N(B3$B<oN`$KJ,N`$9$k$3$H$,$G$-$^$9!#(B
%
% \begin{itemize}
% \item $B%U%)!<%^%C%H%U%!%$%k(B
% \item $B%/%i%9%U%!%$%k(B
% \item $B%Q%C%1!<%8%U%!%$%k(B
% \end{itemize}
%
% $B%U%)!<%^%C%H%U%!%$%k$K$O!"4pK\E*$J5!G=$,Dj5A$5$l$F$*$j!"(B
% \pLaTeXe{}$B$N3K$H$J$k%U%!%$%k$G$9!#(B
% $B$3$N%U%!%$%k$KDj5A$5$l$F$$$k%^%/%m$O!"<B9T;~$NB.EY$r9b$a$k$?$a$K!"(B
% $B$"$i$+$8$a(B\TeX{}$B$NFbIt7A<0$N7A$GJ]B8$5$l$F$$$^$9!#(B
%
% $B%/%i%9%U%!%$%k$OJ8=q$N%l%$%"%&%H$r@_Dj$9$k%U%!%$%k!"(B
% $B%Q%C%1!<%8%U%!%$%k$O%^%/%m$N3HD%$rDj5A$9$k%U%!%$%k$G$9!#(B
% $BA0<T$O(B|\documentclass|$B%3%^%s%I$rMQ$$$FFI$_9~$_!"(B
% $B8e<T$O(B|\usepackage|$B%3%^%s%I$rMQ$$$FFI$_9~$_$^$9!#(B
%
% \begin{chuui}[$B8E$$(B\pLaTeX~2.09$B%f!<%6$X$NCm0U!'(B]\normalfont
% $B%/%i%9%U%!%$%k$H%Q%C%1!<%8%U%!%$%k$O!"=>Mh!"%9%?%$%k%U%!%$%k$H8F$P$l$F$$$?(B
% $B$b$N$G$9!#(B\LaTeXe{}$B$G$O$=$l$i$r!"%l%$%"%&%H$K4X$9$k$b$N$r%/%i%9%U%!%$%k$H(B
% $B8F$S!"%^%/%m$N3HD%$r$9$k$b$N$r%Q%C%1!<%8%U%!%$%k$H8F$s$G6hJL$9$k$h$&$K(B
% $B$J$j$^$7$?!#(B
% \end{chuui}
%\else
% \section{About Functions of \pLaTeXe}\label{platex:plcore}
% The structure of \pLaTeXe\ is similar to that of \LaTeXe;
% it consists of 3 types of files: a format (platex.ltx),
% classes and packages.
%\fi
%
%\ifJAPANESE
% \subsection{$B%U%)!<%^%C%H%U%!%$%k(B}
% \pLaTeX{}$B$N%U%)!<%^%C%H%U%!%$%k$r:n@.$9$k$K$O!"(B
% $B%=!<%9%U%!%$%k(B``platex.ltx''$B$r(B\epTeX{}$B$N(BINI$B%b!<%I$G=hM}$7$^$9(B
% \footnote{2016$BG/0JA0$O(B\pTeX{}$B$H(B\epTeX{}$B$N$I$A$i$G$b%U%)!<%^%C%H$r:n@.$9$k(B
% $B$3$H$,$G$-$^$7$?$,!"(B2017$BG/$K(B\LaTeX{}$B$,(B\eTeX{}$BI,?\$H$J$C$?$3$H$KH<$$!"(B
% \pLaTeX{}$B$b(B\epTeX{}$B$,I,?\$H$J$j$^$7$?!#(B}$B!#(B
% $B$?$@$7!"(B\TeX\ Live$B$d(BW32\TeX{}$B$G$O$3$N=hM}$r4JC1$K$9$k(B|fmtutil-sys|$B$"$k$$$O(B
% |fmtutil|$B$H$$$&%W%m%0%i%`$,MQ0U$5$l$F$$$^$9!#(B
% $B0J2<$r<B9T$9$l$P!"%U%)!<%^%C%H%U%!%$%k(B\file{platex.fmt}$B$,:n@.$5$l$^$9!#(B
%\else
% \subsection{About the Format}
% To make a format for \pLaTeX,
% process ``platex.ltx'' with INI mode of \epTeX.\footnote{Formerly
% both \pTeX\ and \epTeX\ can make the format file for \pLaTeX, however,
% it's not true anymore because \LaTeX\ requires \eTeX\ since 2017.}
% A handy command `fmtutil-sys' (or `fmtutil') for this purpose
% is available in \TeX\ Live. The following command generates \file{platex.fmt}.
%\fi
%\begin{verbatim}
% fmtutil-sys --byfmt platex
%\end{verbatim}
%
%\ifJAPANESE
% $B<!$N%j%9%H$,!"(B\file{platex.ltx}$B$NFbMF$G$9!#(B
% $B$?$@$7!"$3$N%P!<%8%g%s$G$O!"(B\LaTeX{}$B$+$i(B\pLaTeX{}$B$X$N3HD%$r(B
% \file{plcore.ltx}$B$r%m!<%I$9$k$3$H$G9T$J$$!"(B
% \file{latex.ltx}$B$K$OD>@\!"<j$r2C$($J$$$h$&$K$7$F$$$^$9!#(B
% $B$7$?$,$C$F(B\file{platex.ltx}$B$O$H$F$bC;$$$b$N$H$J$C$F$$$^$9!#(B
% \file{latex.ltx}$B$K$O(B\LaTeX{}$B$N%3%^%s%I$,!"(B
% \file{plcore.ltx}$B$K$O(B\pLaTeX{}$B$G3HD%$7$?%3%^%s%I$,Dj5A$5$l$F$$$^$9!#(B
%\else
% The content of \file{platex.ltx} is shown below.
% In the current version of \pLaTeX,
% first we simply load \file{latex.ltx} and
% modify/extend some definitions by loading \file{plcore.ltx}.
%\fi
% \begin{macrocode}
%<*plcore>
% \end{macrocode}
%
%\ifJAPANESE
% \file{latex.ltx}$B$NKvHx$G;H$o$l$F$$$k(B|\dump|$B$r$$$C$?$sL58z2=$7$^$9!#(B
%\else
% Temporarily disable |\dump| at the end of \file{latex.ltx}.
%\fi
% \begin{macrocode}
\let\orgdump\dump
\let\dump\relax
% \end{macrocode}
%
%\ifJAPANESE
% \file{latex.ltx}$B$rFI$_9~$_$^$9!#(B
% \TeX\ Live$B$NI8=`E*%$%s%9%H!<%k$G$O!"$3$NCf$G(BBabel$BM3Mh$N(B
% $B%O%$%U%M!<%7%g%s!&%Q%?!<%s(B\file{hyphen.cfg}$B$,FI$_9~$^$l$k$O$:$G$9!#(B
% \changes{v1.0g}{2016/05/07}{$B%U%)!<%^%C%H:n@.;~$K(B\LaTeX{}$B$N%P%J!<$r0lC6J]B8(B}
% \changes{v1.0n}{2016/09/14}{\LaTeX{}$B$N%P%J!<$NJ]B8$7$+$?$r2~NI(B}
% \changes{v1.0p}{2017/11/11}{\LaTeX{}$B$N%P%J!<$rJ]B8$9$k%3!<%I$r(B
% \file{platex.ltx}$B$+$i(B\file{plcore.ltx}$B$X0\F0(B}
%\else
% Load \file{latex.ltx} here.
% Within the standard installation of \TeX\ Live, \file{hyphen.cfg}
% provided by ``Babel'' package will be used.
% \changes{v1.0g}{2016/05/07}{Save \LaTeX\ banner}
% \changes{v1.0n}{2016/09/14}{Improved banner saving method}
% \changes{v1.0p}{2017/11/11}{Moved banner saving code from
% \file{platex.ltx} to \file{plcore.ltx}}
%\fi
% \begin{macrocode}
\input latex.ltx
% \end{macrocode}
%
%\ifJAPANESE
% $B$3$N;~E@$G(B|\typeout|$B$,L$Dj5A$J$i!"(B\LaTeX{}$B%+!<%M%k$NFI$_9~$_$K(B
% $B<:GT$7$F$$$^$9$N$G!"6/@)=*N;$7$^$9!J(B\LaTeXe\ 2017/01/01$B0J9_$r(B
% $BHs(B\eTeX{}$B3HD%$G%U%)!<%^%C%H:n@.$7$h$&$H$7$?>l9g$J$I!K!#(B
% \changes{v1.1c}{2021/02/25}{\file{latex.ltx}$B$NFI9~%A%'%C%/(B}
%\else
% If |\typeout| is still undefined, the input of \LaTeX~kernel
% should have failed; abort now.
% \changes{v1.1c}{2021/02/25}{Check for \file{latex.ltx} status}
%\fi
% \begin{macrocode}
\ifx\typeout\undefined
\errhelp{Please reinstall LaTeX, or check e-TeX availability.}%
\errmessage{Failed to load `latex.ltx' properly}%
\expandafter\end
\fi
% \end{macrocode}
%
%\ifJAPANESE
% \file{plcore.ltx}$B$rFI$_9~$_$^$9!#(B
%\else
% Load \file{plcore.ltx}.
%\fi
% \begin{macrocode}
\typeout{**************************^^J%
*^^J%
* making pLaTeX format^^J%
*^^J%
**************************}
\makeatletter
\input plcore.ltx
% \end{macrocode}
%
%\ifJAPANESE
% $B%U%)%s%H4XO"$N%G%U%)%k%H@_Dj%U%!%$%k$G$"$k!"(B
% \file{pldefs.ltx}$B$rFI$_9~$_$^$9!#(B
% \TeX{}$B$NF~NO%U%!%$%k8!:w%Q%9$K@_Dj$5$l$F$$$k(B
% $B%G%#%l%/%H%j$K(B\file{pldefs.cfg}$B%U%!%$%k$,$"$k>l9g$O!"(B
% $B$=$N%U%!%$%k$r;H$$$^$9!#(B
% $BFI$_9~$_8e$K%3!<%I$,<B9T$5$l$k$+$b$7$l$^$;$s!#(B
% \changes{v1.0s}{2017/12/05}{$B%G%U%)%k%H@_Dj%U%!%$%k$NFI$_9~$_$r(B
% \file{plcore.ltx}$B$+$i(B\file{platex.ltx}$B$X0\F0(B}
% \changes{v1.1b}{2020/09/28}{defs$BFI9~8e$K%U%C%/DI2C(B}
%\else
% Load font-related default settings, \file{pldefs.ltx}.
% If a file \file{pldefs.cfg} is found, then that file will be
% used instead.
% Some code may be executed after loading.
% \changes{v1.0s}{2017/12/05}{Moved loading default settings
% from \file{plcore.ltx} to \file{platex.ltx}}
% \changes{v1.1b}{2020/09/28}{Add hook after loading defs}
%\fi
% \begin{macrocode}
\InputIfFileExists{pldefs.cfg}
{\typeout{*************************************^^J%
* Local config file pldefs.cfg used^^J%
*************************************}}%
{\input{pldefs.ltx}}
\ifx\code@after@pldefs\@undefined\else \code@after@pldefs \fi
% \end{macrocode}
%
%\ifJAPANESE
% $B0JA0$N%P!<%8%g%s$G$O!"%U%)!<%^%C%H:n@.;~$K(B\pLaTeX{}$B$N%P!<%8%g%s$,(B
% $B$o$+$k$h$&$K!"C<Kv$KI=<($7$F$$$^$7$?$,!"(B|\everyjob| $B$K%P%J!<I=<((B
% $B0J30$N%3!<%I$,4^$^$l$k2DG=@-$r9MN8$7!"0BA4$N$?$a$d$a$^$7$?!#(B
% \changes{v1.0w}{2018/04/08}{$B0BA4$N$?$a%U%)!<%^%C%H:n@.;~$N(B
% $B%P%J!<I=<($r$d$a$?(B}
%\else
% In the previous version, we displayed \pLaTeX\ version
% on the terminal, so that it can be easily recognized
% during format creation; however |\everyjob| can contain
% any code other than showing a banner, so now disabled.
% \changes{v1.0w}{2018/04/08}{Stop showing banner during
% format generation for safety}
%\fi
% \begin{macrocode}
%\the\everyjob
% \end{macrocode}
%
%\ifJAPANESE
% \pLaTeXe{}$B$N5/F0;~$K(B\file{platex.cfg}$B$,$"$k>l9g!"$=$l$rFI$_9~$`(B
% $B$h$&$K$7$^$9!#(B
% $B%P!<%8%g%s(B2016/07/01$B$G$O%3!<%I$r(B\file{plcore.ltx}$B$KF~$l$F$$$^$7$?(B
% $B$,!"(B\file{platex.ltx}$B$X0\F0$7$^$7$?!#(B
% \changes{v1.0m}{2016/08/26}{\file{platex.cfg}$B$NFI$_9~$_$r(B
% \file{plcore.ltx}$B$+$i(B\file{platex.ltx}$B$X0\F0(B}
%\else
% Load \file{platex.cfg} if it exists at runtime.
% \changes{v1.0m}{2016/08/26}{Moved loading \file{platex.cfg}
% from \file{plcore.ltx} to \file{platex.ltx}}
%\fi
% \begin{macrocode}
\everyjob\expandafter{%
\the\everyjob
\IfFileExists{platex.cfg}{%
\typeout{*************************^^J%
* Loading platex.cfg.^^J%
*************************}%
\input{platex.cfg}}{}%
}
% \end{macrocode}
%
%\ifJAPANESE
% $B%U%)!<%^%C%H%U%!%$%k$K%@%s%W$7$^$9!#(B
% \changes{v1.0i}{2016/05/12}{$B0l;~%3%^%s%I(B\cs{orgdump}$B$r:G=*E*$KL$Dj5A$X(B}
%\else
% Dump to the format file.
% \changes{v1.0i}{2016/05/12}{Undefine temporary command
% \cs{orgdump} in the end.}
%\fi
% \begin{macrocode}
\let\dump\orgdump
\let\orgdump\@undefined
\makeatother
\dump
%\endinput
% \end{macrocode}
%
% \begin{macrocode}
%</plcore>
% \end{macrocode}
%
%\ifJAPANESE
% $B<B:]$K(B\pLaTeXe{}$B$X$N3HD%$r9T$J$C$F$$$k(B\file{plcore.ltx}$B$O!"(B
% \dst{}$B%W%m%0%i%`$K$h$C$F!"<!$N%U%!%$%k$NCGJR$,O"7k$5$l$?$b$N$G$9!#(B
%
% \begin{itemize}
% \item \file{plvers.dtx}$B$O!"(B\pLaTeXe{}$B$N%U%)!<%^%C%H%P!<%8%g%s$r(B
% $BDj5A$7$F$$$^$9!#(B
% \item \file{plfonts.dtx}$B$O!"(B\NFSS2$B$r3HD%$7$F$$$^$9!#(B
% \item \file{plcore.dtx}$B$O!">e5-0J30$N%3%^%s%I$G%U%)!<%^%C%H%U%!%$%k$K(B
% $B3JG<$5$l$k%3%^%s%I$rDj5A$7$F$$$^$9!#(B
% \end{itemize}
%
% $B$^$?!"%W%j%m!<%I%U%)%s%H$dAHHG%Q%i%a!<%?$J$I$N%G%U%)%k%H@_Dj$O!"(B
% \file{platex.ltx}$B$NCf$G(B\file{pldefs.ltx}$B$r%m!<%I$9$k$3$H$K$h$j9T$$$^$9(B
% \footnote{$B%"%9%-!<HG$G$O(B\file{plcore.ltx}$B$NCf$G%m!<%I$7$F$$$^$7$?$,!"(B
% 2018$BG/0J9_$N?7$7$$%3%_%e%K%F%#HG(B\pLaTeX{}$B$G$O(B
% \file{platex.ltx}$B$+$iFI$_9~$`$3$H$K$7$^$7$?!#(B}$B!#(B
% $B$3$N%U%!%$%k(B\file{pldefs.ltx}$B$b(B\file{plfonts.dtx}$B$+$i@8@.$5$l$^$9!#(B
% \begin{chuui}
% $B$3$N%U%!%$%k$K5-=R$5$l$F$$$k@_Dj$rJQ99$9$l$P(B
% \pLaTeXe{}$B$r%+%9%?%^%$%:$9$k$3$H$,$G$-$^$9$,!"(B
% $B$=$N>l9g$O(B\file{pldefs.ltx}$B$rD>@\=$@5$9$k$N$G$O$J$/!"$$$C$?$s(B
% \file{pldefs.cfg}$B$H$$$&L>A0$G%3%T!<$7$F!"$=$N%U%!%$%k$rJT=8$7$F$/$@$5$$!#(B
% $B%U%)!<%^%C%H:n@.;~$K(B\file{pldefs.cfg}$B$,B8:_$7$?>l9g$O!"$=$A$i$,(B
% \file{pldefs.ltx}$B$NBe$o$j$KFI$_9~$^$l$^$9!#(B
% \end{chuui}
%\else
% The file \file{plcore.ltx}, which provides modifications/extensions
% to make \pLaTeXe, is a concatenation of stripped files below
% using \dst\ program.
%
% \begin{itemize}
% \item \file{plvers.dtx} defines the format version of \pLaTeXe.
% \item \file{plfonts.dtx} extends \NFSS2 for Japanese font selection.
% \item \file{plcore.dtx} defines other modifications to \LaTeXe.
% \end{itemize}
%
% Moreover, default settings of pre-loaded fonts and typesetting parameters
% are done by loading \file{pldefs.ltx} inside
% \file{platex.ltx}.\footnote{ASCII \pLaTeX\ loaded \file{pldefs.ltx}
% inside \file{plcore.ltx}; however, \pLaTeX\ community edition newer than
% 2018 loads \file{pldefs.ltx} inside \file{platex.ltx}.}
% This file \file{pldefs.ltx} is also stripped from \file{plfonts.dtx}.
% \begin{chuui}
% You can customize \pLaTeXe\ by tuning these settings.
% If you need to do that, copy/rename it as \file{pldefs.cfg} and edit it,
% instead of overwriting \file{pldefs.ltx} itself.
% If a file named \file{pldefs.cfg} is found at a format creation
% time, it will be read as a substitute of \file{pldefs.ltx}.
% \end{chuui}
%\fi
%
%
%\ifJAPANESE
% \subsubsection{$B%P!<%8%g%s(B}
% \pLaTeXe{}$B$N%P!<%8%g%s$d%U%)!<%^%C%H%U%!%$%kL>$O!"(B
% \file{plvers.dtx}$B$GDj5A$7$F$$$^$9!#(B
%\else
% \subsubsection{Version}
% The version (like ``\pfmtversion'') and the format name
% (``\pfmtname'') of \pLaTeXe\ are defined in \file{plvers.dtx}.
%\fi
%
%
%\ifJAPANESE
% \subsubsection{\NFSS2$B%3%^%s%I(B}
% \LaTeXe{}$B$G$O!"%U%)%s%HA*Br5!9=$H$7$F(B\NFSS2$B$rMQ$$$F$$$^$9!#(B
% \pLaTeXe{}$B$G$O!"%*%j%8%J%k$N(B\NFSS2$B$HF1MM$N%$%s%?!<%U%'%$%9$G!"(B
% $BOBJ8%U%)%s%H$rA*Br$G$-$k$h$&$K!"(B\file{plfonts.dtx}$B$G(B\NFSS2$B$r3HD%$7$F$$$^$9!#(B
%
% \pLaTeXe{}$B$N(B\NFSS2$B$O!"%U%)%s%H$r@ZBX$($k%3%^%s%I$r;XDj$9$k$H$-$K!"(B
% $B$=$l$,2$J8=qBN$+OBJ8=qBN$N$$$:$l$+$rBP>]$H$9$k$b$N$+$r!"(B
% $B$G$-$k$@$10U<1$7$J$$$h$&$K$9$kJ}8~$G3HD%$7$F$$$^$9!#(B
% $B$$$$$+$($l$P!"%3%^%s%I$,!J2DG=$J8B$j$N!KH=CG$r$7$^$9!#(B
% $B$7$?$,$C$F?tB?$/$"$k1Q8lHG$N%/%i%9%U%!%$%k$d%Q%C%1!<%8%U%!%$%k$J$I$G(B
% $B=qBN$NJQ99$r9T$C$F$$$k2U=j$r=$@5$9$kI,MW$O$"$^$j$"$j$^$;$s!#(B
%
% \NFSS2$B$K$D$$$F$N>\:Y$O!"(B\LaTeXe{}$B$KIUB0$N(B\file{fntguide.tex}$B$r;2>H$7$F(B
% $B$/$@$5$$!#(B
%\else
% \subsubsection{\NFSS2 Commands}
% \LaTeXe\ uses \NFSS2 as a font selection scheme, however, it
% supports only alphabetic fonts.
% \pLaTeXe\ extends \NFSS2 to enable selection of Japanese fonts in
% a consistent manner with the original \NFSS2.
%
% Most of the interface commands are defined to be clever enough,
% so that it can automatically judge whether it is going to
% change alphpabetic fonts or Japanese fonts.
% It works almost fine with most of the widely used classes and
% packages, without any modification.
%
% For the defail of (the original) \NFSS2, please refer to
% \file{fntguide.tex} in \LaTeXe.
%\fi
%
%
%\ifJAPANESE
% \subsubsection{$B=PNO%k!<%A%s$H%U%m!<%H(B}
% \file{plcore.dtx}$B$O!"<!$N9`L\$K4X$9$k%3%^%s%I$rF|K\8l=hM}MQ$K=$@5$d3HD%(B
% $B$r$7$F$$$^$9!#(B
%
% \begin{itemize}
% \item $B%W%j%"%s%V%k%3%^%s%I(B
% \item $B2~%Z!<%8(B
% \item $B2~9T(B
% \item $B%*%V%8%'%/%H$N=PNO=g=x(B
% \item $B%H%s%\(B
% \item $B5SCm%^%/%m(B
% \item $BAj8_;2>H(B
% \item $B5?;w%?%$%WF~NO(B
% \end{itemize}
%\else
% \subsubsection{Output Routine and Floats}
% \file{plcore.dtx} modifies and extends some \LaTeXe\ commands
% for Japanese processing.
%
% \begin{itemize}
% \item Preamble commands
% \item Page breaking
% \item Line breaking
% \item The order of float objects
% \item Crop marks (``tombow'')
% \item Footnote macros
% \item Cross-referencing
% \item Verbatim
% \end{itemize}
%\fi
%
%
%\ifJAPANESE
% \subsection{$B%/%i%9%U%!%$%k$H%Q%C%1!<%8%U%!%$%k(B}
%
% \pLaTeXe{}$B$,Ds6!$r$9$k%/%i%9%U%!%$%k$d%Q%C%1!<%8%U%!%$%k$O!"(B
% $B%*%j%8%J%k$N%U%!%$%k$r4p$K$7$F$$$^$9!#(B
%
% \pLaTeXe{}$B$KIUB0$N%/%i%9%U%!%$%k$O!"<!$N$H$*$j$G$9!#(B
%
% \begin{itemize}
% \item jarticle.cls, jbook.cls, jreport.cls\par
% $B2#AHMQ$NI8=`%/%i%9%U%!%$%k!#(B
% \file{jclasses.dtx}$B$+$i:n@.$5$l$k!#(B
%
% \item tarticle.cls, tbook.cls, treport.cls\par
% $B=DAHMQ$NI8=`%/%i%9%U%!%$%k!#(B
% \file{jclasses.dtx}$B$+$i:n@.$5$l$k!#(B
%
% \item jltxdoc.cls\par
% $BF|K\8l$N(B\file{.dtx}$B%U%!%$%k$rAHHG$9$k$?$a$N%/%i%9%U%!%$%k!#(B
% \file{jltxdoc.dtx}$B$+$i:n@.$5$l$k!#(B
% \end{itemize}
%\else
% \subsection{Classes and Packages}
%
% Classes and packages bundled with \pLaTeXe\ are based on
% those in original \LaTeXe, with some Japanese localization.
%
% \pLaTeXe\ classes:
%
% \begin{itemize}
% \item jarticle.cls, jbook.cls, jreport.cls\par
% Standard \emph{yoko-kumi} (horizontal writing) classes;
% stripped from \file{jclasses.dtx}.
%
% \item tarticle.cls, tbook.cls, treport.cls\par
% Standard \emph{tate-kumi} (vertical writing) classes;
% stripped from \file{jclasses.dtx}.
%
% \item jltxdoc.cls\par
% Class for typesetting Japanese \file{.dtx} file;
% stripped from \file{jltxdoc.dtx}.
% \end{itemize}
%\fi
%
%\ifJAPANESE
% $B$^$?!"(B\pLaTeXe{}$B$KIUB0$N%Q%C%1!<%8%U%!%$%k$O!"<!$N$H$*$j$G$9!#(B
% \changes{v1.0d}{2016/01/27}{\pLaTeXe{}$B$KIUB0$9$k%U%!%$%k$N@bL@$r99?7(B}
% \changes{v1.0j}{2016/05/20}{pfltrace$B$N@bL@$rDI2C(B}
%
% \begin{itemize}
% \item plext.sty\par
% $B=DAHMQ$N3HD%%3%^%s%I$J$I$,Dj5A$5$l$F$$$k%U%!%$%k!#(B
% \file{plext.dtx}$B$+$i:n@.$5$l$k!#(B
%
% \item ptrace.sty\par
% \LaTeX{}$B$G%U%)%s%HA*Br%3%^%s%I$N%H%l!<%9$K;H$&(B\file{tracefnt.sty}$B$,(B
% $B:FDj5A$7$F$7$^$&(B\NFSS2$B%3%^%s%I$r!"(B\pLaTeXe{}$BMQ$K:F!9Dj5A$9$k$?$a$N(B
% $B%Q%C%1!<%8!#(B
% \file{plfonts.dtx}$B$+$i:n@.$5$l$k!#(B
%
% \item pfltrace.sty\par
% \LaTeX{}$B$G%U%m!<%H4XO"%3%^%s%I$N%H%l!<%9$K;H$&(B\file{fltrace.sty}%
% \footnote{\LaTeXe\ 2014/05/01$B$GDI2C$5$l$^$7$?!#;29M!'(B
% \LaTeXe\ News Issue 21 (ltnews21.tex)}$B$,:FDj5A$7$F$7$^$&%3%^%s%I(B
% $B$r!"(B\pLaTeXe{}$BMQ$K:F!9Dj5A$9$k$?$a$N%Q%C%1!<%8!#(B
% \file{plcore.dtx}$B$+$i:n@.$5$l$k!#(B
%
% \item oldpfont.sty\par
% \pLaTeX~2.09$B$N%U%)%s%H%3%^%s%I$rDs6!$9$k%Q%C%1!<%8!#(B
% \file{pl209.dtx}$B$+$i:n@.$5$l$k!#(B
% \end{itemize}
%
% $B$J$*!"0JA0$N%P!<%8%g%s$KF1:-$7$F$$$?(Bascmac$B%Q%C%1!<%8$H(B
% nidanfloat$B%Q%C%1!<%8$O!"JL$N%P%s%I%k$H$7$FFHN)$5$;$^$7$?!#(B
% \changes{v1.0t}{2018/02/07}{ascmac$B%Q%C%1!<%8$rFHN)$5$;$?(B}
% \changes{v1.0u}{2018/02/18}{nidanfloat$B%Q%C%1!<%8$rFHN)$5$;$?(B}
%\else
% \pLaTeXe\ packages:
% \changes{v1.0d}{2016/01/27}{Updated descriptions of \pLaTeXe\ files}
% \changes{v1.0j}{2016/05/20}{Add description of `pfltrace'}
%
% \begin{itemize}
% \item plext.sty\par
% Useful macros and extensions for vertical writing;
% stripped from \file{plext.dtx}.
%
% \item ptrace.sty\par
% \pLaTeXe\ version of \file{tracefnt.sty};
% the package \file{tracefnt.sty} overwrites \pLaTeXe-style \NFSS2
% commands, so \file{ptrace.sty} provides redefinitions to recover
% \pLaTeXe\ extensions.
% Stripped from \file{plfonts.dtx}.
%
% \item pfltrace.sty\par
% \pLaTeXe\ version of \file{fltrace.sty} (introduced in
% \LaTeXe\ 2014/05/01);
% stripped from \file{plcore.dtx}.
%
% \item oldpfont.sty\par
% Provides \pLaTeX~2.09 font commands;
% stripped from \file{pl209.dtx}.
% \end{itemize}
%
% The packages ``ascmac.sty'' and ``nidanfloat.sty'',
% which had been included in previous versions of \pLaTeX,
% is now distributed as a separate bundle.
% \changes{v1.0t}{2018/02/07}{Moved ascmac package to separate bundle}
% \changes{v1.0u}{2018/02/18}{Moved nidanfloat package to separate bundle}
%\fi
%
%
%\ifJAPANESE
% \section{$BB>$N%U%)!<%^%C%H!&5l%P!<%8%g%s$H$N8_49@-(B}
% \label{platex:compatibility}
% $B$3$3$G$O!"$3$N(B\pLaTeXe{}$B$N%P!<%8%g%s$H0JA0$N%P!<%8%g%s!"$"$k$$$O(B
% \LaTeXe{}$B$H$N8_49@-$K$D$$$F@bL@$r$7$F$$$^$9!#(B
%
% \subsection{\LaTeXe{}$B$H$N8_49@-(B}
% \pLaTeXe{}$B$O!"(B\LaTeXe{}$B$N>e0L8_49$H$$$&7A$r<h$C$F$$$^$9$,!"(B
% $B$$$/$D$+$NL?Na$NDj5A$d%Q%i%a!<%?$J$I$bJQ99$7$F$$$^$9!#(B
% $B$7$?$,$C$F1QJ8=q$J$I!"(B\LaTeXe{}$B$G$b=hM}$G$-$k%U%!%$%k$r(B
% \pLaTeXe{}$B$G=hM}$7$F$b!"40A4$KF1$87k2L$K$J$k$H$O8B$j$^$;$s!#(B
%
% \LaTeXe{}$B8~$1$K=q$+$l$?B?$/$N%/%i%9%U%!%$%k$d%Q%C%1!<%8%U%!%$%k$O!"(B
% $B$=$N$^$^;H$($k$H;W$$$^$9!#(B
% $B$?$@$7!"$=$l$i$,(B\pLaTeXe{}$B$G3HD%$7$F$$$k%3%^%s%I$HF1$8L>A0$N(B
% $B%3%^%s%I$r:FDj5A$7$F$$$k>l9g$O!"(B
% $B$=$N3HD%$N;EJ}$K$h$C$F$O%(%i!<$K$J$k$3$H$b$"$j$^$9!#(B
% $BMQ$$$h$&$H$7$F$$$k%/%i%9%U%!%$%k$d%Q%C%1!<%8%U%!%$%k$,(B
% $B$&$^$/F0$/$+$I$&$+$r!"40A4$K3N$+$a$kJ}K!$O;DG0$J$,$i$"$j$^$;$s!#(B
% $B0lHV4JC1$J$N$O!"F0$+$7$F$_$k$3$H$G$9!#IT9,$K$b$&$^$/F0$+$J$$>l9g$O!"(B
% $B%m%0%U%!%$%k$dIUB0$NJ8=q%U%!%$%k$r;29M$K860x$rD4$Y$F$/$@$5$$!#(B
%
% $B$J$*!"$$$/$D$+$N(B\LaTeX{}$B%Q%C%1!<%8$K$D$$$F$O!"(B\pLaTeX{}$B8~$1$N(B
% $B%Q%C%A$,MQ0U$5$l$F$$$^$9!#$=$N0lMw$O!"(B
% \texttt{plautopatch}$B%Q%C%1!<%8!J(BHironobu Yamashita$B:n!K$N(B
% $B%I%-%e%a%s%H!JF|K\8lHG$O(Bplautopatch-ja.pdf$B!K$K5-:\$5$l$F$$$^$9!#(B
% \changes{v1.0x}{2018/09/03}{plautopatch$B$K8@5Z(B}
%\else
% \section{Compatibility with Other Formats and Older Versions}
% \label{platex:compatibility}
% Here we provide some information about the compatibility between
% current \pLaTeXe\ and older versions or original \LaTeXe.
%
% \subsection{Compatibility with \LaTeXe}
% \pLaTeXe\ is in most part upward compatible with \LaTeXe,
% but some parameters are adjusted to be suitable for Japanese.
% Therefore, you should not expect identical output, even though
% the same source can be processed on both \LaTeXe\ and \pLaTeXe.
%
% We hope that most classes and packages meant for \LaTeXe\ works
% also for \pLaTeXe\ without any modification. However for example,
% if a class or a package redefines a command which is already
% modified by \pLaTeXe, it might cause an error at the worst case.
% We cannot tell whether a class or a package works fine with
% \pLaTeXe\ beforehand; the easiest way is to try to use it.
% If it fails, please refer to the log file or a package manual.
%
% Some \LaTeX\ packages are known to be incompatible with \pLaTeX.
% For those packages, \pLaTeX-specific patches might be available.
% Please refer to the documentation of the \texttt{plautopatch}
% package (by Hironobu Yamashita).
% \changes{v1.0x}{2018/09/03}{Mention plautopatch.}
%\fi
%
%\ifJAPANESE
% \subsection{\pLaTeX~2.09$B$H$N8_49@-(B}
% \pLaTeXe{}$B$G$O!"J8=q$,;HMQ$9$k%/%i%9$r!"(B
% $B%W%j%"%s%V%k$G(B|\documentclass|$B%3%^%s%I$K$h$j;XDj$7$^$9!#(B
% $B$3$3$G(B|\documentclass|$B$NBe$o$j$K(B|\documentstyle|$B$r(B
% $BMQ$$$k$H!"(B\pLaTeXe{}$B$O<+F0E*$K(B\emph{2.09$B8_49%b!<%I(B}$B$KF~$j$^$9!#(B
% $B$3$l$O(B\LaTeXe{}$B$,(B\LaTeX~2.09$B8_49%b!<%I$KF~$k$N$HF1MM$G!"(B
% $B8_49%b!<%I$O8E$$J8=q$rAHHG$9$k$?$a$@$1$K:n$i$l$F$$$^$9!#(B
% $B?7$7$/J8=q$r:n@.$9$k>l9g$O!"(B|\documentclass|$B%3%^%s%I$rMQ$$$F$/$@$5$$!#(B
%
% $B8_49%b!<%I$G$O(B(p)\LaTeXe{}$B$N?7$7$$5!G=$rMxMQ$G$-$:!"(B
% $B$^$?8E$$%M%$%F%#%V$J(B\pLaTeX~2.09$B4D6-$HHyL/$K0[$J$k7k2L$K$J$k(B
% $B2DG=@-$b$"$k$H$$$&E@$O!"1Q8lHG$N(B\LaTeXe{}$B$G$bF1$8$G$9!#(B
% $B>\:Y$O!"(B\LaTeXe $B$KIUB0$N(B\file{usrguide.tex}$B$r;2>H$7$F$/$@$5$$!#(B
%\else
% \subsection{Compatibility with \pLaTeX~2.09}
% \pLaTeXe\ has `\pLaTeX~2.09 compatibility mode'; use
% |\documentstyle| to enter it, but the support might be limited.
% Note that the 2.09 compatibility mode is provided solely to
% allow you to process very old documents,
% which were written for a very old system.
%\fi
%
%
%\ifJAPANESE
% \subsection{latexrelease$B%Q%C%1!<%8$X$NBP1~(B}
% \changes{v1.0e}{2016/02/16}{platexrelease$B$N@bL@$rDI2C(B}
% \LaTeX\ \texttt{<2015/01/01>}$B$GF3F~$5$l$?(Blatexrelease$B%Q%C%1!<%8$r(B
% $B$b$H$K!"?7$7$$(B\pLaTeX{}$B$G$O(Bplatexrelease$B%Q%C%1!<%8$rMQ0U$7$^$7$?!#(B
% platexrelease$B%Q%C%1!<%8$rMQ$$$k$H!"2a5n$N(B\pLaTeX{}$B$r%(%_%e%l!<%H(B
% $B$7$?$j!"%U%)!<%^%C%H$r:n$jD>$9$3$H$J$/?7$7$$(B\pLaTeX{}$B$r;n$7$?$j$9$k(B
% $B$3$H$,$G$-$^$9!#>\:Y$O(Bplatexrelease$B$N%I%-%e%a%s%H$r;2>H$7$F$/$@$5$$!#(B
%\else
% \subsection{Support for Package `latexrelease'}
% \changes{v1.0e}{2016/02/16}{Add a description of platexrelease}
% \pLaTeX\ provides `platexrelease' package, which is based on
% `latexrelease' package (introduced in \LaTeX\ \texttt{<2015/01/01>}).
% It may be used to ensure stability where needed, by emulating
% the specified format date without regenerating the format file.
% For more detail, please refer to its documentation.
%\fi
%
%
%
% \appendix
%
%\ifJAPANESE
% \section{\dst{}$B%W%m%0%i%`$N$?$a$N%*%W%7%g%s(B}\label{app:dst}
% $B$3$NJ8=q$N%=!<%9(B(\file{platex.dtx})$B$r(B\dst{}$B%W%m%0%i%`$G(B
% $B=hM}$9$k$3$H$K$h$C$F!"(B
% $B$$$/$D$+$N0[$J$k%U%!%$%k$r@8@.$9$k$3$H$,$G$-$^$9!#(B
% \dst{}$B%W%m%0%i%`$N>\:Y$O!"(B\file{docstrip.dtx}$B$r;2>H$7$F$/$@$5$$!#(B
%
% $B$3$NJ8=q$N(B\dst{}$B%W%m%0%i%`$N$?$a$N%*%W%7%g%s$O!"<!$N$H$*$j$G$9!#(B
%
% \DeleteShortVerb{\|}
% \begin{center}
% \begin{tabular}{l|p{.8\linewidth}}
% \emph{$B%*%W%7%g%s(B} & \emph{$B0UL#(B}\\\hline
% plcore & $B%U%)!<%^%C%H%U%!%$%k$r:n$k$?$a$N%U%!%$%k$r@8@.(B\\
% pldoc & \pLaTeXe{}$B$N%=!<%9%U%!%$%k$r$^$H$a$FAHHG$9$k$?$a$N(B
% $BJ8=q%U%!%$%k(B(pldoc.tex)$B$r@8@.(B\\[2mm]
% shprog & $B>e5-$N%U%!%$%k$r:n@.$9$k$?$a$N(Bsh$B%9%/%j%W%H$r@8@.(B\\
% plprog & $BF~$l;R9=B$$rD4$Y$k4JC1$J(Bperl$B%9%/%j%W%H$r@8@.(B\\