From d3f1bd0ab506c15afaf49d3aaea0f52ea247f9f8 Mon Sep 17 00:00:00 2001 From: Filip Gralinski Date: Tue, 3 Oct 2023 20:25:12 +0200 Subject: [PATCH] Update Coling template (also for LREC) --- README.md | 2 +- hooks/post_gen_project.sh | 11 +-- .../_latex-templates/coling-template-meta.tex | 9 +++ .../_latex-templates/coling-template.tex | 40 ++++++++++ .../coling2020-template-meta.tex | 14 ---- .../_latex-templates/coling2020-template.tex | 73 ------------------- .../helpers/prepare-arxiv-package.sh | 4 +- 7 files changed, 59 insertions(+), 94 deletions(-) create mode 100644 {{cookiecutter.paper_repo_name}}/_latex-templates/coling-template-meta.tex create mode 100644 {{cookiecutter.paper_repo_name}}/_latex-templates/coling-template.tex delete mode 100644 {{cookiecutter.paper_repo_name}}/_latex-templates/coling2020-template-meta.tex delete mode 100644 {{cookiecutter.paper_repo_name}}/_latex-templates/coling2020-template.tex diff --git a/README.md b/README.md index 6c480bf..dab1e4e 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ following templates are handled: * Natural Language Engineering journal (`nle`), * ACM SIGCONF template (`sigconf`), e.g. for the SIGIR conference, * MSc thesis at Warsaw University of Technology (`pw-thesis`) -* COLING (`coling`) +* COLING (& LREC, `coling`) * LLNCS (`llncs`) * EMNLP (`emnlp`) * NeurIPS (`neurips`) diff --git a/hooks/post_gen_project.sh b/hooks/post_gen_project.sh index 949d17a..9f02375 100755 --- a/hooks/post_gen_project.sh +++ b/hooks/post_gen_project.sh @@ -66,11 +66,12 @@ elif [ "{{ cookiecutter.latex_template }}" = "pw-thesis" ]; then cp -r _optional_files/_pw-thesis/* . elif [ "{{ cookiecutter.latex_template }}" = "coling" ]; then - get_files "https://coling2020.org/coling2020.zip" \ - coling.bst \ - coling2020.sty - cp -r _latex-templates/coling2020-template.tex {{cookiecutter.paper_id}}.tex - cp -r _latex-templates/coling2020-template-meta.tex metadata.tex + get_files "https://lrec-coling-2024.org/wp-content/uploads/2023/10/lrec-latex.zip" \ + lrec-coling2024-natbib.bst \ + lrec-coling2024.sty \ + languageresource.bib + cp -r _latex-templates/coling-template.tex {{cookiecutter.paper_id}}.tex + cp -r _latex-templates/coling-template-meta.tex metadata.tex elif [ "{{ cookiecutter.latex_template }}" = "llncs" ]; then get_files "https://resource-cms.springernature.com/springer-cms/rest/v1/content/19238648/data/v6" \ llncs.cls \ diff --git a/{{cookiecutter.paper_repo_name}}/_latex-templates/coling-template-meta.tex b/{{cookiecutter.paper_repo_name}}/_latex-templates/coling-template-meta.tex new file mode 100644 index 0000000..572d596 --- /dev/null +++ b/{{cookiecutter.paper_repo_name}}/_latex-templates/coling-template-meta.tex @@ -0,0 +1,9 @@ +\title{ {{ cookiecutter.paper_title }} } + +\name{ {{cookiecutter.main_contributor_name}} } +{% raw %} +\address{Affiliation1, Affiliation2, Affiliation3 \\ + Address1, Address2, Address3 \\ + author1@xxx.yy, author2@zzz.edu, author3@hhh.com\\ + \{author1, author5, author9\}@abc.org\\} +{% endraw %} diff --git a/{{cookiecutter.paper_repo_name}}/_latex-templates/coling-template.tex b/{{cookiecutter.paper_repo_name}}/_latex-templates/coling-template.tex new file mode 100644 index 0000000..ffbfeb4 --- /dev/null +++ b/{{cookiecutter.paper_repo_name}}/_latex-templates/coling-template.tex @@ -0,0 +1,40 @@ +{% raw %} +% LREC-COLING 2024 Example; +% LREC Is now using templates similar to the ACL ones. +\documentclass[10pt, a4paper]{article} + +\usepackage[review]{lrec-coling2024} % this is the new style + +\input{config} +\input{extras} +\input{preamble} +\input{metadata} + +\abstract{ +\input{abstract} + \\ \newline \Keywords{keyword1, keyword2, keyword3} } + +\begin{document} + +\maketitleabstract + +\input{main} + +\nocite{*} +\section{Bibliographical References}\label{sec:reference} + +\bibliographystyle{lrec-coling2024-natbib} +\bibliography{lrec-coling2024-example} + +\section{Language Resource References} +\label{lr:ref} +\bibliographystylelanguageresource{lrec-coling2024-natbib} +\bibliographylanguageresource{languageresource} + + +\end{document} +%%% Local Variables: +%%% mode: latex +%%% TeX-master: t +%%% End: +{% endraw %} diff --git a/{{cookiecutter.paper_repo_name}}/_latex-templates/coling2020-template-meta.tex b/{{cookiecutter.paper_repo_name}}/_latex-templates/coling2020-template-meta.tex deleted file mode 100644 index 1bf89ce..0000000 --- a/{{cookiecutter.paper_repo_name}}/_latex-templates/coling2020-template-meta.tex +++ /dev/null @@ -1,14 +0,0 @@ -{% raw %} -\title{Insert your title} - -\author{First Author \\ - Affiliation / Address line 1 \\ - Affiliation / Address line 2 \\ - Affiliation / Address line 3 \\ - \texttt{email@domain} \\\And - Second Author \\ - Affiliation / Address line 1 \\ - Affiliation / Address line 2 \\ - Affiliation / Address line 3 \\ - \texttt{email@domain} \\} -{% endraw %} diff --git a/{{cookiecutter.paper_repo_name}}/_latex-templates/coling2020-template.tex b/{{cookiecutter.paper_repo_name}}/_latex-templates/coling2020-template.tex deleted file mode 100644 index cc38ce1..0000000 --- a/{{cookiecutter.paper_repo_name}}/_latex-templates/coling2020-template.tex +++ /dev/null @@ -1,73 +0,0 @@ -{% raw %} -\pdfoutput=1 -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% [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. -% -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% -% File coling2020.tex -% -% Contact: feiliu@cs.ucf.edu & liang.huang.sh@gmail.com -%% Based on the style files for COLING-2018, which were, in turn, -%% Based on the style files for COLING-2016, which were, in turn, -%% Based on the style files for COLING-2014, which were, in turn, -%% Based on the style files for ACL-2014, which were, in turn, -%% Based on the style files for ACL-2013, which were, in turn, -%% Based on the style files for ACL-2012, which were, in turn, -%% based on the style files for ACL-2011, which were, in turn, -%% based on the style files for ACL-2010, which were, in turn, -%% based on the style files for ACL-IJCNLP-2009, which were, in turn, -%% based on the style files for EACL-2009 and IJCNLP-2008... - -%% Based on the style files for EACL 2006 by -%%e.agirre@ehu.es or Sergi.Balari@uab.es -%% and that of ACL 08 by Joakim Nivre and Noah Smith - -\newcommand\citep[1]{\cite{#1}} -\newcommand\citet[1]{\newcite{#1}} -\newcommand\bycite[1]{by~\citet{#1}} - -\documentclass[11pt]{article} -\usepackage{coling2020} -\usepackage{times} -\usepackage{url} -\usepackage{latexsym} - -%\setlength\titlebox{5cm} - -% You can expand the titlebox if you need extra space -% to show all the authors. Please do not make the titlebox -% smaller than 5cm (the original size); we will check this -% in the camera-ready version and ask you to change it back. - -\input{config} -\input{extras} -\input{preamble} -\input{metadata} - -\begin{document} -\maketitle -\begin{abstract} -\input{abstract} -\end{abstract} - -\input{main} - -\bibliography{bibliography} -\bibliographystyle{coling} - -\ifwithappendix -\typeout{!!! APPENDIX WILL BE SKIPPED FOR THIS TEMPLATE. !!!} -\fi - -\end{document} - -%%% Local Variables: -%%% mode: latex -%%% TeX-master: t -%%% End: -{% endraw %} diff --git a/{{cookiecutter.paper_repo_name}}/helpers/prepare-arxiv-package.sh b/{{cookiecutter.paper_repo_name}}/helpers/prepare-arxiv-package.sh index e587de0..e6eacb0 100755 --- a/{{cookiecutter.paper_repo_name}}/helpers/prepare-arxiv-package.sh +++ b/{{cookiecutter.paper_repo_name}}/helpers/prepare-arxiv-package.sh @@ -100,7 +100,9 @@ then : elif [[ "$latex_template" == "coling" ]] then - copy_to_project coling2020.sty coling.bst + copy_to_project lrec-coling2024-natbib.bst \ + lrec-coling2024.sty \ + languageresource.bib elif [[ "$latex_template" == "llncs" ]] then copy_to_project llncs.cls splncs04.bst