]> rtime.felk.cvut.cz Git - modosist/iidtitlepage.git/blobdiff - iidtitlepage.sty
Each mdframed on its own line
[modosist/iidtitlepage.git] / iidtitlepage.sty
index a5f3e96ae10a580c7f5fc06b4026e3e08f9f86dc..4672c0ef1a837099f4660dfca921621acbf15c18 100644 (file)
@@ -1,6 +1,8 @@
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{iidtitlepage}
 
+\RequirePackage[utf8]{inputenc}
+\RequirePackage[czech]{babel}
 \RequirePackage{etoolbox}
 \RequirePackage{geometry}
 \RequirePackage{graphicx}
 \RequirePackage{mdframed}
 \RequirePackage{fancyhdr}
 
+\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}
 }
     \newcommand{\@IidTitlePageSourceCodes}{#1}
 }
 
+\newcommand{\IidTitlePageVideoLink}[1]{
+    \newcommand{\@IidTitlePageVideoLink}{#1}
+}
+
 \newcommand{\IidTitlePage}{
     \makeatletter
     \nobibliography*
@@ -59,6 +69,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}
+         }{}
        }
     }
 
 
         \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