texlive[44352] Master/texmf-dist: mwcls (14may17)

commits+karl at tug.org commits+karl at tug.org
Mon May 15 00:41:12 CEST 2017


Revision: 44352
          http://tug.org/svn/texlive?view=revision&revision=44352
Author:   karl
Date:     2017-05-15 00:41:11 +0200 (Mon, 15 May 2017)
Log Message:
-----------
mwcls (14may17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/mwcls/CZYTAJ
    trunk/Master/texmf-dist/doc/latex/mwcls/ChangeLog
    trunk/Master/texmf-dist/doc/latex/mwcls/README
    trunk/Master/texmf-dist/doc/latex/mwcls/mwclsdoc.pdf
    trunk/Master/texmf-dist/source/latex/mwcls/mwcls.dtx
    trunk/Master/texmf-dist/source/latex/mwcls/mwcls.ins
    trunk/Master/texmf-dist/tex/latex/mwcls/mw10.clo
    trunk/Master/texmf-dist/tex/latex/mwcls/mw11.clo
    trunk/Master/texmf-dist/tex/latex/mwcls/mw12.clo
    trunk/Master/texmf-dist/tex/latex/mwcls/mwart.cls
    trunk/Master/texmf-dist/tex/latex/mwcls/mwbk.cls
    trunk/Master/texmf-dist/tex/latex/mwcls/mwbk10.clo
    trunk/Master/texmf-dist/tex/latex/mwcls/mwbk11.clo
    trunk/Master/texmf-dist/tex/latex/mwcls/mwbk12.clo
    trunk/Master/texmf-dist/tex/latex/mwcls/mwrep.cls

Modified: trunk/Master/texmf-dist/doc/latex/mwcls/CZYTAJ
===================================================================
--- trunk/Master/texmf-dist/doc/latex/mwcls/CZYTAJ	2017-05-14 22:40:58 UTC (rev 44351)
+++ trunk/Master/texmf-dist/doc/latex/mwcls/CZYTAJ	2017-05-14 22:41:11 UTC (rev 44352)
@@ -1,34 +1,35 @@
 ------------------------------------------------------------------------
 
-Moje W\xB3asne KLaSy dokument\xF3w dla LaTeXa 2e
+Moje Własne KLaSy dokumentów dla LaTeXa 2e
 ==========================================
 
-Copyright 2000-2009 by Marcin Woli\'nski <wolinski at gust.org.pl>
+Copyright © 2000-2003, 2008-2009, 2017 by Marcin Woliński
+<wolinski at gust.org.pl>
 
 
-Pliki w tej paczce mog\xB1 by\xE6 dystrybuowane i/lub modyfikowane na
-zasadach okre\xB6lonych w LaTeX Project Public License, wersja 1.2
-lub (wedle preferencji U\xBFytkownika) dowolna p\xF3\xBCniejsza.
-Bie\xBF\xB1ca wersja tej licencji jest dost\xEApna pod adresem
+Pliki w tej paczce mogą być dystrybuowane i/lub modyfikowane na
+zasadach określonych w LaTeX Project Public License, wersja 1.2
+lub (wedle preferencji Użytkownika) dowolna późniejsza.
+Bieżąca wersja tej licencji jest dostępna pod adresem
    http://www.latex-project.org/lppl.txt
-natomiast wersja 1.2 lub jaka\xB6 p\xF3\xBCniejsza jest cz\xEA\xB6ci\xB1 dystrybucji
-LaTeXa w wersji 1999/12/01 i wszystkich p\xF3\xBCniejszych.
+natomiast wersja 1.2 lub jakaś późniejsza jest częścią dystrybucji
+LaTeXa w wersji 1999/12/01 i wszystkich późniejszych.
 
 
-Aby zainstalowa\xE6 moje klasy nale\xBFy wykona\xE6 polecenie
+Aby zainstalować moje klasy należy wykonać polecenie
 
 	latex mwcls.ins 
 
-a nast\xEApnie przenie\xB6\xE6 wygenerowane pliki (mwart.cls, mwrep.cls,
+a następnie przenieść wygenerowane pliki (mwart.cls, mwrep.cls,
 mwbk.cls, mw10.clo, mw11.clo, mw12.clo, mwbk10.clo, mwbk11.clo,
-mwbk12.clo) do jakiego\xB6 katalogu przeszukiwanego przez TeXa (w typowej
+mwbk12.clo) do jakiegoś katalogu przeszukiwanego przez TeXa (w typowej
 instalacji np. ${TEXMF}/tex/latex/mwcls/, gdzie ${TEXMF} jest
-korzeniem drzewa zawieraj\xB1cego pliki TeXowe).  W typowych instalacjach
-trzeba te\xBF uaktualni\xE6 baz\xEA danych o dost\xEApnych plikach (zwykle
+korzeniem drzewa zawierającego pliki TeXowe).  W typowych instalacjach
+trzeba też uaktualnić bazę danych o dostępnych plikach (zwykle
 polecenie texhash).
 
 
-Dokumentacja znajduje si\xEA w pliku mwclsdoc.pdf.
+Dokumentacja znajduje się w pliku mwclsdoc.pdf.
 
 
 ------------------------------------------------------------------------

Modified: trunk/Master/texmf-dist/doc/latex/mwcls/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/doc/latex/mwcls/ChangeLog	2017-05-14 22:40:58 UTC (rev 44351)
+++ trunk/Master/texmf-dist/doc/latex/mwcls/ChangeLog	2017-05-14 22:41:11 UTC (rev 44352)
@@ -1,3 +1,18 @@
+2017-05-13  Marcin Woli\xF1ski  <marcin at no-body>
+
+	* mwcls.dtx: Summary: Ulepszona wsp\xF3\xB3praca z hyperref
+
+	-- linki ze spisu tre\xB6ci nie trafia\xB3y, je\xB6li podpunkt zaczyna\xB3 si\xEA na
+	   g\xF3rze strony
+	-- hyperref nadpisywa\xB3 ustawienia podpis\xF3w tabel i rysunk\xF3w
+
+2009-09-27  Marcin Woli\xF1ski  <marcin at no-body>
+
+	* mwcls.dtx:
+	Nazwy polece\xF1 \sectsetup, \titlesetup, \captionsetup, \figuresetup,
+	\tablesetup zosta\xB3y zmienione na \...settings, \xBFeby si\xEA nie gryz\xB3o z
+	caption.sty.
+
 2009-09-27  marcin at encek  <marcin at encek>
 
 	* mwcls.dtx:

Modified: trunk/Master/texmf-dist/doc/latex/mwcls/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/mwcls/README	2017-05-14 22:40:58 UTC (rev 44351)
+++ trunk/Master/texmf-dist/doc/latex/mwcls/README	2017-05-14 22:41:11 UTC (rev 44352)
@@ -3,7 +3,8 @@
 My oWn document CLaSses for LaTeX 2e
 ====================================
 
-Copyright 2000-2009 by Marcin Woli\'nski <wolinski at gust.org.pl>
+Copyright © 2000-2003, 2008-2009, 2017 by Marcin Woliński
+<wolinski at gust.org.pl>
 
 
 Files in this bundle may be distributed and/or modified under the

Modified: trunk/Master/texmf-dist/doc/latex/mwcls/mwclsdoc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/mwcls/mwcls.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/mwcls/mwcls.dtx	2017-05-14 22:40:58 UTC (rev 44351)
+++ trunk/Master/texmf-dist/source/latex/mwcls/mwcls.dtx	2017-05-14 22:41:11 UTC (rev 44352)
@@ -1,6 +1,6 @@
 % \iffalse meta-comment -*- doctex -*- 
 %
-% Copyright 2000-2003,2008-2009 by Marcin Woli\'nski
+% Copyright 2000-2003,2008-2009,2017 by Marcin Woli\'nski
 % 
 % 
 % This work may be distributed and/or modified under the
@@ -12,7 +12,7 @@
 % version 1999/12/01 or later.
 % 
 % \fi
-% \CheckSum{3725}
+% \CheckSum{3809}
 %
 % \iffalse
 % \section{Identification}
@@ -38,7 +38,7 @@
 %<*driver>
 \ProvidesFile{mwcls.drv}
 %</driver>
-              [2009/09/27 v0.74
+              [2017/05/13 v0.75
 %<article|report|book> A LaTeX document class (MW)]
 %<10pt|11pt|12pt>      A document class size option (MW)]
 %<article|report|book>\typeout{*** Beta version.  Formatting may change}
@@ -59,6 +59,7 @@
 \usepackage{doc}
 \usepackage{polski}
 \usepackage[utf8]{inputenc}
+\usepackage[hidelinks]{hyperref}
 %    \end{macrocode}
 %
 %    We don't want everything to appear in the index
@@ -531,7 +532,7 @@
 %    przechowywana była rozwinięta postać argumentów (chcemy bowiem
 %    pewne wartości wprowadzać przez chwilowo definiowane nazwy
 %    symboliczne).  Nie narusza to kompatybilności, bo argumenty i~tak były
-%    rozwijane w~momencie wykonania \cs{mark}'a.
+%    rozwijane w~momencie wykonania \cs{mark}a.
 %
 %    W~jądrze \LaTeX a z~datą 2000/06/01 nastąpiły pożądane przez nas
 %    zmiany.  Można by więc wyrzucić nasze definicje.  Aby jednak
@@ -2324,7 +2325,24 @@
     {\HeadingNumberedtrue\@dblarg{\mw at sectionx{#1}}}}
 %    \end{macrocode}
 %  \end{macro}
-%
+% \begin{macro}{\mw at step@sectioning at counter}
+% This macro advances sectioning counter used for numbered
+% headings.  Hyperref hijacks \cs{refstepcounter} to add a link to the
+% title, so we have to be extra careful to avoid pagebreaks between
+% this and the heading.
+%    \begin{macrocode}
+\def\mw at step@sectioning at counter{%
+  \ifHeadingNumbered
+    \refstepcounter{\mw at HeadingType}%
+    \protected at edef\HeadingNumber{\expandafter\noexpand
+	\csname the\mw at HeadingType\endcsname\relax}%
+  \else
+    \mw at hyperref@phantom{\mw at HeadingType}%
+    \let\HeadingNumber\@empty
+  \fi
+}  
+%    \end{macrocode}
+% \end{macro}
 % 
 %  \begin{macro}{\mw at sectionx}
 %    
@@ -2365,14 +2383,6 @@
       \ifnum \mw at HeadingLevel>\c at secnumdepth \HeadingNumberedfalse \fi
 %<book> \if at mainmatter\else \HeadingNumberedfalse \fi
   \fi
-  \ifHeadingNumbered
-    \refstepcounter{#1}%
-    \protected at edef\HeadingNumber{\expandafter\noexpand
-	\csname the#1\endcsname\relax}%
-  \else
-    \mw at hyperref@phantom{#1}%
-    \let\HeadingNumber\@empty
-  \fi
   \def\HeadingRHeadText{#2}%
   \def\HeadingTOCText{#3}%
   \def\HeadingText{#4}%
@@ -2453,6 +2463,7 @@
   \if\mw at HeadingBreakBefore \hrule\@height\z@\nobreak
      \else \addpenalty\@secpenalty \fi
   \addvspace{\csname \mw at HeadingType @preskip\endcsname}%
+  \mw at step@sectioning at counter
   \bgroup\language\l at nohyphenation
    \raggedright
    \interlinepenalty\@M
@@ -2495,6 +2506,7 @@
         \global\@noskipsecfalse
        {\setbox\z@\lastbox}%
         \clubpenalty\@M
+        \mw at step@sectioning at counter
         \bgroup\language\l at nohyphenation
            \normalfont\sectsettings
            \csname \mw at HeadingType @head\endcsname
@@ -3624,6 +3636,56 @@
 %    \end{macrocode}
 %  \end{macro}
 %
+% \begin{macro}{\mw at caption@hyperref}
+% Niestety pakiet hyperref przedefiniowuje caption dlatego musimy
+% zasłonić jego redefinicję kolejną redefinicją zawierającą wersję
+% hyperrefową z dodaną kropką i z \cs{captionsettings}.
+%    \begin{macrocode}
+\long\def\mw at caption@hyperref#1[#2]#3{%
+  \expandafter\ifx\csname if at capstart\expandafter\endcsname
+                  \csname iftrue\endcsname
+    \global\let\@currentHref\hc at currentHref
+  \else
+    \hyper at makecurrent{\@captype}%
+  \fi
+  \@ifundefined{NR at gettitle}{%
+    \def\@currentlabelname{#2}%
+  }{%
+    \NR at gettitle{#2}%
+  }%
+  \par\addcontentsline{\csname ext@#1\endcsname}{#1}{%
+    \protect\numberline{\csname the#1\endcsname.}{\ignorespaces #2}%
+  }%
+  \begingroup
+    \@parboxrestore
+    \if at minipage
+      \@setminipage
+    \fi
+    \captionsettings
+    \expandafter\ifx\csname if at capstart\expandafter\endcsname
+                    \csname iftrue\endcsname
+      \global\@capstartfalse
+      \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces#3}%
+    \else
+      \@makecaption{\csname fnum@#1\endcsname}{%
+        \ignorespaces
+        \ifHy at nesting
+          \expandafter\hyper@@anchor\expandafter{\@currentHref}{#3}%
+        \else
+          \Hy at raisedlink{%
+            \expandafter\hyper@@anchor\expandafter{%
+              \@currentHref
+            }{\relax}%
+          }%
+          #3%
+        \fi
+      }%
+    \fi
+    \par
+  \endgroup
+}
+%    \end{macrocode}
+% \end{macro}
 % \begin{macro}{\@makecaption}
 %    The definition of this macro is |\long| in order to allow more
 %    then one paragraph in a caption.
@@ -4422,7 +4484,11 @@
       \xdef\@currentHref{#1*.\the\Hy at linkcounter}%
       \Hy at raisedlink{\hyper at anchorstart{\@currentHref}\hyper at anchorend}%
     }%
-}{}}
+    \let\@caption\mw at caption@hyperref
+  }{%
+    \let\mw at caption@hyperref\@undefined
+  }%
+}
 %    \end{macrocode}
 %
 % \subsection{\cs{clubpenalty}}

Modified: trunk/Master/texmf-dist/source/latex/mwcls/mwcls.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/mwcls/mwcls.ins	2017-05-14 22:40:58 UTC (rev 44351)
+++ trunk/Master/texmf-dist/source/latex/mwcls/mwcls.ins	2017-05-14 22:41:11 UTC (rev 44352)
@@ -15,7 +15,8 @@
 
 This is a generated file.
 
-Copyright 2000-2009 by Marcin Woli\string\'nski <wolinski at gust.org.pl>
+Copyright 2000-2003, 2008-2009, 2017 by Woli\string\'nski
+<wolinski at gust.org.pl>
 
 
 This work may be distributed and/or modified under the

Modified: trunk/Master/texmf-dist/tex/latex/mwcls/mw10.clo
===================================================================
--- trunk/Master/texmf-dist/tex/latex/mwcls/mw10.clo	2017-05-14 22:40:58 UTC (rev 44351)
+++ trunk/Master/texmf-dist/tex/latex/mwcls/mw10.clo	2017-05-14 22:41:11 UTC (rev 44352)
@@ -8,7 +8,8 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright 2000-2009 by Marcin Woli\'nski <wolinski at gust.org.pl>
+%% Copyright 2000-2003, 2008-2009, 2017 by Woli\'nski
+%% <wolinski at gust.org.pl>
 %% 
 %% 
 %% This work may be distributed and/or modified under the
@@ -20,7 +21,7 @@
 %% version 1999/12/01 or later.
 %% 
 \ProvidesFile{mw10.clo}
-              [2009/09/27 v0.74
+              [2017/05/13 v0.75
       A document class size option (MW)]
 \renewcommand\normalsize{%
    \@setfontsize\normalsize\@xpt\@xiipt

Modified: trunk/Master/texmf-dist/tex/latex/mwcls/mw11.clo
===================================================================
--- trunk/Master/texmf-dist/tex/latex/mwcls/mw11.clo	2017-05-14 22:40:58 UTC (rev 44351)
+++ trunk/Master/texmf-dist/tex/latex/mwcls/mw11.clo	2017-05-14 22:41:11 UTC (rev 44352)
@@ -8,7 +8,8 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright 2000-2009 by Marcin Woli\'nski <wolinski at gust.org.pl>
+%% Copyright 2000-2003, 2008-2009, 2017 by Woli\'nski
+%% <wolinski at gust.org.pl>
 %% 
 %% 
 %% This work may be distributed and/or modified under the
@@ -20,7 +21,7 @@
 %% version 1999/12/01 or later.
 %% 
 \ProvidesFile{mw11.clo}
-              [2009/09/27 v0.74
+              [2017/05/13 v0.75
       A document class size option (MW)]
 \renewcommand\normalsize{%
    \@setfontsize\normalsize\@xipt{13.6}%

Modified: trunk/Master/texmf-dist/tex/latex/mwcls/mw12.clo
===================================================================
--- trunk/Master/texmf-dist/tex/latex/mwcls/mw12.clo	2017-05-14 22:40:58 UTC (rev 44351)
+++ trunk/Master/texmf-dist/tex/latex/mwcls/mw12.clo	2017-05-14 22:41:11 UTC (rev 44352)
@@ -8,7 +8,8 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright 2000-2009 by Marcin Woli\'nski <wolinski at gust.org.pl>
+%% Copyright 2000-2003, 2008-2009, 2017 by Woli\'nski
+%% <wolinski at gust.org.pl>
 %% 
 %% 
 %% This work may be distributed and/or modified under the
@@ -20,7 +21,7 @@
 %% version 1999/12/01 or later.
 %% 
 \ProvidesFile{mw12.clo}
-              [2009/09/27 v0.74
+              [2017/05/13 v0.75
       A document class size option (MW)]
 \renewcommand\normalsize{%
    \@setfontsize\normalsize\@xiipt{14.5}%

Modified: trunk/Master/texmf-dist/tex/latex/mwcls/mwart.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/mwcls/mwart.cls	2017-05-14 22:40:58 UTC (rev 44351)
+++ trunk/Master/texmf-dist/tex/latex/mwcls/mwart.cls	2017-05-14 22:41:11 UTC (rev 44352)
@@ -8,7 +8,8 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright 2000-2009 by Marcin Woli\'nski <wolinski at gust.org.pl>
+%% Copyright 2000-2003, 2008-2009, 2017 by Woli\'nski
+%% <wolinski at gust.org.pl>
 %% 
 %% 
 %% This work may be distributed and/or modified under the
@@ -21,7 +22,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesClass{mwart}
-              [2009/09/27 v0.74
+              [2017/05/13 v0.75
  A LaTeX document class (MW)]
 \typeout{*** Beta version.  Formatting may change}
 \typeout{*** in future versions of this class.}
@@ -524,6 +525,16 @@
   \@ifstar
     {\HeadingNumberedfalse\@dblarg{\mw at sectionx{#1}}}%
     {\HeadingNumberedtrue\@dblarg{\mw at sectionx{#1}}}}
+\def\mw at step@sectioning at counter{%
+  \ifHeadingNumbered
+    \refstepcounter{\mw at HeadingType}%
+    \protected at edef\HeadingNumber{\expandafter\noexpand
+\csname the\mw at HeadingType\endcsname\relax}%
+  \else
+    \mw at hyperref@phantom{\mw at HeadingType}%
+    \let\HeadingNumber\@empty
+  \fi
+}
 \def\mw at sectionx#1[#2]{%
   \@dblarg{\mw at sectionxx{#1}{#2}}}
 \def\mw at sectionxx#1#2[#3]#4{%
@@ -540,14 +551,6 @@
   \ifHeadingNumbered
       \ifnum \mw at HeadingLevel>\c at secnumdepth \HeadingNumberedfalse \fi
   \fi
-  \ifHeadingNumbered
-    \refstepcounter{#1}%
-    \protected at edef\HeadingNumber{\expandafter\noexpand
-\csname the#1\endcsname\relax}%
-  \else
-    \mw at hyperref@phantom{#1}%
-    \let\HeadingNumber\@empty
-  \fi
   \def\HeadingRHeadText{#2}%
   \def\HeadingTOCText{#3}%
   \def\HeadingText{#4}%
@@ -599,6 +602,7 @@
   \if\mw at HeadingBreakBefore \hrule\@height\z@\nobreak
      \else \addpenalty\@secpenalty \fi
   \addvspace{\csname \mw at HeadingType @preskip\endcsname}%
+  \mw at step@sectioning at counter
   \bgroup\language\l at nohyphenation
    \raggedright
    \interlinepenalty\@M
@@ -624,6 +628,7 @@
         \global\@noskipsecfalse
        {\setbox\z@\lastbox}%
         \clubpenalty\@M
+        \mw at step@sectioning at counter
         \bgroup\language\l at nohyphenation
            \normalfont\sectsettings
            \csname \mw at HeadingType @head\endcsname
@@ -972,6 +977,49 @@
     \captionsettings
     \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
   \endgroup}
+\long\def\mw at caption@hyperref#1[#2]#3{%
+  \expandafter\ifx\csname if at capstart\expandafter\endcsname
+                  \csname iftrue\endcsname
+    \global\let\@currentHref\hc at currentHref
+  \else
+    \hyper at makecurrent{\@captype}%
+  \fi
+  \@ifundefined{NR at gettitle}{%
+    \def\@currentlabelname{#2}%
+  }{%
+    \NR at gettitle{#2}%
+  }%
+  \par\addcontentsline{\csname ext@#1\endcsname}{#1}{%
+    \protect\numberline{\csname the#1\endcsname.}{\ignorespaces #2}%
+  }%
+  \begingroup
+    \@parboxrestore
+    \if at minipage
+      \@setminipage
+    \fi
+    \captionsettings
+    \expandafter\ifx\csname if at capstart\expandafter\endcsname
+                    \csname iftrue\endcsname
+      \global\@capstartfalse
+      \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces#3}%
+    \else
+      \@makecaption{\csname fnum@#1\endcsname}{%
+        \ignorespaces
+        \ifHy at nesting
+          \expandafter\hyper@@anchor\expandafter{\@currentHref}{#3}%
+        \else
+          \Hy at raisedlink{%
+            \expandafter\hyper@@anchor\expandafter{%
+              \@currentHref
+            }{\relax}%
+          }%
+          #3%
+        \fi
+      }%
+    \fi
+    \par
+  \endgroup
+}
 \long\def\@makecaption#1#2{%
   \addvspace\abovecaptionskip
   \bgroup\centeredlast
@@ -1167,7 +1215,11 @@
       \xdef\@currentHref{#1*.\the\Hy at linkcounter}%
       \Hy at raisedlink{\hyper at anchorstart{\@currentHref}\hyper at anchorend}%
     }%
-}{}}
+    \let\@caption\mw at caption@hyperref
+  }{%
+    \let\mw at caption@hyperref\@undefined
+  }%
+}
 \def\@doendpe{\@endpetrue
   \clubpenalty\@clubpenalty
   \def\par{\@restorepar\everypar{}\par\@endpefalse}%

Modified: trunk/Master/texmf-dist/tex/latex/mwcls/mwbk.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/mwcls/mwbk.cls	2017-05-14 22:40:58 UTC (rev 44351)
+++ trunk/Master/texmf-dist/tex/latex/mwcls/mwbk.cls	2017-05-14 22:41:11 UTC (rev 44352)
@@ -8,7 +8,8 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright 2000-2009 by Marcin Woli\'nski <wolinski at gust.org.pl>
+%% Copyright 2000-2003, 2008-2009, 2017 by Woli\'nski
+%% <wolinski at gust.org.pl>
 %% 
 %% 
 %% This work may be distributed and/or modified under the
@@ -21,7 +22,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesClass{mwbk}
-              [2009/09/27 v0.74
+              [2017/05/13 v0.75
  A LaTeX document class (MW)]
 \typeout{*** Beta version.  Formatting may change}
 \typeout{*** in future versions of this class.}
@@ -569,6 +570,16 @@
   \@ifstar
     {\HeadingNumberedfalse\@dblarg{\mw at sectionx{#1}}}%
     {\HeadingNumberedtrue\@dblarg{\mw at sectionx{#1}}}}
+\def\mw at step@sectioning at counter{%
+  \ifHeadingNumbered
+    \refstepcounter{\mw at HeadingType}%
+    \protected at edef\HeadingNumber{\expandafter\noexpand
+\csname the\mw at HeadingType\endcsname\relax}%
+  \else
+    \mw at hyperref@phantom{\mw at HeadingType}%
+    \let\HeadingNumber\@empty
+  \fi
+}
 \def\mw at sectionx#1[#2]{%
   \@dblarg{\mw at sectionxx{#1}{#2}}}
 \def\mw at sectionxx#1#2[#3]#4{%
@@ -588,14 +599,6 @@
       \ifnum \mw at HeadingLevel>\c at secnumdepth \HeadingNumberedfalse \fi
  \if at mainmatter\else \HeadingNumberedfalse \fi
   \fi
-  \ifHeadingNumbered
-    \refstepcounter{#1}%
-    \protected at edef\HeadingNumber{\expandafter\noexpand
-\csname the#1\endcsname\relax}%
-  \else
-    \mw at hyperref@phantom{#1}%
-    \let\HeadingNumber\@empty
-  \fi
   \def\HeadingRHeadText{#2}%
   \def\HeadingTOCText{#3}%
   \def\HeadingText{#4}%
@@ -647,6 +650,7 @@
   \if\mw at HeadingBreakBefore \hrule\@height\z@\nobreak
      \else \addpenalty\@secpenalty \fi
   \addvspace{\csname \mw at HeadingType @preskip\endcsname}%
+  \mw at step@sectioning at counter
   \bgroup\language\l at nohyphenation
    \raggedright
    \interlinepenalty\@M
@@ -672,6 +676,7 @@
         \global\@noskipsecfalse
        {\setbox\z@\lastbox}%
         \clubpenalty\@M
+        \mw at step@sectioning at counter
         \bgroup\language\l at nohyphenation
            \normalfont\sectsettings
            \csname \mw at HeadingType @head\endcsname
@@ -1010,6 +1015,49 @@
     \captionsettings
     \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
   \endgroup}
+\long\def\mw at caption@hyperref#1[#2]#3{%
+  \expandafter\ifx\csname if at capstart\expandafter\endcsname
+                  \csname iftrue\endcsname
+    \global\let\@currentHref\hc at currentHref
+  \else
+    \hyper at makecurrent{\@captype}%
+  \fi
+  \@ifundefined{NR at gettitle}{%
+    \def\@currentlabelname{#2}%
+  }{%
+    \NR at gettitle{#2}%
+  }%
+  \par\addcontentsline{\csname ext@#1\endcsname}{#1}{%
+    \protect\numberline{\csname the#1\endcsname.}{\ignorespaces #2}%
+  }%
+  \begingroup
+    \@parboxrestore
+    \if at minipage
+      \@setminipage
+    \fi
+    \captionsettings
+    \expandafter\ifx\csname if at capstart\expandafter\endcsname
+                    \csname iftrue\endcsname
+      \global\@capstartfalse
+      \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces#3}%
+    \else
+      \@makecaption{\csname fnum@#1\endcsname}{%
+        \ignorespaces
+        \ifHy at nesting
+          \expandafter\hyper@@anchor\expandafter{\@currentHref}{#3}%
+        \else
+          \Hy at raisedlink{%
+            \expandafter\hyper@@anchor\expandafter{%
+              \@currentHref
+            }{\relax}%
+          }%
+          #3%
+        \fi
+      }%
+    \fi
+    \par
+  \endgroup
+}
 \long\def\@makecaption#1#2{%
   \addvspace\abovecaptionskip
   \bgroup\centeredlast
@@ -1226,7 +1274,11 @@
       \xdef\@currentHref{#1*.\the\Hy at linkcounter}%
       \Hy at raisedlink{\hyper at anchorstart{\@currentHref}\hyper at anchorend}%
     }%
-}{}}
+    \let\@caption\mw at caption@hyperref
+  }{%
+    \let\mw at caption@hyperref\@undefined
+  }%
+}
 \def\@doendpe{\@endpetrue
   \clubpenalty\@clubpenalty
   \def\par{\@restorepar\everypar{}\par\@endpefalse}%

Modified: trunk/Master/texmf-dist/tex/latex/mwcls/mwbk10.clo
===================================================================
--- trunk/Master/texmf-dist/tex/latex/mwcls/mwbk10.clo	2017-05-14 22:40:58 UTC (rev 44351)
+++ trunk/Master/texmf-dist/tex/latex/mwcls/mwbk10.clo	2017-05-14 22:41:11 UTC (rev 44352)
@@ -8,7 +8,8 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright 2000-2009 by Marcin Woli\'nski <wolinski at gust.org.pl>
+%% Copyright 2000-2003, 2008-2009, 2017 by Woli\'nski
+%% <wolinski at gust.org.pl>
 %% 
 %% 
 %% This work may be distributed and/or modified under the
@@ -20,7 +21,7 @@
 %% version 1999/12/01 or later.
 %% 
 \ProvidesFile{mwbk10.clo}
-              [2009/09/27 v0.74
+              [2017/05/13 v0.75
       A document class size option (MW)]
 \renewcommand\normalsize{%
    \@setfontsize\normalsize\@xpt\@xiipt

Modified: trunk/Master/texmf-dist/tex/latex/mwcls/mwbk11.clo
===================================================================
--- trunk/Master/texmf-dist/tex/latex/mwcls/mwbk11.clo	2017-05-14 22:40:58 UTC (rev 44351)
+++ trunk/Master/texmf-dist/tex/latex/mwcls/mwbk11.clo	2017-05-14 22:41:11 UTC (rev 44352)
@@ -8,7 +8,8 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright 2000-2009 by Marcin Woli\'nski <wolinski at gust.org.pl>
+%% Copyright 2000-2003, 2008-2009, 2017 by Woli\'nski
+%% <wolinski at gust.org.pl>
 %% 
 %% 
 %% This work may be distributed and/or modified under the
@@ -20,7 +21,7 @@
 %% version 1999/12/01 or later.
 %% 
 \ProvidesFile{mwbk11.clo}
-              [2009/09/27 v0.74
+              [2017/05/13 v0.75
       A document class size option (MW)]
 \renewcommand\normalsize{%
    \@setfontsize\normalsize\@xipt{13.6}%

Modified: trunk/Master/texmf-dist/tex/latex/mwcls/mwbk12.clo
===================================================================
--- trunk/Master/texmf-dist/tex/latex/mwcls/mwbk12.clo	2017-05-14 22:40:58 UTC (rev 44351)
+++ trunk/Master/texmf-dist/tex/latex/mwcls/mwbk12.clo	2017-05-14 22:41:11 UTC (rev 44352)
@@ -8,7 +8,8 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright 2000-2009 by Marcin Woli\'nski <wolinski at gust.org.pl>
+%% Copyright 2000-2003, 2008-2009, 2017 by Woli\'nski
+%% <wolinski at gust.org.pl>
 %% 
 %% 
 %% This work may be distributed and/or modified under the
@@ -20,7 +21,7 @@
 %% version 1999/12/01 or later.
 %% 
 \ProvidesFile{mwbk12.clo}
-              [2009/09/27 v0.74
+              [2017/05/13 v0.75
       A document class size option (MW)]
 \renewcommand\normalsize{%
    \@setfontsize\normalsize\@xiipt{14.5}%

Modified: trunk/Master/texmf-dist/tex/latex/mwcls/mwrep.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/mwcls/mwrep.cls	2017-05-14 22:40:58 UTC (rev 44351)
+++ trunk/Master/texmf-dist/tex/latex/mwcls/mwrep.cls	2017-05-14 22:41:11 UTC (rev 44352)
@@ -8,7 +8,8 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright 2000-2009 by Marcin Woli\'nski <wolinski at gust.org.pl>
+%% Copyright 2000-2003, 2008-2009, 2017 by Woli\'nski
+%% <wolinski at gust.org.pl>
 %% 
 %% 
 %% This work may be distributed and/or modified under the
@@ -21,7 +22,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesClass{mwrep}
-              [2009/09/27 v0.74
+              [2017/05/13 v0.75
  A LaTeX document class (MW)]
 \typeout{*** Beta version.  Formatting may change}
 \typeout{*** in future versions of this class.}
@@ -540,6 +541,16 @@
   \@ifstar
     {\HeadingNumberedfalse\@dblarg{\mw at sectionx{#1}}}%
     {\HeadingNumberedtrue\@dblarg{\mw at sectionx{#1}}}}
+\def\mw at step@sectioning at counter{%
+  \ifHeadingNumbered
+    \refstepcounter{\mw at HeadingType}%
+    \protected at edef\HeadingNumber{\expandafter\noexpand
+\csname the\mw at HeadingType\endcsname\relax}%
+  \else
+    \mw at hyperref@phantom{\mw at HeadingType}%
+    \let\HeadingNumber\@empty
+  \fi
+}
 \def\mw at sectionx#1[#2]{%
   \@dblarg{\mw at sectionxx{#1}{#2}}}
 \def\mw at sectionxx#1#2[#3]#4{%
@@ -558,14 +569,6 @@
   \ifHeadingNumbered
       \ifnum \mw at HeadingLevel>\c at secnumdepth \HeadingNumberedfalse \fi
   \fi
-  \ifHeadingNumbered
-    \refstepcounter{#1}%
-    \protected at edef\HeadingNumber{\expandafter\noexpand
-\csname the#1\endcsname\relax}%
-  \else
-    \mw at hyperref@phantom{#1}%
-    \let\HeadingNumber\@empty
-  \fi
   \def\HeadingRHeadText{#2}%
   \def\HeadingTOCText{#3}%
   \def\HeadingText{#4}%
@@ -617,6 +620,7 @@
   \if\mw at HeadingBreakBefore \hrule\@height\z@\nobreak
      \else \addpenalty\@secpenalty \fi
   \addvspace{\csname \mw at HeadingType @preskip\endcsname}%
+  \mw at step@sectioning at counter
   \bgroup\language\l at nohyphenation
    \raggedright
    \interlinepenalty\@M
@@ -642,6 +646,7 @@
         \global\@noskipsecfalse
        {\setbox\z@\lastbox}%
         \clubpenalty\@M
+        \mw at step@sectioning at counter
         \bgroup\language\l at nohyphenation
            \normalfont\sectsettings
            \csname \mw at HeadingType @head\endcsname
@@ -1001,6 +1006,49 @@
     \captionsettings
     \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
   \endgroup}
+\long\def\mw at caption@hyperref#1[#2]#3{%
+  \expandafter\ifx\csname if at capstart\expandafter\endcsname
+                  \csname iftrue\endcsname
+    \global\let\@currentHref\hc at currentHref
+  \else
+    \hyper at makecurrent{\@captype}%
+  \fi
+  \@ifundefined{NR at gettitle}{%
+    \def\@currentlabelname{#2}%
+  }{%
+    \NR at gettitle{#2}%
+  }%
+  \par\addcontentsline{\csname ext@#1\endcsname}{#1}{%
+    \protect\numberline{\csname the#1\endcsname.}{\ignorespaces #2}%
+  }%
+  \begingroup
+    \@parboxrestore
+    \if at minipage
+      \@setminipage
+    \fi
+    \captionsettings
+    \expandafter\ifx\csname if at capstart\expandafter\endcsname
+                    \csname iftrue\endcsname
+      \global\@capstartfalse
+      \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces#3}%
+    \else
+      \@makecaption{\csname fnum@#1\endcsname}{%
+        \ignorespaces
+        \ifHy at nesting
+          \expandafter\hyper@@anchor\expandafter{\@currentHref}{#3}%
+        \else
+          \Hy at raisedlink{%
+            \expandafter\hyper@@anchor\expandafter{%
+              \@currentHref
+            }{\relax}%
+          }%
+          #3%
+        \fi
+      }%
+    \fi
+    \par
+  \endgroup
+}
 \long\def\@makecaption#1#2{%
   \addvspace\abovecaptionskip
   \bgroup\centeredlast
@@ -1218,7 +1266,11 @@
       \xdef\@currentHref{#1*.\the\Hy at linkcounter}%
       \Hy at raisedlink{\hyper at anchorstart{\@currentHref}\hyper at anchorend}%
     }%
-}{}}
+    \let\@caption\mw at caption@hyperref
+  }{%
+    \let\mw at caption@hyperref\@undefined
+  }%
+}
 \def\@doendpe{\@endpetrue
   \clubpenalty\@clubpenalty
   \def\par{\@restorepar\everypar{}\par\@endpefalse}%



More information about the tex-live-commits mailing list