diff --git a/acm/config.tex b/acm/config.tex index e4fd049..f48fde0 100644 --- a/acm/config.tex +++ b/acm/config.tex @@ -1,16 +1,34 @@ % DO NOT MODIFY THIS FILE +\def\varStyleId{1} + +\ifx\varDocClass\undefined +\def \varDocClass{acmart} +\fi + +\ifx\varKeyvals\undefined +\def \varKeyvals{sigconf} +\fi + \newcommand{\cmdAuthors}{ - \input{preamble/authorsACM} + \input{acm/authors} } -\newcommand{\cmdKeywords}{ +%\newcommand{\cmdKeywords}{ +% \keywords{\varKeywords} +% \maketitle +%} + +\newcommand{\cmdAbstract}{ + \begin{abstract} + \varAbstract + \end{abstract} \keywords{\varKeywords} \maketitle } \newcommand{\cmdBibStyle}{ - \bibliographystyle{ACM-Reference-Format} + \bibliographystyle{bibliography/ACM-Reference-Format} } %% \BibTeX command to typeset BibTeX logo in the docs diff --git a/ieee/config.tex b/ieee/config.tex index 3ef071d..fcca9fb 100644 --- a/ieee/config.tex +++ b/ieee/config.tex @@ -1,18 +1,37 @@ % DO NOT MODIFY THIS FILE +\def\varStyleId{2} + +\ifx\varDocClass\undefined +\def \varDocClass{IEEEtran} +\fi + +\ifx\varKeyvals\undefined +\def \varKeyvals{conference} +\fi + \newcommand{\cmdAuthors}{ - \input{preamble/authorsIEEE} + \input{ieee/authors} \maketitle } -\newcommand{\cmdKeywords}{ - \begin{IEEEkeywords} - \varKeywords - \end{IEEEkeywords} +%\newcommand{\cmdKeywords}{ +% \begin{IEEEkeywords} +% \varKeywords +% \end{IEEEkeywords} +%} + +\newcommand{\cmdAbstract}{ + \begin{abstract} + \varAbstract + \end{abstract} + \begin{IEEEkeywords} + \varKeywords + \end{IEEEkeywords} } \newcommand{\cmdBibStyle}{ - \bibliographystyle{IEEEtran} + \bibliographystyle{bibliography/IEEEtran} } -\IEEEoverridecommandlockouts \ No newline at end of file +%\IEEEoverridecommandlockouts \ No newline at end of file diff --git a/llncs/config.tex b/llncs/config.tex index 0b084ff..56d6cda 100644 --- a/llncs/config.tex +++ b/llncs/config.tex @@ -1,14 +1,12 @@ % DO NOT MODIFY THIS FILE -\def\varStyleId{1} +\def\varStyleId{3} -\ifdefined\varDocClass -\else +\ifx\varDocClass\undefined \def \varDocClass{llncs} \fi -\ifdefined\varKeyvals -\else +\ifx\varKeyvals\undefined \def \varKeyvals{runningheads} \fi @@ -17,19 +15,36 @@ \maketitle } -\newcommand{\cmdKeywords}{ - \makeatletter - \def\lncsKeywords{} - \@for\varKeyword:={\varKeywords}\do{ - \ifx\lncsKeywords\empty - \else - \g@addto@macro\lncsKeywords{ \and} - \fi - \expandafter\g@addto@macro\expandafter\lncsKeywords\expandafter{\varKeyword} - } - \makeatother - \keywords{\lncsKeywords} +%\makeatletter +%\newcommand{\cmdKeywords}{ +% \def\lncsKeywords{} +% \@for\varKeyword:={\varKeywords}\do{ +% \ifx\lncsKeywords\empty +% \else +% \g@addto@macro\lncsKeywords{ \and} +% \fi +% \expandafter\g@addto@macro\expandafter\lncsKeywords\expandafter{\varKeyword} +% } +% \keywords{\lncsKeywords} +%} +%\makeatother + +\makeatletter +\newcommand{\cmdAbstract}{ + \begin{abstract} + \varAbstract + \def\lncsKeywords{} + \@for\varKeyword:={\varKeywords}\do{ + \ifx\lncsKeywords\empty + \else + \g@addto@macro\lncsKeywords{ \and} + \fi + \expandafter\g@addto@macro\expandafter\lncsKeywords\expandafter{\varKeyword} + } + \keywords{\lncsKeywords} + \end{abstract} } +\makeatother \newcommand{\cmdBibStyle}{ \bibliographystyle{bibliography/splncs04} diff --git a/main.tex b/main.tex index 8b41e74..c1b4cef 100644 --- a/main.tex +++ b/main.tex @@ -16,6 +16,7 @@ \input{preamble/variables} \input{\varStyle/config} + \documentclass[\varKeyvals]{\varDocClass} \input{preamble/packages} @@ -24,15 +25,7 @@ \begin{document} \title{\varTitle} \cmdAuthors - \begin{abstract} - \varAbstract - \if\varStyleId1 - %\cmdKeywords - \fi - \end{abstract} - \if\varStyleId2 - \cmdKeywords - \fi + \cmdAbstract \makeatletter \@for\varSection:={\varSections}\do{\input{sections/\varSection}} diff --git a/preamble/variables.tex b/preamble/variables.tex index e01ff45..0325297 100644 --- a/preamble/variables.tex +++ b/preamble/variables.tex @@ -26,7 +26,7 @@ } % Define keywords -\def \varKeywords{insert,comma-separated,keywords,here} +\def \varKeywords{insert, comma-separated, keywords, here} % Define the sections of the paper as a comma-separated list without spaces. % Each item in the list must refer to a tex file in the sections directory.