From 55b8b1df8679aedef0c8c889fe47cac41392213a Mon Sep 17 00:00:00 2001 From: Filip Gralinski Date: Sat, 15 Jan 2022 22:22:43 +0100 Subject: [PATCH] Add ICML --- README.md | 1 + hooks/post_gen_project.sh | 9 ++ test/configs/icml.yml | 3 + .../_latex-templates/icml-template-meta.tex | 70 +++++++++++ .../_latex-templates/icml-template.tex | 118 ++++++++++++++++++ .../helpers/prepare-arxiv-package.sh | 7 ++ 6 files changed, 208 insertions(+) create mode 100644 test/configs/icml.yml create mode 100644 {{cookiecutter.paper_repo_name}}/_latex-templates/icml-template-meta.tex create mode 100644 {{cookiecutter.paper_repo_name}}/_latex-templates/icml-template.tex diff --git a/README.md b/README.md index 37551b7..ece982e 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ following templates are handled: * LLNCS (`llncs`) * EMNLP (`emnlp`) * NeurIPS (`neurips`) +* ICML (`icml`) * IEEE Access (`ieee-access`) * PolEval (`poleval`) * Msc thesis at Adam Mickiewicz University, Faculty of Mathematics and Computer Science (`amu`), diff --git a/hooks/post_gen_project.sh b/hooks/post_gen_project.sh index 61bc238..a58af38 100755 --- a/hooks/post_gen_project.sh +++ b/hooks/post_gen_project.sh @@ -79,6 +79,15 @@ elif [ "{{ cookiecutter.latex_template }}" == "neurips" ]; then cp -r _latex-templates/neurips-template.tex {{cookiecutter.paper_id}}.tex cp -r _latex-templates/neurips-template-meta.tex metadata.tex cp -r _latex-templates/neurips-checklist.tex checklist.tex +elif [ "{{ cookiecutter.latex_template }}" == "icml" ]; then + get_files "https://media.icml.cc/Conferences/ICML2022/Styles/icml2022.zip" \ + algorithm.sty \ + algorithmic.sty \ + fancyhdr.sty \ + icml2022.bst \ + icml2022.sty + cp -r _latex-templates/icml-template.tex {{cookiecutter.paper_id}}.tex + cp -r _latex-templates/icml-template-meta.tex metadata.tex elif [ "{{ cookiecutter.latex_template }}" == "ieee-access" ]; then get_files "https://template-selector.ieee.org/api/ieee-template-selector/template/541/download" \ bullet.png \ diff --git a/test/configs/icml.yml b/test/configs/icml.yml new file mode 100644 index 0000000..b86d0b5 --- /dev/null +++ b/test/configs/icml.yml @@ -0,0 +1,3 @@ + +default_context: + latex_template: 'icml' diff --git a/{{cookiecutter.paper_repo_name}}/_latex-templates/icml-template-meta.tex b/{{cookiecutter.paper_repo_name}}/_latex-templates/icml-template-meta.tex new file mode 100644 index 0000000..a3f0c5e --- /dev/null +++ b/{{cookiecutter.paper_repo_name}}/_latex-templates/icml-template-meta.tex @@ -0,0 +1,70 @@ +{% raw %} +% The \icmltitle you define below is probably too long as a header. +% Therefore, a short form for the running title is supplied here: + +{% endraw %} +\icmltitlerunning{ {{ cookiecutter.paper_title }} } + +\twocolumn[ +\icmltitle{ {{ cookiecutter.paper_title }} } +{% raw %} + +% It is OKAY to include author information, even for blind +% submissions: the style file will automatically remove it for you +% unless you've provided the [accepted] option to the icml2022 +% package. + +% List of affiliations: The first argument should be a (short) +% identifier you will use later to specify author affiliations +% Academic affiliations should list Department, University, City, Region, Country +% Industry affiliations should list Company, City, Region, Country + +% You can specify symbols, otherwise they are numbered in order. +% Ideally, you should not use this facility. Affiliations will be numbered +% in order of appearance and this is the preferred way. +\icmlsetsymbol{equal}{*} + +\begin{icmlauthorlist} + +{% endraw %} +\icmlauthor{ {{ cookiecutter.contributor_name }} }{equal,yyy} +{% raw %} +\icmlauthor{Firstname2 Lastname2}{equal,yyy,comp} +\icmlauthor{Firstname3 Lastname3}{comp} +\icmlauthor{Firstname4 Lastname4}{sch} +\icmlauthor{Firstname5 Lastname5}{yyy} +\icmlauthor{Firstname6 Lastname6}{sch,yyy,comp} +\icmlauthor{Firstname7 Lastname7}{comp} +%\icmlauthor{}{sch} +\icmlauthor{Firstname8 Lastname8}{sch} +\icmlauthor{Firstname8 Lastname8}{yyy,comp} +%\icmlauthor{}{sch} +%\icmlauthor{}{sch} +\end{icmlauthorlist} + +\icmlaffiliation{yyy}{Department of XXX, University of YYY, Location, Country} +\icmlaffiliation{comp}{Company Name, Location, Country} +\icmlaffiliation{sch}{School of ZZZ, Institute of WWW, Location, Country} + +\icmlcorrespondingauthor{Firstname1 Lastname1}{first1.last1@xxx.edu} +\icmlcorrespondingauthor{Firstname2 Lastname2}{first2.last2@www.uk} + +% You may provide any keywords that you +% find helpful for describing your paper; these are used to populate +% the "keywords" metadata in the PDF but will not be shown in the document +\icmlkeywords{Machine Learning, ICML} + +\vskip 0.3in +] + +% this must go after the closing bracket ] following \twocolumn[ ... + +% This command actually creates the footnote in the first column +% listing the affiliations and the copyright notice. +% The command takes one argument, which is text to display at the start of the footnote. +% The \icmlEqualContribution command is standard text for equal contribution. +% Remove it (just {}) if you do not need this facility. + +%\printAffiliationsAndNotice{} % leave blank if no need to mention equal contribution +\printAffiliationsAndNotice{\icmlEqualContribution} % otherwise use the standard text. +{% endraw %} diff --git a/{{cookiecutter.paper_repo_name}}/_latex-templates/icml-template.tex b/{{cookiecutter.paper_repo_name}}/_latex-templates/icml-template.tex new file mode 100644 index 0000000..2a670c9 --- /dev/null +++ b/{{cookiecutter.paper_repo_name}}/_latex-templates/icml-template.tex @@ -0,0 +1,118 @@ +{% raw %} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% [paper-cutter clarifications] +% +% DO NOT EDIT THIS FILE (unless you know what you are doing). +% THIS IS A FILE SUPPLIED BY THE TEMPLATE. +% PLEASE EDIT main.tex INSTEAD. +% +% Based on https://media.icml.cc/Conferences/ICML2022/Styles/icml2022.zip +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%% ICML 2022 EXAMPLE LATEX SUBMISSION FILE %%%%%%%%%%%%%%%%% + +\documentclass[nohyperref]{article} + +% Recommended, but optional, packages for figures and better typesetting: +\usepackage{microtype} +\usepackage{graphicx} +\usepackage{subfigure} +\usepackage{booktabs} % for professional tables + +% hyperref makes hyperlinks in the resulting PDF. +% If your build breaks (sometimes temporarily if a hyperlink spans a page) +% please comment out the following usepackage line and replace +% \usepackage{icml2022} with \usepackage[nohyperref]{icml2022} above. +\usepackage{hyperref} + + +% Attempt to make hyperref and algorithmic work together better: +\newcommand{\theHalgorithm}{\arabic{algorithm}} + +% Use the following line for the initial blind version submitted for review: +\usepackage{icml2022} + +% If accepted, instead use the following line for the camera-ready submission: +% \usepackage[accepted]{icml2022} + +% For theorems and such +\usepackage{amsmath} +\usepackage{amssymb} +\usepackage{mathtools} +\usepackage{amsthm} + +% if you use cleveref.. +\usepackage[capitalize,noabbrev]{cleveref} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% THEOREMS +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\theoremstyle{plain} +\newtheorem{theorem}{Theorem}[section] +\newtheorem{proposition}[theorem]{Proposition} +\newtheorem{lemma}[theorem]{Lemma} +\newtheorem{corollary}[theorem]{Corollary} +\theoremstyle{definition} +\newtheorem{definition}[theorem]{Definition} +\newtheorem{assumption}[theorem]{Assumption} +\theoremstyle{remark} +\newtheorem{remark}[theorem]{Remark} + +% Todonotes is useful during development; simply uncomment the next line +% and comment out the line below the next line to turn off comments +%\usepackage[disable,textsize=tiny]{todonotes} +\usepackage[textsize=tiny]{todonotes} + +\newcommand\bycite[1]{by~\citet{#1}} + +\input{config} +\input{extras} +\input{preamble} + +\begin{document} + +\input{metadata} + + +\begin{abstract} +\input{abstract} +\end{abstract} + +\input{main} + +\bibliography{bibliography} +\bibliographystyle{icml2022} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% APPENDIX +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\ifwithappendix +\newpage +\appendix +\onecolumn +\input{appendix} +\fi + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\end{document} + + +% This document was modified from the file originally made available by +% Pat Langley and Andrea Danyluk for ICML-2K. This version was created +% by Iain Murray in 2018, and modified by Alexandre Bouchard in +% 2019 and 2021 and by Csaba Szepesvari, Gang Niu and Sivan Sabato in 2022. +% Previous contributors include Dan Roy, Lise Getoor and Tobias +% Scheffer, which was slightly modified from the 2010 version by +% Thorsten Joachims & Johannes Fuernkranz, slightly modified from the +% 2009 version by Kiri Wagstaff and Sam Roweis's 2008 version, which is +% slightly modified from Prasad Tadepalli's 2007 version which is a +% lightly changed version of the previous year's version by Andrew +% Moore, which was in turn edited from those of Kristian Kersting and +% Codrina Lauth. Alex Smola contributed to the algorithmic style files. +{% endraw %} diff --git a/{{cookiecutter.paper_repo_name}}/helpers/prepare-arxiv-package.sh b/{{cookiecutter.paper_repo_name}}/helpers/prepare-arxiv-package.sh index ba904b4..abead9f 100755 --- a/{{cookiecutter.paper_repo_name}}/helpers/prepare-arxiv-package.sh +++ b/{{cookiecutter.paper_repo_name}}/helpers/prepare-arxiv-package.sh @@ -112,6 +112,13 @@ then elif [[ "$latex_template" == "neurips" ]] then copy_to_project neurips_2021.sty +elif [[ "$latex_template" == "icml" ]] +then + copy_to_project algorithm.sty \ + algorithmic.sty \ + fancyhdr.sty \ + icml2022.bst \ + icml2022.sty elif [[ "$latex_template" == "ieee-access" ]] then copy_to_project bullet.png ieeeaccess.cls IEEEtran.cls ieeeaccess.cls spotcolor.sty logo.png notaglinelogo.png