Compare commits
32 Commits
Author | SHA1 | Date | |
---|---|---|---|
f7f35ae41a | |||
7da7e0c2cb | |||
aed83dd9c9 | |||
bbaff01d29 | |||
1368a229f5 | |||
cc0c72fdf3 | |||
9e16d034f2 | |||
b303d00684 | |||
ea9d189175 | |||
4bbe26b623 | |||
cf1ab1f1a2 | |||
b5d2086ff6 | |||
6e2fa4e92a | |||
c15b518718 | |||
6164e494e4 | |||
d3f1bd0ab5 | |||
3bc4ec1b61 | |||
90f19285b2 | |||
db03b5dfcd | |||
592c047ed1 | |||
e7fac32914 | |||
b6ef23a6d0 | |||
ec57ead6ae | |||
7e5f32217b | |||
5e431c0b29 | |||
b60dcc36ff | |||
0a98a5a126 | |||
2d4b5e4b72 | |||
8d158296df | |||
cce71acc1b | |||
cdd82857d5 | |||
eacfc44ee9 |
60
CHANGELOG.md
60
CHANGELOG.md
@ -1,4 +1,64 @@
|
|||||||
|
|
||||||
|
<a name="5.5.2"></a>
|
||||||
|
## 5.5.2 (2024-09-09)
|
||||||
|
|
||||||
|
Updates:
|
||||||
|
|
||||||
|
* Update Coling template
|
||||||
|
|
||||||
|
Misc:
|
||||||
|
|
||||||
|
* Switch off gonito scores in the example
|
||||||
|
|
||||||
|
<a name="5.5.0"></a>
|
||||||
|
## 5.5.0 (2023-10-03)
|
||||||
|
|
||||||
|
Updates:
|
||||||
|
|
||||||
|
* Update Coling template
|
||||||
|
|
||||||
|
Fixes:
|
||||||
|
|
||||||
|
* Remove some broken tests
|
||||||
|
|
||||||
|
<a name="5.4.6"></a>
|
||||||
|
## 5.4.6 (2022-12-20)
|
||||||
|
|
||||||
|
Bug fixes:
|
||||||
|
|
||||||
|
* Fix setting up Overleaf
|
||||||
|
|
||||||
|
<a name="5.4.5"></a>
|
||||||
|
## 5.4.5 (2022-12-20)
|
||||||
|
|
||||||
|
Improvements:
|
||||||
|
|
||||||
|
* fill in some fields in LLNCS
|
||||||
|
* add test for amu-en
|
||||||
|
|
||||||
|
<a name="5.4.4"></a>
|
||||||
|
## 5.4.4 (2022-12-19)
|
||||||
|
|
||||||
|
Bug fixes:
|
||||||
|
|
||||||
|
* update LLNCS URL
|
||||||
|
|
||||||
|
<a name="5.4.3"></a>
|
||||||
|
## 5.4.3 (2022-11-09)
|
||||||
|
|
||||||
|
Bug fixes:
|
||||||
|
|
||||||
|
* Fix updating on MacOS
|
||||||
|
|
||||||
|
<a name="5.4.2"></a>
|
||||||
|
## 5.4.2 (2022-11-09)
|
||||||
|
|
||||||
|
Bug fixes:
|
||||||
|
|
||||||
|
* Fix running on MacOS
|
||||||
|
* Download ACM template correctly
|
||||||
|
* Remove deprecated egrep/fgrep
|
||||||
|
|
||||||
<a name="5.4.1"></a>
|
<a name="5.4.1"></a>
|
||||||
## 5.4.1 (2022-10-29)
|
## 5.4.1 (2022-10-29)
|
||||||
|
|
||||||
|
27
README.md
27
README.md
@ -6,8 +6,8 @@ The template itself is in the `{{cookiecutter.paper_id}}-paper`.
|
|||||||
In order to generate a project from the template:
|
In order to generate a project from the template:
|
||||||
|
|
||||||
* install cookiecutter
|
* install cookiecutter
|
||||||
* find a paper-cutter tag applicable (usually the latest tag listed at <https://git.wmi.amu.edu.pl/filipg/paper-cutter/releases>), say 5.4.1
|
* find a paper-cutter tag applicable (usually the latest tag listed at <https://git.wmi.amu.edu.pl/filipg/paper-cutter/releases>), say 5.5.2
|
||||||
* run: `cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --checkout 5.4.1`
|
* run: `cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --checkout 5.5.2`
|
||||||
|
|
||||||
You will be asked to choose a LaTeX template, at the moment the
|
You will be asked to choose a LaTeX template, at the moment the
|
||||||
following templates are handled:
|
following templates are handled:
|
||||||
@ -18,7 +18,7 @@ following templates are handled:
|
|||||||
* Natural Language Engineering journal (`nle`),
|
* Natural Language Engineering journal (`nle`),
|
||||||
* ACM SIGCONF template (`sigconf`), e.g. for the SIGIR conference,
|
* ACM SIGCONF template (`sigconf`), e.g. for the SIGIR conference,
|
||||||
* MSc thesis at Warsaw University of Technology (`pw-thesis`)
|
* MSc thesis at Warsaw University of Technology (`pw-thesis`)
|
||||||
* COLING (`coling`)
|
* COLING (& LREC, `coling`)
|
||||||
* LLNCS (`llncs`)
|
* LLNCS (`llncs`)
|
||||||
* EMNLP (`emnlp`)
|
* EMNLP (`emnlp`)
|
||||||
* NeurIPS (`neurips`)
|
* NeurIPS (`neurips`)
|
||||||
@ -59,7 +59,7 @@ git remote set-url origin YOUR-GIT-REPO
|
|||||||
password: `git config credential.helper "cache --timeout=10000000"`
|
password: `git config credential.helper "cache --timeout=10000000"`
|
||||||
8. Unfortunately, Overleaf will discard hidden files (`.*`) when a zip
|
8. Unfortunately, Overleaf will discard hidden files (`.*`) when a zip
|
||||||
is uploaded, also file permissions will be somewhat broken
|
is uploaded, also file permissions will be somewhat broken
|
||||||
9. … so you need to copy `.cookiecutter.yml` file and re-apply the template (`cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --checkout 5.4.1 --output-dir .. --config-file .cookiecutter.yml --no-input --overwrite-if-exists`)
|
9. … so you need to copy `.cookiecutter.yml` file and re-apply the template (`cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --checkout 5.5.2 --output-dir .. --config-file .cookiecutter.yml --no-input --overwrite-if-exists`)
|
||||||
10. Re-commit the files (including recovered `.*` files).
|
10. Re-commit the files (including recovered `.*` files).
|
||||||
11. Push the repo to Overleaf (fortunately, the `.*` will be treated
|
11. Push the repo to Overleaf (fortunately, the `.*` will be treated
|
||||||
correctly when this is done by git): `git push overleaf master`
|
correctly when this is done by git): `git push overleaf master`
|
||||||
@ -73,10 +73,10 @@ Updating package with updated template
|
|||||||
To keep your codebase in sync with template you need to occasionally reapply the template.
|
To keep your codebase in sync with template you need to occasionally reapply the template.
|
||||||
Here's how:
|
Here's how:
|
||||||
|
|
||||||
* find a paper-cutter tag applicable, say 5.4.1
|
* find a paper-cutter tag applicable, say 5.5.2
|
||||||
* (do *not* refer to master in your projects!)
|
* (do *not* refer to master in your projects!)
|
||||||
* go to project root
|
* go to project root
|
||||||
* run: `cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --checkout 5.4.1 --output-dir .. --config-file .cookiecutter.yml --no-input --overwrite-if-exists`
|
* run: `cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --checkout 5.5.2 --output-dir .. --config-file .cookiecutter.yml --no-input --overwrite-if-exists`
|
||||||
* check changes with git
|
* check changes with git
|
||||||
|
|
||||||
Editing the files
|
Editing the files
|
||||||
@ -99,7 +99,7 @@ Switching to another conference or journal template is easy.
|
|||||||
If not, get in touch with Filip Graliński.
|
If not, get in touch with Filip Graliński.
|
||||||
2. Commit or stash any uncommitted changes.
|
2. Commit or stash any uncommitted changes.
|
||||||
3. Change the `latex_template` value accordingly in the `.cookiecutter.yml` file. Commit the changes.
|
3. Change the `latex_template` value accordingly in the `.cookiecutter.yml` file. Commit the changes.
|
||||||
4. Re-run the template (as if updating, see above: `cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --checkout 5.4.1 --output-dir .. --config-file .cookiecutter.yml --no-input --overwrite-if-exists`).
|
4. Re-run the template (as if updating, see above: `cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --checkout 5.5.2 --output-dir .. --config-file .cookiecutter.yml --no-input --overwrite-if-exists`).
|
||||||
5. Compare `metadata.tex` against the right metadata template file
|
5. Compare `metadata.tex` against the right metadata template file
|
||||||
(`*/*-template-meta.tex` in `_latex-templates/`) and make any fixes
|
(`*/*-template-meta.tex` in `_latex-templates/`) and make any fixes
|
||||||
needed. This is the only thing that needs to be done manually
|
needed. This is the only thing that needs to be done manually
|
||||||
@ -124,6 +124,17 @@ Some notes:
|
|||||||
conflicting with Jinja directives (usually the whole or parts of `...-template.tex` and `...-template-meta.tex`
|
conflicting with Jinja directives (usually the whole or parts of `...-template.tex` and `...-template-meta.tex`
|
||||||
files.
|
files.
|
||||||
|
|
||||||
|
MacOS Requirements
|
||||||
|
------------
|
||||||
|
|
||||||
|
```
|
||||||
|
brew install cookiecutter
|
||||||
|
brew install texlive
|
||||||
|
brew install biber
|
||||||
|
brew install pyyaml
|
||||||
|
pip3 install syntok jinja2 arxiv_latex_cleaner
|
||||||
|
```
|
||||||
|
|
||||||
Versioning the template
|
Versioning the template
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
@ -161,7 +172,7 @@ Variables to be set in GitLab UI
|
|||||||
|
|
||||||
## Authors
|
## Authors
|
||||||
|
|
||||||
Prepared by Filip Graliński (Applica.ai).
|
Prepared by Filip Graliński (while at Adam Mickiewicz University / Applica.ai).
|
||||||
|
|
||||||
### Contributors
|
### Contributors
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ get_files()
|
|||||||
shift
|
shift
|
||||||
dump_dir=$(mktemp -d)
|
dump_dir=$(mktemp -d)
|
||||||
dumped_file=$dump_dir/file.zip
|
dumped_file=$dump_dir/file.zip
|
||||||
wget -O $dumped_file "$url"
|
wget -U 'paper-cutter' -O $dumped_file "$url"
|
||||||
(cd $dump_dir && unzip -j file.zip)
|
(cd $dump_dir && unzip -j file.zip)
|
||||||
for file in $@
|
for file in $@
|
||||||
do
|
do
|
||||||
@ -25,7 +25,7 @@ fix_noexpand_issue()
|
|||||||
{
|
{
|
||||||
# see https://tex.stackexchange.com/questions/487428/patch-failed-in-emnlp-style-template
|
# see https://tex.stackexchange.com/questions/487428/patch-failed-in-emnlp-style-template
|
||||||
file_to_be_patched="$1"
|
file_to_be_patched="$1"
|
||||||
sed -i 's|{\\errmessage{\\noexpand patch failed}}|{}|g' "$1"
|
sed -i~ 's|{\\errmessage{\\noexpand patch failed}}|{}|g' "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "{{ cookiecutter.latex_template }}" = "vanilla" ]; then
|
if [ "{{ cookiecutter.latex_template }}" = "vanilla" ]; then
|
||||||
@ -54,7 +54,7 @@ elif [ "{{ cookiecutter.latex_template }}" = "nle" ]; then
|
|||||||
cp -r _latex-templates/nle-template.tex {{cookiecutter.paper_id}}.tex
|
cp -r _latex-templates/nle-template.tex {{cookiecutter.paper_id}}.tex
|
||||||
cp -r _latex-templates/nle-template-meta.tex metadata.tex
|
cp -r _latex-templates/nle-template-meta.tex metadata.tex
|
||||||
elif [ "{{ cookiecutter.latex_template }}" = "sigconf" ]; then
|
elif [ "{{ cookiecutter.latex_template }}" = "sigconf" ]; then
|
||||||
get_files "https://www.acm.org/binaries/content/assets/publications/consolidated-tex-template/acmart-primary.zip" \
|
get_files "https://portalparts.acm.org/hippo/latex_templates/acmart-primary.zip" \
|
||||||
acmart.cls \
|
acmart.cls \
|
||||||
ACM-Reference-Format.bst
|
ACM-Reference-Format.bst
|
||||||
cp -r _latex-templates/sigconf-template.tex {{cookiecutter.paper_id}}.tex
|
cp -r _latex-templates/sigconf-template.tex {{cookiecutter.paper_id}}.tex
|
||||||
@ -66,13 +66,13 @@ elif [ "{{ cookiecutter.latex_template }}" = "pw-thesis" ]; then
|
|||||||
|
|
||||||
cp -r _optional_files/_pw-thesis/* .
|
cp -r _optional_files/_pw-thesis/* .
|
||||||
elif [ "{{ cookiecutter.latex_template }}" = "coling" ]; then
|
elif [ "{{ cookiecutter.latex_template }}" = "coling" ]; then
|
||||||
get_files "https://coling2020.org/coling2020.zip" \
|
get_files "https://coling2025.org/downloads/coling-2025.zip" \
|
||||||
coling.bst \
|
coling_natbib.bst \
|
||||||
coling2020.sty
|
coling.sty
|
||||||
cp -r _latex-templates/coling2020-template.tex {{cookiecutter.paper_id}}.tex
|
cp -r _latex-templates/coling-template.tex {{cookiecutter.paper_id}}.tex
|
||||||
cp -r _latex-templates/coling2020-template-meta.tex metadata.tex
|
cp -r _latex-templates/coling-template-meta.tex metadata.tex
|
||||||
elif [ "{{ cookiecutter.latex_template }}" = "llncs" ]; then
|
elif [ "{{ cookiecutter.latex_template }}" = "llncs" ]; then
|
||||||
get_files "https://resource-cms.springernature.com/springer-cms/rest/v1/content/19238648/data/v4" \
|
get_files "https://resource-cms.springernature.com/springer-cms/rest/v1/content/19238648/data/v6" \
|
||||||
llncs.cls \
|
llncs.cls \
|
||||||
splncs04.bst
|
splncs04.bst
|
||||||
cp -r _latex-templates/llncs-template.tex {{cookiecutter.paper_id}}.tex
|
cp -r _latex-templates/llncs-template.tex {{cookiecutter.paper_id}}.tex
|
||||||
@ -114,7 +114,7 @@ elif [ "{{ cookiecutter.latex_template }}" == "ieee-access" ]; then
|
|||||||
mkdir -p images
|
mkdir -p images
|
||||||
cp -r _latex-templates/ieee-access-template-photo.png images/sample-photo.png
|
cp -r _latex-templates/ieee-access-template-photo.png images/sample-photo.png
|
||||||
# not compatible with tikz (and todonotes which is based on tikz)
|
# not compatible with tikz (and todonotes which is based on tikz)
|
||||||
sed -i 's/\\usepackage\[textsize=tiny\]{todonotes}/\\usepackage{todo}/' extras.tex
|
sed -i~ 's/\\usepackage\[textsize=tiny\]{todonotes}/\\usepackage{todo}/' extras.tex
|
||||||
elif [ "{{ cookiecutter.latex_template }}" == "ieee-conf" ]; 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.tex {{cookiecutter.paper_id}}.tex
|
||||||
cp -r _latex-templates/ieee-conf-template-meta.tex metadata.tex
|
cp -r _latex-templates/ieee-conf-template-meta.tex metadata.tex
|
||||||
|
12
test/configs/amu-en.yml
Normal file
12
test/configs/amu-en.yml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
default_context:
|
||||||
|
latex_template: 'amu'
|
||||||
|
locale: 'pl_PL'
|
||||||
|
with_appendix: 'no'
|
||||||
|
extra_locale: 'en_US'
|
||||||
|
with_arxiv_package: 'no'
|
||||||
|
discipline: 'informatyka'
|
||||||
|
specialization: 'sztuczna inteligencja'
|
||||||
|
supervisor: 'prof. dr hab. Jan Nowak'
|
||||||
|
album_no: '123456'
|
||||||
|
contribution_declaration: 'no'
|
@ -1,5 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
default_context:
|
|
||||||
latex_template: 'ieee-access'
|
|
||||||
with_arxiv_package: 'no'
|
|
@ -1,5 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
default_context:
|
|
||||||
latex_template: 'ieee-conf'
|
|
||||||
with_arxiv_package: 'yes'
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
default_context:
|
|
||||||
latex_template: 'llncs'
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
default_context:
|
|
||||||
latex_template: 'pw-thesis'
|
|
@ -1,2 +0,0 @@
|
|||||||
default_context:
|
|
||||||
latex_template: 'scitepress'
|
|
@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
default_context:
|
|
||||||
latex_template: 'sigconf'
|
|
@ -16,7 +16,7 @@ check()
|
|||||||
cd "$PAPER_DIR"
|
cd "$PAPER_DIR"
|
||||||
make clean
|
make clean
|
||||||
make
|
make
|
||||||
if [[ "$config_file" != "configs/pw-thesis.yml" && "$config_file" != "configs/amu.yml" && "$config_file" != "configs/ieee-access.yml" ]]
|
if [[ "$config_file" != "configs/pw-thesis.yml" && "$config_file" != "configs/amu.yml" && "$config_file" != "configs/ieee-access.yml" && "$config_file" != "configs/amu-en.yml" ]]
|
||||||
then
|
then
|
||||||
make arxiv-$PAPER_ID.tar.gz
|
make arxiv-$PAPER_ID.tar.gz
|
||||||
fi
|
fi
|
||||||
|
@ -6,5 +6,5 @@ variables:
|
|||||||
# THIS IS AN UGLY WORK-AROUND
|
# THIS IS AN UGLY WORK-AROUND
|
||||||
include:
|
include:
|
||||||
- project: 'research/paper-cutter'
|
- project: 'research/paper-cutter'
|
||||||
ref: '5.4.1'
|
ref: '5.5.2'
|
||||||
file: 'main.yml'
|
file: 'main.yml'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
SHELL=/bin/bash -O globstar
|
SHELL=/bin/bash
|
||||||
|
|
||||||
# Do not edit these values, they should be changed by modifying .cookiecutter.yml
|
# Do not edit these values, they should be changed by modifying .cookiecutter.yml
|
||||||
# and re-applying the template
|
# and re-applying the template
|
||||||
@ -7,7 +7,7 @@ HAS_APPENDIX={{cookiecutter.with_appendix}}
|
|||||||
LATEX_TEMPLATE={{cookiecutter.latex_template}}
|
LATEX_TEMPLATE={{cookiecutter.latex_template}}
|
||||||
WITH_ARXIV_PACKAGE={{cookiecutter.with_arxiv_package}}
|
WITH_ARXIV_PACKAGE={{cookiecutter.with_arxiv_package}}
|
||||||
|
|
||||||
CONTENT_TEX_SOURCES=$(filter-out $(PAPER_ID).tex config.tex extras.tex metadata.tex preamble.tex the-appendix.tex, $(shell ls **/*.tex))
|
CONTENT_TEX_SOURCES=$(filter-out $(PAPER_ID).tex config.tex extras.tex metadata.tex preamble.tex the-appendix.tex, $(shell find . -name '*.tex'))
|
||||||
|
|
||||||
CURRENT_DIR=$(shell pwd)
|
CURRENT_DIR=$(shell pwd)
|
||||||
AUTOZOIL_DIR?=/opt/autozoil
|
AUTOZOIL_DIR?=/opt/autozoil
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
\title{Insert your title}
|
\title{ {{ cookiecutter.paper_title }} }
|
||||||
|
|
||||||
\author{First Author \\
|
\author{ {{cookiecutter.main_contributor_name}} \\
|
||||||
Affiliation / Address line 1 \\
|
Affiliation / Address line 1 \\
|
||||||
Affiliation / Address line 2 \\
|
Affiliation / Address line 2 \\
|
||||||
Affiliation / Address line 3 \\
|
Affiliation / Address line 3 \\
|
||||||
|
@ -46,11 +46,16 @@
|
|||||||
\newcommand\BibTeX{B\textsc{ib}\TeX}
|
\newcommand\BibTeX{B\textsc{ib}\TeX}
|
||||||
\newcommand\bycite[1]{by~\citet{#1}}
|
\newcommand\bycite[1]{by~\citet{#1}}
|
||||||
|
|
||||||
|
\usepackage{graphicx}
|
||||||
|
|
||||||
\input{config}
|
\input{config}
|
||||||
\input{extras}
|
\input{extras}
|
||||||
\input{preamble}
|
\input{preamble}
|
||||||
\input{metadata}
|
\input{metadata}
|
||||||
|
|
||||||
|
\usepackage{times}
|
||||||
|
\usepackage{inconsolata}
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
\maketitle
|
\maketitle
|
||||||
\begin{abstract}
|
\begin{abstract}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
{% raw %}
|
\title{ {{ cookiecutter.paper_title }} }
|
||||||
\title{Insert your title}
|
|
||||||
|
|
||||||
\author{First Author \\
|
\author{ {{cookiecutter.main_contributor_name}} \\
|
||||||
Affiliation / Address line 1 \\
|
Affiliation / Address line 1 \\
|
||||||
Affiliation / Address line 2 \\
|
Affiliation / Address line 2 \\
|
||||||
Affiliation / Address line 3 \\
|
Affiliation / Address line 3 \\
|
||||||
@ -11,4 +10,3 @@
|
|||||||
Affiliation / Address line 2 \\
|
Affiliation / Address line 2 \\
|
||||||
Affiliation / Address line 3 \\
|
Affiliation / Address line 3 \\
|
||||||
\texttt{email@domain} \\}
|
\texttt{email@domain} \\}
|
||||||
{% endraw %}
|
|
@ -0,0 +1,36 @@
|
|||||||
|
{% raw %}
|
||||||
|
% COLING 2025 Example;
|
||||||
|
|
||||||
|
\documentclass[11pt]{article}
|
||||||
|
|
||||||
|
\usepackage[review]{coling}
|
||||||
|
|
||||||
|
\input{config}
|
||||||
|
\input{extras}
|
||||||
|
\input{preamble}
|
||||||
|
\input{metadata}
|
||||||
|
|
||||||
|
\usepackage{times}
|
||||||
|
\usepackage{inconsolata}
|
||||||
|
|
||||||
|
\newcommand\bycite[1]{by~\citet{#1}}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
|
||||||
|
\maketitle
|
||||||
|
\begin{abstract}
|
||||||
|
\input{abstract}
|
||||||
|
\end{abstract}
|
||||||
|
|
||||||
|
\input{main}
|
||||||
|
|
||||||
|
\section*{References}\label{sec:reference}
|
||||||
|
|
||||||
|
\bibliography{bibliography}
|
||||||
|
|
||||||
|
\end{document}
|
||||||
|
%%% Local Variables:
|
||||||
|
%%% mode: latex
|
||||||
|
%%% TeX-master: t
|
||||||
|
%%% End:
|
||||||
|
{% endraw %}
|
@ -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 %}
|
|
@ -1,13 +1,15 @@
|
|||||||
|
\title{ {{ cookiecutter.paper_title }}\thanks{Supported byorganization x.} }
|
||||||
{% raw %}
|
{% raw %}
|
||||||
\title{Contribution Title\thanks{Supported by organization x.}}
|
|
||||||
%
|
%
|
||||||
%\titlerunning{Abbreviated paper title}
|
%\titlerunning{Abbreviated paper title}
|
||||||
% If the paper title is too long for the running head, you can set
|
% If the paper title is too long for the running head, you can set
|
||||||
% an abbreviated paper title here
|
% an abbreviated paper title here
|
||||||
%
|
%
|
||||||
\author{First Author\inst{1}\orcidID{0000-1111-2222-3333} \and
|
{% endraw %}
|
||||||
|
\author{ {{cookiecutter.main_contributor_name}}\inst{1}\orcidID{0000-1111-2222-3333} \and
|
||||||
Second Author\inst{2,3}\orcidID{1111-2222-3333-4444} \and
|
Second Author\inst{2,3}\orcidID{1111-2222-3333-4444} \and
|
||||||
Third Author\inst{3}\orcidID{2222--3333-4444-5555}}
|
Third Author\inst{3}\orcidID{2222--3333-4444-5555} }
|
||||||
|
{% raw %}
|
||||||
%
|
%
|
||||||
\authorrunning{F. Author et al.}
|
\authorrunning{F. Author et al.}
|
||||||
% First names are abbreviated in the running head.
|
% First names are abbreviated in the running head.
|
||||||
|
@ -10,7 +10,11 @@ for my $filepath (@ARGV) {
|
|||||||
|
|
||||||
while (my $line=<$ih>) {
|
while (my $line=<$ih>) {
|
||||||
while ($line =~ m<\\gonito(?:barescore|score|entry)\{([^\}]+)\}>g) {
|
while ($line =~ m<\\gonito(?:barescore|score|entry)\{([^\}]+)\}>g) {
|
||||||
$found{$1} = 1;
|
my $k = $1;
|
||||||
|
|
||||||
|
if ($k ne '#1') {
|
||||||
|
$found{$k} = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
\usepackage{graphicx}
|
\usepackage{graphicx}
|
||||||
\usepackage{booktabs}
|
\usepackage{booktabs}
|
||||||
\usepackage{latexsym}
|
\usepackage{latexsym}
|
||||||
|
\usepackage{microtype}
|
||||||
|
|
||||||
% so that footnotes in tables would work
|
% so that footnotes in tables would work
|
||||||
% https://tex.stackexchange.com/questions/109467/footnote-in-tabular-environment
|
% https://tex.stackexchange.com/questions/109467/footnote-in-tabular-environment
|
||||||
|
@ -8,7 +8,7 @@ use strict;
|
|||||||
binmode(STDIN, ':utf8');
|
binmode(STDIN, ':utf8');
|
||||||
binmode(STDOUT, ':utf8');
|
binmode(STDOUT, ':utf8');
|
||||||
|
|
||||||
my $subdir_regexp = qr{(?:figures|images)};
|
my $subdir_regexp = qr{(?:figures|images|plots)};
|
||||||
|
|
||||||
sub fix_subdirs {
|
sub fix_subdirs {
|
||||||
my ($p) = @_;
|
my ($p) = @_;
|
||||||
|
@ -6,10 +6,10 @@ method="$2"
|
|||||||
extract_text() {
|
extract_text() {
|
||||||
if [[ "$method" == "from-tex" ]]
|
if [[ "$method" == "from-tex" ]]
|
||||||
then
|
then
|
||||||
detex "$input_file" | egrep '\S' | grep -v 'unsrt' | perl -pne 's/^\s+| +$//g'
|
detex "$input_file" | grep -E '\S' | grep -v 'unsrt' | perl -pne 's/^\s+| +$//g'
|
||||||
else
|
else
|
||||||
bash helpers/pdf-to-plain-text.sh "$input_file" | perl helpers/strip-references.pl | perl -pne 'chomp $_; $_.=" "'
|
bash helpers/pdf-to-plain-text.sh "$input_file" | perl helpers/strip-references.pl | perl -pne 'chomp $_; $_.=" "'
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
extract_text | python3 -m syntok.segmenter | egrep '\S'
|
extract_text | python3 -m syntok.segmenter | grep -E '\S'
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
pdftotext "$1" - | fgrep -v 'Confidential Review Copy' | grep -P -v '^(ACL 2020 Submission \*\*\*\. Confidential Review Copy\. DO NOT DISTRIBUTE\.|Anonymous ACL submission|Abstract|Results|Conclusions|https?://\S+)\s*$' | grep '[^[:space:]]' | egrep '[a-zA-Z]{2}' | perl -pne 's/\f//g;' | uniq
|
pdftotext "$1" - | grep -F -v 'Confidential Review Copy' | grep -E -v '^(ACL 2020 Submission \*\*\*\. Confidential Review Copy\. DO NOT DISTRIBUTE\.|Anonymous ACL submission|Abstract|Results|Conclusions|https?://\S+)\s*$' | grep '[^[:space:]]' | grep -E '[a-zA-Z]{2}' | perl -pne 's/\f//g;' | uniq
|
||||||
|
@ -49,7 +49,7 @@ handle_subdir()
|
|||||||
then
|
then
|
||||||
perl helpers/flatten-structure.pl < "$f" > "$dst"
|
perl helpers/flatten-structure.pl < "$f" > "$dst"
|
||||||
else
|
else
|
||||||
cp $f $dst
|
cp "$f" "$dst"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
@ -57,6 +57,7 @@ handle_subdir()
|
|||||||
|
|
||||||
handle_subdir images
|
handle_subdir images
|
||||||
handle_subdir figures
|
handle_subdir figures
|
||||||
|
handle_subdir plots
|
||||||
handle_subdir scores
|
handle_subdir scores
|
||||||
handle_subdir inputs
|
handle_subdir inputs
|
||||||
|
|
||||||
@ -99,7 +100,8 @@ then
|
|||||||
:
|
:
|
||||||
elif [[ "$latex_template" == "coling" ]]
|
elif [[ "$latex_template" == "coling" ]]
|
||||||
then
|
then
|
||||||
copy_to_project coling2020.sty coling.bst
|
copy_to_project coling_natbib.bst \
|
||||||
|
coling.sty
|
||||||
elif [[ "$latex_template" == "llncs" ]]
|
elif [[ "$latex_template" == "llncs" ]]
|
||||||
then
|
then
|
||||||
copy_to_project llncs.cls splncs04.bst
|
copy_to_project llncs.cls splncs04.bst
|
||||||
|
@ -27,7 +27,7 @@ echo "then upload $source_pack from here ($(pwd)/$source_pack)"
|
|||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "When it is uploaded, click Menu / Git, copy the URL"
|
echo "When it is uploaded, click Menu / Git, copy the URL"
|
||||||
echo "(something like https://git.overleaf.com/123456789ec0830001af836f),"
|
echo "(something like https://git@git.overleaf.com/123456789ec0830001af836f),"
|
||||||
echo "paste here and press ENTER"
|
echo "paste here and press ENTER"
|
||||||
|
|
||||||
read
|
read
|
||||||
@ -56,7 +56,7 @@ cp ../$backup_dir/.cookiecutter.yml .
|
|||||||
git add .cookiecutter.yml
|
git add .cookiecutter.yml
|
||||||
git commit -m 'Back cookiecutter config'
|
git commit -m 'Back cookiecutter config'
|
||||||
|
|
||||||
cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --checkout 5.4.1 --output-dir .. --config-file .cookiecutter.yml --no-input --overwrite-if-exists
|
cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --checkout 5.5.2 --output-dir .. --config-file .cookiecutter.yml --no-input --overwrite-if-exists
|
||||||
|
|
||||||
git add --all
|
git add --all
|
||||||
git commit -m 'Bring back all the files'
|
git commit -m 'Bring back all the files'
|
||||||
|
@ -11,17 +11,6 @@ See the experiments described \bycite{gonito2016}.
|
|||||||
Please put your content here.
|
Please put your content here.
|
||||||
|
|
||||||
|
|
||||||
{% if cookiecutter.latex_template != 'pw-thesis' and cookiecutter.latex_template != 'amu' %}
|
|
||||||
\subsection{Gonito}
|
|
||||||
{% else %}
|
|
||||||
\section{Gonito}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
Gonito submission should be referenced like this
|
|
||||||
\gonitoscore{6ab4979e4629c5559feba452b7ca74c0cac89ebb}%
|
|
||||||
\footnote{Reference codes to repositories stored at
|
|
||||||
Gonito.net~\cite{gonito2016} are given in curly brackets. Such a~repository may be also accessed by going
|
|
||||||
to \url{http://gonito.net/q} and entering the code there.}
|
|
||||||
|
|
||||||
{% if cookiecutter.latex_template != 'pw-thesis' and cookiecutter.latex_template != 'amu' %}
|
{% if cookiecutter.latex_template != 'pw-thesis' and cookiecutter.latex_template != 'amu' %}
|
||||||
\section{Yet another section}
|
\section{Yet another section}
|
||||||
|
Loading…
Reference in New Issue
Block a user