From 090fbbcd0ecc5c98682383a33b8c01cf0fdc11ba Mon Sep 17 00:00:00 2001 From: Filip Gralinski Date: Sat, 29 Oct 2022 13:07:02 +0200 Subject: [PATCH] Add scitepress template --- README.md | 1 + hooks/post_gen_project.sh | 9 +++ .../scitepress-template-meta.tex | 9 +++ .../_latex-templates/scitepress-template.tex | 59 +++++++++++++++++++ .../helpers/prepare-arxiv-package.sh | 7 +++ 5 files changed, 85 insertions(+) create mode 100644 {{cookiecutter.paper_repo_name}}/_latex-templates/scitepress-template-meta.tex create mode 100644 {{cookiecutter.paper_repo_name}}/_latex-templates/scitepress-template.tex diff --git a/README.md b/README.md index de68fec..71adfb1 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ following templates are handled: * IEEE Access (`ieee-access`) * IEEE Conf, e.g. FedCSIS (`ieee-conf`) * PolEval (`poleval`) +* SCITEPRESS (`scitepress`, e.g. CSEDU conference) * Msc thesis at Adam Mickiewicz University, Faculty of Mathematics and Computer Science (`amu`), template prepared by Bartłomiej Przybylski (https://github.com/bprzybylski/amuthesis) diff --git a/hooks/post_gen_project.sh b/hooks/post_gen_project.sh index af82436..660b3fe 100755 --- a/hooks/post_gen_project.sh +++ b/hooks/post_gen_project.sh @@ -118,6 +118,15 @@ elif [ "{{ cookiecutter.latex_template }}" == "ieee-access" ]; then elif [ "{{ cookiecutter.latex_template }}" == "ieee-conf" ]; then cp -r _latex-templates/ieee-conf-template.tex {{cookiecutter.paper_id}}.tex cp -r _latex-templates/ieee-conf-template-meta.tex metadata.tex +elif [ "{{ cookiecutter.latex_template }}" == "scitepress" ]; then + get_files "https://www.scitepress.org/documents/SCITEPRESS_Conference_Latex.zip" \ + apalike.bst \ + apalike.sty \ + article.cls \ + orcid.eps \ + SCITEPRESS.sty + cp -r _latex-templates/scitepress-template.tex {{cookiecutter.paper_id}}.tex + cp -r _latex-templates/scitepress-template-meta.tex metadata.tex elif [ "{{ cookiecutter.latex_template }}" = "poleval" ]; then cp -r _latex-templates/poleval-template.tex {{cookiecutter.paper_id}}.tex cp -r _latex-templates/poleval-template-meta.tex metadata.tex diff --git a/{{cookiecutter.paper_repo_name}}/_latex-templates/scitepress-template-meta.tex b/{{cookiecutter.paper_repo_name}}/_latex-templates/scitepress-template-meta.tex new file mode 100644 index 0000000..0e75bc1 --- /dev/null +++ b/{{cookiecutter.paper_repo_name}}/_latex-templates/scitepress-template-meta.tex @@ -0,0 +1,9 @@ +{% raw %} +\title{ {{ cookiecutter.paper_title }} } + +\author{\authorname{ {{cookiecutter.main_contributor_name}}\sup{1}\orcidAuthor{0000-0000-0000-0000}, Second Author Name\sup{1}\orcidAuthor{0000-0000-0000-0000} and Third Author Name\sup{2}\orcidAuthor{0000-0000-0000-0000}} +\affiliation{\sup{1}Institute of Problem Solving, XYZ University, My Street, MyTown, MyCountry} +\affiliation{\sup{2}Department of Computing, Main University, MySecondTown, MyCountry} +\email{\{f\_author, s\_author\}@ips.xyz.edu, t\_author@dc.mu.edu} +} +{% endraw %} diff --git a/{{cookiecutter.paper_repo_name}}/_latex-templates/scitepress-template.tex b/{{cookiecutter.paper_repo_name}}/_latex-templates/scitepress-template.tex new file mode 100644 index 0000000..74e104e --- /dev/null +++ b/{{cookiecutter.paper_repo_name}}/_latex-templates/scitepress-template.tex @@ -0,0 +1,59 @@ +{% raw %} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% [paper-cutter clarifications] +% +% DO NOT EDIT THIS FILE (unless you know what you are doing). +% THIS IS A FILE SUPPLIED BY THE TEMPLATE. +% PLEASE EDIT main.tex INSTEAD. +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\documentclass[a4paper,twoside]{article} + +\usepackage{epsfig} +\usepackage{subcaption} +\usepackage{calc} +\usepackage{amssymb} +\usepackage{amstext} +\usepackage{amsmath} +\usepackage{amsthm} +\usepackage{multicol} +\usepackage{pslatex} +\usepackage{apalike} +\usepackage[bottom]{footmisc} + +\newcommand{\citep}{\cite} +\newcommand{\citet}{\cite} +\newcommand\bycite[1]{in~\citet{#1}} + +\input{config} +\input{extras} +\input{preamble} + +\usepackage{SCITEPRESS} + +\begin{document} + +\input{metadata.tex} + +\keywords{% + \input{keywords} +} + +\abstract{% + \input{abstract} +} + +\input{main} + + +\bibliographystyle{apalike} +{\small +\bibliography{bibliography}} + +\ifwithappendix +\input{appendix} +\fi + +\end{document} +{% endraw %} diff --git a/{{cookiecutter.paper_repo_name}}/helpers/prepare-arxiv-package.sh b/{{cookiecutter.paper_repo_name}}/helpers/prepare-arxiv-package.sh index 7659628..158c586 100755 --- a/{{cookiecutter.paper_repo_name}}/helpers/prepare-arxiv-package.sh +++ b/{{cookiecutter.paper_repo_name}}/helpers/prepare-arxiv-package.sh @@ -119,6 +119,13 @@ then fancyhdr.sty \ icml2022.bst \ icml2022.sty +elif [[ "$latex_template" == "scitepress" ]] +then + copy_to_project apalike.bst \ + apalike.sty \ + article.cls \ + orcid.eps \ + SCITEPRESS.sty elif [[ "$latex_template" == "ieee-access" ]] then copy_to_project bullet.png ieeeaccess.cls IEEEtran.cls ieeeaccess.cls spotcolor.sty logo.png notaglinelogo.png