]> rtime.felk.cvut.cz Git - modosist/iidtitlepage.git/commitdiff
Added ACM template
authorIstvan Modos <istvan.modos@cvut.cz>
Mon, 4 Mar 2019 07:22:16 +0000 (08:22 +0100)
committerIstvan Modos <istvan.modos@cvut.cz>
Mon, 4 Mar 2019 07:22:16 +0000 (08:22 +0100)
iidtitlepage.sty
title_page.tex

index 8a9e3541f63111e1a91107ca87c103eaaeecd01b..f9019c42316306597ee2d05e11b013657cea741c 100644 (file)
 \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}
+         }{}
        }
     }
 
     \nobibliography{bibfile}
 }
 
-\endinput
\ No newline at end of file
+\endinput
index 6f5ed5208cc1d1a4a954b14c0f35846441c21e2c..d404169c72898e0613cfe61337b3601b9919f310 100644 (file)
@@ -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.
 % 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}