diff options
author | Karl Berry <karl@freefriends.org> | 2012-01-06 00:56:16 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-01-06 00:56:16 +0000 |
commit | 064060e7ba808e496c0d66919f339be2ef91e323 (patch) | |
tree | 29002a6a11864bccd1ca40836bcaa6dc5d5b77f1 /Master/texmf-dist/tex/latex/jmlr/jmlrbook.cls | |
parent | 2fa3ace8e2fef6e8c7c4336917808b63a1ccca21 (diff) |
jmlr 1.12 (5jan12)
git-svn-id: svn://tug.org/texlive/trunk@25029 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/jmlr/jmlrbook.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/jmlr/jmlrbook.cls | 77 |
1 files changed, 48 insertions, 29 deletions
diff --git a/Master/texmf-dist/tex/latex/jmlr/jmlrbook.cls b/Master/texmf-dist/tex/latex/jmlr/jmlrbook.cls index f05c4fc0dd9..74d58356431 100644 --- a/Master/texmf-dist/tex/latex/jmlr/jmlrbook.cls +++ b/Master/texmf-dist/tex/latex/jmlr/jmlrbook.cls @@ -7,7 +7,7 @@ %% jmlr.dtx (with options: `jmlrbook.cls,package') %% %% jmlr.dtx -%% Copyright 2011 Nicola Talbot +%% Copyright 2012 Nicola Talbot %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -41,11 +41,11 @@ %% First editor: %% Second editor: \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{jmlrbook}[2011/03/24 v1.11 (NLCT) JMLR Book Style] +\ProvidesClass{jmlrbook}[2012/01/05 v1.12 (NLCT) JMLR Book Style] \RequirePackage{xkeyval} -\newcommand*{\jmlr@prehyperref}{} -\define@key{jmlrbook.cls}{prehyperref}{% - \renewcommand*{\jmlr@prehyperref}{#1}} +\RequirePackage{setspace} +\RequirePackage{fink} +\providecommand*{\jmlrprehyperref}{} \newif\ifgrayscale \grayscalefalse \DeclareOptionX{color}{\grayscalefalse} @@ -89,8 +89,6 @@ \expandafter\NAT@split\NAT@temp?????@@% \expandafter\NAT@parse@date\NAT@date??????@@% \ifciteindex\NAT@index\fi} -\RequirePackage{setspace} -\RequirePackage{fink} \@twosidetrue \newif\if@openright \@openrighttrue @@ -338,15 +336,18 @@ \@ifundefined{c@example}{}{\setcounter{example}{0}}% } \renewcommand*{\contentsname}{Table of Contents} -\def\theHalgorithm{\thechapter.\thealgorithm} -\def\theHexample{\thechapter.\theexample} -\def\theHtheorem{\thechapter.\thetheorem} -\def\theHsection{\thechapter.\thesection} -\def\theHsubsection{\thechapter.\thesubsection} -\def\theHsubsubsection{\thechapter.\thesubsubsection} -\def\theHparagraph{\thechapter.\theparagraph} -\def\theHsubfigure{\thechapter.\thefigure.\thesubfigure} -\def\theHsubtable{\thechapter.\thetable.\thesubtable} +\def\theHalgorithm{\theHchapter.\thealgorithm} +\def\theHexample{\theHchapter.\theexample} +\def\theHtheorem{\theHchapter.\thetheorem} +\def\theHsection{\theHchapter.\thesection} +\def\theHsubsection{\theHchapter.\thesubsection} +\def\theHsubsubsection{\theHchapter.\thesubsubsection} +\def\theHparagraph{\theHchapter.\theparagraph} +\def\theHsubfigure{\theHfigure.\arabic{subfigure}} +\def\theHsubtable{\theHtable.\arabic{subtable}} +\def\theHfootnote{\theHchapter.\alpha{footnote}} +\def\theHtable{\theHchapter.\arabic{table}} +\def\theHfigure{\theHchapter.\arabic{figure}} \renewcommand*{\mailto}[1]{% \href{mailto:#1}{\nolinkurl{#1}}% } @@ -490,18 +491,24 @@ \graphicspath{{\@importdir}}% \def\jmlrmaketitlehook{% \label{}% + \def\titlebreak{ }% \addtomaincontents{toc}% - {\protect\contentsline{papertitle}{\@shorttitle}{\thepage}% + {% + \protect\contentsline{papertitle}{\@title}{\thepage}% {page.\thepage}}% - \pdfbookmark{\@shorttitle}{chapter.\thechapter}% + \pdfbookmark{\@shorttitle}{chapter.\theHchapter}% \def\@jmlr@authors@sep{ \& }% - \tocchapterpubauthor{\@jmlrauthors}% + \tocchapterpubauthor{\@jmlr@authors}% {% \@jmlrabbrvproceedings \ifx\@jmlrvolume\@empty \ifx\@jmlrpages\@empty\else\space\fi \else \space\@jmlrvolume + \ifx\@jmlrissue\@empty + \else + (\@jmlrissue)% + \fi \ifx\@jmlrpages\@empty\else:\fi \fi \ifx\@jmlrpages\@empty @@ -511,7 +518,7 @@ \fi \space\@jmlryear }% - \@write@author{#1}{\@jmlrauthors}% + \@write@author{#1}{\@jmlr@authors}% }% \def\InputIfFileExists##1##2##3{% \IfFileExists{##1}{% @@ -529,6 +536,7 @@ \gdef\@shortauthor{}% \gdef\@shorttitle{}% \gdef\@firstauthor{}% + \gdef\@jmlr@authors{\@jmlrauthors}% \gdef\@jmlrauthors{}% \gdef\@firstsurname{}% } @@ -547,24 +555,31 @@ not permitted outside `jmlrpapers' environment}{}% \graphicspath{{\@importdir}}% \def\jmlrmaketitlehook{% \label{}% + \def\titlebreak{ }% \addtomaincontents{toc}% - {\protect\contentsline{papertitle}{\@shorttitle}{\thepage}% + {% + \protect\contentsline{papertitle}{\@title}{\thepage}% {page.\thepage}}% - \pdfbookmark{\@shorttitle}{chapter.\thechapter}% + \pdfbookmark{\@shorttitle}{chapter.\theHchapter}% \def\@jmlr@authors@sep{ \& }% - \tocchapterpubauthor{\@jmlrauthors}% + \tocchapterpubauthor{\@jmlr@authors}% {% \@jmlrabbrvproceedings \ifx\@jmlrvolume\@empty \space \else - \space\@jmlrvolume:% + \space\@jmlrvolume + \ifx\@jmlrissue\@empty + \else + (\@jmlrissue)% + \fi + :% \fi \protect\articlepagesref{#1}% \ifx\@jmlryear\@empty\else,\fi \space\@jmlryear }% - \@write@author{#1}{\@jmlrauthors}% + \@write@author{#1}{\@jmlr@authors}% }% \def\InputIfFileExists##1##2##3{% \IfFileExists{##1}{% @@ -582,6 +597,7 @@ not permitted outside `jmlrpapers' environment}{}% \gdef\@shortauthor{}% \gdef\@shorttitle{}% \gdef\@firstauthor{}% + \gdef\@jmlr@authors{\@jmlrauthors}% \gdef\@jmlrauthors{}% \gdef\@firstsurname{}% } @@ -598,14 +614,16 @@ not permitted outside `jmlrpapers' environment}{}% \def\@extra@b@citeb{#1}% \def\@extra@binfo{#1}% \def\jmlrmaketitlehook{% + \def\titlebreak{ }% \addtomaincontents{toc}% - {\protect\contentsline{papertitle}{\@shorttitle}{\thepage}% + {% + \protect\contentsline{papertitle}{\@title}{\thepage}% {page.\thepage}}% \label{}% - \pdfbookmark{\@shorttitle}{chapter.\thechapter}% + \pdfbookmark{\@shorttitle}{chapter.\theHchapter}% \def\@jmlr@authors@sep{ \& }% - \tocchapterauthor{\@jmlrauthors}% - \@write@author{#1}{\@jmlrauthors}% + \tocchapterauthor{\@jmlr@authors}% + \@write@author{#1}{\@jmlr@authors}% \jmlrpages{}% \jmlrvolume{}% \jmlryear{}% @@ -630,6 +648,7 @@ not permitted outside `jmlrpapers' environment}{}% \gdef\@shortauthor{}% \gdef\@shorttitle{}% \gdef\@firstauthor{}% + \gdef\@jmlr@authors{\@jmlrauthors}% \gdef\@jmlrauthors{}% \gdef\@firstsurname{}% } |