diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/jmlr')
-rw-r--r-- | Master/texmf-dist/source/latex/jmlr/jmlr.dtx | 177 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/jmlr/jmlr.ins | 2 |
2 files changed, 155 insertions, 24 deletions
diff --git a/Master/texmf-dist/source/latex/jmlr/jmlr.dtx b/Master/texmf-dist/source/latex/jmlr/jmlr.dtx index 77bd3952119..9cd8d215ec9 100644 --- a/Master/texmf-dist/source/latex/jmlr/jmlr.dtx +++ b/Master/texmf-dist/source/latex/jmlr/jmlr.dtx @@ -7,7 +7,7 @@ % -section "chapter" % -author "Nicola Talbot" % jmlr -% Created on 2014/9/29 12:01 +% Created on 2014/10/17 14:27 %\fi %\iffalse %<*package> @@ -49,7 +49,7 @@ \doxitem{Option}{option}{package options} -\CheckSum{4703} +\CheckSum{4791} \newcommand*{\appopt}[1]{\texttt{-{}-#1}} @@ -67,7 +67,7 @@ % \author{Nicola L. C. Talbot\\[10pt] %\url{http://www.dickimaw-books.com/}} % -% \date{2014-09-29 (version 1.19)} +% \date{2014-10-15 (version 1.20)} % \maketitle %\tableofcontents % @@ -1200,8 +1200,12 @@ %This command may be used to name the production editor. The command %may be omitted if not required. % -%See \sectionref{sec:modifytitle} for details on how to modify the -%layout of the title page. +%\begin{definition}[\DescribeMacro{\jmlrlocation}] +%\cs{jmlrlocation}\marg{location} +%\end{definition} +%This specifies the workshop location. By default this doesn't appear +%on the title page. See \sectionref{sec:modifytitle} for details on +%how to modify the layout of the title page. % %\section{Main Book Commands} % @@ -1711,7 +1715,7 @@ % Declare class and required TeX format: % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{jmlr}[2014/09/29 v1.19 (NLCT) Journal of Machine Learning Research] +\ProvidesClass{jmlr}[2014/10/15 v1.20 (NLCT) Journal of Machine Learning Research] % \end{macrocode} %\changes{1.10}{2011-01-05}{hyperref now loaded by jmlr instead of %jmlrbook} @@ -1825,6 +1829,7 @@ } % \end{macrocode} %\end{macro} +% %\begin{macro}{\nowcp} % \begin{macrocode} \newcommand*{\jmlrnowcp}{% @@ -1952,9 +1957,11 @@ plainpages=false} % \end{macrocode} % -% If this is the print version, need to disable the hyperlinks: % \begin{macrocode} \ifgrayscale +% \end{macrocode} +% If this is the print version, need to disable the hyperlinks: +% \begin{macrocode} \hypersetup{draft} \fi % \end{macrocode} @@ -2151,6 +2158,7 @@ Keywords:} \ignorespaces}% \renewcommand*{\title}[2][\@title]{% \def\@shorttitle{#1}% \def\@title{#2}% + \protected@write\@auxout{}{\string\jmlr@title{#1}{#2}}% \jmlrtitlehook } % \end{macrocode} @@ -2169,6 +2177,13 @@ Keywords:} \ignorespaces}% \newcommand*{\jmlrtitlehook}{} % \end{macrocode} %\end{macro} +%\begin{macro}{\jmlr@title} +%\changes{1.20}{2014/10/15}{new} +% AUX command provided for MakeJmlrBookGUI +% \begin{macrocode} +\newcommand*{\jmlr@title}[2]{} +% \end{macrocode} +%\end{macro} % %\begin{macro}{\author} % Override definition of \cs{author} to allow for an optional @@ -2177,11 +2192,16 @@ Keywords:} \ignorespaces}% \renewcommand*{\author}[2][]{% \def\@author{#2}% \def\@sauthor{#1}% + \def\@jmlr@aux@author{#2}\@onelevel@sanitize\@jmlr@aux@author \ifx\@sauthor\@empty + \let\@jmlr@aux@sauthor\@jmlr@aux@author \else \let\@shortauthor\@sauthor + \def\@jmlr@aux@sauthor{#1}\@onelevel@sanitize\@jmlr@aux@sauthor \fi \jmlrauthorhook + \protected@write\@auxout + {}{\string\jmlr@author{\@jmlr@aux@sauthor}{\@jmlr@aux@author}}% } % \end{macrocode} %\end{macro} @@ -2190,6 +2210,13 @@ Keywords:} \ignorespaces}% \newcommand*{\jmlrauthorhook}{} % \end{macrocode} %\end{macro} +%\begin{macro}{\jmlr@author} +%\changes{1.20}{2014/10/15}{new} +% AUX command provided for MakeJmlrBookGUI +% \begin{macrocode} +\newcommand*{\jmlr@author}[2]{} +% \end{macrocode} +%\end{macro} % %\begin{macro}{\@shortauthor} % \begin{macrocode} @@ -2345,6 +2372,13 @@ Keywords:} \ignorespaces}% } % \end{macrocode} %\end{macro} +%\begin{macro}{\addr} +%\changes{1.20}{2014/10/15}{initialised to nothing} +% Initialise to do nothing if used outside of \cs{author} +% \begin{macrocode} +\newcommand{\addr}{} +% \end{macrocode} +%\end{macro} %\begin{macro}{\@email} % \begin{macrocode} \def\@email{\hfill\small\mdseries\scshape}% @@ -2774,7 +2808,30 @@ Keywords:} \ignorespaces}% %\end{macro} %\begin{macro}{\jmlrworkshop} % \begin{macrocode} -\newcommand*{\jmlrworkshop}[1]{\renewcommand*{\@jmlrworkshop}{#1}} +\newcommand*{\jmlrworkshop}[1]{% + \renewcommand*{\@jmlrworkshop}{#1}% + \protected@write\@auxout{}{\string\jmlr@workshop{#1}}% +} +% \end{macrocode} +%\end{macro} +%\begin{macro}{\jmlr@workshop} +%\changes{1.20}{2014/10/15}{new} +% \begin{macrocode} +\newcommand*{\jmlr@workshop}[1]{} +% \end{macrocode} +%\end{macro} +%\begin{macro}{\date} +% \begin{macrocode} +\renewcommand*{\date}[1]{% + \renewcommand*{\@date}{#1}% + \protected@write\@auxout{}{\string\jmlr@date{#1}}% +} +% \end{macrocode} +%\end{macro} +%\begin{macro}{\jmlr@date} +%\changes{1.20}{2014/10/15}{new} +% \begin{macrocode} +\newcommand*{\jmlr@date}[1]{} % \end{macrocode} %\end{macro} %\begin{macro}{\@jmlrauthors} @@ -4271,7 +4328,7 @@ Keywords:} \ignorespaces}% % \end{macrocode} % Declare class: % \begin{macrocode} -\ProvidesClass{jmlrbook}[2014/09/29 v1.19 (NLCT) JMLR Book Style] +\ProvidesClass{jmlrbook}[2014/10/15 v1.20 (NLCT) JMLR Book Style] % \end{macrocode} % Need \sty{xkeyval} package to have key=value class options % \begin{macrocode} @@ -4282,11 +4339,39 @@ Keywords:} \ignorespaces}% \RequirePackage{setspace} % \end{macrocode} % -% Requires fink package to determine if the preface is in the main +% Path used to determine if the preface is in the main % document or in a separate file. +%\begin{macro}{\jmlrprefacefile} +%\changes{1.20}{2014/10/15}{new} +% \begin{macrocode} +\newcommand*\jmlrprefacepath{} +% \end{macrocode} +%\end{macro} +% The \sty{fink} package is now deprecated, so only use it if +% \sty{currfile} isn't installed. +% \begin{macrocode} +\IfFileExists{currfile.sty}% +{ + \RequirePackage{currfile} + \renewcommand*\jmlrprefacepath{\currfilepath} +}% +{% +% \end{macrocode} %\changes{1.11}{2011-03-24}{fink package now required} % \begin{macrocode} -\RequirePackage{fink} + \RequirePackage{fink} + \ifdef\finkpath + {% + \renewcommand*\jmlrprefacepath{\finkpath}% + } + {% +% \end{macrocode} +% \sty{fink} version too old. +% \begin{macrocode} + \ClassWarning{jmlrbook}{Install `currfile' package or update + `fink' package} + } +} % \end{macrocode} % Some packages need to be loaded before \sty{hyperref} so provide a % hook to do this: @@ -4346,15 +4431,33 @@ Keywords:} \ignorespaces}% \DeclareOptionX{nohtml}{\PassOptionsToClass{\CurrentOption}{jmlr}} % \end{macrocode} %\end{option} -% Pass \clsopt{wcp} and \clsopt{nowcp} options to \clsfmt{jmlr}. +%\begin{macro}{\jmlrprefaceheader} +%\changes{1.20}{2014/10/15}{new} +% \begin{macrocode} +\newcommand*{\jmlrprefaceheader}{% + \phantomsection + \chapter*{\prefacename}% + \addcontentsline{toc}{chapter}{\prefacename}% + \markboth{\prefacename}{\prefacename}% +} +% \end{macrocode} +%\end{macro} +% Pass \clsopt{wcp} and \clsopt{nowcp} options to \clsfmt{jmlr} and +% set preface header. %\begin{option}{wcp} % \begin{macrocode} -\DeclareOptionX{wcp}{\PassOptionsToClass{\CurrentOption}{jmlr}} +\DeclareOptionX{wcp}{% + \PassOptionsToClass{\CurrentOption}{jmlr}% + \renewcommand*{\jmlrprefaceheader}{\chapter*{\prefacename}} +} % \end{macrocode} %\end{option} %\begin{option}{nowcp} % \begin{macrocode} -\DeclareOptionX{nowcp}{\PassOptionsToClass{\CurrentOption}{jmlr}} +\DeclareOptionX{nowcp}{% + \PassOptionsToClass{\CurrentOption}{jmlr}% + \renewcommand*{\jmlrprefaceheader}{\chapter{\prefacename}} +} % \end{macrocode} %\end{option} % Pass \clsopt{tablecaptiontop} and \clsopt{tablecaptionbottom} options @@ -4419,10 +4522,10 @@ Keywords:} \ignorespaces}% % the print version when the \clsopt{pdfxa} option is used. %\changes{1.13}{2012/02/25}{added support for pdfx-1a} % \begin{macrocode} -\newcommand*{\jmlrwritepdfinfo}{% - \protected@write\@auxout{}{\string\jmlrbook@info{\xmpAuthor}{\xmpTitle}}% -} \ifgrayscale + \newcommand*{\jmlrwritepdfinfo}{% + \protected@write\@auxout{}{\string\jmlrbook@info{\xmpAuthor}{\xmpTitle}}% + } \ifjmlrpdfxa \def\convertDate{\getYear} {\catcode`\D=12 @@ -4443,9 +4546,7 @@ Keywords:} \ignorespaces}% \def\sep{</rdf:li><rdf:li>} \def\TextCopyright{\amp\hash x00A9;} \def\Title#1{\gdef\xmpTitle{#1}} - \let\xmpTitle\@empty \def\Author#1{\gdef\xmpAuthor{#1}} - \let\xmpAuthor\@empty \def\Keywords#1{\gdef\xmpKeywords{#1}} \let\xmpKeywords\@empty \let\xmpSubject\xmpKeywords @@ -4608,6 +4709,8 @@ Keywords:} \ignorespaces}% %\end{macro} % \begin{macrocode} \fi +\else + \newcommand*{\jmlrwritepdfinfo}{} \fi % \end{macrocode} % @@ -4618,6 +4721,13 @@ Keywords:} \ignorespaces}% \newcommand*{\jmlrbook@info}[2]{} % \end{macrocode} %\end{macro} +%\begin{macro}{\jmlrbook@location} +%\changes{1.20}{2014/10/15}{new} +% Not needed (information provided for MakeJmlrBookGUI) +% \begin{macrocode} +\newcommand*{\jmlrbook@location}[1]{} +% \end{macrocode} +%\end{macro} %\begin{macro}{\@post@hyperref} %\changes{1.16}{2012/05/15}{new} % \begin{macrocode} @@ -4699,10 +4809,10 @@ Keywords:} \ignorespaces}% % numbering should automatically be suppressed. %\changes{1.19}{2014/09/29}{changed to unstarred chapter} % \begin{macrocode} - \chapter{\prefacename} + \jmlrprefaceheader \protected@write\@mainauxout {}{\string\@prefacestart{\thepage}{\arabic{page}}}% - \protected@write\@mainauxout{}{\string\@prefacefile{\finkpath}{#1}}% + \protected@write\@mainauxout{}{\string\@prefacefile{\jmlrprefacepath}{#1}}% }% {% \protected@write\@mainauxout{}{\string\@prefaceend{\thepage}}% @@ -4795,24 +4905,35 @@ Keywords:} \ignorespaces}% % \end{macrocode} %\end{macro} % +%\begin{macro}{\jmlrtitlehook} +%\changes{1.20}{2014/10/15}{changed \cs{let} to \cs{def}} % Extra title information % \begin{macrocode} \renewcommand*\jmlrtitlehook{% \hypersetup{pdftitle={\@shorttitle}}% - \let\xmpTitle\@shorttitle + \def\xmpTitle{\@shorttitle}% \let\jmlrtitlehook\relax } +\providecommand*{\xmpTitle}{\@title}% +% \end{macrocode} +%\end{macro} +% +%\begin{macro}{\jmlrauthorhook} +%\changes{1.20}{2014/10/15}{changed \cs{let} to \cs{def}} +% \begin{macrocode} \renewcommand*\jmlrauthorhook{% \ifx\@sauthor\@empty \hypersetup{pdfauthor={\@author}}% \else \hypersetup{pdfauthor={\@sauthor}}% \fi - \let\xmpAuthor\@sauthor + \def\xmpAuthor{\@sauthor}% \let\jmlrauthorhook\relax \let\@shortauthor\@empty } +\providecommand*\xmpAuthor{\@author}% % \end{macrocode} +%\end{macro} %\begin{macro}{\subtitle} % \begin{macrocode} \newcommand*{\@subtitle}{} @@ -4853,6 +4974,16 @@ Keywords:} \ignorespaces}% \newcommand*{\team}[1]{\renewcommand*{\@team}{#1}} % \end{macrocode} %\end{macro} +%\begin{macro}{\jmlrlocation} +%\changes{1.20}{2014/10/15}{new} +% \begin{macrocode} +\newcommand*{\@jmlrlocation}{} +\newcommand*{\jmlrlocation}[1]{% + \renewcommand*{\@jmlrlocation}{#1}% + \protected@write\@auxout{}{\string\jmlrbook@location{#1}}% +} +% \end{macrocode} +%\end{macro} %\begin{macro}{\@productioneditorname} % \begin{macrocode} \newcommand*{\@productioneditorname}{Production Editor} diff --git a/Master/texmf-dist/source/latex/jmlr/jmlr.ins b/Master/texmf-dist/source/latex/jmlr/jmlr.ins index 94c27e1006c..f54ada2c4ee 100644 --- a/Master/texmf-dist/source/latex/jmlr/jmlr.ins +++ b/Master/texmf-dist/source/latex/jmlr/jmlr.ins @@ -1,4 +1,4 @@ -% jmlr.ins generated using makedtx version 1.1 2014/9/29 12:01 +% jmlr.ins generated using makedtx version 1.1 2014/10/17 14:27 \input docstrip \preamble |