12.07.2015 Views

jmlr: LaTeX2e Classes for the Journal of Machine Learning Research

jmlr: LaTeX2e Classes for the Journal of Machine Learning Research

jmlr: LaTeX2e Classes for the Journal of Machine Learning Research

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

\SetTitleElement\SetTitleElement{〈element〉}{〈pre〉}{〈post〉}where 〈element〉 can be: title, volume, issue 1 , subtitle, logo, team,author, date, productioneditor. The 〈pre〉 and 〈post〉 arguments specifywhat to do be<strong>for</strong>e and after <strong>the</strong> element. Note that \SetTitleElement doesnothing if that element hasn’t been set. For example, if \volume has been omittedor \volume{} is used, <strong>the</strong>n\SetTitleElement{volume}{\mainvolumefont}{\postmainvolume}will do nothing (so you don’t end up with Volume :).\IfTitleElement\IfTitleElement{〈element〉}{〈true part〉}{〈false part〉}This does 〈true part〉 if 〈element〉 has been set o<strong>the</strong>rwise it does 〈false part〉. Forexample, \postmainvolume is defined as:\newcommand{\postmainvolume}{%\IfTitleElement{subtitle}{}{:}\par\relax}This means that it will only print a colon after <strong>the</strong> volume number if <strong>the</strong> subtitlehas been set.The default definition <strong>of</strong> \titlebody is:\newcommand{\titlebody}{%\SetTitleElement{title}{\maintitlefont}{\postmaintitle}%\SetTitleElement{volume}{\mainvolumefont}{\postmainvolume}%\SetTitleElement{subtitle}{\mainsubtitlefont}{\postmainsubtitle}%\SetTitleElement{logo}{\mainlog<strong>of</strong>ont}{\postmainlogo}%\SetTitleElement{team}{\mainteamfont}{\postmainteam}%\SetTitleElement{author}{\mainauthorfont}{\postmainauthor}%\SetTitleElement{productioneditor}{\mainproductioneditorfont}%{\postmainproductioneditor}%}3.5 Potential PitfallsThe combine class and hyperref package are individually both easily broken bypackages that change certain internals and <strong>the</strong>y don’t ordinarily work toge<strong>the</strong>r.The <strong>jmlr</strong>book class applies patches to <strong>the</strong> internal referencing mechanism tomake <strong>the</strong>m work toge<strong>the</strong>r, but it’s a fairly fragile alliance. Some packages areknown to break it, <strong>for</strong> example subfig, pdfpages and geometry. This is why <strong>the</strong><strong>jmlr</strong> class checks <strong>for</strong> known problem packages and generates an error messageto dissuade authors from using <strong>the</strong>m. It’s likely that <strong>the</strong>re are o<strong>the</strong>r packages1 The default title page layout doesn’t use issue, but if required it can be set with\issue{〈number〉}31

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!