X-Git-Url: http://rtime.felk.cvut.cz/gitweb/modosist/iidtitlepage.git/blobdiff_plain/938f04721421a54c47e584f4c8ee510053b3d653..HEAD:/iidtitlepage.sty

diff --git a/iidtitlepage.sty b/iidtitlepage.sty
index a5f3e96..dd75c33 100644
--- a/iidtitlepage.sty
+++ b/iidtitlepage.sty
@@ -1,6 +1,8 @@
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{iidtitlepage}
 
+\RequirePackage[utf8]{inputenc}
+\RequirePackage[czech]{babel}
 \RequirePackage{etoolbox}
 \RequirePackage{geometry}
 \RequirePackage{graphicx}
@@ -11,24 +13,29 @@
 \RequirePackage{xcolor}
 \RequirePackage{mdframed}
 \RequirePackage{fancyhdr}
+\RequirePackage{url}
+
+\bibliographystyle{abbrv}
 
 \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{\IidTitlePageAuthors}[1]{
-    \newcommand{\@IidTitlePageAuthors}{#1}
-}
-
 \newcommand{\IidTitlePageYear}[1]{
     \newcommand{\@IidTitlePageYear}{#1}
 }
 
+\newcommand{\IidPublishedIn}[1]{
+    \newcommand{\@IidPublishedIn}{#1}
+}
+
 \newcommand{\IidTitlePageDoi}[1]{
     \newcommand{\@IidTitlePageDoi}{#1}
 }
@@ -41,6 +48,10 @@
     \newcommand{\@IidTitlePageSourceCodes}{#1}
 }
 
+\newcommand{\IidTitlePageVideoLink}[1]{
+    \newcommand{\@IidTitlePageVideoLink}{#1}
+}
+
 \newcommand{\IidTitlePage}{
     \makeatletter
     \nobibliography*
@@ -51,14 +62,17 @@
        \renewcommand{\headrulewidth}{0pt}
        \fancyfoot[L]{\footnotesize
          \iftoggle{iidelsevier}{
-             \copyright~\@IidTitlePageYear. This manuscript version is made available under the CC-BY-NC-ND 4.0 license, see \url{http://creativecommons.org/licenses/by-nc-nd/4.0/}
+             \copyright~\@IidTitlePageYear. This manuscript version is made available under the CC BY-NC-ND 4.0 license, see \url{http://creativecommons.org/licenses/by-nc-nd/4.0/}
          }{}
          \iftoggle{iidspringer}{
-             \copyright~\@IidTitlePageYear. This manuscript version is made available under the CC-BY-NC-ND 4.0 license, see \url{http://creativecommons.org/licenses/by-nc-nd/4.0/}
+             \copyright~\@IidTitlePageYear. This manuscript version is made available under the CC BY-NC-ND 4.0 license, see \url{http://creativecommons.org/licenses/by-nc-nd/4.0/}
          }{}
          \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}
+         }{}
        }
     }
 
@@ -74,29 +88,35 @@
 
         \vspace{0.3cm}
 
-        \noindent\nohyphens{{\large \@IidTitlePageAuthors}}
+        \noindent\nohyphens{{\large \@author}}
 
 
         \vfill
         \begin{mdframed}[topline=false,bottomline=false,rightline=false,linecolor=CtuBlue,linewidth=2pt]
 
         \ifdef{\@IidTitlePageDoi}{
-            \noindent\nohyphens{\textbf{DOI:} \url{\@IidTitlePageDoi}}
+	\vfill\noindent\nohyphens{\textbf{DOI:} \url{\@IidTitlePageDoi}}
         }
 
-
-        \noindent\nohyphens{\textbf{Cite as:} \bibentry{\@IidTitlePageCiteAs}}
+	\ifdef{\@IidTitlePageCiteAs}{
+	\vfill\noindent\nohyphens{\textbf{Cite as:} \bibentry{\@IidTitlePageCiteAs}}
+	}
 
 
         \ifdef{\@IidTitlePageSourceCodes}{
-            \noindent\nohyphens{\textbf{Source code:} \url{\@IidTitlePageSourceCodes}}
+	\vfill\noindent\nohyphens{\textbf{Source code:} \url{\@IidTitlePageSourceCodes}}
         }
 
+	\ifdef{\@IidTitlePageVideoLink}{
+	\vfill\noindent\nohyphens{\textbf{Video:} \url{\@IidTitlePageVideoLink}}
+	}
+
         \end{mdframed}
 
     \end{titlepage}
     \makeatother
     \restoregeometry{}
+    \nobibliography{bibfile}
 }
 
-\endinput
\ No newline at end of file
+\endinput
