#  /====================================================================\
# | svmult.cls for LaTeXML                                               |
# | Generated by texscan --stub --base=article.cls svjour2.cls           |
#  >====================================================================<
# | Released to public domain.                                           |
# | Bruce Miller <bruce.miller@nist.gov>                                 |
# | http://dlmf.nist.gov/LaTeXML/                                        |
#  \====================================================================/

use strict;
use LaTeXML::Package;

#======================================================================
foreach my $option (qw(nospthms vecphys vecarrow norunningheads referee openbib oribibl chaprefs
		       footinfo openany 10pt 11pt 12pt twoside fleqn sechang
		       deutsch francais),
		    # These could affect numbering...
		    qw(numart book envcountresetchap envcountresetsect envcountsame envcountchap
		     envcountresetsect envcountresetchap),
		    qw(natbib)){
  DeclareOption($option, undef); }

# Other options could load sv<option>.clo !

ProcessOptions();
LoadClass('book');
RequirePackage('sv_support');

# Oddly, they allow * on \title to affect numbering (* => numart, none => book)
DefMacro('\title OptionalMatch:* {}', '\@add@frontmatter{ltx:title}{#1}');

#======================================================================
# And some additional stuff
DefMath('\ualpha',     "\x{03B1}", font=>{shape=>'upright',forceshape=>1}); # GREEK SMALL LETTER ALPHA
DefMath('\ubeta',      "\x{03B2}", font=>{shape=>'upright',forceshape=>1}); # GREEK SMALL LETTER BETA
DefMath('\uchi',       "\x{03C7}", font=>{shape=>'upright',forceshape=>1}); # GREEK SMALL LETTER CHI
DefMath('\udelta',     "\x{03B4}", font=>{shape=>'upright',forceshape=>1}); # GREEK SMALL LETTER DELTA
DefMath('\ugamma',     "\x{03B3}", font=>{shape=>'upright',forceshape=>1}); # GREEK SMALL LETTER GAMMA
DefMath('\umu',        "\x{03BC}", font=>{shape=>'upright',forceshape=>1}); # GREEK SMALL LETTER MU
DefMath('\unu',        "\x{03BD}", font=>{shape=>'upright',forceshape=>1}); # GREEK SMALL LETTER NU
DefMath('\upi',        "\x{03C0}", font=>{shape=>'upright',forceshape=>1}); # GREEK SMALL LETTER PI
DefMath('\utau',       "\x{03C4}", font=>{shape=>'upright',forceshape=>1}); # GREEK SMALL LETTER TAU

DefMath('\varDelta',   "\x{0394}",font=>{shape=>'italic'});
DefMath('\varGamma',   "\x{0393}",font=>{shape=>'italic'});
DefMath('\varLambda',  "\x{039B}",font=>{shape=>'italic'});
DefMath('\varOmega',   "\x{03A9}",font=>{shape=>'italic'});
DefMath('\varPhi',     "\x{03A6}",font=>{shape=>'italic'});
DefMath('\varPi',      "\x{03A0}",font=>{shape=>'italic'});
DefMath('\varPsi',     "\x{03A8}",font=>{shape=>'italic'});
DefMath('\varSigma',   "\x{03A3}",font=>{shape=>'italic'});
DefMath('\varTheta',   "\x{0398}",font=>{shape=>'italic'});
DefMath('\varUpsilon', "\x{03A5}",font=>{shape=>'italic'});
DefMath('\varXi',      "\x{039E}",font=>{shape=>'italic'});

DefConstructor('\bbbc',  "\x{2102}");#not sure if ok for the ones NOT of type I$
DefConstructor('\bbbf',  "\x{1D53D}");
DefConstructor('\bbbh',  "\x{210D}");
DefConstructor('\bbbk',  "\x{1D542}");
DefConstructor('\bbbm',  "\x{1D544}");
DefConstructor('\bbbn',  "\x{2115}");
DefConstructor('\bbbone',"\x{1D7D9}");
DefConstructor('\bbbp',  "\x{2119}");
DefConstructor('\bbbq',  "\x{211A}");
DefConstructor('\bbbr',  "\x{211D}");
DefConstructor('\bbbs',  "\x{1D54A}");
DefConstructor('\bbbt',  "\x{1D54B}");
DefConstructor('\bbbz',  "\x{2124}");

DefMath('\getsto', "\x{21C6}", role=>'ARROW');
DefMath('\lid',   "\x{2266}", role=>'RELOP', meaning=>'less-than-or-equals');
DefMath('\gid',   "\x{2267}", role=>'RELOP', meaning=>'greater-than-or-equals');
DefMath('\grole', "\x{2277}", role=>'RELOP', meaning=>'greater-than-or-less-than');
Let(T_CS('\qedsymbol'),   T_CS('\qed'));

DefMacro('\partsize','\Large');
DefMacro('\partstyle','\bfseries\boldmath');
DefMacro('\chapsize','\Large');
DefMacro('\chapstyle','\bfseries\boldmath');
DefMacro('\secsize','\large');
DefMacro('\secstyle','\bfseries\boldmath');
DefMacro('\subsecsize','\normalsize');
DefMacro('\subsecstyle','\bfseries\boldmath');

DefMacro('\chaptermark{}','');
DefMacro('\sectionmark{}','');
DefMacro('\subsectionmark{}','');
DefMacro('\tocauthorstyle','\itshape');
DefMacro('\toctitlestyle','\bfseries');
DefMacro('\tocaftauthskip','\z@');

DefMacro('\preface{}','\chapter*{#1}');
DefMacro('\prefacename','Preface');

DefMacro('\propositionname','Proposition');

DefRegister('\tocchpnum'=>Dimension(0));
DefRegister('\tocsecnum'=>Dimension('18pt'));
DefRegister('\tocsectotal'=>Dimension(0));
DefRegister('\tocsubsecnum'=>Dimension(0));
DefRegister('\tocsubsectotal'=>Dimension(0));
DefRegister('\tocsubsubsecnum'=>Dimension(0));
DefRegister('\tocsubsubsectotal'=>Dimension(0));
DefRegister('\tocparanum'=>Dimension(0));
DefRegister('\tocparatotal'=>Dimension(0));
DefRegister('\tocsubparanum'=>Dimension(0));

DefMacro('\dominitoc','');
DefMacro('\calctocindent','');

DefMacro('\clearheadinfo','');
DefMacro('\clearemptydoublepage','');

### Hmm,
# and apparently needs support for subfigures & subequations

1;
