From cfed44562985f2f168a5b2f6df46bcaec533d7e9 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 25 Mar 2011 22:31:43 +0000
Subject: jmlr 1.11 (24mar11)

git-svn-id: svn://tug.org/texlive/trunk@21830 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/jmlr/jmlrbook.cls | 115 +++++++++++++++++++++-----
 1 file changed, 93 insertions(+), 22 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/jmlr/jmlrbook.cls')

diff --git a/Master/texmf-dist/tex/latex/jmlr/jmlrbook.cls b/Master/texmf-dist/tex/latex/jmlr/jmlrbook.cls
index 0a67946d173..f05c4fc0dd9 100644
--- a/Master/texmf-dist/tex/latex/jmlr/jmlrbook.cls
+++ b/Master/texmf-dist/tex/latex/jmlr/jmlrbook.cls
@@ -41,7 +41,7 @@
 %% First editor:
 %% Second editor:
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{jmlrbook}[2011/01/05 v1.10 (NLCT) JMLR Book Style]
+\ProvidesClass{jmlrbook}[2011/03/24 v1.11 (NLCT) JMLR Book Style]
 \RequirePackage{xkeyval}
 \newcommand*{\jmlr@prehyperref}{}
 \define@key{jmlrbook.cls}{prehyperref}{%
@@ -90,12 +90,37 @@
      \expandafter\NAT@parse@date\NAT@date??????@@%
      \ifciteindex\NAT@index\fi}
 \RequirePackage{setspace}
+\RequirePackage{fink}
 \@twosidetrue
 \newif\if@openright
 \@openrighttrue
 \newif\if@mainmatter
 \newcommand*{\pagerule}[1][0pt]{\par\noindent
   \rule[#1]{\linewidth}{2pt}\par}
+\ifjmlrhtml
+  \newenvironment{preface}[1][preface]%
+  {%
+    \noindent\HCode{<h2>\prefacename</h2>}%
+  }%
+  {%
+  }
+\else
+  \newenvironment{preface}[1][preface]%
+  {%
+    \chapter{\prefacename}
+    \protected@write\@mainauxout
+      {}{\string\@prefacestart{\thepage}{\arabic{page}}}%
+    \protected@write\@mainauxout{}{\string\@prefacefile{\finkpath}{#1}}%
+  }%
+  {%
+    \protected@write\@mainauxout{}{\string\@prefaceend{\thepage}}%
+  }
+\fi
+\newcommand*{\prefacename}{Preface}
+\newcommand*{\@prefacefile}[2]{}
+\newcommand*{\@prefacestart}[2]{}
+\newcommand*{\@prefaceend}[1]{}
+\newcommand*{\@prefaceeditor}[1]{}
 \newcommand*{\chapterrefname}{Chapter}
 \newcommand*{\chaptersrefname}{Chapters}
 \newcommand*{\chapterref}[1]{%
@@ -253,27 +278,51 @@
 \newcommand{\postmainproductioneditor}{\par}
 \renewcommand{\maindatefont}{}
 \renewcommand{\postmaindate}{}
-\newenvironment{signoff}[2][The Editorial Team]{%
-  \def\Editor##1{\begin{tabular}{@{}l@{}}%
-    ##1%
-    \end{tabular}%
-    \par\vskip\baselineskip\noindent\ignorespaces
+\ifjmlrhtml
+  \newenvironment{signoff}[2][The Editorial Team]{%
+    \def\Editor##1{##1\par\vskip\baselineskip\noindent\ignorespaces}%
+    \def\@editorialteam{#1}%
+    \def\@signoffdate{#2}%
+    \par\vskip\baselineskip\noindent
+    \ifx\@signoffdate\@empty
+    \else
+      \emph{\@signoffdate}\par
+      \vskip\baselineskip\noindent
+    \fi
+    \ifx\@editorialteam\@empty
+    \else
+      \@editorialteam:\par\vskip\baselineskip
+    \fi
+    \noindent\ignorespaces
   }%
-  \def\@editorialteam{#1}%
-  \def\@signoffdate{#2}%
-  \par\vskip\baselineskip\noindent
-  \ifx\@signoffdate\@empty
-  \else
-    \emph{\@signoffdate}\par
-    \vskip\baselineskip\noindent
-  \fi
-  \ifx\@editorialteam\@empty
-  \else
-    \@editorialteam:\par\vskip\baselineskip
-  \fi
-  \noindent\ignorespaces
-}{%
-}
+  {%
+  }%
+\else
+  \newenvironment{signoff}[2][The Editorial Team]{%
+    \def\Editor##1{%
+      \protected@write\@mainauxout{}{\string\@prefaceeditor{##1}}%
+      \begin{tabular}{@{}l@{}}%
+      ##1%
+      \end{tabular}%
+      \par\vskip\baselineskip\noindent\ignorespaces
+    }%
+    \def\@editorialteam{#1}%
+    \def\@signoffdate{#2}%
+    \par\vskip\baselineskip\noindent
+    \ifx\@signoffdate\@empty
+    \else
+      \emph{\@signoffdate}\par
+      \vskip\baselineskip\noindent
+    \fi
+    \ifx\@editorialteam\@empty
+    \else
+      \@editorialteam:\par\vskip\baselineskip
+    \fi
+    \noindent\ignorespaces
+  }%
+  {%
+  }
+\fi
 \newenvironment{authorsignoff}{%
   \def\Author##1{\begin{tabular}{@{}l@{}}%
     ##1%
@@ -705,7 +754,6 @@ not permitted outside `jmlrpapers' environment}{}%
 }
 \newcommand*\l@chapterauthor[2]{%
   \ifnum \c@tocdepth >\m@ne
-    \addpenalty{-\@highpenalty}%
     \begingroup
       \parindent \z@ \rightskip \@pnumwidth
       \parfillskip -\@pnumwidth
@@ -784,6 +832,29 @@ not permitted outside `jmlrpapers' environment}{}%
 }
 \renewcommand*\bibsection{\section*{\refname}}
 \jmlrbookcommands
+\providecommand*{\SetNoLine}{\SetAlgoNoLine}
+\providecommand*{\SetVline}{\SetAlgoVlined}
+\providecommand*{\Setvlineskip}{\SetVlineSkip}
+\providecommand*{\SetLine}{\SetAlgoLined}
+\providecommand*{\dontprintsemicolon}{\DontPrintSemicolon}
+\providecommand*{\printsemicolon}{\PrintSemicolon}
+\providecommand*{\incmargin}{\IncMargin}
+\providecommand*{\decmargin}[1]{\DecMargin{-#1}}
+\providecommand*{\setnlskip}{\SetNlSkip}
+\providecommand*{\Setnlskip}{\SetNlSkip}
+\providecommand*{\setalcapskip}{\SetAlCapSkip}
+\providecommand*{\setalcaphskip}{\SetAlCapHSkip}
+\providecommand*{\nlSty}{\NlSty}
+\providecommand*{\Setnlsty}{\SetNlSty}
+\providecommand*{\linesnumbered}{\LinesNumbered}
+\providecommand*{\linesnotnumbered}{\LinesNotNumbered}
+\providecommand*{\linesnumberedhidden}{\LinesNumberedHidden}
+\providecommand*{\showln}{\ShowLn}
+\providecommand*{\showlnlabel}{\ShowLnLabel}
+\providecommand*{\nocaptionofalgo}{\NoCaptionOfAlgo}
+\providecommand*{\restorecaptionofalgo}{\RestoreCaptionOfAlgo}
+\providecommand*{\restylealgo}{\RestyleAlgo}
+\providecommand*{\Titleofalgo}{\TitleOfAlgo}
 \endinput
 %%
 %% End of file `jmlrbook.cls'.
-- 
cgit v1.2.3

