From cfed44562985f2f168a5b2f6df46bcaec533d7e9 Mon Sep 17 00:00:00 2001 From: Karl Berry 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/jmlr.cls | 33 +++++++- Master/texmf-dist/tex/latex/jmlr/jmlrbook.cls | 115 +++++++++++++++++++++----- 2 files changed, 123 insertions(+), 25 deletions(-) (limited to 'Master/texmf-dist/tex/latex/jmlr') diff --git a/Master/texmf-dist/tex/latex/jmlr/jmlr.cls b/Master/texmf-dist/tex/latex/jmlr/jmlr.cls index 0b627dc3405..cf016afd3db 100644 --- a/Master/texmf-dist/tex/latex/jmlr/jmlr.cls +++ b/Master/texmf-dist/tex/latex/jmlr/jmlr.cls @@ -41,7 +41,7 @@ %% First editor: %% Second editor: \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{jmlr}[2011/01/05 v1.10 (NLCT) Journal of Machine Learning Research] +\ProvidesClass{jmlr}[2011/03/24 v1.11 (NLCT) Journal of Machine Learning Research] \RequirePackage{xkeyval} \providecommand*{\jmlr@prehyperref}{} \define@key{jmlr.cls}{prehyperref}{% @@ -86,7 +86,7 @@ \jmlrproceedings{JMLR}{Journal of Machine Learning Research}% } \newcommand*{\jmlrwcp}{% - \jmlrproceedings{JMLR WC\&P}{JMLR: Workshop and Conference Proceedings}% + \jmlrproceedings{JMLR W\&CP}{JMLR: Workshop and Conference Proceedings}% } \DeclareOptionX{nowcp}{\jmlrnowcp} \DeclareOptionX{wcp}{\jmlrwcp} @@ -355,6 +355,33 @@ Keywords:} \ignorespaces}% \def\nametag##1{##1}% \@name #1% } +\newcommand*{\jmlrabbrnamelist}[1]{% + \def\nametag##1{}% + \def\@jmlr@authors@sep{, }% + \def\@jmlr@namelist{}% + \@for\@thisname:=#1\do{% + \expandafter\@jmlrabbrname\expandafter{\@thisname}% + \ifx\@jmlr@namelist\@empty + \protected@edef\@jmlr@namelist{% + \@initials\space\@surname + }% + \else + \protected@edef\@jmlr@namelist{% + \@jmlr@namelist + \noexpand\@jmlr@authors@sep + \@initials\space\@surname + }% + \fi + }% + \def\@jmlr@authors@sep{ \& }% + \@jmlr@namelist +} +\newcommand*{\@jmlrabbrname}[1]{% + \def\@initials{}% + \def\@surname{}% + \def\@forenames{}% + \@parsename#1 \@nil\end@parsename +} \newcommand*{\Email}[1]{{\@email #1}} \def\jmlrpostauthor{\@endauthor\egroup \par @@ -833,7 +860,7 @@ Keywords:} \ignorespaces}% \@afterindentfalse \secdef\@chapter\@schapter} \newcommand\artchapter{% - \ClassError{jmlrwcp}{Chapters not permitted in articles}{}} + \ClassError{jmlr}{Chapters not permitted in articles}{}} \let\chapter\artchapter \def\@chaptoclabel{chapter} \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne 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{

\prefacename

}% + }% + {% + } +\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