summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/jmlr
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-02-28 00:35:20 +0000
committerKarl Berry <karl@freefriends.org>2012-02-28 00:35:20 +0000
commiteb73e4b0206537b52fa1542a2572854dae55e414 (patch)
tree5dccda4d958f78baa2eda1fab8ad684b317fe2cd /Master/texmf-dist/tex/latex/jmlr
parent3896a3ce963e514325035018b02583376d23aa6c (diff)
jmlr 1.13 (26feb12)
git-svn-id: svn://tug.org/texlive/trunk@25518 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/jmlr')
-rw-r--r--Master/texmf-dist/tex/latex/jmlr/jmlr.cls3
-rw-r--r--Master/texmf-dist/tex/latex/jmlr/jmlrbook.cls177
2 files changed, 175 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/jmlr/jmlr.cls b/Master/texmf-dist/tex/latex/jmlr/jmlr.cls
index 3e92bde0266..efdfac6b0f8 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}[2012/01/05 v1.12 (NLCT) Journal of Machine Learning Research]
+\ProvidesClass{jmlr}[2012/02/25 v1.13 (NLCT) Journal of Machine Learning Research]
\RequirePackage{xkeyval}
\providecommand*{\jmlrprehyperref}{}
\newif\if@openright
@@ -126,6 +126,7 @@
\RequirePackage[x11names]{xcolor}
\RequirePackage[algo2e,ruled]{algorithm2e}
\jmlrprehyperref
+\@ifundefined{@pre@hyperref}{}{\@pre@hyperref}
\usepackage{hyperref}
\usepackage{nameref}
\hypersetup{colorlinks,
diff --git a/Master/texmf-dist/tex/latex/jmlr/jmlrbook.cls b/Master/texmf-dist/tex/latex/jmlr/jmlrbook.cls
index 74d58356431..abeef492e1d 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}[2012/01/05 v1.12 (NLCT) JMLR Book Style]
+\ProvidesClass{jmlrbook}[2012/02/25 v1.13 (NLCT) JMLR Book Style]
\RequirePackage{xkeyval}
\RequirePackage{setspace}
\RequirePackage{fink}
@@ -61,6 +61,8 @@
\DeclareOptionX{10pt}{\PassOptionsToClass{\CurrentOption}{jmlr}}
\DeclareOptionX{11pt}{\PassOptionsToClass{\CurrentOption}{jmlr}}
\DeclareOptionX{12pt}{\PassOptionsToClass{\CurrentOption}{jmlr}}
+\define@boolkey{jmlrbook.cls}[jmlr]{pdfxa}[true]{}
+\jmlrpdfxafalse
\ProcessOptionsX
\@ifundefined{jmlrgrayscale}{}%
{%
@@ -70,6 +72,159 @@
\grayscaletrue
\fi
}
+\newcommand*{\jmlrwritepdfinfo}{}
+\ifgrayscale
+ \ifjmlrpdfxa
+ \def\convertDate{\getYear}
+ {\catcode`\D=12
+ \gdef\getYear D:#1#2#3#4{\edef\xYear{#1#2#3#4}\getMonth}
+ }
+ \def\getMonth#1#2{\edef\xMonth{#1#2}\getDay}
+ \def\getDay#1#2{\edef\xDay{#1#2}\getHour}
+ \def\getHour#1#2{\edef\xHour{#1#2}\getMin}
+ \def\getMin#1#2{\edef\xMin{#1#2}\getSec}
+ \def\getSec#1#2{\edef\xSec{#1#2}\getTZh}
+ {%
+ \catcode`\Z=12
+ \gdef\tmpz{Z}
+ }
+ \def\hash{\expandafter\@gobble\string\#}%
+ \def\amp{\expandafter\@gobble\string\&}%
+ \def\xmpAmp{\amp\hash x0026;}%
+ \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
+ \def\Creator#1{\gdef\xmpCreator{#1}}
+ \def\xmpCreator{\@pdfcreator}
+ \def\Producer#1{\gdef\xmpProducer{#1}}
+ \def\xmpProducer{pdfTeX}
+ \def\Volume#1{\gdef\xmpVolume{#1}}
+ \let\xmpVolume\@empty
+ \def\Issue#1{\gdef\xmpIssue{#1}}
+ \let\xmpIssue\@empty
+ \def\CoverDisplayDate#1{\gdef\xmpCoverDisplayDate{#1}}
+ \let\xmpCoverDisplayDate\@empty
+ \def\CoverDate#1{\gdef\xmpCoverDate{#1}}
+ \let\xmpCoverDate\@empty
+ \def\Copyright#1{\gdef\xmpCopyright{#1}}
+ \let\xmpCopyright\@empty
+ \def\Doi#1{\gdef\xmpDoi{#1}}
+ \let\xmpDoi\@empty
+ \def\Lastpage#1{\gdef\xmpLastpage{#1}}
+ \let\xmpLastpage\@empty
+ \def\Firstpage#1{\gdef\xmpFirstpage{#1}}
+ \let\xmpFirstpage\@empty
+ \def\Journaltitle#1{\gdef\xmpJournaltitle{#1}}
+ \let\xmpJournaltitle\@empty
+ \def\Journalnumber#1{\gdef\xmpJournalnumber{#1}}
+ \let\xmpJournalnumber\@empty
+ \def\Org#1{\gdef\xmpOrg{#1}}
+ \let\xmpOrg\@empty
+ \def\CreatorTool#1{\gdef\xmpCreatorTool{#1}}
+ \def\xmpCreatorTool{\xmpProducer}
+ \def\AuthoritativeDomain#1{\gdef\xmpAuthoritativeDomain{#1}}
+ \let\xmpAuthoritativeDomain\@empty
+ \def\findUUID#1{\edef\tmpstring{\pdfmdfivesum{#1}}
+ \expandafter\eightofnine\tmpstring\end}
+ \def\eightofnine#1#2#3#4#5#6#7#8#9\end{%
+ \xdef\eightchars{#1#2#3#4#5#6#7#8}
+ \fouroffive#9\end}
+ \def\fouroffive#1#2#3#4#5\end{\xdef\ffourchars{#1#2#3#4}
+ \sfouroffive#5\end}
+ \def\sfouroffive#1#2#3#4#5\end{\xdef\sfourchars{#1#2#3#4}
+ \tfouroffive#5\end}
+ \def\tfouroffive#1#2#3#4#5\end{\xdef\tfourchars{#1#2#3#4}
+ \xdef\laststring{#5}}
+ \def\uuid{\eightchars-%
+ \ffourchars-%
+ \sfourchars-%
+ \tfourchars-%
+ \laststring}
+ \def\getTZh#1{%
+ \def\TZprefix{#1}%
+ \ifx\TZprefix\tmpz
+ \def\xTZsign{+}%
+ \def\xTZh{00}%
+ \def\xTZm{00}%
+ \let\getTZnext\doConvDate
+ \else
+ \let\xTZsign\TZprefix
+ \let\getTZnext\getTZm
+ \fi
+ \getTZnext
+ }
+ \def\getTZm '#1#2'{%
+ \edef\xTZm{#1#2}%
+ \doConvDate
+ }
+ \def\doConvDate{%
+ \edef\convDate{\xYear-\xMonth-\xDay
+ T\xHour:\xMin:\xSec\xTZsign\xTZh:\xTZm}%
+ }
+ \newcommand{\@pre@hyperref}{%
+ \IfFileExists{FOGRA39L.icc}%
+ {%
+ \pdfminorversion=3
+ \pdfpageattr{/MediaBox[0 0 595 793]
+ /BleedBox[0 0 595 793]
+ /TrimBox[25 20 570 773]}%
+ \findUUID{\jobname.pdf}%
+ \edef\xmpdocid{\uuid}%
+ \findUUID{\pdfcreationdate}%
+ \edef\xmpinstid{\uuid}%
+ \InputIfFileExists{\jobname.xmpdata}{}{}%
+ \RequirePackage{xmpincl}%
+ \expandafter\convertDate\pdfcreationdate
+ \def\@pctchar{\expandafter\@gobble\string\%}
+ \def\@bchar{\expandafter\@gobble\string\\}
+ \immediate\pdfobj stream attr{/N 4} file{FOGRA39L.icc}
+ \edef\OBJ@CVR{\the\pdflastobj}
+ \pdfcatalog{/OutputIntents [ <<
+ /Type/OutputIntent
+ /S/GTS_PDFX
+ /OutputCondition (FOGRA39)
+ /OutputConditionIdentifier (FOGRA39 \@bchar(ISO Coated v2
+ 300\@pctchar\space \@bchar(ECI\@bchar)\@bchar))
+ /DestOutputProfile \OBJ@CVR\space 0 R
+ /RegistryName(http://www.color.org)
+ >> ]}
+ \input glyphtounicode.tex
+ \input glyphtounicode-cmr.tex
+ \pdfgentounicode=1
+ \RequirePackage[draft,pdftex,pdfpagemode=UseNone,bookmarks=false]{hyperref}%
+ }%
+ {%
+ \ClassError{jmlrbook}{Can't find `FOGRA39L.icc'}%
+ {Download ISOcoated\string_v2\string_330\string_bas.icc from
+ http://www.colormanagement.org/en/isoprofile.html
+ Rename it FOGRA39L.icc and put it in the pdfx folder}%
+ }%
+ }
+ \renewcommand*{\jmlrwritepdfinfo}{%
+ \begingroup
+ \let\&=\xmpAmp
+ \includexmp{pdfx-1a}%
+ \endgroup
+ \pdfinfo{
+ /Author(\xmpAuthor)%
+ /Title(\xmpTitle)%
+ /Creator(\xmpProducer)%
+ /CreationDate(\convDate)%
+ /ModDate(\convDate)%
+ /Producer(\xmpProducer)%
+ /Trapped /False
+ /GTS_PDFXVersion (PDF/X-1:2001)%
+ /GTS_PDFXConformance (PDF/X-1a:2001)%
+ }%
+ }
+ \fi
+\fi
\let\@org@LoadClass\LoadClass
\def\LoadClass#1{\let\LoadClass\@org@LoadClass\@org@LoadClass{jmlr}}
\@org@LoadClass{combine}
@@ -105,7 +260,7 @@
\else
\newenvironment{preface}[1][preface]%
{%
- \chapter{\prefacename}
+ \chapter*{\prefacename}
\protected@write\@mainauxout
{}{\string\@prefacestart{\thepage}{\arabic{page}}}%
\protected@write\@mainauxout{}{\string\@prefacefile{\finkpath}{#1}}%
@@ -144,6 +299,7 @@
}
\renewcommand*\jmlrtitlehook{%
\hypersetup{pdftitle={\@shorttitle}}%
+ \let\xmpTitle\@shorttitle
\let\jmlrtitlehook\relax
}
\renewcommand*\jmlrauthorhook{%
@@ -152,15 +308,28 @@
\else
\hypersetup{pdfauthor={\@sauthor}}%
\fi
+ \ifjmlrpdfxa
+ \let\xmpAuthor\@sauthor
+ \fi
\let\jmlrauthorhook\relax
\let\@shortauthor\@empty
}
\newcommand*{\@subtitle}{}
\newcommand*{\subtitle}[1]{\renewcommand*{\@subtitle}{#1}}
\newcommand*{\@volume}{\@jmlrvolume}
-\newcommand*{\volume}[1]{\renewcommand*{\@volume}{#1}}
+\newcommand*{\volume}[1]{%
+ \renewcommand*{\@volume}{#1}%
+ \ifjmlrpdfxa
+ \let\xmpVolume\@volume
+ \fi
+}
\newcommand*{\@issue}{\@jmlrissue}
-\newcommand*{\issue}[1]{\renewcommand*{\@issue}{#1}}
+\newcommand*{\issue}[1]{%
+ \renewcommand*{\@issue}{#1}%
+ \ifjmlrpdfxa
+ \let\xmpIssue\@issue
+ \fi
+}
\newcommand*{\thejmlrworkshop}{\@jmlrworkshop}
\newcommand*{\@team}{}
\newcommand*{\team}[1]{\renewcommand*{\@team}{#1}}