-
Notifications
You must be signed in to change notification settings - Fork 0
/
magyar.ldf
5798 lines (5534 loc) · 241 KB
/
magyar.ldf
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
%
% magyar.ldf -- LaTeX Language Definition for `magyar' (Hungarian), v1.5b
% written and copyright (C) by P\'eter SZAB\'O <[email protected]>
% (version 1.5 -- Early October 2003 -- February 2004 --)
%
% The newest version of this magyar.ldf is part of MagyarLaTeX, available from
% http://www.math.bme.hu/latex/ . The web page is in Hungarian language, but
% it is easy to figure out how to download the newest magyar.ldf. Please
% bookmark this link as the definitive source of the newest version.
%
% This program is free software. There is NO WARRANTY. Use at your own risk!
% You can choose any of these licenses: GNU GPL, LaTeX's license,
% Babel's license.
%
% When will magyar.ldf 1.5 be part of mainstream LaTeX / Babel? I have no
% idea, ask the maintainer of Babel. magyar.ldf 1.5 has ptebeen converted to
% magyar.dtx on June 27, 2004. That version has been submitted to the
% maintainer of the Babel package. No reply from him since then.
%
% Should magyar.ldf 1.5 be part of tetex, or should it be available as a
% supplementary package in TeX distributions? Yes, but this is the task of the
% creators of those distributions. The Debian package ``magyarlatex'',
% which supplements the teTeX shipped with Debian Woody, Sarge and Sid,
% is available from http://www.math.bme.hu/latex/dl
% (file magyarlatex-latest.deb).
%
% The author of magyar.ldf 1.5 has uploaded it to CTAN
% (http://www.ctan.org), but he doesn't re-upload regularly, because he
% doesn't have time to maintain it and re-upload it after each bugfix. If
% you think that magyar.ldf 1.5 should be on CTAN, feel free to upload a
% snapshot, since it is free software.
%
% magyar.ldf 1.5 is based on magyar.ldf 1.4. However, it has been totally
% rewritten and extended (just compare the file sizes), and it doesn't share
% code from the earlier versions anymore. However, its default configuration
% tries to be compatible with older versions.
%
% Earlier versions of file `magyar.dtx' Babel package for LaTeX version 2e
% Copyright (C) 1989--2004 by Johannes Braams, TeXniek
% Copyright (C) 1989--2004 by
% \'Arp\'ad B\'IR\'O
% J\'ozsef B\'ERCES (version 1.4c -- 2001; contains a lot of work of him)
%
% To typeset text in Hungarian, please
%
% 1. Include `magyar huhyph.tex' in language.dat, re-run initex(1) (initex
% 'latex.ini \dump') or pdfinitex(1), verify that running latex(1) displays
% the word `magyar' in the line containing `hyphenation patterns' in its
% console output.
%
% 2. In the document preamble, use
%
% \def\magyarOptions{defaults=hu-min}
% \usepackage[magyar]{babel}
% \usepackage{t1enc}% for automatic hyphenation of accented chars
% \usepackage[latin2]{inputenc}% for typing chars
%
% This file is quite long, because it implements a lot of parametric features
% related to typesetting Hungarian text with \LaTeX. Sorry.
%
% Motto: ``There is a lot to do in the future'' -- by Gyöngyi Bujdosó and
% Ferenc Wettl in their conference proceedings article ``On the localization
% of TeX in Hungary'', presented at EuroBachoTeX 2002.
%
% Most of the code and comments in this file are written by P\'eter Szab\'o.
% The newest version is available from http://www.math.bme.hu/latex/
%
% The version of this file is 1.5, even when new releases come out. Please see
% the \expandafter\ProvidesLanguage line for the release date.
%
\expandafter\ifx\csname CurrentOption\endcsname\relax
\def\CurrentOption{magyar}%
\fi
%** So `\input magyar.ldf' will work as well.
\expandafter\ifx\csname [email protected]\endcsname\relax
\csname fi\endcsname
\endinput \expandafter\RequirePackage\expandafter[\CurrentOption]{babel}
\fi
%\ProvidesFile{magyar.ldf}[1996/12/23 v1.3h Magyar support from the babel system]
%\ProvidesLanguage{magyar}[2001/03/05 v1.4c Magyar support from the babel system]
% vvv for Babel v3.7
\expandafter\ProvidesLanguage\expandafter{\CurrentOption}[2007/10/19 v1.5 Magyar support from the babel v3.7 system]
% Possibly do \endinput if .ldf already loaded
\expandafter\LdfInit\expandafter{\CurrentOption}{captions\CurrentOption}%
% Fix \catcodes{} possibly screwed up by other Babel languages.
% Dat: \string`\string! could have been written as \string`!
\edef\@@magyar@restcats{%
\catcode\string`\string`\the\catcode\string``\space\space
\catcode\string`\string!\the\catcode\string`!\space\space
\catcode\string`\string*\the\catcode\string`*\space\space
\catcode\string`\string+\the\catcode\string`+\space\space
\catcode\string`\string-\the\catcode\string`-\space\space
\catcode\string`\string=\the\catcode\string`=\space\space
\catcode\string`\string|\the\catcode\string`|\space\space
\catcode\string`\string;\the\catcode\string`;\space\space
\catcode\string`\string:\the\catcode\string`:\space\space
\catcode\string`\string'\the\catcode\string`'\space\space
\catcode\string`\string"\the\catcode\string`"\space\space
\catcode\string`\string?\the\catcode\string`?\space\space
\catcode\string`\string/\the\catcode\string`/\space\space
\let\noexpand\@@magyar@restcats\noexpand\@undefined
}
\catcode\string``12 \catcode`!12 \catcode`*12 \catcode`+12 \catcode`-12
\catcode`=12 \catcode`|12 \catcode`;12 \catcode`:12 \catcode`'12 \catcode`"12
\catcode`?12 \catcode`/12
%** Expand \CurrentOption early.
\edef\@@magyar@error#1{\noexpand\PackageError{\CurrentOption.ldf}{#1}\noexpand\@ehc}
% --- Declare options.
%
% Dat: \languageattribute{magyar}{...} and \bbl@declare@ttribute{magyar}{foo}{...}
% isn't enough for us, because it is processed
% after \usepackage[magyar]{babel}, but we need the options information
% earlier. And also it cannot contain `='.
%
%** `\dMf foo-bar {...}' is `\def\foo-bar{...}' where `-' is a letter
\def\dMf#1 {\expandafter\def\csname#1\endcsname}
\def\magyar@@unchanged{unchanged}
\def\magyar@enumarg#1#2{%
\expandafter\ifx\csname magyar@opt@#1@@#2\endcsname\relax
\@@magyar@error{Invalid arg for option: #1 = #2}%
\else
\csname magyar@opt@#1@@#2\endcsname
\fi
}
\def\@@magyar@argw@no {0}%
\def\@@magyar@argw@weak{1}%
\def\@@magyar@argw@yes {2}%
\def\magyar@yesweaknoarg#1#2{%
\expandafter\ifx\csname @@magyar@argw@#2\endcsname\relax
\@@magyar@error{Invalid arg for option: #1 = #2\MessageBreak Must be =no, =yes or =weak}%
\else
\expandafter\edef\csname magyar@opt@@#1\endcsname{\csname @@magyar@argw@#2\endcsname}%
\fi
}
% Declare defaults.
%** These defaults load most of the new functionality, but try not to
%** introduce visible typographical changes over magyar.ldf v1.4. These
%** are the ovarall defaults of magyar.ldf v1.5, in case of
%** \def\magyarOptions{} (or if is missing).
%**
%** These are the defaults: (over-1.4)
%** \def\magyarOptions{
%** accents=defaulthigh, % or =high or =low
%** active=safe, % or =problematic or =none or =onlycs
%** activeprefix=babelopt2, % or =none or =babelopt3 or =grave or =acute or =quotedbl
%** activespace=none, % or =safe or =problematic
%** afterindent=unchanged, % or =force-no or =force-yes
%** amslevelfix=fix-ams, % or =unchanged or =fix-all
%** amsuppercasefix=fix-ams, % or =unchanged or =fix-all
%** amstocnumskip=\enskip, % TeX code or --empty--
%** amstocnumlang=all, % or =hu
%** amspostsectiondot=no, % or =unchanged
%** appendixdot=yes, % or =no % !! dokumentálni
%** az=weak, % or =yes or =no
%** babelmarkfix=yes, % or =unchanged
%** captionfix=yes, % or =unchanged
%** captions=hu, % or =unchanged
%** chapterhead=yes, % or =unchanged(=no)
%** chapternumber=unchanged, % see partnumber=
%** cjhebrewfix=yes, % or =unchanged or =onlyouter
%** classmod=yes, % or =unchanged(=no) or TeX class name
%** %defaults=over-1.4, % or =compat-1.4 or =safest or =prettiest
%** dottedtocline=fix, % or =unchanged
%** emitdate=weak, % or =no or =yes
%** extras=yes, % or =no
%** fancyhdr=hu, % or =unchanged
%** figurecaptions=hu, % or =us or =unchanged
%** frenchspacing=unchanged, % or =no or =yes
%** hang=weak, % or =no or =yes
%** hunnewlabel=yes, % or =no or =only-hu
%** hunumbers=yes, % or =no
%** hutoday=yes, % or =no
%** hyphenmins=22, % or =unchanged or two chars: \lefthyphenmin\righthyphenmin
%** hyphenation=huhyph3, % or =none or =composite or =phonetic or =huhyphn
%** hynumberline=unchanged, % or =hu
%** labelenums=unchanged, % or =hu-a or =hu-A or =hu-d
%** labelitems=unchanged, % or =hu
%** longcaption=justified, % or =centered or =centernewline or =none (=unchanged)
%** mathbrk=define, % or =unchanged or =fix
%** mathhucomma=define, % or =unchanged or =fix
%** mathfactorial=define, % or =unchanged or =fix
%** mathmuskips=unchanged, % or =latex or =hu
%** mathreal=weak, % or =no or =yes
%** mond=weak, % or =no or =yes
%** ntheoremfix=yes, % or =unchanged
%** openqq=maybedown, % or =up or =down or =unchanged
%** partnumber=unchanged, % or =huordinal or =Huordinal
%** postdescription=unchanged, % see postpara=
%** postpara=unchanged, % or =bfdot or =dot or =quad or =diamond or =enskip or =quad or =em or =empty ... (\magyar@post@...)
%** postsubpara=unchanged, % see postpara=
%** refstruc=weak, % or =no or =yes
%** %safest=no, % or =yes (safest=no has no effect, safest=yes is equivalent to defaults=safest)
%** sectiondot=safe, % or =none or =problematic
%** shorthandcs=\shu, % or =none or a csname or a \cs, e.g shorthandcs=\shu
%** shortrefcmds=yes, % or =no
%** showfix=yes, % or =unchanged
%** suggestions=yes, % or =no
%** tablecaptions=hu, % or =us or =unchanged
%** textqq=weak, % or =no or =yes
%** theoremtitle=hu, % or =unchanged
%** footnote=yes, % or =unchanged or =huplain or =starplain
%** titles=\enskip, % TeX code: =unchanged, =\quad or other
%** toclang=good, % or =badfloat or =badall or =unchanged
%** told=weak, % or =no or =yes
%** varioref=hu, % or =unchanged
%** }\usepackage[magyar]{babel}
\dMf magyar@opt@defaults@@over-1.4 {%
\magyar@opt@accents@@defaulthigh
\magyar@opt@active@@safe
\magyar@opt@activeprefix{activeprefix}{babelopt2}%
\magyar@opt@activespace@@none
\magyar@opt@afterindent@@unchanged
\magyar@opt@amslevelfix{amslevelfix}{fix-ams}%
\magyar@opt@amsuppercasefix{amsuppercasefix}{fix-ams}%
\magyar@opt@amspostsectiondot@@no% change over 1.4
\magyar@opt@amstocnumlang@@all
\magyar@opt@amstocnumskip{amstocnumskip}{\enskip}% change over 1.4
\magyar@opt@appendixdot@@yes
\magyar@opt@babelmarkfix@@yes
\magyar@opt@az{az}{weak}%
\magyar@opt@captionfix@@yes
\magyar@opt@captions@@hu
\magyar@opt@chapternumber@@unchanged
\magyar@opt@classmod@@yes
\magyar@opt@dottedtocline@@fix
\magyar@opt@emitdate{emitdate}{weak}%
\magyar@opt@extras@@yes
\magyar@opt@chapterhead@@yes
\magyar@opt@fancyhdr@@hu% change over 1.4
\magyar@opt@figurecaptions@@hu
\magyar@opt@footnote@@yes
\magyar@opt@frenchspacing@@unchanged
\magyar@opt@hang{hang}{weak}%
\magyar@opt@hunnewlabel@@yes
\magyar@opt@hunumbers@@yes
\magyar@opt@hutoday@@yes
\magyar@opt@hyphenation{hyphenation}{huhyph3-or-any}%
\magyar@opt@hyphenmins{hyphenmins}{22}% change over 1.4 Dat: Default LaTeX is {23}
\magyar@opt@labelenums@@unchanged
\magyar@opt@labelitems@@unchanged
\magyar@opt@longcaption@@justified
\magyar@opt@mathbrk@@define
\magyar@opt@mathfactorial@@define
\magyar@opt@mathhucomma@@define
\magyar@opt@mathmuskips@@unchanged
\magyar@opt@hynumberline@@unchanged
\magyar@opt@mathreal{mathreal}{weak}%
\magyar@opt@mond{mond}{weak}%
\magyar@opt@ntheoremfix@@yes
\magyar@opt@openqq@@maybedown
\magyar@opt@partnumber@@unchanged
\magyar@opt@postpara{}{unchanged}%
\magyar@opt@postsubpara{}{unchanged}%
\magyar@opt@refstruc{refstruc}{weak}%
\magyar@opt@sectiondot@@safe
\magyar@opt@shorthandcs{shorthandcs}{\shu}%
\magyar@opt@shortrefcmds@@yes
\magyar@opt@showfix@@yes
\magyar@opt@suggestions@@yes
\magyar@opt@tablecaptions@@hu
\magyar@opt@textqq{textqq}{weak}%
\magyar@opt@theoremtitle@@hu
\magyar@opt@titles{}{\enskip}% change over 1.4
\magyar@opt@toclang@@good
\magyar@opt@told{told}{weak}%
\magyar@opt@varioref@@hu
\magyar@opt@cjhebrewfix@@yes
}
%** These defaults try to be compatible with magyar.ldf v1.4 as much as
%** possible -- but avoids stupid, problematic, dangerous implementation
%** mistakes that would make magyar.ldf incompatible with many LaTeX
%** packages. The purpose of compat-1.4 is to make the document compilable:
%** if a fix would produce better results, but documents are compilable
%** without the fix, the fix will not be applied in compat-1.4.
%** Some very useful fixes are not applied here -- please use
%** defaults=over-1.4 to have them. Also some very nice features such
%** as \emitdate and \told are not available here.
\dMf magyar@opt@defaults@@compat-1.4 {%
\magyar@opt@accents@@defaulthigh% OK
\magyar@opt@active@@safe% we don't want =problematic
\magyar@opt@activeprefix@@grave% OK
\magyar@opt@activespace@@none% OK
\magyar@opt@afterindent@@unchanged% OK
\magyar@opt@amslevelfix@@unchanged% OK
\magyar@opt@amsuppercasefix@@unchanged% OK
\magyar@opt@amspostsectiondot@@unchanged% OK
\magyar@opt@amstocnumlang@@all% OK, irrelevant
\magyar@opt@amstocnumskip{amstocnumskip}{}% OK
\magyar@opt@appendixdot@@yes
\magyar@opt@babelmarkfix@@unchanged
\magyar@opt@az{az}{yes}% OK
\magyar@opt@captionfix@@unchanged
\magyar@opt@captions@@hu% OK
\magyar@opt@chapterhead@@yes% OK
\magyar@opt@chapternumber@@unchanged% OK
\magyar@opt@classmod@@yes% OK
\magyar@opt@dottedtocline@@unchanged% OK
\magyar@opt@emitdate{emitdate}{no}% OK
\magyar@opt@extras@@yes% OK
\magyar@opt@fancyhdr@@unchanged% OK
\magyar@opt@figurecaptions@@hu% OK
\magyar@opt@footnote@@unchanged% OK
\magyar@opt@frenchspacing@@unchanged% OK
\magyar@opt@hang{hang}{no}% OK
\magyar@opt@hunnewlabel@@yes% OK
\magyar@opt@hunumbers@@no% OK
\magyar@opt@hutoday@@yes% OK
\magyar@opt@hyphenation{hyphenation}{huhyph3-or-any}% OK
\magyar@opt@hyphenmins{hyphenmins}{unchanged}%
\magyar@opt@labelenums@@unchanged% OK
\magyar@opt@labelitems@@unchanged% OK
\magyar@opt@longcaption@@justified% OK
\magyar@opt@mathbrk@@unchanged% OK
\magyar@opt@mathhucomma@@unchanged% OK
\magyar@opt@mathfactorial@@unchanged% OK
\magyar@opt@mathmuskips@@unchanged% OK
\magyar@opt@hynumberline@@unchanged% OK
\magyar@opt@mathreal{mathreal}{no}%
\magyar@opt@mond{mond}{no}% OK
\magyar@opt@ntheoremfix@@yes% OK
\magyar@opt@openqq@@maybedown% OK
\magyar@opt@partnumber@@unchanged% OK
\magyar@opt@postpara{}{unchanged}% OK
\magyar@opt@postsubpara{}{unchanged}% OK
\magyar@opt@refstruc{refstruc}{no}% OK
\magyar@opt@sectiondot@@safe% we don't want =problematic
\magyar@opt@shorthandcs{shorthandcs}{none}% OK
\magyar@opt@shortrefcmds@@yes% OK
\magyar@opt@showfix@@yes% OK
\magyar@opt@suggestions@@no% OK -- user has explicity requested defaults=compat-1.4
\magyar@opt@tablecaptions@@hu% OK
\magyar@opt@textqq{textqq}{no}% OK
\magyar@opt@theoremtitle@@hu% OK
\magyar@opt@titles{}{\quad}% OK -- ugly, but compatible
\magyar@opt@toclang@@good% we don't want weird errors and mischosen languages (would be =badall)
\magyar@opt@told{told}{no}% OK
\magyar@opt@varioref@@hu% was =unchanged, but varioref.sty (2000) is buggy
\magyar@opt@cjhebrewfix@@yes
}
%** These defaults turn of most features -- the effect is similar to as if
%** magyar.ldf hasn't been loaded at all. Useful for debugging purposes.
\def\magyar@opt@defaults@@safest{%
\magyar@opt@accents@@defaulthigh
\magyar@opt@active@@none
\magyar@opt@activeprefix@@none
\magyar@opt@activespace@@none
\magyar@opt@afterindent@@unchanged
\magyar@opt@amslevelfix@@unchanged
\magyar@opt@amsuppercasefix{amsuppercasefix}{fix-ams}%
\magyar@opt@amspostsectiondot@@unchanged
\magyar@opt@amstocnumlang@@all% OK, irrelevant
\magyar@opt@amstocnumskip{amstocnumskip}{}%
\magyar@opt@appendixdot@@yes
\magyar@opt@az{az}{no}%
\magyar@opt@babelmarkfix@@yes
\magyar@opt@captionfix@@yes
\magyar@opt@captions@@unchanged
\magyar@opt@chapternumber@@unchanged
\magyar@opt@classmod@@unchanged
\magyar@opt@dottedtocline@@unchanged
\magyar@opt@emitdate{emitdate}{no}%
\magyar@opt@extras@@no
\magyar@opt@chapterhead@@no
\magyar@opt@fancyhdr@@unchanged
\magyar@opt@figurecaptions@@unchanged
\magyar@opt@footnote@@unchanged
\magyar@opt@frenchspacing@@unchanged
\magyar@opt@hang{hang}{no}%
\magyar@opt@hunnewlabel@@no
\magyar@opt@hunumbers@@no
\magyar@opt@hutoday@@no
\magyar@opt@hyphenation{hyphenation}{huhyph3-or-any}%
\magyar@opt@hyphenmins{hyphenmins}{unchanged}%
\magyar@opt@labelenums@@unchanged
\magyar@opt@labelitems@@unchanged
\magyar@opt@longcaption@@unchanged
\magyar@opt@mathbrk@@unchanged
\magyar@opt@mathhucomma@@unchanged
\magyar@opt@mathfactorial@@unchanged
\magyar@opt@mathmuskips@@unchanged
\magyar@opt@hynumberline@@unchanged
\magyar@opt@mathreal{mathreal}{no}%
\magyar@opt@mond{mond}{no}%
\magyar@opt@ntheoremfix@@unchanged
\magyar@opt@openqq@@unchanged
\magyar@opt@partnumber@@unchanged
\magyar@opt@postpara{}{unchanged}%
\magyar@opt@postsubpara{}{unchanged}%
\magyar@opt@refstruc{refstruc}{no}%
\magyar@opt@sectiondot@@none
\magyar@opt@shorthandcs{shorthandcs}{none}%
\magyar@opt@shortrefcmds@@no
\magyar@opt@showfix@@unchanged
\magyar@opt@suggestions@@yes
\magyar@opt@tablecaptions@@unchanged
\magyar@opt@textqq{textqq}{no}%
\magyar@opt@theoremtitle@@unchanged
\magyar@opt@titles{}{unchanged}%
\magyar@opt@toclang@@unchanged
\magyar@opt@told{told}{no}%
\magyar@opt@varioref@@unchanged
\magyar@opt@cjhebrewfix@@unchanged
}
%** These defaults load almost all features, and try to do their best to make
%** the document comply to the Hungarian typography standards. Full compliance
%** is not achieved yet, and as new features are implemented, they will be
%** added to these defaults.
\def\magyar@opt@defaults@@prettiest{%
\magyar@opt@accents@@defaulthigh% {low} would have no effect with \usepackage{t1enc}
\magyar@opt@active@@safe
\magyar@opt@activeprefix{activeprefix}{babelopt2}%
\magyar@opt@activespace@@safe
\magyar@opt@afterindent@@unchanged% keep =force-no
\magyar@opt@amslevelfix{amslevelfix}{fix-ams}%
\magyar@opt@amsuppercasefix{amsuppercasefix}{fix-ams}%
\magyar@opt@amspostsectiondot@@no
\magyar@opt@amstocnumlang@@all
\magyar@opt@amstocnumskip{amstocnumskip}{\enskip}%
\magyar@opt@appendixdot@@no
\magyar@opt@az{az}{yes}%
\magyar@opt@babelmarkfix@@yes
\magyar@opt@captionfix@@yes
\magyar@opt@captions@@hu
\magyar@opt@chapternumber@@unchanged
\magyar@opt@classmod@@yes
\magyar@opt@dottedtocline@@fix
\magyar@opt@emitdate{emitdate}{yes}%
\magyar@opt@extras@@yes
\magyar@opt@chapterhead@@yes
\magyar@opt@fancyhdr@@hu
\magyar@opt@figurecaptions@@hu
\magyar@opt@footnote@@yes
\magyar@opt@frenchspacing@@yes
\magyar@opt@hang{hang}{yes}%
\magyar@opt@hunnewlabel@@yes
\magyar@opt@hunumbers@@yes
\magyar@opt@hutoday@@yes
\magyar@opt@hyphenation{hyphenation}{composite-or-any}%
\magyar@opt@hyphenmins{hyphenmins}{22}% Dat: Default LaTeX is {23}
\magyar@opt@labelenums{labelenums}{hu-a}%
\magyar@opt@labelitems@@hu
\magyar@opt@longcaption@@centered
\magyar@opt@mathbrk@@fix
\magyar@opt@mathhucomma@@fix
\magyar@opt@mathfactorial@@fix
\magyar@opt@mathmuskips@@hu
\magyar@opt@hynumberline@@hu
\magyar@opt@mathreal{mathreal}{yes}%
\magyar@opt@mond{mond}{yes}%
\magyar@opt@ntheoremfix@@yes
\magyar@opt@openqq@@maybedown
\magyar@opt@partnumber@@Huordinal
\magyar@opt@postdescription{}{dot}%
\magyar@opt@postpara{}{diamond}%
\magyar@opt@postsubpara{}{star}%
\magyar@opt@refstruc{refstruc}{yes}%
\magyar@opt@sectiondot@@safe
\magyar@opt@shorthandcs{shorthandcs}{\shu}%
\magyar@opt@shortrefcmds@@no
\magyar@opt@showfix@@yes
\magyar@opt@suggestions@@yes
\magyar@opt@tablecaptions@@hu
\magyar@opt@textqq{textqq}{yes}%
\magyar@opt@theoremtitle@@hu
\magyar@opt@titles{}{\enskip}%
\magyar@opt@toclang@@good
\magyar@opt@told{told}{yes}%
\magyar@opt@varioref@@hu
\magyar@opt@cjhebrewfix@@yes
}
%** Expands to the \magyarOptions changes defaults=hu-min makes over
%** defaults=safest.
\def\magyar@@humin@options{%
active=safe,
activeprefix=babelopt2,
activespace=safe,
amslevelfix=fix-ams,
amspostsectiondot=no,
amstocnumlang=all,
amstocnumskip=\enskip,
appendixdot=no,
az=weak,
captions=hu,
chapterhead=yes,
cjhebrewfix=yes,
classmod=yes,
classmod=yes,
dottedtocline=fix,
emitdate=weak,
extras=yes,
fancyhdr=hu,
figurecaptions=hu,
footnote=huplain,
frenchspacing=yes,
hang=weak,
hunnewlabel=yes,
hunumbers=yes,
hutoday=yes,
hynumberline=hu,
hyphenmins=22,
labelenums=hu-d,
labelitems=hu,
longcaption=centered,
mathbrk=define,
mathbrk=fix,
mathfactorial=define,
mathhucomma=fix,
mathreal=weak,
mond=weak,
ntheoremfix=yes,
openqq=maybedown,
postdescription=dot,
postpara=diamond,
postsubpara=star,
refstruc=weak,
sectiondot=safe,
shorthandcs=\shu,
shortrefcmds=yes,
showfix=yes,
tablecaptions=hu,
textqq=weak,
theoremtitle=hu,
titles=\enskip,
toclang=good,
told=weak,
varioref=hu,
}
%** Matches Hungarian typographic rules most closely -- and most
%** simplistically (minimally).
\dMf magyar@opt@defaults@@hu-min {%
%\csname magyar@opt@defaults@@over-1.4\endcsname
\csname magyar@opt@defaults@@safest\endcsname
% Dat: no openqq=unchanged (!)
\expandafter\magyar@doopt\magyar@@humin@options\hfuzz,%
}
\def\magyarDumpHuMin{%
\begingroup
\typeout{}
\typeout{\expandafter\@gobble\string\% for defaults=hu-min}%
\typeout{\string\def\string\magyarOptions\expandafter\@gobble\string\{}%
\typeout{ \space defaults=safest,}%
\typeout{ \space\expandafter\@gobble\string\%}%
\def\magyar@applyopt##1##2{%
\def\reserved@a{##1=##2,}%
\typeout{ \space\expandafter\strip@prefix\meaning\reserved@a}%
}%
\expandafter\magyar@doopt\magyar@@humin@options\hfuzz,%
\typeout{\expandafter\@gobble\string\}}%
\typeout{\string\usepackage[magyar]{babel}}%
\typeout{}%
\endgroup
}
\let\magyar@opt@defaults\magyar@enumarg
\def\magyar@opt@safest@@yes{\magyar@opt@defaults@@safest}
\def\magyar@opt@safest@@no{}
\let\magyar@opt@safest\magyar@enumarg
% Declare normal options.
\def\magyar@opt@titles#1#2{\def\magyar@opt@@titleskip{#2}}
\def\@@magyar@twodigitcheck#1#2#3\hfuzz#4#5{%
\csname if\ifnum0<0\string#1 \ifnum0<0\string#2 false\else true\fi\else true\fi\endcsname
\@@magyar@error{Option #4 needs [1-9][1-9], got #1#2}%
\fi
}
\def\magyar@opt@hyphenmins#1#2{%
\def\reserved@a{#2}%
\ifx\reserved@a\magyar@@unchanged
\let\magyar@opt@@hyphenmins\@empty
\else
\@@magyar@twodigitcheck#2..\hfuzz{#1}{#2}%
\def\magyar@opt@@hyphenmins{#2}%
\fi
}
\def\magyar@opt@amstocnumskip#1#2{\def\magyar@opt@@amstocnumskip{#2}}
\def\magyar@opt@amstocnumlang@@all{\def\magyar@opt@@amstocnumlang{2}}
\def\magyar@opt@amstocnumlang@@hu {\def\magyar@opt@@amstocnumlang{1}}
\let\magyar@opt@amstocnumlang\magyar@enumarg
\def\magyar@opt@active@@none{\def\magyar@opt@@active{0}}
\def\magyar@opt@active@@onlycs{\def\magyar@opt@@active{1}}
\def\magyar@opt@active@@safe{\def\magyar@opt@@active{2}}
\def\magyar@opt@active@@problematic{\def\magyar@opt@@active{3}}
\let\magyar@opt@active\magyar@enumarg
\def\magyar@opt@activeprefix@@none {\let\magyar@opt@@activeprefix\relax}
\def\magyar@opt@activeprefix@@acute {\def\magyar@opt@@activeprefix{'}}
\def\magyar@opt@activeprefix@@grave {\def\magyar@opt@@activeprefix{`}}
\def\magyar@opt@activeprefix@@quotedbl{\def\magyar@opt@@activeprefix{"}}
\dMf magyar@opt@activeprefix@@babelopt2 {%
\@ifpackagewith{babel}{activeacute}% Dat: not expandable
{\def\magyar@opt@@activeprefix{'}}%
{\def\magyar@opt@@activeprefix{`}}%
}
\dMf magyar@opt@activeprefix@@babelopt3 {%
\@ifpackagewith{babel}{activeacute}%
{\def\magyar@opt@@activeprefix{'}}%
{\@ifpackagewith{babel}{activegrave}%
{\def\magyar@opt@@activeprefix{`}}%
{\def\magyar@opt@@activeprefix{"}}}%
}
\let\magyar@opt@activeprefix\magyar@enumarg
\def\magyar@opt@activespace@@none{\def\magyar@opt@@activespace{0}}
\def\magyar@opt@activespace@@safe{\def\magyar@opt@@activespace{2}}
\def\magyar@opt@activespace@@problematic{\def\magyar@opt@@activespace{3}}
\let\magyar@opt@activespace\magyar@enumarg
\def\magyar@opt@amspostsectiondot@@no {\def\magyar@opt@@amspostsectiondot{1}}
\def\magyar@opt@amspostsectiondot@@unchanged{\def\magyar@opt@@amspostsectiondot{0}}
\let\magyar@opt@amspostsectiondot\magyar@enumarg
\let\magyar@opt@hyphenation\magyar@enumarg
\def\magyar@opt@hyphenation@@huhyphf {\magyar@opt@hyphenation@@phonetic}
\def\magyar@opt@hyphenation@@huhyphc {\magyar@opt@hyphenation@@composite}
\expandafter\ifx\csname @OFWO\endcsname\relax
% Imp: fix --:hyphenation= reporting above
\def\magyar@opt@hyphenation@@none {\def\magyar@opt@@hyphenation{}}
\dMf magyar@opt@hyphenation@@huhyph3 {\def\magyar@opt@@hyphenation{3rN}}
\dMf magyar@opt@hyphenation@@huhyph3-or-any {\def\magyar@opt@@hyphenation{3CmhwN}}
\def\magyar@opt@hyphenation@@huhyphn {\def\magyar@opt@@hyphenation{nrN}}
\def\magyar@opt@hyphenation@@composite {\def\magyar@opt@@hyphenation{crN}}
\dMf magyar@opt@hyphenation@@composite-or-any {\def\magyar@opt@@hyphenation{cCmhwN}}
\def\magyar@opt@hyphenation@@any {\def\magyar@opt@@hyphenation{CmhwN}}
\def\magyar@opt@hyphenation@@phonetic {\def\magyar@opt@@hyphenation{frN}}
\else% report to lafmtgen.pl
\typeout{--:hyphenation-=\CurrentOption}
\def\magyar@opt@@hyphenation{}%
\def\magyar@opt@hyphenation@@none {\def\magyar@opt@@hypr{}}
\dMf magyar@opt@hyphenation@@huhyph3 {\def\magyar@opt@@hypr{\typeout{--:hyphenation=magyar3}\typeout{--:hyphenation=magyar}}} % install both for safety
\def\magyar@opt@hyphenation@@huhyphn {\def\magyar@opt@@hypr{\typeout{--:hyphenation=magyarn}\typeout{--:hyphenation=magyar}}}
\def\magyar@opt@hyphenation@@composite{\def\magyar@opt@@hypr{\typeout{--:hyphenation=magyarc}\typeout{--:hyphenation=magyar}}}
\def\magyar@opt@hyphenation@@phonetic {\def\magyar@opt@@hypr{\typeout{--:hyphenation=magyarf}}}
\fi
\def\magyar@opt@sectiondot@@none{\def\magyar@opt@@sectiondot{0}}
\def\magyar@opt@sectiondot@@safe{\def\magyar@opt@@sectiondot{1}}
\def\magyar@opt@sectiondot@@problematic{\def\magyar@opt@@sectiondot{2}}
\let\magyar@opt@sectiondot\magyar@enumarg
\def\magyar@opt@captions@@unchanged{\def\magyar@opt@@captions{0}}
\def\magyar@opt@captions@@hu{\def\magyar@opt@@captions{1}}
\let\magyar@opt@captions\magyar@enumarg
\def\magyar@opt@varioref@@unchanged{\def\magyar@opt@@varioref{0}}
\def\magyar@opt@varioref@@hu{\def\magyar@opt@@varioref{1}}
\let\magyar@opt@varioref\magyar@enumarg
\def\magyar@opt@cjhebrewfix@@unchanged{\def\magyar@opt@@cjhebrewfix{0}}
\def\magyar@opt@cjhebrewfix@@onlyouter{\def\magyar@opt@@cjhebrewfix{1}}
\def\magyar@opt@cjhebrewfix@@yes{\def\magyar@opt@@cjhebrewfix{2}}
\let\magyar@opt@cjhebrewfix\magyar@enumarg
\def\magyar@opt@fancyhdr@@unchanged{\def\magyar@opt@@fancyhdr{0}}
\def\magyar@opt@fancyhdr@@hu{\def\magyar@opt@@fancyhdr{1}}
\let\magyar@opt@fancyhdr\magyar@enumarg
\def\magyar@opt@ntheoremfix@@unchanged{\def\magyar@opt@@ntheoremfix{0}}
\def\magyar@opt@ntheoremfix@@yes{\def\magyar@opt@@ntheoremfix{1}}
\let\magyar@opt@ntheoremfix\magyar@enumarg
\def\magyar@opt@figurecaptions@@unchanged{\def\magyar@opt@@figurecaptions{0}}
\def\magyar@opt@figurecaptions@@hu{\def\magyar@opt@@figurecaptions{1}}
\def\magyar@opt@figurecaptions@@us{\def\magyar@opt@@figurecaptions{2}}
\let\magyar@opt@figurecaptions\magyar@enumarg
\def\magyar@opt@tablecaptions@@unchanged{\def\magyar@opt@@tablecaptions{0}}
\def\magyar@opt@tablecaptions@@hu{\def\magyar@opt@@tablecaptions{1}}
\def\magyar@opt@tablecaptions@@us{\def\magyar@opt@@tablecaptions{2}}
\let\magyar@opt@tablecaptions\magyar@enumarg
\def\magyar@opt@toclang@@unchanged{\def\magyar@opt@@toclang{0}}% same as =badall
\def\magyar@opt@toclang@@badall{\def\magyar@opt@@toclang{0}}
\def\magyar@opt@toclang@@badfloat{\def\magyar@opt@@toclang{1}}
\def\magyar@opt@toclang@@good{\def\magyar@opt@@toclang{2}}
\let\magyar@opt@toclang\magyar@enumarg
\def\magyar@opt@mathbrk@@unchanged{\def\magyar@opt@@mathbrk{0}}
\def\magyar@opt@mathbrk@@define{\def\magyar@opt@@mathbrk{1}}
\def\magyar@opt@mathbrk@@fix{\def\magyar@opt@@mathbrk{2}}
\let\magyar@opt@mathbrk\magyar@enumarg
\def\magyar@opt@mathfactorial@@unchanged{\def\magyar@opt@@mathfactorial{0}}
\def\magyar@opt@mathfactorial@@define{\def\magyar@opt@@mathfactorial{1}}
\def\magyar@opt@mathfactorial@@fix{\def\magyar@opt@@mathfactorial{2}}
\let\magyar@opt@mathfactorial\magyar@enumarg
\def\magyar@opt@mathhucomma@@unchanged{\def\magyar@opt@@mathhucomma{0}}
\def\magyar@opt@mathhucomma@@define{\def\magyar@opt@@mathhucomma{1}}
\def\magyar@opt@mathhucomma@@fix{\def\magyar@opt@@mathhucomma{2}}
\let\magyar@opt@mathhucomma\magyar@enumarg
\def\magyar@opt@mathmuskips@@unchanged{\def\magyar@opt@@mathmuskips{0}}
\def\magyar@opt@mathmuskips@@latex{\def\magyar@opt@@mathmuskips{1}}
\def\magyar@opt@mathmuskips@@hu{\def\magyar@opt@@mathmuskips{2}}
\let\magyar@opt@mathmuskips\magyar@enumarg
\def\magyar@opt@hynumberline@@unchanged{\def\magyar@opt@@hynumberline{0}}
\def\magyar@opt@hynumberline@@latex{\def\magyar@opt@@hynumberline{1}}
\def\magyar@opt@hynumberline@@hu{\def\magyar@opt@@hynumberline{2}}
\let\magyar@opt@hynumberline\magyar@enumarg
\def\magyar@opt@hunnewlabel@@no {\def\magyar@opt@@hunnewlabel{0}}
\dMf magyar@opt@hunnewlabel@@only-hu {\def\magyar@opt@@hunnewlabel{1}}
\def\magyar@opt@hunnewlabel@@yes{\def\magyar@opt@@hunnewlabel{2}}
\let\magyar@opt@hunnewlabel\magyar@enumarg
\def\magyar@opt@partnumber@@unchanged{\def\magyar@opt@@partnumber{0}}
\def\magyar@opt@partnumber@@huordinal{\def\magyar@opt@@partnumber{1}}
\def\magyar@opt@partnumber@@Huordinal{\def\magyar@opt@@partnumber{2}}
\let\magyar@opt@partnumber\magyar@enumarg
\def\magyar@opt@chapternumber@@unchanged{\def\magyar@opt@@chapternumber{0}}
\def\magyar@opt@chapternumber@@huordinal{\def\magyar@opt@@chapternumber{1}}
\def\magyar@opt@chapternumber@@Huordinal{\def\magyar@opt@@chapternumber{2}}
\let\magyar@opt@chapternumber\magyar@enumarg
\def\magyar@opt@accents@@high{\def\magyar@opt@@umlaut{\umlauthigh}}
\def\magyar@opt@accents@@low{\def\magyar@opt@@umlaut{\umlautlow\umlautelow}}
\def\magyar@opt@accents@@defaulthigh{\let\magyar@opt@@umlaut\@empty}
\let\magyar@opt@accents\magyar@enumarg
\def\magyar@opt@longcaption@@centered{\def\magyar@caption@centering{\centering}\def\magyar@caption@newline{\ }}
\def\magyar@opt@longcaption@@justified{\def\magyar@caption@centering{\relax}\def\magyar@caption@newline{\ }}
\def\magyar@opt@longcaption@@centernewline{\def\magyar@caption@centering{\centering}\def\magyar@caption@newline{\\\relax}}
\def\magyar@opt@longcaption@@none{\let\magyar@caption@centering\@empty}
\def\magyar@opt@longcaption@@unchanged{\let\magyar@caption@centering\@empty}
\let\magyar@opt@longcaption\magyar@enumarg
\def\magyar@opt@suggestions@@no {\def\magyar@opt@@suggestions{0}}
\def\magyar@opt@suggestions@@yes{\def\magyar@opt@@suggestions{1}}
\let\magyar@opt@suggestions\magyar@enumarg
\def\magyar@opt@appendixdot@@no {\def\@@magyar@appendixname{\appendixname}}
\def\magyar@opt@appendixdot@@yes{\def\@@magyar@appendixname{}}
\let\magyar@opt@appendixdot\magyar@enumarg
\def\magyar@opt@extras@@no {\def\magyar@opt@@extras{0}}
\def\magyar@opt@extras@@yes{\def\magyar@opt@@extras{1}}
\let\magyar@opt@extras\magyar@enumarg
\def\magyar@opt@chapterhead@@unchanged{\def\magyar@opt@@chapterhead{0}}
\def\magyar@opt@chapterhead@@no{\def\magyar@opt@@chapterhead{0}}
\def\magyar@opt@chapterhead@@yes{\def\magyar@opt@@chapterhead{1}}
\let\magyar@opt@chapterhead\magyar@enumarg
\def\magyar@opt@classmod@@no {\let\magyar@opt@@classmod\relax}
\def\magyar@opt@classmod@@unchanged{\let\magyar@opt@@classmod\relax}
\def\magyar@opt@classmod@@yes {\let\magyar@opt@@classmod\@empty}
\def\magyar@opt@classmod#1#2{%
\expandafter\ifx\csname magyar@opt@#1@@#2\endcsname\relax
\@namedef{magyar@opt@@#1}{#2}%
\else
\csname magyar@opt@#1@@#2\endcsname
\fi
}
\def\magyar@opt@shorthandcs#1#2{%
\def\reserved@a{#2}%
\def\reserved@b{none}%
\ifx\reserved@a\reserved@b
\def\magyar@opt@@shorthandcs{0}% overridable
\else
\def\magyar@opt@@shorthandcs{1}%
\ifcat\hfuzz\noexpand#2\relax% #2 is \shu \shu`tty is `tty
\def#2##1{\protect\@@magyar@shorthand}% Dat: ##1 is usually `_12
\else
\@namedef{#2}{\protect\@@magyar@shorthand}%
\fi
\fi
}
\def\magyar@opt@hunumbers@@no{\def\magyar@opt@@hunumbers{0}}
\def\magyar@opt@hunumbers@@yes{\def\magyar@opt@@hunumbers{1}}
\let\magyar@opt@hunumbers\magyar@enumarg
\let\magyar@opt@az\magyar@yesweaknoarg
\let\magyar@opt@told\magyar@yesweaknoarg
\let\magyar@opt@textqq\magyar@yesweaknoarg
\let\magyar@opt@emitdate\magyar@yesweaknoarg
\let\magyar@opt@mathreal\magyar@yesweaknoarg
\let\magyar@opt@refstruc\magyar@yesweaknoarg
\let\magyar@opt@mond\magyar@yesweaknoarg
\let\magyar@opt@hang\magyar@yesweaknoarg
\def\magyar@opt@theoremtitle@@unchanged{\def\magyar@opt@@theoremtitle{0}}
\def\magyar@opt@theoremtitle@@hu{\def\magyar@opt@@theoremtitle{1}}
\let\magyar@opt@theoremtitle\magyar@enumarg
\def\magyar@opt@footnote@@unchanged{\def\magyar@opt@@footnote{0}}
\def\magyar@opt@footnote@@yes{\def\magyar@opt@@footnote{1}}
\def\magyar@opt@footnote@@huplain{\def\magyar@opt@@footnote{2}}
\def\magyar@opt@footnote@@starplain{\def\magyar@opt@@footnote{3}}
\let\magyar@opt@footnote\magyar@enumarg
\def\magyar@opt@hutoday@@no{\def\magyar@opt@@hutoday{0}}
\def\magyar@opt@hutoday@@yes{\def\magyar@opt@@hutoday{1}}
\let\magyar@opt@hutoday\magyar@enumarg
\def\magyar@opt@shortrefcmds@@no{\def\magyar@opt@@shortrefcmds{0}}
\def\magyar@opt@shortrefcmds@@yes{\def\magyar@opt@@shortrefcmds{1}}
\let\magyar@opt@shortrefcmds\magyar@enumarg
\def\magyar@opt@dottedtocline@@fix{\def\magyar@opt@@dottedtocline{1}}
\def\magyar@opt@dottedtocline@@unchanged{\def\magyar@opt@@dottedtocline{0}}
\let\magyar@opt@dottedtocline\magyar@enumarg
\let\magyar@opt@amslevelfix\magyar@enumarg
\def\magyar@opt@amslevelfix@@unchanged{\def\magyar@opt@@amslevelfix{0}}
\dMf magyar@opt@amslevelfix@@fix-ams {\def\magyar@opt@@amslevelfix{1}}
\dMf magyar@opt@amslevelfix@@fix-all {\def\magyar@opt@@amslevelfix{2}}
\let\magyar@opt@amsuppercasefix\magyar@enumarg
\def\magyar@opt@amsuppercasefix@@unchanged{\def\magyar@opt@@amsuppercasefix{0}}
\dMf magyar@opt@amsuppercasefix@@fix-ams {\def\magyar@opt@@amsuppercasefix{1}}
\dMf magyar@opt@amsuppercasefix@@fix-all {\def\magyar@opt@@amsuppercasefix{2}}
\let\magyar@opt@captionfix\magyar@enumarg
\def\magyar@opt@captionfix@@unchanged{\def\magyar@opt@@captionfix{0}}
\def\magyar@opt@captionfix@@yes {\def\magyar@opt@@captionfix{1}}
\let\magyar@opt@babelmarkfix\magyar@enumarg
\def\magyar@opt@babelmarkfix@@unchanged{\def\magyar@opt@@babelmarkfix{0}}
\def\magyar@opt@babelmarkfix@@yes {\def\magyar@opt@@babelmarkfix{1}}
\let\magyar@opt@showfix\magyar@enumarg
\def\magyar@opt@showfix@@unchanged{\def\magyar@opt@@showfix{0}}
\def\magyar@opt@showfix@@yes {\def\magyar@opt@@showfix{1}}
\def\magyar@opt@labelenums@@unchanged{\def\magyar@opt@@labelenums{0}}
\dMf magyar@opt@labelenums@@hu-a {\def\magyar@opt@@labelenums{1}}
\dMf magyar@opt@labelenums@@hu-A {\def\magyar@opt@@labelenums{2}}
\dMf magyar@opt@labelenums@@hu-d {\def\magyar@opt@@labelenums{3}}
\let\magyar@opt@labelenums\magyar@enumarg
\def\magyar@opt@labelitems@@unchanged{\def\magyar@opt@@labelitems{0}}
\def\magyar@opt@labelitems@@hu {\def\magyar@opt@@labelitems{1}}
\let\magyar@opt@labelitems\magyar@enumarg
\def\magyar@opt@openqq@@unchanged{\def\magyar@opt@@openqq{0}}
\def\magyar@opt@openqq@@up{\def\magyar@opt@@openqq{1}}
\def\magyar@opt@openqq@@down{\def\magyar@opt@@openqq{2}}
\def\magyar@opt@openqq@@maybedown{\def\magyar@opt@@openqq{3}}
\let\magyar@opt@openqq\magyar@enumarg
\def\magyar@opt@frenchspacing@@unchanged{\def\magyar@opt@@frenchspacing{0}}% same as =no
\def\magyar@opt@frenchspacing@@no {\def\magyar@opt@@frenchspacing{1}}
\def\magyar@opt@frenchspacing@@yes{\def\magyar@opt@@frenchspacing{2}}
\let\magyar@opt@frenchspacing\magyar@enumarg
\dMf magyar@opt@afterindent@@force-no {\def\magyar@opt@@afterindent{0}}
\dMf magyar@opt@afterindent@@force-yes {\def\magyar@opt@@afterindent{1}}
\dMf magyar@opt@afterindent@@unchanged {\def\magyar@opt@@afterindent{9}}
\let\magyar@opt@afterindent\magyar@enumarg
\def\magyar@opt@postpara#1#2{%
\def\reserved@a{#2}%
\ifx#2\magyar@@unchanged
\let\magyar@opt@@paragraphs\@undefined
\else
\expandafter\def\csname magyar@opt@@#1\endcsname{#2}%
\let\magyar@opt@@paragraphs\@empty
\fi
}
\let\magyar@opt@postsubpara\magyar@opt@postpara
\let\magyar@opt@postdescription\magyar@opt@postpara
% --- Option processing code of \magyarOptions
%
% Example: \def\magyarOptions{titles=\quad,active=safe} \usepackage[magyar]{babel}
% Dat: Babel has \languageoptions, but it is quite weak and it's too late
% Dat: this is a complete rewrite based on examplep.sty
%** @param #1 to gobble a space token
%** @usage \magyar@doopt foo=bar,foo2=bar2,\hfuzz,%
\def\magyar@doopt#1,{%
\if,\noexpand#1,% ignore multiple commas (#1 is empty)
\expandafter\magyar@doopt
\else
\csname fi\endcsname% don't count as `\fi' when being skipped
\magyar@doopt@low#1,=,%
\fi
}
\@gobble\iftrue% \def\magyar@doopt@low contains `\fi'. Make it skippable.
\def\magyar@applyopt#1#2{\csname magyar@opt@#1\endcsname{#1}{#2}}%
%** @param #1 is here for gobbling space tokens
\def\magyar@doopt@low#1#2=#3,#4\fi{%
% Dat: Normal case: #1#2 is key, #3 is value, #4 is `=,'
% Dat: MissingArg case: #1#2 is `key,', #3 is empty, #4 is empty
% Dat: Terminator case: #1#2 is `\hfuzz,', #3 is empty, #4 is empty
% Dat: OnlySpace case: #1 is `,', #2 is empty, #3 is empty, #4 is empty
\ifx\relax#4\relax% MissingArg or Terminator
\ifx#1\hfuzz% Terminator
\else
\if,\noexpand#1\else% OnlySpace case
\if=\noexpand#1\magyar@doopt@missingkey#2% #2 already contains comma at end
\else \magyar@doopt@missingval#1#2\fi
\fi
\expandafter\expandafter\expandafter\magyar@doopt
\fi
\else% Normal
\expandafter\ifx\csname magyar@opt@#1#2\endcsname\relax
\@@magyar@error{Unknown option: #1#2 (= #3)}%
\else
\magyar@applyopt{#1#2}{#3}%
\fi
\expandafter\magyar@doopt
\fi
}
\def\magyar@doopt@missingkey#1,{%
\@@magyar@error{Key missing for value: #1}%
}
\def\magyar@doopt@missingval#1,{%
\@@magyar@error{Value (=) missing for option: #1}%
}
%** Dat: Spaces and newlines at end of #1 are not ignored, so please prefix
%** them with a comma, e.g \magyar@doopts{foo=bar, }
%** @param #1 comma-separated optoinname=value pairs
%\def\magyar@doopts#1{\magyar@doopt #1,\hfuzz,}%
\def\magyar@dooptions{%
\expandafter\ifx\csname opt@\CurrentOption.ldf.sty\endcsname\relax\else
% Usage: \PassOptionsToPackage{foo=bar}{magyar.ldf}
\expandafter\expandafter\expandafter
\magyar@doopt\csname opt@\CurrentOption.ldf.sty\endcsname,\hfuzz,%
\expandafter\let\csname opt@\CurrentOption.ldf.sty\endcsname\relax
\fi
\expandafter\ifx\csname \CurrentOption Options\endcsname\relax\else% \magyarOptions
\expandafter\expandafter\expandafter
\magyar@doopt\csname\CurrentOption Options\endcsname,\hfuzz,%
\expandafter\let\csname \CurrentOption Options\endcsname\relax
\fi
}
\def\magyar@do@option@low#1#2=#3=,\vfuzz{%
\ifx#1\hfuzz\else
%%\typeout{(#1#2)=(#3)}%
% vvv wastes some heap (\csname), but never mind
\fi
}
\magyar@opt@defaults{defaults}{over-1.4} % defaults=over-1.4 by default
\def\magyar@opt@@hdrtitleskip{\enskip}% !! option for that
\magyar@dooptions% in \magyarOptions
\ifnum\magyar@opt@@openqq=3 % =maybedown
\ifnum\magyar@opt@@active=0
\def\magyar@opt@@openqq{0}% =unchanged
\else
\def\magyar@opt@@openqq{2}% =down
\fi
\fi
\ifnum\magyar@opt@@partnumber >0 \let\magyar@needopt@hunumbers\@empty \fi
\ifnum\magyar@opt@@chapternumber>0 \let\magyar@needopt@hunumbers\@empty \fi
\expandafter\ifx\csname magyar@needopt@hunumbers\endcsname\relax\else
\ifnum\magyar@opt@@hunumbers=0
\@@magyar@error{(chapter|part)number=... needs hunumbers=yes}%
\magyar@opt@@hunumbers1
\fi
\def\magyar@hunumbers@noclassmod{%
\@@magyar@error{unsupported \string\documentclass,\MessageBreak
hunumbers=yes,chapternumber=...,partnumber=... disabled}%
}%
% This may get redefined to \@empty later.
\def\magyar@hunumbers@errmsg{\magyar@hunumbers@noclassmod}%
\AtBeginDocument\magyar@hunumbers@errmsg
\fi
\if0\magyar@opt@@shorthandcs\else
\if\magyar@opt@@active0%
\@@magyar@error{active=none implies shorthandcs=none}%
\magyar@opt@@active2 % active=safe
\fi
\fi
% Imp: undef \magyar\@opt@* to save memory
\@gobble\iftrue
%** Usage: `\if...\else\@@magyar@skiplong\fi ... \@gobble{^}', where {^} is in
%** its own line
\def\@@magyar@skiplong#1{%
\fi
%\typeout{--skipfrom:\the\inputlineno}
\bgroup% so ^} would close it
\catcode\string`^13 \lccode\string`~=\string`^
\lowercase{\let~\fi}% \lowercase because catcode of ^ in \let^ would have been already assigned
%\lowercase{\def~{\typeout{--skipto:\inputlineno}\fi}}%
\catcode\string`\\14 % comment -- avoid using hash memory
\catcode\string`$14 % %$
\iffalse
}
\@gobble\fi
\@namedef{extras\CurrentOption}{}%
% --- hyphenation=
\csname magyar@opt@@hypr\endcsname
\let\magyar@sugg@pa\@gobble
%\show\magyar@opt@@hyphenation
\ifx\magyar@opt@@hyphenation\@empty
% Hungarian words won't be hyphenated automatically
\expandafter\chardef\csname l@\CurrentOption\endcsname255
\@@magyar@skiplong\fi
% Define a warning, will be printed later.
\def\@@magyar@suggpa@req@def{%
\def\magyar@sugg@pa##1{%
\PackageWarningNoLine{##1.ldf}{%
Requested Hungarian hyphenation= patterns missing.\MessageBreak
To make LaTeX hyphenate Hungarian words, please\MessageBreak
modify language.dat and rerun initex or texconfig}}}%
% Define a warning, will be printed later.
\def\@@magyar@suggpa@all@def{%
\def\magyar@sugg@pa##1{%
\PackageWarningNoLine{##1.ldf}{%
All Hungarian hyphenation= patterns missing.\MessageBreak
To make LaTeX hyphenate Hungarian words, please\MessageBreak
modify language.dat and rerun initex or texconfig}}}%
\def\@@magyar@hyphenation@last#1\@@magyar@hyphenation@next#2\hfuzz{#1}%
\def\@@magyar@hyphenation@defcs#1#2{\ifx#1#2\else\chardef#1#2\fi}% Dat: \chardef\foo\foo doesn't work
\def\@@magyar@hyphenation@def#1{%
\expandafter\ifx\csname l@#1\endcsname\relax\else
\expandafter\expandafter\expandafter\@@magyar@hyphenation@defcs
\expandafter\expandafter\csname l@\CurrentOption\endcsname
\csname l@#1\endcsname
\@@magyar@hyphenation@last\fi}%
\def\@@magyar@hyphenation@next#1{%
\ifx#1\hfuzz
\else\if#1N% none
% Turn of hyphenation.
\expandafter\chardef\csname l@\CurrentOption\endcsname255
\@@magyar@hyphenation@last
\else\if#1C% use l@\CurrentOption if defined
\expandafter\ifx\csname l@\CurrentOption\endcsname\relax\else