From: Istvan Modos Date: Mon, 4 Mar 2019 07:22:16 +0000 (+0100) Subject: Added ACM template X-Git-Url: http://rtime.felk.cvut.cz/gitweb/modosist/iidtitlepage.git/commitdiff_plain/0c52243b0c5f4cb04a010bc16f61cc5f0713a4ca Added ACM template --- diff --git a/iidtitlepage.sty b/iidtitlepage.sty index 8a9e354..f9019c4 100644 --- a/iidtitlepage.sty +++ b/iidtitlepage.sty @@ -19,16 +19,22 @@ \newtoggle{iidieee} \newtoggle{iidelsevier} \newtoggle{iidspringer} +\newtoggle{iidacm} \DeclareOption{ieee}{ \toggletrue{iidieee} } \DeclareOption{elsevier}{ \toggletrue{iidelsevier} } \DeclareOption{springer}{ \toggletrue{iidspringer} } +\DeclareOption{acm}{ \toggletrue{iidacm} } \ProcessOptions{} \newcommand{\IidTitlePageYear}[1]{ \newcommand{\@IidTitlePageYear}{#1} } +\newcommand{\IidPublishedIn}[1]{ + \newcommand{\@IidPublishedIn}{#1} +} + \newcommand{\IidTitlePageDoi}[1]{ \newcommand{\@IidTitlePageDoi}{#1} } @@ -59,6 +65,9 @@ \iftoggle{iidieee}{ \copyright~\@IidTitlePageYear\ IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works. }{} + \iftoggle{iidacm}{ + \copyright~ACM~\@IidTitlePageYear. This is the author's version of the work. It is posted here for your personal use. Not for redistribution. The definitive Version of Record was published in \@IidPublishedIn, \url{\@IidTitlePageDoi} + }{} } } @@ -100,4 +109,4 @@ \nobibliography{bibfile} } -\endinput \ No newline at end of file +\endinput diff --git a/title_page.tex b/title_page.tex index 6f5ed52..d404169 100644 --- a/title_page.tex +++ b/title_page.tex @@ -2,7 +2,7 @@ \documentclass[a4paper,12pt]{article} % Select the journal template for your manuscript. -% Options: elsevier, ieee, springer +% Options: elsevier, ieee, springer, acm \usepackage[elsevier]{iidtitlepage} % Mandatory: The title of the manuscript. @@ -11,9 +11,12 @@ % Mandatory: the authors. Will appear on the title page exactly as provided to the command. \author{Pál Erdős and Vašek Chvátal} -% Optional: DOI of the journal article. +% Optional (mandatory for ACM style): DOI of the journal article. \IidTitlePageDoi{https://doi.org/10.1007/s10479-016-2184-6} +% Mandatory only for ACM style: Source publication +\IidPublishedIn{Sample publication} + % Mandatory: year when the manuscript was produced. \IidTitlePageYear{2017}