LaTeX style for preprints published by the Applied Machine Learning Lab.
The style is derived from the official LaTeX style of Transactions on Machine Learning Research (TMLR), available at https://github.com/JmlrOrg/tmlr-style-file.
Copy the repository into your paper directory and start from _main.tex:
\documentclass[10pt]{article}
\usepackage{amlpreprint}
...
\bibliography{main}
\bibliographystyle{amlpreprint}Citations are author-year by default, e.g. \citet{key} gives "Hinton et al. (2006)" and \citep{key} gives "(Hinton et al., 2006)". For numeric IEEE-style citations, add the ieee option:
\usepackage[ieee]{amlpreprint}Options can be combined, e.g. \usepackage[ieee,maxbibnames=5]{amlpreprint}.
Then cite with \cite{key}, which gives "[1]", and multiple keys are sorted and compressed, e.g. "[1–3]". References are formatted with IEEEtran.bst in order of citation. Keep \bibliographystyle{amlpreprint} in both modes: it picks amlpreprint.bst or IEEEtran.bst to match the option.
In both modes, entries in the reference list show at most 10 author (or editor) names, followed by "et al.". Change the limit with maxbibnames:
\usepackage[maxbibnames=5]{amlpreprint} % 0 = list all authorsThis works through a small control file, <jobname>-bstctl.bib, which is generated at each LaTeX run and passed to BibTeX automatically (gitignored). In IEEE mode it uses IEEEtran's own @IEEEtranBSTCTL mechanism. IEEEtran replaces an author list identical to the previous entry's with "——", and after truncation that comparison uses the shortened list.
Authors, affiliations, corresponding authors and ORCID iDs:
\author[1,2]{First Author} % one call per author, optional affiliation marks
\author[1,3]{Second Author}
\affil[1]{University, City, Country}
\affil[2]{Institute, City, Country}
\affil[3]{Company, City, Country}
\email{[email protected]} % printed as "Corresponding author: ..."
\orcid{0000-0000-0000-0000} % printed as "ORCID iD: ..."\email and \orcid may be repeated; the labels switch to plural. With hyperref loaded, both become links.
The running header shows the author names on even pages and the title on odd pages. The title page has no header. If either is too long, override it:
\shorttitle{Short Title}
\shortauthors{Author et al.}Keywords are printed below the abstract as "Keywords Keyword1 · Keyword2 · …":
\keywords{Keyword1, Keyword2, Keyword3} % in the preambleThe PDF metadata (title, authors, keywords) is filled in from \title, \author and \keywords. Set other fields, or override these, with \hypersetup in the preamble:
\hypersetup{pdfsubject={cs.CL, cs.AI}}Build with
latexmk -pdf _main.tex_main.pdf shows the rendered example.
Put figure files in figures/ and table files in tables/. _main.tex sets \graphicspath{{figures/}}, so PDFs are included by file name:
\includegraphics[width=0.9\linewidth]{selective.pdf} % figures/selective.pdf
\input{figures/pipeline.tex} % TikZ figure
\input{tables/cost.tex} % tableThe style loads graphicx, booktabs, xcolor (with the table option, for \rowcolor) and caption. Tables use booktabs rules, no vertical lines, and alternate rows shaded with \rowcolor{gray!10} (see tables/cost.tex). TikZ is loaded by _main.tex, together with the libraries arrows.meta, positioning and shapes.geometric that figures/pipeline.tex needs.
All colours must be colour-blind safe. Use Paul Tol's muted scheme, which the style defines as named xcolor colours, in Tol's order: tolrose, tolindigo, tolsand, tolgreen, tolcyan, tolwine, tolteal, tololive, tolpurple, plus tolpalegrey for bad or missing data. For matplotlib:
TOL_MUTED = ["#CC6677", "#332288", "#DDCC77", "#117733", "#88CCEE",
"#882255", "#44AA99", "#999933", "#AA4499"]
TOL_BAD = "#DDDDDD"
plt.rcParams["axes.prop_cycle"] = plt.cycler(color=TOL_MUTED)| File | Purpose |
|---|---|
amlpreprint.sty |
The style (layout, title block, headings) |
amlpreprint.bst |
Author-year bibliography style for natbib (tmlr.bst plus the maxbibnames limit) |
IEEEtran.bst |
IEEE bibliography style for the ieee option (unmodified v1.14 from CTAN, LPPL 1.3) |
_main.tex, main.bib |
Example document and bibliography |
figures/ |
Figure files (selective.pdf from matplotlib, pipeline.tex in TikZ) |
tables/ |
Table files (cost.tex, the preferred table layout) |
math_commands.tex |
Optional notation macros from dlbook_notation (\laplace adjusted for newpxmath) |
fancyhdr.sty |
Vendored copy of fancyhdr, as in the TMLR template |
- Renamed from
tmlrtoamlpreprint(.styand.bst). - TMLR's
accepted/preprintoptions are gone. The document is always typeset as a de-anonymized preprint without TMLR header or OpenReview line (equivalent to TMLR'spreprintoption). ieeeoption for numeric IEEE citations (IEEEtran.bst) instead of the default author-year style.maxbibnamesoption: at most N names per reference entry, then "et al." (default 10).amlpreprint.bstis extended for this.- Compact author block (
\author[marks]{name},\affil,\email,\orcid) instead of TMLR's\name/\addr/\email/\ANDmacros. \keywordsprinted below the abstract, and PDF metadata filled in automatically.- Running header alternating authors and title, with
\shortauthors/\shorttitleoverrides. - Fonts: Palatino clone (TeX Gyre Pagella via
newpxtext/newpxmath) for text and math, Helvetica clone (TeX Gyre Heros) for sans serif, instead of Latin Modern. - Loads
graphicx,booktabs,xcolor[table]andcaption, defines the colour-blind safe Tol muted palette, and uses it for hyperref's link boxes. \tableofcontentsworks.tmlr.stydisables\addcontentsline, so the table of contents (and PDF bookmarks) stay empty.- The example document no longer redefines the TeX primitives
\monthand\year, so\todayworks. When porting a TMLR paper, delete the\def\month,\def\yearand\def\openreviewlines.
Licensed under the Apache License 2.0, see LICENSE. The TMLR style files this template is based on are Copyright their respective authors (Hugo Larochelle, Fabian Pedregosa, Chris J. Maddison and contributors, adapted from the ICLR and JMLR styles) and are distributed under the same license. Modified files carry a notice describing the changes.
IEEEtran.bst is Copyright (c) 2003-2015 Michael Shell and distributed unmodified under the LaTeX Project Public License 1.3.