diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/mwcls/mwbk.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/mwcls/mwbk.cls | 46 |
1 files changed, 31 insertions, 15 deletions
diff --git a/Master/texmf-dist/tex/latex/mwcls/mwbk.cls b/Master/texmf-dist/tex/latex/mwcls/mwbk.cls index ed3321f1fb3..15009a02852 100644 --- a/Master/texmf-dist/tex/latex/mwcls/mwbk.cls +++ b/Master/texmf-dist/tex/latex/mwcls/mwbk.cls @@ -21,7 +21,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesClass{mwbk} - [2003/05/09 v0.65 + [2009/08/30 v0.72 A LaTeX document class (MW)] \typeout{*** Beta version. Formatting may change} \typeout{*** in future versions of this class.} @@ -172,7 +172,7 @@ \setlength\parindent{1.5em} \fi \newdimen\@parindent -%%\parindent32pt % wartość testowa. Wyrzucić! +%%\parindent32pt % wartoĹÄ testowa. Wyrzucic! \@parindent\parindent \@lowpenalty 51 \@medpenalty 151 @@ -572,6 +572,16 @@ \def\mw@sectionx#1[#2]{% \@dblarg{\mw@sectionxx{#1}{#2}}} \def\mw@sectionxx#1#2[#3]#4{% + \if\mw@HeadingBreakBefore + \if@specialpage\else\thispagestyle{closing}\fi + \if@openright\cleardoublepage\else + \clearpage + \fi + \if\mw@HeadingBreakAfter + \thispagestyle{blank}\else + \thispagestyle{opening}\fi + \global\@topnum\z@ + \fi \edef\mw@HeadingLevel{\csname #1@level\endcsname \space}% space delimits level number! \ifHeadingNumbered @@ -580,7 +590,8 @@ \fi \ifHeadingNumbered \refstepcounter{#1}% - \protected@edef\HeadingNumber{\csname the#1\endcsname\relax}% + \protected@edef\HeadingNumber{\expandafter\noexpand +\csname the#1\endcsname\relax}% \else \let\HeadingNumber\@empty \fi @@ -588,16 +599,6 @@ \def\HeadingTOCText{#3}% \def\HeadingText{#4}% \def\mw@HeadingType{#1}% - \if\mw@HeadingBreakBefore - \if@specialpage\else\thispagestyle{closing}\fi - \if@openright\cleardoublepage\else - \clearpage - \fi - \if\mw@HeadingBreakAfter - \thispagestyle{blank}\else - \thispagestyle{opening}\fi - \global\@topnum\z@ - \fi %% \if\mw@HeadingRunIn \mw@runinheading @@ -616,6 +617,7 @@ \twocolumn \else \@topnewpage[\mw@normalheading]% + \mw@markandtoc \fi \else \mw@normalheading @@ -651,7 +653,11 @@ \csname \mw@HeadingType @head\endcsname \@@par \egroup - \mw@markandtoc + \ifnum0<% + \if@twocolumn0\else1\fi + \if\mw@HeadingWholeWidth0\else1\fi + \if\mw@HeadingBreakAfter1 \else0 \fi + \mw@markandtoc\fi \nobreak \vskip\csname\mw@HeadingType @postskip\endcsname \@afterheading @@ -1043,7 +1049,7 @@ \ifnum#1>\previous@toc@level \nobreak \else\ifnum#1<\previous@toc@level - \addpenalty\@secpenalty % czy to dobra wartość? + \addpenalty\@secpenalty % czy to dobra wartosc? \fi\fi \gdef\previous@toc@level{#1}% \vskip #2\relax @@ -1165,6 +1171,7 @@ \columnsep 35\p@ \twocolumn \chapter*{\indexname}% + \@mkboth{\indexname}{\indexname}% \thispagestyle{opening}\parindent\z@ \parskip\z@ \@plus .3\p@\relax \let\item\@idxitem @@ -1207,6 +1214,15 @@ \else \onecolumn \fi +\AtBeginDocument{\@ifpackageloaded{natbib}{% +\renewcommand\bibsection{\chapter*{\bibname}% + \@mkboth{\bibname}{\bibname}}% +}{}} +\def\@doendpe{\@endpetrue + \clubpenalty\@clubpenalty + \def\par{\@restorepar\everypar{}\par\@endpefalse}% + \everypar{{\setbox\z@\lastbox}\everypar{}\@endpefalse}% +} %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |