Init from an internal repo.
Commit d5b6f8e831fc5c933af5ceb1267f51ef6af6c438
This commit is contained in:
commit
67c788fe69
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*~
|
||||
test/lorem-ipsum-paper/
|
5
CHANGELOG.md
Normal file
5
CHANGELOG.md
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
<a name="4.0.0"></a>
|
||||
## 4.0.0 (2020-11-24)
|
||||
|
||||
Init from an internal project ver. 3.8.4 (d5b6f8e831fc5c933af5ceb1267f51ef6af6c43)
|
144
README.md
Normal file
144
README.md
Normal file
@ -0,0 +1,144 @@
|
||||
Template for LaTeX papers
|
||||
=========================
|
||||
|
||||
The template itself is in the `{{cookiecutter.paper_id}}-paper`.
|
||||
|
||||
In order to generate a project from the template:
|
||||
|
||||
* 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 VERSION
|
||||
* run: `cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --checkout VERSION`
|
||||
|
||||
You will be asked to choose a LaTeX template, at the moment the
|
||||
following templates are handled:
|
||||
|
||||
* “Vanilla” — just a standard LaTeX article template (`vanilla`),
|
||||
* TACL (`tacl`),
|
||||
* ACL (`acl`),
|
||||
* 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`)
|
||||
* LLNCS (`llncs`)
|
||||
* EMNLP (`emnlp`)
|
||||
* EACL (`eacl`)
|
||||
* PolEval (`poleval`)
|
||||
|
||||
If you are to use another template, prepare an MR to this repo first!
|
||||
Do not add directly to your specific paper.
|
||||
|
||||
Interoperation with Overleaf
|
||||
----------------------------
|
||||
|
||||
Overleaf handles git but in an imperfect way (to put it mildly). It's better to upload a
|
||||
package to Overleaf first:
|
||||
|
||||
1. Create a project locally.
|
||||
2. Run `make`
|
||||
3. Run `make source-pack`
|
||||
4. Upload the zip file to Overleaf.
|
||||
5. Copy project to some other place.
|
||||
5. Clone the repo from Overleaf: `git clone https://git.overleaf.com/FUNNY-OVERLEAF-CODE PAPERID-paper`
|
||||
6. Set remotes:
|
||||
|
||||
```
|
||||
git remote add overleaf https://git.overleaf.com/FUNNY-OVERLEAF-CODE
|
||||
git remote set-url origin YOUR-GIT-REPO
|
||||
```
|
||||
|
||||
7. Set credential helper so that stupid Overleaf won't ask about
|
||||
password: `git config credential.helper "cache --timeout=10000000"`
|
||||
8. Unfortunately, Overleaf will discard hidden files (`.*`) when a zip
|
||||
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 VERSION --output-dir .. --config-file .cookiecutter.yml --no-input --overwrite-if-exists`)
|
||||
10. Re-commit the files (including recovered `.*` files).
|
||||
11. Push the repo to Overleaf (fortunately, the `.*` will be treated
|
||||
correctly when this is done by git): `git push overleaf master`
|
||||
12. Push the repo to GitLab. `git push origin master`
|
||||
13. Set the Overleaf git remote in `helpers/vars`
|
||||
14. Now you can synchronize between GitLab repo and Overleaf manually or using `helpers/synchro.sh` script
|
||||
|
||||
Updating package with updated template
|
||||
--------------------------------------
|
||||
|
||||
To keep your codebase in sync with template you need to occasionally reapply the template.
|
||||
Here's how:
|
||||
|
||||
* find a paper-cutter tag applicable, say VERSION
|
||||
* (do *not* refer to master in your projects!)
|
||||
* go to project root
|
||||
* run: `cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --checkout VERSION --output-dir .. --config-file .cookiecutter.yml --no-input --overwrite-if-exists`
|
||||
* check changes with git
|
||||
|
||||
Editing the files
|
||||
-----------------
|
||||
|
||||
Please do **not** modify the file `PAPER_ID.tex` (this file is
|
||||
supplied by this template — and will be switched when you switch to
|
||||
another journal/conference template, see below) . Modify
|
||||
`metadata.tex` and `main.text` files.
|
||||
|
||||
If you really need to change `PAPER_ID.tex`, please prepare a merge
|
||||
request to this template repo.
|
||||
|
||||
Switching to another conference/journal template
|
||||
------------------------------------------------
|
||||
|
||||
Switching to another conference or journal template is easy.
|
||||
|
||||
1. Check whether the template is already handled. (See above for the list of LaTeX templates handled.)
|
||||
If not, get in touch with Filip Graliński.
|
||||
2. Commit or stash any uncommitted 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 VERSION --output-dir .. --config-file .cookiecutter.yml --no-input --overwrite-if-exists`).
|
||||
5. Compare `metadata.tex` against the right metadata template file
|
||||
(`*/*-template-meta.tex` in `_latex-templates/`) and make any fixes
|
||||
needed. This is the only thing that needs to be done manually
|
||||
(unfortunately, LaTeX templates differ in commands for authors, their affiliations, etc.).
|
||||
6. Run `make` to generate PDF.
|
||||
7. If you have an appendix, make sure it is rendered correctly.
|
||||
|
||||
Versioning the template
|
||||
-----------------------
|
||||
|
||||
Always use a specific tag in the `.gitlab-ci.yml` file for your
|
||||
project when including `main.yml` from this repository.
|
||||
|
||||
This template is versioned with a Semantic-Versioning-like scheme, i.e.
|
||||
a version is expected to be of the form M.N.P, where:
|
||||
|
||||
* _M_ is changed in case of breaking changes for which manual actions
|
||||
other then update with the `cookiecutter` command is required
|
||||
* _N_ is changed when a new feature is added or a significant bugfix
|
||||
happened, it means that the files need to be updated in a project
|
||||
with the `cookiecutter` command
|
||||
* _P_ is changed in case of minor changes or bugfixes, it should be OK even
|
||||
if changes are not update with the `cookiecutter` command
|
||||
|
||||
### Releasing a new version of the template
|
||||
|
||||
* change the version in the
|
||||
`{{cookiecutter.paper_id}}-paper/.gitlab-ci.yml` template file
|
||||
* add an item to `CHANGELOG.md`
|
||||
* in case of breaking changes (_M_ is incremented) describe clearly
|
||||
what actions are to be taken in `CHANGELOG.md`
|
||||
* tag master with the version (the same as in `{{cookiecutter.paper_id}}-paper/.gitlab-ci.yml`)
|
||||
|
||||
Variables to be set in GitLab UI
|
||||
--------------------------------
|
||||
|
||||
* `SLACK_RELEASE_BOT_SECRET` - secret to a Slack bot to inform about new releases
|
||||
(go to <https://YOUR_ORGANIZATION_NAME.slack.com/apps/manage/custom-integrations>, click
|
||||
"Incoming WebHooks" / "Add", then configure the hook and
|
||||
and set the string such as "ABCDEFGHI12/ABCDEFGHI12/aaaaaaaaaaaaaaaaaaaaaaaa"
|
||||
as `SLACK_RELEASE_BOT_SECRET`)
|
||||
|
||||
## Authors
|
||||
|
||||
Prepared by Filip Graliński (Applica.ai).
|
||||
|
||||
### Contributors
|
||||
|
||||
* Łukasz Garncarek
|
||||
* Piotr Halama (including the project name)
|
||||
* Tomasz Stanisławek
|
19
cookiecutter.json
Normal file
19
cookiecutter.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"paper_id": "lorem-ipsum",
|
||||
"paper_repo_name": "{{ cookiecutter.paper_id + '-paper' }}",
|
||||
"paper_short_description": "Sample paper",
|
||||
"paper_title": "Paper title",
|
||||
"gitlab_group": "research/papers",
|
||||
"main_contributor": "jan.iksinski",
|
||||
"main_contributor_name": "Jan Iksiński",
|
||||
"latex_template": "vanilla",
|
||||
"git_host": "git.wmi.amu.edu.pl",
|
||||
"locale": "en_US",
|
||||
"with_appendix": "no",
|
||||
"extra_locale": "{{ 'none' if cookiecutter.latex_template != 'pw-thesis' else 'pl_PL' }}",
|
||||
"with_arxiv_package": "{{ 'yes' if cookiecutter.latex_template != 'pw-thesis' else 'no' }}",
|
||||
"discipline": "none",
|
||||
"specialization": "none",
|
||||
"supervisor": "none",
|
||||
"album_no": "none"
|
||||
}
|
111
hooks/post_gen_project.sh
Executable file
111
hooks/post_gen_project.sh
Executable file
@ -0,0 +1,111 @@
|
||||
#!/bin/bash -xe
|
||||
|
||||
get_files()
|
||||
{
|
||||
url=$1
|
||||
shift
|
||||
dump_dir=$(mktemp -d)
|
||||
dumped_file=$dump_dir/file.zip
|
||||
wget -O $dumped_file "$url"
|
||||
(cd $dump_dir && unzip -j file.zip)
|
||||
for file in $@
|
||||
do
|
||||
sfile=$dump_dir/$file
|
||||
if [[ -r $sfile ]]
|
||||
then
|
||||
cp $sfile .
|
||||
else
|
||||
echo >&2 "Cannot find '$file' in '$url'"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
fix_noexpand_issue()
|
||||
{
|
||||
# see https://tex.stackexchange.com/questions/487428/patch-failed-in-emnlp-style-template
|
||||
file_to_be_patched="$1"
|
||||
sed -i 's|{\\errmessage{\\noexpand patch failed}}|{}|g' "$1"
|
||||
}
|
||||
|
||||
if [ "{{ cookiecutter.latex_template }}" = "vanilla" ]; then
|
||||
cp -r _latex-templates/vanilla-template.tex {{cookiecutter.paper_id}}.tex
|
||||
cp -r _latex-templates/vanilla-template-meta.tex metadata.tex
|
||||
elif [ "{{ cookiecutter.latex_template }}" = "tacl" ]; then
|
||||
wget 'https://transacl.org/tacl-submission-templates/tacl2018v2.sty'
|
||||
wget 'https://transacl.org/tacl-submission-templates/acl_natbib.bst'
|
||||
cp -r _latex-templates/tacl2018v2-template.tex {{cookiecutter.paper_id}}.tex
|
||||
cp -r _latex-templates/tacl2018v2-template-meta.tex metadata.tex
|
||||
elif [ "{{ cookiecutter.latex_template }}" = "acl" ]; then
|
||||
get_files "http://acl2020.org/downloads/acl2020-templates.zip" \
|
||||
acl2020.sty \
|
||||
acl_natbib.bst
|
||||
fix_noexpand_issue acl2020.sty
|
||||
cp -r _latex-templates/acl2020-template.tex {{cookiecutter.paper_id}}.tex
|
||||
cp -r _latex-templates/acl2020-template-meta.tex metadata.tex
|
||||
if [ "{{ cookiecutter.with_appendix }}" = "yes" ]; then
|
||||
cp -r _latex-templates/acl2020-template-appendix.tex the-appendix.tex
|
||||
fi
|
||||
elif [ "{{ cookiecutter.latex_template }}" = "nle" ]; then
|
||||
cp -r _latex-templates/nle-template.tex {{cookiecutter.paper_id}}.tex
|
||||
cp -r _latex-templates/nle-template-meta.tex metadata.tex
|
||||
elif [ "{{ cookiecutter.latex_template }}" = "sigconf" ]; then
|
||||
cp -r _latex-templates/sigconf-template.tex {{cookiecutter.paper_id}}.tex
|
||||
cp -r _latex-templates/sigconf-template-meta.tex metadata.tex
|
||||
elif [ "{{ cookiecutter.latex_template }}" = "pw-thesis" ]; then
|
||||
cp -r _latex-templates/pw-thesis-template.tex {{cookiecutter.paper_id}}.tex
|
||||
cp -r _latex-templates/pw-thesis-template-meta.tex metadata.tex
|
||||
cp -r _latex-templates/pw-thesis-template-titlepage-en.tex titlepage.tex
|
||||
|
||||
cp -r _optional_files/_pw-thesis/* .
|
||||
elif [ "{{ cookiecutter.latex_template }}" = "coling" ]; then
|
||||
cp -r _latex-templates/coling2020-template.tex {{cookiecutter.paper_id}}.tex
|
||||
cp -r _latex-templates/coling2020-template-meta.tex metadata.tex
|
||||
elif [ "{{ cookiecutter.latex_template }}" = "llncs" ]; then
|
||||
cp -r _latex-templates/llncs-template.tex {{cookiecutter.paper_id}}.tex
|
||||
cp -r _latex-templates/llncs-template-meta.tex metadata.tex
|
||||
elif [ "{{ cookiecutter.latex_template }}" = "emnlp" ]; then
|
||||
get_files "https://2020.emnlp.org/files/emnlp2020-templates.zip" \
|
||||
acl_natbib.bst \
|
||||
emnlp2020.sty
|
||||
cp -r _latex-templates/emnlp2020-template.tex {{cookiecutter.paper_id}}.tex
|
||||
cp -r _latex-templates/emnlp2020-template-meta.tex metadata.tex
|
||||
cp -r _latex-templates/emnlp2020-template-appendix.tex the-appendix.tex
|
||||
elif [ "{{ cookiecutter.latex_template }}" = "eacl" ]; then
|
||||
get_files "https://2021.eacl.org/downloads/eacl2021-templates.zip" \
|
||||
acl_natbib.bst \
|
||||
eacl2021.sty
|
||||
cp -r _latex-templates/acl2020-template.tex {{cookiecutter.paper_id}}.tex
|
||||
cp -r _latex-templates/acl2020-template-meta.tex metadata.tex
|
||||
|
||||
if [ "{{ cookiecutter.with_appendix }}" = "yes" ]; then
|
||||
cp -r _latex-templates/acl2020-template-appendix.tex the-appendix.tex
|
||||
fi
|
||||
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
|
||||
cp -r _latex-templates/poleval.{bst,cls} .
|
||||
fi
|
||||
|
||||
if [ "{{ cookiecutter.with_appendix }}" = "yes" ]; then
|
||||
cp -r _optional_files/_appendix/* .
|
||||
fi
|
||||
|
||||
if [ "{{ cookiecutter.extra_locale }}" = "pl_PL" ]; then
|
||||
cp -r _optional_files/_pl_files/* .
|
||||
fi
|
||||
|
||||
rm -rf _latex-templates _optional_files
|
||||
|
||||
if [ -e .git ]; then
|
||||
git checkout README.md main.tex abstract.tex preamble.tex metadata.tex bibliography.bib contributions.yaml
|
||||
for f in helpers/vars abstract-pl.tex keywords.tex keywords-pl.tex appendix.tex
|
||||
do
|
||||
git checkout $f || true
|
||||
done
|
||||
else
|
||||
git init
|
||||
git add --all
|
||||
git commit -m 'init'
|
||||
git remote add origin git@{{cookiecutter.git_host}}:{{cookiecutter.gitlab_group}}/{{cookiecutter.paper_repo_name}}.git
|
||||
fi
|
6
hooks/pre_gen_project.sh
Executable file
6
hooks/pre_gen_project.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash -xe
|
||||
|
||||
if [[ -e .git && ! -z "$(git status --untracked-files=no --porcelain)" ]]; then
|
||||
>&2 echo "Uncommited changes, commit your changes first"
|
||||
exit 1
|
||||
fi
|
66
main.yml
Normal file
66
main.yml
Normal file
@ -0,0 +1,66 @@
|
||||
|
||||
variables:
|
||||
WITH_ARXIV_PACKAGE: "{{cookiecutter.with_arxiv_package}}"
|
||||
|
||||
|
||||
image: loxygen/autozoil:1.2.1
|
||||
|
||||
# work-around for GitLab shortcomings
|
||||
# (https://gitlab.com/gitlab-org/gitlab-ce/issues/23434)
|
||||
.default_stuff: &default_stuff
|
||||
tags:
|
||||
- openshift
|
||||
|
||||
stages:
|
||||
- build
|
||||
- arxiv
|
||||
- lint
|
||||
- pack
|
||||
|
||||
build-pdf:
|
||||
<<: *default_stuff
|
||||
stage: build
|
||||
script:
|
||||
- make
|
||||
artifacts:
|
||||
paths:
|
||||
- ${PAPER_ID}.pdf
|
||||
- ${PAPER_ID}.log
|
||||
- stats.txt
|
||||
- abstract.txt
|
||||
- supplement.zip
|
||||
- sentences.txt
|
||||
|
||||
autozoil:
|
||||
<<: *default_stuff
|
||||
stage: lint
|
||||
script:
|
||||
- ls -l
|
||||
- make autozoil-log.txt
|
||||
artifacts:
|
||||
paths:
|
||||
- autozoil-log.txt
|
||||
|
||||
source-pack:
|
||||
<<: *default_stuff
|
||||
stage: pack
|
||||
script:
|
||||
- make source-pack
|
||||
artifacts:
|
||||
paths:
|
||||
- ${PAPER_ID}.zip
|
||||
|
||||
arxiv:
|
||||
<<: *default_stuff
|
||||
stage: arxiv
|
||||
script:
|
||||
- git clone https://github.com/google-research/arxiv-latex-cleaner.git
|
||||
- (cd arxiv-latex-cleaner && python3 setup.py install)
|
||||
- make arxiv-${PAPER_ID}.pdf
|
||||
artifacts:
|
||||
paths:
|
||||
- arxiv-${PAPER_ID}.pdf
|
||||
- arxiv-${PAPER_ID}.tar.gz
|
||||
only:
|
||||
variables:
|
||||
- $WITH_ARXIV_PACKAGE == "yes"
|
3
test/configs/acl.yml
Normal file
3
test/configs/acl.yml
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
default_context:
|
||||
latex_template: 'acl'
|
3
test/configs/coling.yml
Normal file
3
test/configs/coling.yml
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
default_context:
|
||||
latex_template: 'coling'
|
4
test/configs/eacl-appendix.yml
Normal file
4
test/configs/eacl-appendix.yml
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
default_context:
|
||||
latex_template: 'eacl'
|
||||
with_appendix: 'yes'
|
3
test/configs/eacl.yml
Normal file
3
test/configs/eacl.yml
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
default_context:
|
||||
latex_template: 'eacl'
|
2
test/configs/emnlp.yml
Normal file
2
test/configs/emnlp.yml
Normal file
@ -0,0 +1,2 @@
|
||||
default_context:
|
||||
latex_template: 'emnlp'
|
3
test/configs/llncs.yml
Normal file
3
test/configs/llncs.yml
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
default_context:
|
||||
latex_template: 'llncs'
|
3
test/configs/nle.yml
Normal file
3
test/configs/nle.yml
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
default_context:
|
||||
latex_template: 'nle'
|
3
test/configs/poleval.yml
Normal file
3
test/configs/poleval.yml
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
default_context:
|
||||
latex_template: 'poleval'
|
3
test/configs/pw-thesis.yml
Normal file
3
test/configs/pw-thesis.yml
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
default_context:
|
||||
latex_template: 'pw-thesis'
|
3
test/configs/sigconf.yml
Normal file
3
test/configs/sigconf.yml
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
default_context:
|
||||
latex_template: 'sigconf'
|
3
test/configs/tacl.yml
Normal file
3
test/configs/tacl.yml
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
default_context:
|
||||
latex_template: 'tacl'
|
3
test/configs/vanilla.yml
Normal file
3
test/configs/vanilla.yml
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
default_context:
|
||||
latex_template: 'vanilla'
|
29
test/run_tests.sh
Executable file
29
test/run_tests.sh
Executable file
@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
PAPER_ID=lorem-ipsum
|
||||
PAPER_DIR="${PAPER_ID}-paper"
|
||||
|
||||
check()
|
||||
{
|
||||
config_file="$1"
|
||||
echo "========================================================================================="
|
||||
echo "*** TESTING $config_file"
|
||||
echo "========================================================================================="
|
||||
rm -rf "$PAPER_DIR"
|
||||
cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --config-file "$config_file" --no-input --checkout master
|
||||
cd "$PAPER_DIR"
|
||||
make clean
|
||||
make
|
||||
if [[ "$config_file" != "configs/pw-thesis.yml" ]]
|
||||
then
|
||||
make arxiv-$PAPER_ID.tar.gz
|
||||
fi
|
||||
cd ..
|
||||
}
|
||||
|
||||
for config in configs/*.yml
|
||||
do
|
||||
check $config
|
||||
done
|
18
{{cookiecutter.paper_repo_name}}/.cookiecutter.yml
Normal file
18
{{cookiecutter.paper_repo_name}}/.cookiecutter.yml
Normal file
@ -0,0 +1,18 @@
|
||||
default_context:
|
||||
paper_id: '{{ cookiecutter.paper_id }}'
|
||||
paper_repo_name: '{{ cookiecutter.paper_repo_name }}'
|
||||
paper_short_description: '{{ cookiecutter.paper_short_description }}'
|
||||
paper_title: '{{ cookiecutter.paper_title }}'
|
||||
gitlab_group: '{{ cookiecutter.gitlab_group }}'
|
||||
main_contributor: '{{ cookiecutter.main_contributor }}'
|
||||
main_contributor_name: '{{ cookiecutter.main_contributor_name }}'
|
||||
latex_template: '{{ cookiecutter.latex_template }}'
|
||||
git_host: '{{ cookiecutter.git_host }}'
|
||||
locale: '{{ cookiecutter.locale }}'
|
||||
with_appendix: '{{ cookiecutter.with_appendix }}'
|
||||
extra_locale: '{{ cookiecutter.extra_locale }}'
|
||||
with_arxiv_package: '{{ cookiecutter.with_arxiv_package }}'
|
||||
discipline: '{{ cookiecutter.discipline }}'
|
||||
specialization: '{{ cookiecutter.specialization }}'
|
||||
supervisor: '{{ cookiecutter.supervisor }}'
|
||||
album_no: '{{ cookiecutter.album_no }}'
|
157
{{cookiecutter.paper_repo_name}}/.gitignore
vendored
Normal file
157
{{cookiecutter.paper_repo_name}}/.gitignore
vendored
Normal file
@ -0,0 +1,157 @@
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
|
||||
# pycharm configs
|
||||
.idea
|
||||
|
||||
# C extensions
|
||||
*.so
|
||||
|
||||
# Distribution / packaging
|
||||
.Python
|
||||
build/
|
||||
develop-eggs/
|
||||
dist/
|
||||
downloads/
|
||||
eggs/
|
||||
.eggs/
|
||||
lib/
|
||||
lib64/
|
||||
parts/
|
||||
sdist/
|
||||
var/
|
||||
wheels/
|
||||
*.egg-info/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
MANIFEST
|
||||
|
||||
# PyInstaller
|
||||
# Usually these files are written by a python script from a template
|
||||
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
||||
*.manifest
|
||||
*.spec
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
pip-delete-this-directory.txt
|
||||
|
||||
# Unit test / coverage reports
|
||||
htmlcov/
|
||||
.tox/
|
||||
.coverage
|
||||
.coverage.*
|
||||
.cache
|
||||
nosetests.xml
|
||||
coverage.xml
|
||||
*.cover
|
||||
.hypothesis/
|
||||
.pytest_cache/
|
||||
|
||||
# Translations
|
||||
*.mo
|
||||
*.pot
|
||||
|
||||
# Django stuff:
|
||||
*.log
|
||||
local_settings.py
|
||||
db.sqlite3
|
||||
|
||||
# Flask stuff:
|
||||
instance/
|
||||
.webassets-cache
|
||||
|
||||
# Scrapy stuff:
|
||||
.scrapy
|
||||
|
||||
# Sphinx documentation
|
||||
docs/_build/
|
||||
|
||||
# PyBuilder
|
||||
target/
|
||||
|
||||
# Jupyter Notebook
|
||||
.ipynb_checkpoints
|
||||
|
||||
# pyenv
|
||||
.python-version
|
||||
|
||||
# celery beat schedule file
|
||||
celerybeat-schedule
|
||||
|
||||
# SageMath parsed files
|
||||
*.sage.py
|
||||
|
||||
# Environments
|
||||
.env
|
||||
.venv
|
||||
env/
|
||||
venv/
|
||||
ENV/
|
||||
env.bak/
|
||||
venv.bak/
|
||||
|
||||
# Spyder project settings
|
||||
.spyderproject
|
||||
.spyproject
|
||||
|
||||
# Rope project settings
|
||||
.ropeproject
|
||||
|
||||
# mkdocs documentation
|
||||
/site
|
||||
|
||||
# mypy
|
||||
.mypy_cache/
|
||||
|
||||
#Intellij
|
||||
vcs.xml
|
||||
|
||||
# data generated by parser
|
||||
/data
|
||||
|
||||
# autogenerated
|
||||
/docs/source/reference/
|
||||
|
||||
# docs output
|
||||
/docs/build/
|
||||
|
||||
# Caches
|
||||
/.cache
|
||||
|
||||
# Emacs
|
||||
\#*\#
|
||||
.\#*
|
||||
|
||||
# JetBrains
|
||||
.idea
|
||||
|
||||
# Temporary
|
||||
*~
|
||||
|
||||
*.aux
|
||||
*.nav
|
||||
*.toc
|
||||
*.log
|
||||
*.out
|
||||
*.blg
|
||||
*.bbl
|
||||
*.synctex.gz
|
||||
*.fdb_latexmk
|
||||
*.fls
|
||||
*.prv
|
||||
*.lot
|
||||
*.lof
|
||||
/auto
|
||||
{{cookiecutter.paper_id}}.pdf
|
||||
{{cookiecutter.paper_id}}.zip
|
||||
autozoil-log.txt
|
||||
stats.txt
|
||||
abstract.txt
|
||||
supplement.zip
|
||||
the-appendix.pdf
|
||||
sentences.txt
|
||||
arxiv-{{cookiecutter.paper_id}}.pdf
|
||||
arxiv-{{cookiecutter.paper_id}}.tar.gz
|
10
{{cookiecutter.paper_repo_name}}/.gitlab-ci.yml
Normal file
10
{{cookiecutter.paper_repo_name}}/.gitlab-ci.yml
Normal file
@ -0,0 +1,10 @@
|
||||
variables:
|
||||
PAPER_ID: "{{cookiecutter.paper_id}}"
|
||||
|
||||
# In order to run via `gitlab-runner exec docker ...` locally,
|
||||
# run `./run-gitlab-runner.sh docker ...`.
|
||||
# THIS IS AN UGLY WORK-AROUND
|
||||
include:
|
||||
- project: 'research/paper-cutter'
|
||||
ref: '4.0.0'
|
||||
file: 'main.yml'
|
2913
{{cookiecutter.paper_repo_name}}/ACM-Reference-Format.bst
Normal file
2913
{{cookiecutter.paper_repo_name}}/ACM-Reference-Format.bst
Normal file
File diff suppressed because it is too large
Load Diff
66
{{cookiecutter.paper_repo_name}}/Jenkinsfile
vendored
Normal file
66
{{cookiecutter.paper_repo_name}}/Jenkinsfile
vendored
Normal file
@ -0,0 +1,66 @@
|
||||
pipeline {
|
||||
|
||||
agent { label 'tau2013z' }
|
||||
|
||||
stages {
|
||||
|
||||
stage ('get-autozoil') {
|
||||
steps {
|
||||
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'autozoil']], submoduleCfg: [], userRemoteConfigs: [[url: 'https://gitlab.com/filipg/autozoil.git']]])
|
||||
}
|
||||
}
|
||||
|
||||
stage ('build-pdf') {
|
||||
steps {
|
||||
sh """
|
||||
make clean
|
||||
make
|
||||
"""
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
archiveArtifacts artifacts: '{{cookiecutter.paper_id}}.pdf', fingerprint: true
|
||||
archiveArtifacts artifacts: 'stats.txt', fingerprint: true
|
||||
|
||||
plot csvFileName: 'stats.txt',
|
||||
csvSeries: [[
|
||||
file: 'stats.txt',
|
||||
exclusionValues: '',
|
||||
displayTableFlag: false,
|
||||
inclusionFlag: 'OFF',
|
||||
url: '']],
|
||||
group: 'Plot Group',
|
||||
title: 'Plot Title',
|
||||
style: 'line',
|
||||
exclZero: false,
|
||||
keepRecords: false,
|
||||
logarithmic: false,
|
||||
numBuilds: '',
|
||||
useDescr: false,
|
||||
yaxis: '',
|
||||
yaxisMaximum: '',
|
||||
yaxisMinimum: ''
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
stage ('autozoil') {
|
||||
steps {
|
||||
sh """
|
||||
rm -f autozoil.xml
|
||||
AUTOZOIL_DIR=autozoil make autozoil.xml
|
||||
"""
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
archiveArtifacts artifacts: 'autozoil.xml', fingerprint: true
|
||||
junit 'autozoil.xml'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
106
{{cookiecutter.paper_repo_name}}/Makefile
Normal file
106
{{cookiecutter.paper_repo_name}}/Makefile
Normal file
@ -0,0 +1,106 @@
|
||||
SHELL=/bin/bash
|
||||
|
||||
# Do not edit these values, they should be changed by modifying .cookiecutter.yml
|
||||
# and re-applying the template
|
||||
PAPER_ID={{cookiecutter.paper_id}}
|
||||
HAS_APPENDIX={{cookiecutter.with_appendix}}
|
||||
LATEX_TEMPLATE={{cookiecutter.latex_template}}
|
||||
WITH_ARXIV_PACKAGE={{cookiecutter.with_arxiv_package}}
|
||||
|
||||
CONTENT_TEX_SOURCES=$(filter-out $(PAPER_ID).tex config.tex other-extras.tex autozoil-extras.tex extras.tex metadata.tex preamble.tex the-appendix.tex, $(wildcard *.tex))
|
||||
|
||||
CURRENT_DIR=$(shell pwd)
|
||||
AUTOZOIL_DIR?=/opt/autozoil
|
||||
AUTOZOIL_LOCALE={{cookiecutter.locale}}
|
||||
|
||||
ifneq (,$(wildcard appendix.tex))
|
||||
ifeq ($(LATEX_TEMPLATE),acl)
|
||||
IS_APPENDIX_SEPARATE=yes
|
||||
endif
|
||||
ifeq ($(LATEX_TEMPLATE),eacl)
|
||||
IS_APPENDIX_SEPARATE=yes
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(IS_APPENDIX_SEPARATE),yes)
|
||||
HAS_SUPPLEMENT=yes
|
||||
endif
|
||||
|
||||
ifeq ($(LATEX_TEMPLATE),pw-thesis)
|
||||
EXTRA_PDFS=titlepage.pdf
|
||||
endif
|
||||
|
||||
CONTENT_TEX_SOURCES_WITH_DIR := $(addprefix $(CURRENT_DIR)/, $(CONTENT_TEX_SOURCES))
|
||||
SCOREFILES=$(shell perl extract-score-files.pl $(CONTENT_TEX_SOURCES))
|
||||
|
||||
clean_latex_stuff=rm -rf *.aux *.nav *.toc *.log *.out *.blg *.bbl autozoil-log.txt autozoil.xml the-appendix.pdf supplement.zip $(PAPER_ID).pdf $(PAPER_ID).zip arxiv-$(PAPER_ID).pdf arxiv-$(PAPER_ID).tar.gz abstract.txt sentences.txt stats.txt $(EXTRA_PDFS)
|
||||
|
||||
ifeq ($(HAS_SUPPLEMENT),yes)
|
||||
all: $(PAPER_ID).pdf abstract.txt supplement.zip stats.txt sentences.txt
|
||||
else
|
||||
all: $(PAPER_ID).pdf abstract.txt stats.txt sentences.txt
|
||||
endif
|
||||
|
||||
source-pack: $(PAPER_ID).zip
|
||||
|
||||
stats.txt: $(PAPER_ID).pdf helpers/stats.sh
|
||||
bash helpers/stats.sh $< > $@
|
||||
cat $@
|
||||
|
||||
$(PAPER_ID).pdf: $(PAPER_ID).tex preamble.tex metadata.tex $(CONTENT_TEX_SOURCES) bibliography.bib $(SCOREFILES) $(EXTRA_PDFS)
|
||||
pdflatex $<
|
||||
bibtex $(PAPER_ID)
|
||||
pdflatex $<
|
||||
pdflatex $<
|
||||
|
||||
# to be copied and pasted as plain text (without LaTeX stuff)
|
||||
abstract.txt: abstract.tex
|
||||
cat $< | perl -pne 's/noqa\{[^}]+\}//g' | detex > $@
|
||||
|
||||
sentences.txt: $(PAPER_ID).pdf helpers/get-sentences.sh helpers/pdf-to-plain-text.sh helpers/strip-references.pl
|
||||
bash helpers/get-sentences.sh $< > $@
|
||||
|
||||
scores/%.txt:
|
||||
mkdir -p scores
|
||||
curl "https://gonito.net/api/txt/score/"$* -o $@
|
||||
|
||||
autozoil-log.txt: $(CONTENT_TEX_SOURCES)
|
||||
cd $(AUTOZOIL_DIR) && set -o pipefail && ./autozoil --locale $(AUTOZOIL_LOCALE) $(CONTENT_TEX_SOURCES_WITH_DIR) --alt-log-file $(CURRENT_DIR)/$(PAPER_ID).log | tee $(CURRENT_DIR)/$@
|
||||
|
||||
autozoil.xml: $(CONTENT_TEX_SOURCES)
|
||||
cd $(AUTOZOIL_DIR) && set -o pipefail && ./autozoil --locale $(AUTOZOIL_LOCALE) $(CONTENT_TEX_SOURCES_WITH_DIR) --format xml --alt-log-file $(CURRENT_DIR)/$(PAPER_ID).log --exit-with-zero > $(CURRENT_DIR)/autozoil.xml
|
||||
|
||||
$(PAPER_ID).zip:
|
||||
$(clean_latex_stuff)
|
||||
rm -rf *~
|
||||
zip -r $@ . -x '*.git*' '*.zip'
|
||||
|
||||
ifeq ($(HAS_SUPPLEMENT),yes)
|
||||
supplement.zip: the-appendix.pdf
|
||||
zip $@ $<
|
||||
|
||||
ifeq ($(IS_APPENDIX_SEPARATE),yes)
|
||||
the-appendix.pdf: the-appendix.tex appendix.tex
|
||||
pdflatex the-appendix
|
||||
pdflatex the-appendix
|
||||
pdflatex the-appendix
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
ifeq ($(WITH_ARXIV_PACKAGE),yes)
|
||||
# test whether a paper can be generated from the arxiv package
|
||||
arxiv-$(PAPER_ID).pdf: arxiv-$(PAPER_ID).tar.gz helpers/generate-pdf-from-arxiv-package.sh
|
||||
bash -xe helpers/generate-pdf-from-arxiv-package.sh $< $@
|
||||
|
||||
arxiv-$(PAPER_ID).tar.gz: $(PAPER_ID).tex preamble.tex metadata.tex $(CONTENT_TEX_SOURCES) bibliography.bib $(SCOREFILES) helpers/prepare-arxiv-package.sh helpers/flatten-structure.pl
|
||||
bash -xe helpers/prepare-arxiv-package.sh $(LATEX_TEMPLATE) $@
|
||||
endif
|
||||
|
||||
ifeq ($(LATEX_TEMPLATE),pw-thesis)
|
||||
titlepage.pdf: titlepage.tex
|
||||
xelatex $<
|
||||
endif
|
||||
|
||||
clean:
|
||||
$(clean_latex_stuff)
|
5
{{cookiecutter.paper_repo_name}}/README.md
Normal file
5
{{cookiecutter.paper_repo_name}}/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# {{cookiecutter.paper_id}}
|
||||
|
||||
{{cookiecutter.paper_short_description}}
|
||||
|
||||
[![pipeline status](https://{{cookiecutter.git_host}}/{{cookiecutter.gitlab_group}}/{{cookiecutter.paper_repo_name}}/badges/master/pipeline.svg)](https://{{cookiecutter.git_host}}/{{cookiecutter.gitlab_group}}/{{cookiecutter.paper_repo_name}}/commits/master)
|
@ -0,0 +1,50 @@
|
||||
{% raw %}
|
||||
%
|
||||
% File acl2020.tex
|
||||
%
|
||||
%% Based on the style files for ACL 2020, which were
|
||||
%% Based on the style files for ACL 2018, NAACL 2018/19, which were
|
||||
%% Based on the style files for ACL-2015, with some improvements
|
||||
%% taken from the NAACL-2016 style
|
||||
%% Based on the style files for ACL-2014, which were, in turn,
|
||||
%% based on ACL-2013, ACL-2012, ACL-2011, ACL-2010, ACL-IJCNLP-2009,
|
||||
%% EACL-2009, 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
|
||||
|
||||
\documentclass[11pt,a4paper]{article}
|
||||
{% endraw %}
|
||||
\usepackage[hyperref]{
|
||||
{{ cookiecutter.latex_template + '2021' if cookiecutter.latex_template == 'eacl' else cookiecutter.latex_template + '2020' }}
|
||||
}
|
||||
{% raw %}
|
||||
\usepackage{times}
|
||||
\usepackage{latexsym}
|
||||
\renewcommand{\UrlFont}{\ttfamily\small}
|
||||
|
||||
% This is not strictly necessary, and may be commented out,
|
||||
% but it will improve the layout of the manuscript,
|
||||
% and will typically save some space.
|
||||
\usepackage{microtype}
|
||||
|
||||
%\aclfinalcopy % Uncomment this line for the final submission
|
||||
%\def\aclpaperid{***} % Enter the acl Paper ID here
|
||||
|
||||
%\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.
|
||||
|
||||
\newcommand\BibTeX{B\textsc{ib}\TeX}
|
||||
|
||||
\input{extras}
|
||||
\input{preamble}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\input{appendix}
|
||||
|
||||
\end{document}
|
||||
{% endraw %}
|
@ -0,0 +1,12 @@
|
||||
\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} \\}
|
@ -0,0 +1,65 @@
|
||||
{% raw %}
|
||||
\pdfoutput=1
|
||||
%
|
||||
% File acl2020.tex
|
||||
%
|
||||
%% Based on the style files for ACL 2020, which were
|
||||
%% Based on the style files for ACL 2018, NAACL 2018/19, which were
|
||||
%% Based on the style files for ACL-2015, with some improvements
|
||||
%% taken from the NAACL-2016 style
|
||||
%% Based on the style files for ACL-2014, which were, in turn,
|
||||
%% based on ACL-2013, ACL-2012, ACL-2011, ACL-2010, ACL-IJCNLP-2009,
|
||||
%% EACL-2009, 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
|
||||
|
||||
\documentclass[11pt,a4paper]{article}
|
||||
{% endraw %}
|
||||
\usepackage[hyperref]{
|
||||
{{ cookiecutter.latex_template + '2021' if cookiecutter.latex_template == 'eacl' else cookiecutter.latex_template + '2020' }}
|
||||
}
|
||||
{% raw %}
|
||||
\usepackage{times}
|
||||
\usepackage{latexsym}
|
||||
\renewcommand{\UrlFont}{\ttfamily\small}
|
||||
|
||||
% This is not strictly necessary, and may be commented out,
|
||||
% but it will improve the layout of the manuscript,
|
||||
% and will typically save some space.
|
||||
\usepackage{microtype}
|
||||
|
||||
%\aclfinalcopy % Uncomment this line for the final submission
|
||||
%\def\aclpaperid{***} % Enter the acl Paper ID here
|
||||
|
||||
%\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.
|
||||
|
||||
\newcommand\BibTeX{B\textsc{ib}\TeX}
|
||||
|
||||
\input{config}
|
||||
\input{extras}
|
||||
\input{preamble}
|
||||
\input{metadata}
|
||||
|
||||
\begin{document}
|
||||
\maketitle
|
||||
\begin{abstract}
|
||||
\input{abstract}
|
||||
\end{abstract}
|
||||
|
||||
\input{main}
|
||||
|
||||
\bibliography{bibliography}
|
||||
\bibliographystyle{acl_natbib}
|
||||
|
||||
\end{document}
|
||||
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
%%% TeX-master: t
|
||||
%%% End:
|
||||
{% endraw %}
|
@ -0,0 +1,14 @@
|
||||
{% 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 %}
|
@ -0,0 +1,64 @@
|
||||
{% raw %}
|
||||
\pdfoutput=1
|
||||
%
|
||||
% 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}}
|
||||
|
||||
\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{acl}
|
||||
|
||||
\ifwithappendix
|
||||
\typeout{!!! APPENDIX WILL BE SKIPPED FOR THIS TEMPLATE. !!!}
|
||||
\fi
|
||||
|
||||
\end{document}
|
||||
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
%%% TeX-master: t
|
||||
%%% End:
|
||||
{% endraw %}
|
@ -0,0 +1,44 @@
|
||||
%
|
||||
% File acl2020.tex
|
||||
%
|
||||
%% Based on the style files for ACL 2020, which were
|
||||
%% Based on the style files for ACL 2018, NAACL 2018/19, which were
|
||||
%% Based on the style files for ACL-2015, with some improvements
|
||||
%% taken from the NAACL-2016 style
|
||||
%% Based on the style files for ACL-2014, which were, in turn,
|
||||
%% based on ACL-2013, ACL-2012, ACL-2011, ACL-2010, ACL-IJCNLP-2009,
|
||||
%% EACL-2009, 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
|
||||
|
||||
\documentclass[11pt,a4paper]{article}
|
||||
\usepackage[hyperref]{emnlp2020}
|
||||
\usepackage{times}
|
||||
\usepackage{latexsym}
|
||||
\renewcommand{\UrlFont}{\ttfamily\small}
|
||||
|
||||
% This is not strictly necessary, and may be commented out,
|
||||
% but it will improve the layout of the manuscript,
|
||||
% and will typically save some space.
|
||||
\usepackage{microtype}
|
||||
|
||||
%\aclfinalcopy % Uncomment this line for the final submission
|
||||
%\def\aclpaperid{***} % Enter the acl Paper ID here
|
||||
|
||||
%\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.
|
||||
|
||||
\newcommand\BibTeX{B\textsc{ib}\TeX}
|
||||
|
||||
\input{extras}
|
||||
\input{preamble}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\input{appendix}
|
||||
|
||||
\end{document}
|
@ -0,0 +1,12 @@
|
||||
\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} \\}
|
@ -0,0 +1,61 @@
|
||||
{% raw %}
|
||||
\pdfoutput=1
|
||||
%
|
||||
% File acl2020.tex
|
||||
%
|
||||
%% Based on the style files for ACL 2020, which were
|
||||
%% Based on the style files for ACL 2018, NAACL 2018/19, which were
|
||||
%% Based on the style files for ACL-2015, with some improvements
|
||||
%% taken from the NAACL-2016 style
|
||||
%% Based on the style files for ACL-2014, which were, in turn,
|
||||
%% based on ACL-2013, ACL-2012, ACL-2011, ACL-2010, ACL-IJCNLP-2009,
|
||||
%% EACL-2009, 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
|
||||
|
||||
\documentclass[11pt,a4paper]{article}
|
||||
\usepackage[hyperref]{emnlp2020}
|
||||
\usepackage{times}
|
||||
\usepackage{latexsym}
|
||||
\renewcommand{\UrlFont}{\ttfamily\small}
|
||||
|
||||
% This is not strictly necessary, and may be commented out,
|
||||
% but it will improve the layout of the manuscript,
|
||||
% and will typically save some space.
|
||||
\usepackage{microtype}
|
||||
|
||||
%\aclfinalcopy % Uncomment this line for the final submission
|
||||
%\def\aclpaperid{***} % Enter the acl Paper ID here
|
||||
|
||||
%\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.
|
||||
|
||||
\newcommand\BibTeX{B\textsc{ib}\TeX}
|
||||
|
||||
\input{config}
|
||||
\input{extras}
|
||||
\input{preamble}
|
||||
\input{metadata}
|
||||
|
||||
\begin{document}
|
||||
\maketitle
|
||||
\begin{abstract}
|
||||
\input{abstract}
|
||||
\end{abstract}
|
||||
|
||||
\input{main}
|
||||
|
||||
\bibliography{bibliography}
|
||||
\bibliographystyle{acl_natbib}
|
||||
|
||||
\end{document}
|
||||
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
%%% TeX-master: t
|
||||
%%% End:
|
||||
{% endraw %}
|
@ -0,0 +1,22 @@
|
||||
{% raw %}
|
||||
\title{Contribution Title\thanks{Supported by organization x.}}
|
||||
%
|
||||
%\titlerunning{Abbreviated paper title}
|
||||
% If the paper title is too long for the running head, you can set
|
||||
% an abbreviated paper title here
|
||||
%
|
||||
\author{First Author\inst{1}\orcidID{0000-1111-2222-3333} \and
|
||||
Second Author\inst{2,3}\orcidID{1111-2222-3333-4444} \and
|
||||
Third Author\inst{3}\orcidID{2222--3333-4444-5555}}
|
||||
%
|
||||
\authorrunning{F. Author et al.}
|
||||
% First names are abbreviated in the running head.
|
||||
% If there are more than two authors, 'et al.' is used.
|
||||
%
|
||||
\institute{Princeton University, Princeton NJ 08544, USA \and
|
||||
Springer Heidelberg, Tiergartenstr. 17, 69121 Heidelberg, Germany
|
||||
\email{lncs@springer.com}\\
|
||||
\url{http://www.springer.com/gp/computer-science/lncs} \and
|
||||
ABC Institute, Rupert-Karls-University Heidelberg, Heidelberg, Germany\\
|
||||
\email{\{abc,lncs\}@uni-heidelberg.de}}
|
||||
{% endraw %}
|
@ -0,0 +1,50 @@
|
||||
{% raw %}
|
||||
% This is samplepaper.tex, a sample chapter demonstrating the
|
||||
% LLNCS macro package for Springer Computer Science proceedings;
|
||||
% Version 2.20 of 2017/10/04
|
||||
%
|
||||
\documentclass[runningheads]{llncs}
|
||||
%
|
||||
\usepackage{graphicx}
|
||||
% Used for displaying a sample figure. If possible, figure files should
|
||||
% be included in EPS format.
|
||||
%
|
||||
% If you use the hyperref package, please uncomment the following line
|
||||
% to display URLs in blue roman font according to Springer's eBook style:
|
||||
% \renewcommand\UrlFont{\color{blue}\rmfamily}
|
||||
|
||||
\input{config}
|
||||
\input{extras}
|
||||
\input{preamble}
|
||||
|
||||
\begin{document}
|
||||
%
|
||||
\input{metadata.tex}
|
||||
\maketitle % typeset the header of the contribution
|
||||
%
|
||||
\begin{abstract}
|
||||
\input{abstract}
|
||||
|
||||
\keywords{%
|
||||
\input{keywords}
|
||||
}
|
||||
\end{abstract}
|
||||
%
|
||||
%
|
||||
%
|
||||
\input{main}
|
||||
|
||||
\bibliography{bibliography}
|
||||
\bibliographystyle{splncs04}
|
||||
|
||||
\ifwithappendix
|
||||
\input{appendix}
|
||||
\fi
|
||||
|
||||
\end{document}
|
||||
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
%%% TeX-master: t
|
||||
%%% End:
|
||||
{% endraw %}
|
@ -0,0 +1,20 @@
|
||||
\lefttitle{\LaTeX\ Supplement}
|
||||
\righttitle{Natural Language Engineering}
|
||||
|
||||
\papertitle{Article}
|
||||
|
||||
\jnlPage{1}{00}
|
||||
\jnlDoiYr{2019}
|
||||
\doival{10.1017/xxxxx}
|
||||
|
||||
\title{Insert your title}
|
||||
|
||||
\begin{authgrp}
|
||||
\author{Cambridge Author}
|
||||
\affiliation{Electronic Products and Composition Group,\\
|
||||
Printing Division, Cambridge University Press, CB2 2BS\\
|
||||
\email{texline@cambridge.org}}
|
||||
\end{authgrp}
|
||||
|
||||
\history{(Received xx xxx xxx; revised xx xxx xxx; accepted xx xxx xxx)}
|
||||
%\received{20 March 1995; revised 30 September 1998}
|
@ -0,0 +1,49 @@
|
||||
{% raw %}
|
||||
\pdfoutput=1
|
||||
% nleguide.tex
|
||||
% v1.0, released 31 Jan 2019
|
||||
% Copyright 2019 Cambridge University Press
|
||||
|
||||
\documentclass{nle}
|
||||
|
||||
\usepackage{amsmath}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{natbib}
|
||||
\ifpdf%
|
||||
\usepackage{epstopdf}%
|
||||
\else%
|
||||
\fi
|
||||
|
||||
\input{config}
|
||||
\input{preamble}
|
||||
\input{extras}
|
||||
|
||||
\begin{document}
|
||||
\label{firstpage}
|
||||
|
||||
\input{metadata}
|
||||
|
||||
\begin{abstract}
|
||||
\input{abstract}
|
||||
\end{abstract}
|
||||
|
||||
\maketitle
|
||||
|
||||
\input{main}
|
||||
|
||||
\bibliographystyle{nlelike}
|
||||
\bibliography{bibliography}
|
||||
|
||||
\ifwithappendix
|
||||
\input{appendix}
|
||||
\fi
|
||||
|
||||
\label{lastpage}
|
||||
|
||||
\end{document}
|
||||
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
%%% TeX-master: t
|
||||
%%% End:
|
||||
{% endraw %}
|
@ -0,0 +1,12 @@
|
||||
{% raw %}
|
||||
% Here is how the title is formatted on the first page of the article
|
||||
\chapter{Four-Horned Unicorns: Dialectal Studies \\ of a Recently Discovered Species}
|
||||
|
||||
% Here is the short title in the running head
|
||||
\fancyhead[LO]{\textnormal{\small{Four-Horned Unicorns: Dialectal Studies}}}
|
||||
|
||||
% Here we have:
|
||||
% - in square brackets: author(s) in the running head
|
||||
% - in curly brackets: author(s) on the first page of the article
|
||||
\chapterauthor[John Doe, Venkatanarasimha Rajuvaripet]{John Doe \textnormal{(Institute for Natural Language Processing, University of Southern Atlantis)}, Venkatanarasimha Rajuvaripet \textnormal{(Institute for Unicorn Studies, Brahmapura)}}
|
||||
{% endraw %}
|
@ -0,0 +1,33 @@
|
||||
{% raw %}
|
||||
\documentclass{poleval}
|
||||
|
||||
\input{config}
|
||||
\input{extras}
|
||||
\input{preamble}
|
||||
\input{metadata}
|
||||
|
||||
\begin{document}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
\begin{abstract}
|
||||
\input{abstract}
|
||||
\end{abstract}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
\begin{keywords}
|
||||
\input{keywords}
|
||||
\end{keywords}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
\section{Introduction}
|
||||
|
||||
\input{main}
|
||||
|
||||
\bibliography{bibliography}
|
||||
\bibliographystyle{poleval}
|
||||
|
||||
\end{document}
|
||||
{% endraw %}
|
1214
{{cookiecutter.paper_repo_name}}/_latex-templates/poleval.bst
Normal file
1214
{{cookiecutter.paper_repo_name}}/_latex-templates/poleval.bst
Normal file
File diff suppressed because it is too large
Load Diff
214
{{cookiecutter.paper_repo_name}}/_latex-templates/poleval.cls
Normal file
214
{{cookiecutter.paper_repo_name}}/_latex-templates/poleval.cls
Normal file
@ -0,0 +1,214 @@
|
||||
{% raw %}
|
||||
\ProvidesClass{poleval}[v.0.1]
|
||||
|
||||
\LoadClass[10pt,english]{book}
|
||||
|
||||
|
||||
%% Czcionki itp.:
|
||||
\usepackage[hidelinks]{hyperref}
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{lmodern} % Typewriter.
|
||||
\linespread{1.05} % Palatino needs more leading (space between lines).
|
||||
\usepackage{charter}
|
||||
\usepackage[charter]{mathdesign}
|
||||
\usepackage{textcomp}
|
||||
|
||||
%% Rozmiar papieru itp.:
|
||||
\setlength\paperheight{238mm} % b5: 250
|
||||
\setlength\paperwidth{168mm} % b5: 176
|
||||
\usepackage[body={135mm,198mm},inner=18mm,top=12mm,twoside,includeheadfoot,headsep=8pt]{geometry}
|
||||
|
||||
% \usepackage{makeidx}
|
||||
% \usepackage{boxhandler}
|
||||
|
||||
% %% Nagłówki, rozdziały itp.:
|
||||
\usepackage{xifthen}
|
||||
\usepackage{fancyhdr}
|
||||
% \usepackage{bm}
|
||||
\setlength{\headheight}{13.6pt}
|
||||
\pagestyle{fancy}
|
||||
\renewcommand{\chaptermark}[1]{%
|
||||
\markboth{#1}{}}
|
||||
\newcommand{\Thechapterauthor}{}
|
||||
\newcommand{\chapterauthor}[2][]{\vspace{-.5em}%
|
||||
\thispagestyle{empty}%
|
||||
\ifthenelse{\isempty{#1}}%
|
||||
{\renewcommand{\Thechapterauthor}{#2}}%
|
||||
{\renewcommand{\Thechapterauthor}{#1}}%
|
||||
% {\addtocontents{toc}{#1}}
|
||||
{\bfseries\large\begin{flushleft}#2\end{flushleft}\vspace{3em}}}
|
||||
|
||||
\fancyhead[LE,RO]{\textnormal{\normalsize\thepage}}
|
||||
\fancyfoot{}
|
||||
\renewcommand{\headrulewidth}{0.6pt}
|
||||
|
||||
\usepackage[medium]{titlesec}
|
||||
\titlelabel{\thetitle.\hspace{1em}}
|
||||
\titleformat{\chapter}[block]
|
||||
{\normalfont}
|
||||
{}{0pt}{\titlerule\\[1ex]
|
||||
\bfseries\LARGE\raggedright}
|
||||
\titlespacing*{\chapter}{0pt}{0pt}{2em}
|
||||
|
||||
% \makeatletter
|
||||
% \renewcommand\part{%
|
||||
% \if@openright
|
||||
% \cleardoublepage
|
||||
% \else
|
||||
% \clearpage
|
||||
% \fi
|
||||
% \thispagestyle{empty}%
|
||||
% \if@twocolumn
|
||||
% \onecolumn
|
||||
% \@tempswatrue
|
||||
% \else
|
||||
% \@tempswafalse
|
||||
% \fi
|
||||
% \null\vfil
|
||||
% \secdef\@part\@spart}
|
||||
% \makeatother
|
||||
|
||||
|
||||
% \makeatletter
|
||||
% \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
|
||||
% \hbox{}
|
||||
% \thispagestyle{plain}
|
||||
% \newpage
|
||||
% \if@twocolumn\hbox{}\newpage\fi\fi\fi}
|
||||
% \makeatother \clearpage{\pagestyle{plain}\cleardoublepage}
|
||||
|
||||
%% Inne rozmiary:
|
||||
\setlength{\parindent}{8mm}
|
||||
\setlength\parskip{\z@} % stały parskip (z~mwbk.cls)
|
||||
\renewcommand\footnoterule{% % inna długość linii w~przypisach
|
||||
\kern-3\p@
|
||||
\hrule\@width 35mm
|
||||
\kern2.6\p@}
|
||||
|
||||
\newcommand{\captionfonts}{\small} % Different font in captions
|
||||
\long\def\@makecaption#1#2{%
|
||||
\vskip\abovecaptionskip
|
||||
\sbox\@tempboxa{{\captionfonts #1: #2}}%
|
||||
\ifdim \wd\@tempboxa >\hsize
|
||||
{\captionfonts #1: #2\par}
|
||||
\else
|
||||
\hbox to\hsize{\hfil\box\@tempboxa\hfil}%
|
||||
\fi
|
||||
\vskip\belowcaptionskip}
|
||||
|
||||
|
||||
% \newenvironment{betterquote}{\setlength{\leftmargini}{\parindent}\setlength{\rightmargin}{\parindent}\quote}{\endquote}
|
||||
|
||||
\newenvironment{abstract}{%
|
||||
\textbf{Abstract}\\[.75em]
|
||||
}%
|
||||
|
||||
\newenvironment{keywords}{%
|
||||
\vspace{13pt}\textbf{Keywords}\\[.75em]
|
||||
}%
|
||||
|
||||
|
||||
%% Bibliografia i~odnośniki:
|
||||
\usepackage{natbib}
|
||||
\renewcommand\bibsection{\chapter*{\bibname}\addcontentsline{toc}{chapter}{\bibname}}
|
||||
\bibpunct[:\,]{(}{)}{,}{}{}{,}
|
||||
\setlength{\bibsep}{5pt plus 1pt}
|
||||
\setlength{\bibhang}{0mm}
|
||||
|
||||
|
||||
\renewcommand{\thesection}{\arabic{section}}
|
||||
|
||||
% %% Różności:
|
||||
|
||||
\usepackage{url}
|
||||
\usepackage{microtype}
|
||||
% \usepackage{ccicons}
|
||||
\usepackage{amsmath}
|
||||
|
||||
\usepackage{booktabs}
|
||||
|
||||
% \usepackage{pdfpages}
|
||||
|
||||
\usepackage{enumitem} % Customize lists
|
||||
\setlist{nolistsep, itemsep=5pt, topsep=2pt}
|
||||
%\setlist[itemize]{leftmargin=\parindent}
|
||||
%\setlist[enumerate]{leftmargin=\parindent}
|
||||
|
||||
\usepackage[font=small]{floatrow}
|
||||
\usepackage[font=small]{caption}
|
||||
\captionsetup{style=base}
|
||||
\captionsetup[table]{position=below}
|
||||
\captionsetup[figure]{position=below}
|
||||
\captionsetup[table]{skip=10pt}
|
||||
%\captionsetup{justification=raggedright,singlelinecheck=false}
|
||||
\floatsetup[table]{capposition=top}
|
||||
%\captionsetup{tablename=Tabela,labelsep=period}
|
||||
\renewcommand{\thefigure}{\arabic{figure}}
|
||||
\renewcommand{\thetable}{\arabic{table}}
|
||||
|
||||
\usepackage{multirow}
|
||||
\usepackage[figuresright]{rotating}
|
||||
|
||||
% \usepackage[flushleft]{threeparttable}
|
||||
|
||||
% \def\timenow{\@tempcnta\time
|
||||
% \@tempcntb\@tempcnta
|
||||
% \divide\@tempcntb60
|
||||
% \ifnum10>\@tempcntb0\fi\number\@tempcntb
|
||||
% \multiply\@tempcntb60
|
||||
% \advance\@tempcnta-\@tempcntb
|
||||
% :\ifnum10>\@tempcnta0\fi\number\@tempcnta}
|
||||
|
||||
|
||||
\usepackage{graphicx,array}
|
||||
|
||||
\usepackage[titles]{tocloft}
|
||||
\setlength{\cftsecnumwidth}{2.3em}
|
||||
|
||||
\usepackage{titletoc,tocloft}
|
||||
\setlength{\cftsubsecindent}{2cm}
|
||||
\setlength{\cftsubsubsecindent}{4cm}
|
||||
\dottedcontents{section}[1.5em]{}{1.3em}{.6em}
|
||||
|
||||
\renewcommand*\labelitemi{\textemdash}
|
||||
\renewcommand*\labelitemii{\textemdash}
|
||||
\renewcommand*\labelitemiii{\textemdash}
|
||||
\renewcommand*\labelitemiv{\textemdash}
|
||||
|
||||
\renewcommand{\bibsection}{\section*{References}}
|
||||
|
||||
|
||||
\addtolength{\headsep}{2mm}
|
||||
|
||||
\hbadness=5000
|
||||
\vbadness=5000
|
||||
|
||||
\clubpenalty=10000
|
||||
\widowpenalty=10000
|
||||
|
||||
|
||||
\renewcommand*\l@chapter{\bigskip\@dottedtocline{0}{0em}{0em}}
|
||||
|
||||
|
||||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
\fancyhead[RE]{\textnormal{\mbox{\small\Thechapterauthor}}}
|
||||
\fancyhead[LO]{\textnormal{\small\leftmark}}
|
||||
|
||||
\setlength{\parindent}{0pt}
|
||||
\setlength{\parskip}{0.9ex plus 0.5ex minus 0.2ex}
|
||||
|
||||
\newcommand{\nocontentsline}[3]{}
|
||||
\newcommand{\tocless}[2]{\bgroup\let\addcontentsline=\nocontentsline#1{#2}\egroup}
|
||||
|
||||
\setcounter{tocdepth}{0}
|
||||
|
||||
\let\ps@plain\ps@empty
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
\endinput
|
||||
{% endraw %}
|
@ -0,0 +1,6 @@
|
||||
{% raw %}
|
||||
\newcommand{\tytul}{Tytuł po polsku}
|
||||
\renewcommand{\title}{Title in English}
|
||||
\newcommand{\type}{Master} % Master OR Engineer
|
||||
\newcommand{\supervisor}{dr inż. Promotor X} % TITLE AND NAME OF THE SUPERVISOR
|
||||
{% endraw %}
|
@ -0,0 +1,84 @@
|
||||
{% raw %}
|
||||
\documentclass[12pt,twoside,a4paper]{article}
|
||||
% compile this with XeLaTeX. Then, view PDF.
|
||||
|
||||
\usepackage{fontspec,newunicodechar}
|
||||
\defaultfontfeatures{Ligatures=TeX}
|
||||
|
||||
\usepackage{graphicx}
|
||||
\usepackage[vmargin = 25mm, hmargin = 20mm, bindingoffset=10mm]{geometry}
|
||||
|
||||
\newfontfamily\arial{arial.ttf}
|
||||
|
||||
\linespread{1.5}
|
||||
\setlength{\parindent}{0mm}
|
||||
|
||||
% ------------------------------------------------------
|
||||
{% endraw %}
|
||||
\newcommand{\discipline}{ {{ cookiecutter.discipline }} }
|
||||
\renewcommand{\title}{ {{ cookiecutter.paper_title }} }
|
||||
\renewcommand{\author}{ {{ cookiecutter.main_contributor_name }} }
|
||||
\newcommand{\supervisor}{ {{ cookiecutter.supervisor }} }
|
||||
\newcommand{\album}{ {{ cookiecutter.album_no }} }
|
||||
\newcommand{\spec}{ {{ cookiecutter.specialization }} }
|
||||
\renewcommand{\year}{2020}
|
||||
{% raw %}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\pagestyle{empty}
|
||||
|
||||
|
||||
\begin{center}
|
||||
\includegraphics[scale=1.]{img/wut}
|
||||
\vspace{70pt}
|
||||
|
||||
|
||||
\includegraphics[scale=1.]{img/master} % or bachelor
|
||||
|
||||
{ \arial
|
||||
in the field of study~\discipline \\
|
||||
and specialisation~\spec
|
||||
|
||||
\vspace{30pt}
|
||||
{\arial \large \title}
|
||||
|
||||
\vspace{50pt}
|
||||
|
||||
{\arial \huge \author}
|
||||
|
||||
\vspace{5pt}
|
||||
|
||||
student record book number \album
|
||||
|
||||
\vspace{40pt}
|
||||
|
||||
thesis supervisor \\
|
||||
{\arial \supervisor}
|
||||
|
||||
\vspace{15pt}
|
||||
|
||||
%consulation (optional) \\
|
||||
%{\arial academic title/degree Name and Surname}
|
||||
|
||||
\vfill
|
||||
WARSAW \year \\
|
||||
}
|
||||
\end{center}
|
||||
|
||||
|
||||
%\newpage
|
||||
%\null
|
||||
%
|
||||
%\vfill
|
||||
%
|
||||
%\begin{center}
|
||||
%\begin{tabular}[t]{ccc}
|
||||
%............................................. & \hspace*{100pt} & .............................................\\
|
||||
%supervisor's signature & \hspace*{100pt} & author's signature
|
||||
%\end{tabular}
|
||||
%\end{center}
|
||||
|
||||
|
||||
\end{document}
|
||||
{% endraw %}
|
@ -0,0 +1,338 @@
|
||||
{% raw %}
|
||||
\pdfoutput=1
|
||||
\documentclass[a4paper,11pt,twoside]{report}
|
||||
% THIS FILE SHOULD BE COMPILED BY pdfLaTeX
|
||||
|
||||
% ---------------------- PREAMBLE PART ------------------------------
|
||||
|
||||
\input{config}
|
||||
\input{preamble}
|
||||
\input{extras}
|
||||
|
||||
% ------------------------ ENCODING & LANGUAGES ----------------------
|
||||
|
||||
\usepackage[utf8]{inputenc}
|
||||
%\usepackage[MeX]{polski} % Not needed unless You have a name with polish symbols or sth
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage[english, polish]{babel}
|
||||
|
||||
|
||||
\usepackage{amsmath, amsfonts, amsthm, latexsym} % MOSTLY MATHEMATICAL SYMBOLS
|
||||
\usepackage{ulem} %cross-outs
|
||||
\usepackage{tabularx} %tables with width setting
|
||||
\usepackage{hyperref} %hyperlinks, for table of contents
|
||||
|
||||
%copy-paste from stack overflow to use vertical labels in tables
|
||||
\usepackage{array,graphicx}
|
||||
\usepackage{booktabs}
|
||||
\usepackage{pifont}
|
||||
\usepackage{float}
|
||||
|
||||
\newcommand*\rot{\rotatebox{90}}
|
||||
\newcommand*\OK{\ding{51}}
|
||||
|
||||
\usepackage[final]{pdfpages} % INPUTING TITLE PDF PAGE - GENERATE IT FIRST!
|
||||
%\usepackage[backend=bibtex, style=verbose-trad2]{biblatex}
|
||||
|
||||
% ---------------- MARGINS, INDENTATION, LINESPREAD ------------------
|
||||
|
||||
\usepackage[inner=20mm, outer=20mm, bindingoffset=10mm, top=25mm, bottom=25mm]{geometry} % MARGINS
|
||||
|
||||
\usepackage[none]{hyphenat}
|
||||
\hyphenpenalty=750 % kara za łamanie słów
|
||||
\hyphenpenalty 10000
|
||||
\exhyphenpenalty 10000
|
||||
\hyphenation{state-of-the-art}
|
||||
|
||||
|
||||
|
||||
\linespread{1.5}
|
||||
\allowdisplaybreaks % ALLOWS BREAKING PAGE IN MATH MODE
|
||||
|
||||
\usepackage{indentfirst} % IT MAKES THE FIRST PARAGRAPH INDENTED; NOT NEEDED
|
||||
\setlength{\parindent}{5mm} % WIDTH OF AN INDENTATION
|
||||
|
||||
|
||||
%---------------- RUNNING HEAD - CHAPTER NAMES, PAGE NUMBERS ETC. -------------------
|
||||
|
||||
\usepackage{fancyhdr}
|
||||
\pagestyle{fancy}
|
||||
\fancyhf{}
|
||||
% PAGINATION: LEFT ALIGNMENT ON EVEN PAGES, RIGHT ALIGNMENT ON ODD PAGES
|
||||
\fancyfoot[LE,RO]{\thepage}
|
||||
% RIGHT HEADER: zawartość \rightmark do lewego, wewnętrznego (marginesu)
|
||||
\fancyhead[LO]{\sc \nouppercase{\rightmark}}
|
||||
% lewa pagina: zawartość \leftmark do prawego, wewnętrznego (marginesu)
|
||||
\fancyhead[RE]{\sc \leftmark}
|
||||
|
||||
\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
|
||||
|
||||
% HEAD RULE - IT'S A LINE WHICH SEPARATES HEADER AND FOOTER FROM CONTENT
|
||||
\renewcommand{\headrulewidth}{0 pt} % 0 MEANS NO RULE, 0.5 MEANS FINE RULE, THE BIGGER VALUE THE THICKER RULE
|
||||
|
||||
|
||||
\fancypagestyle{plain}{
|
||||
\fancyhf{}
|
||||
\fancyfoot[LE,RO]{\thepage}
|
||||
|
||||
\renewcommand{\headrulewidth}{0pt}
|
||||
\renewcommand{\footrulewidth}{0.0pt}
|
||||
}
|
||||
|
||||
|
||||
|
||||
% --------------------------- CHAPTER HEADERS ---------------------
|
||||
|
||||
\usepackage{titlesec}
|
||||
\titleformat{\chapter}
|
||||
{\normalfont\Large \bfseries}
|
||||
{\thechapter.}{1ex}{\Large}
|
||||
|
||||
\titleformat{\section}
|
||||
{\normalfont\large\bfseries}
|
||||
{\thesection.}{1ex}{}
|
||||
\titlespacing{\section}{0pt}{30pt}{20pt}
|
||||
|
||||
|
||||
\titleformat{\subsection}
|
||||
{\normalfont \bfseries}
|
||||
{\thesubsection.}{1ex}{}
|
||||
|
||||
|
||||
% ----------------------- TABLE OF CONTENTS SETUP ---------------------------
|
||||
|
||||
\def\cleardoublepage{\clearpage\if@twoside
|
||||
\ifodd\c@page\else\hbox{}\thispagestyle{empty}\newpage
|
||||
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
|
||||
|
||||
|
||||
% THIS MAKES DOTS IN TOC FOR CHAPTERS
|
||||
\usepackage{etoolbox}
|
||||
\makeatletter
|
||||
\patchcmd{\l@chapter}
|
||||
{\hfil}
|
||||
{\leaders\hbox{\normalfont$\m@th\mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}\hfill}
|
||||
{}{}
|
||||
\makeatother
|
||||
|
||||
\usepackage{titletoc}
|
||||
\makeatletter
|
||||
\titlecontents{chapter}% <section-type>
|
||||
[0pt]% <left>
|
||||
{}% <above-code>
|
||||
{\bfseries \thecontentslabel.\quad}% <numbered-entry-format>
|
||||
{\bfseries}% <numberless-entry-format>
|
||||
{\bfseries\leaders\hbox{\normalfont$\m@th\mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}\hfill\contentspage}% <filler-page-format>
|
||||
|
||||
\titlecontents{section}
|
||||
[1em]
|
||||
{}
|
||||
{\thecontentslabel.\quad}
|
||||
{}
|
||||
{\leaders\hbox{\normalfont$\m@th\mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}\hfill\contentspage}
|
||||
|
||||
\titlecontents{subsection}
|
||||
[2em]
|
||||
{}
|
||||
{\thecontentslabel.\quad}
|
||||
{}
|
||||
{\leaders\hbox{\normalfont$\m@th\mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}\hfill\contentspage}
|
||||
\makeatother
|
||||
|
||||
|
||||
|
||||
% ---------------------- TABLES AD FIGURES NUMBERING ----------------------
|
||||
|
||||
\renewcommand*{\thetable}{\arabic{chapter}.\arabic{table}}
|
||||
\renewcommand*{\thefigure}{\arabic{chapter}.\arabic{figure}}
|
||||
|
||||
|
||||
% ------------- DEFINING ENVIRONMENTS FOR THEOREMS, DEFINITIONS ETC. ---------------
|
||||
|
||||
\makeatletter
|
||||
\newtheoremstyle{definition}
|
||||
{3ex}% % Space above
|
||||
{3ex}% % Space below
|
||||
{\upshape}% % Body font
|
||||
{}% % Indent amount
|
||||
{\bfseries}% % Theorem head font
|
||||
{.}% % Punctuation after theorem head
|
||||
{.5em}% % Space after theorem head, ' ', or \newline
|
||||
{\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}}
|
||||
\makeatother
|
||||
|
||||
\theoremstyle{definition}
|
||||
\newtheorem{theorem}{Theorem}[chapter]
|
||||
\newtheorem{lemma}[theorem]{Lemma}
|
||||
\newtheorem{example}[theorem]{Example}
|
||||
\newtheorem{proposition}[theorem]{Proposition}
|
||||
\newtheorem{corollary}[theorem]{Corollary}
|
||||
\newtheorem{definition}[theorem]{Definition}
|
||||
\newtheorem{remark}[theorem]{Remark}
|
||||
|
||||
% --------------------- END OF PREAMBLE PART (MOSTLY) --------------------------
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
% -------------------------- USER SETTINGS ---------------------------
|
||||
|
||||
\input{metadata}
|
||||
|
||||
\begin{document}
|
||||
\sloppy
|
||||
\selectlanguage{english}
|
||||
|
||||
\includepdf[pages=-]{titlepage} % THIS INPUTS THE TITLE PAGE
|
||||
|
||||
|
||||
% ------------------ PAGE WITH SIGNATURES --------------------------------
|
||||
|
||||
\thispagestyle{empty}\newpage
|
||||
\null
|
||||
|
||||
\vfill
|
||||
|
||||
\begin{center}
|
||||
\begin{tabular}[t]{ccc}
|
||||
............................................. & \hspace*{100pt} & .............................................\\
|
||||
supervisor's signature & \hspace*{100pt} & author's signature
|
||||
\end{tabular}
|
||||
\end{center}
|
||||
|
||||
|
||||
|
||||
% ---------------------------- ABSTRACTS -----------------------------
|
||||
|
||||
{
|
||||
\begin{abstract}
|
||||
|
||||
\begin{center}
|
||||
\title
|
||||
\end{center}
|
||||
|
||||
\input{abstract}
|
||||
\\
|
||||
|
||||
\noindent \textbf{Keywords:} \input{keywords}
|
||||
\end{abstract}
|
||||
}
|
||||
|
||||
\null\thispagestyle{empty}\newpage
|
||||
|
||||
|
||||
{\selectlanguage{polish}
|
||||
\begin{abstract}
|
||||
|
||||
\begin{center}
|
||||
\tytul
|
||||
\end{center}
|
||||
|
||||
\input{abstract-pl}
|
||||
\\
|
||||
|
||||
\noindent \textbf{Słowa kluczowe:} \input{keywords-pl}
|
||||
\end{abstract}
|
||||
}
|
||||
|
||||
|
||||
% --------------------------- DECLARATION ------------------------------------
|
||||
|
||||
|
||||
\null\thispagestyle{empty}\newpage
|
||||
|
||||
\null \hfill Warsaw, ..................\\
|
||||
|
||||
\par\vspace{5cm}
|
||||
|
||||
\begin{center}
|
||||
Declaration
|
||||
\end{center}
|
||||
|
||||
I hereby declare that the thesis entitled ,,\title '', submitted for the \type ~degree, supervised by \supervisor , is entirely my original work apart from the recognized reference.
|
||||
\vspace{2cm}
|
||||
|
||||
\begin{flushright}
|
||||
\begin{minipage}{50mm}
|
||||
\begin{center}
|
||||
..............................................
|
||||
|
||||
\end{center}
|
||||
\end{minipage}
|
||||
\end{flushright}
|
||||
|
||||
\thispagestyle{empty}
|
||||
\newpage
|
||||
|
||||
\null\thispagestyle{empty}\newpage
|
||||
% ------------------- 4. Spis treści ---------------------
|
||||
% \selectlanguage{english} - for English
|
||||
\pagenumbering{gobble}
|
||||
\tableofcontents
|
||||
\thispagestyle{empty}
|
||||
\newpage % IF YOU HAVE EVEN QUANTITY OD PAGES OF TOC, THEN REMOVE IT OR ADD \null\newpage FOR DOUBLE BLANK PAGE BEFORE INTRODUCTION
|
||||
|
||||
|
||||
% -------------------- THE BODY OF THE THESIS --------------------------------
|
||||
|
||||
\null\thispagestyle{empty}\newpage
|
||||
\pagestyle{fancy}
|
||||
\pagenumbering{arabic}
|
||||
\setcounter{page}{11}
|
||||
|
||||
\input{main}
|
||||
|
||||
|
||||
% ------------------------------- BIBLIOGRAPHY ---------------------------
|
||||
% LEXICOGRAPHICAL ORDER BY AUTHORS' LAST NAMES
|
||||
% FOR AMBITIOUS ONES - USE BIBTEX
|
||||
\bibliographystyle{unsrt}
|
||||
\bibliography{bibliography}
|
||||
|
||||
|
||||
|
||||
\pagenumbering{gobble}
|
||||
\thispagestyle{empty}
|
||||
|
||||
|
||||
|
||||
% ----------------------- LIST OF SYMBOLS AND ABBREVIATIONS ------------------
|
||||
\chapter*{List of symbols and abbreviations}
|
||||
|
||||
\begin{tabular}{cl}
|
||||
? & ???
|
||||
\end{tabular}
|
||||
\\
|
||||
\thispagestyle{empty}
|
||||
|
||||
|
||||
% ---------------------------- LIST OF FIGURES --------------------------------
|
||||
\listoffigures
|
||||
\thispagestyle{empty}
|
||||
If you don't need it, delete it.
|
||||
|
||||
|
||||
% ----------------------------- LIST OF TABLES --------------------------------
|
||||
\renewcommand{\listtablename}{Spis tabel}
|
||||
\listoftables
|
||||
\thispagestyle{empty}
|
||||
If you don't need it, delete it.
|
||||
|
||||
% ----------------------------- LIST OF APPENDICES ---------------------------
|
||||
\chapter*{List of appendices}
|
||||
\begin{enumerate}
|
||||
\item Appendix 1
|
||||
\item Appendix 2
|
||||
\item In case of no appendices, delete this part.
|
||||
\end{enumerate}
|
||||
\thispagestyle{empty}
|
||||
|
||||
|
||||
\end{document}
|
||||
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
%%% TeX-master: t
|
||||
%%% End:
|
||||
{% endraw %}
|
@ -0,0 +1,83 @@
|
||||
{% raw %}
|
||||
%%
|
||||
%% The "title" command has an optional parameter,
|
||||
%% allowing the author to define a "short title" to be used in page headers.
|
||||
\title{The Name of the Title is Hope}
|
||||
|
||||
%%
|
||||
%% The "author" command and its associated commands are used to define
|
||||
%% the authors and their affiliations.
|
||||
%% Of note is the shared affiliation of the first two authors, and the
|
||||
%% "authornote" and "authornotemark" commands
|
||||
%% used to denote shared contribution to the research.
|
||||
\author{Ben Trovato}
|
||||
\authornote{Both authors contributed equally to this research.}
|
||||
\email{trovato@corporation.com}
|
||||
\orcid{1234-5678-9012}
|
||||
\author{G.K.M. Tobin}
|
||||
\authornotemark[1]
|
||||
\email{webmaster@marysville-ohio.com}
|
||||
\affiliation{%
|
||||
\institution{Institute for Clarity in Documentation}
|
||||
\streetaddress{P.O. Box 1212}
|
||||
\city{Dublin}
|
||||
\state{Ohio}
|
||||
\postcode{43017-6221}
|
||||
}
|
||||
|
||||
\author{Lars Th{\o}rv{\"a}ld}
|
||||
\affiliation{%
|
||||
\institution{The Th{\o}rv{\"a}ld Group}
|
||||
\streetaddress{1 Th{\o}rv{\"a}ld Circle}
|
||||
\city{Hekla}
|
||||
\country{Iceland}}
|
||||
\email{larst@affiliation.org}
|
||||
|
||||
\author{Valerie B\'eranger}
|
||||
\affiliation{%
|
||||
\institution{Inria Paris-Rocquencourt}
|
||||
\city{Rocquencourt}
|
||||
\country{France}
|
||||
}
|
||||
|
||||
\author{Aparna Patel}
|
||||
\affiliation{%
|
||||
\institution{Rajiv Gandhi University}
|
||||
\streetaddress{Rono-Hills}
|
||||
\city{Doimukh}
|
||||
\state{Arunachal Pradesh}
|
||||
\country{India}}
|
||||
|
||||
\author{Huifen Chan}
|
||||
\affiliation{%
|
||||
\institution{Tsinghua University}
|
||||
\streetaddress{30 Shuangqing Rd}
|
||||
\city{Haidian Qu}
|
||||
\state{Beijing Shi}
|
||||
\country{China}}
|
||||
|
||||
\author{Charles Palmer}
|
||||
\affiliation{%
|
||||
\institution{Palmer Research Laboratories}
|
||||
\streetaddress{8600 Datapoint Drive}
|
||||
\city{San Antonio}
|
||||
\state{Texas}
|
||||
\postcode{78229}}
|
||||
\email{cpalmer@prl.com}
|
||||
|
||||
\author{John Smith}
|
||||
\affiliation{\institution{The Th{\o}rv{\"a}ld Group}}
|
||||
\email{jsmith@affiliation.org}
|
||||
|
||||
\author{Julius P. Kumquat}
|
||||
\affiliation{\institution{The Kumquat Consortium}}
|
||||
\email{jpkumquat@consortium.net}
|
||||
|
||||
%%
|
||||
%% By default, the full list of authors will be used in the page
|
||||
%% headers. Often, this list is too long, and will overlap
|
||||
%% other information printed in the page headers. This command allows
|
||||
%% the author to define a more concise list
|
||||
%% of authors' names for this purpose.
|
||||
\renewcommand{\shortauthors}{Trovato and Tobin, et al.}
|
||||
{% endraw %}
|
@ -0,0 +1,170 @@
|
||||
{% raw %}
|
||||
\pdfoutput=1
|
||||
%%
|
||||
%% This is file `sample-sigconf.tex',
|
||||
%% generated with the docstrip utility.
|
||||
%%
|
||||
%% The original source files were:
|
||||
%%
|
||||
%% samples.dtx (with options: `sigconf')
|
||||
%%
|
||||
%% IMPORTANT NOTICE:
|
||||
%%
|
||||
%% For the copyright see the source file.
|
||||
%%
|
||||
%% Any modified versions of this file must be renamed
|
||||
%% with new filenames distinct from sample-sigconf.tex.
|
||||
%%
|
||||
%% For distribution of the original source see the terms
|
||||
%% for copying and modification in the file samples.dtx.
|
||||
%%
|
||||
%% This generated file may be distributed as long as the
|
||||
%% original source files, as listed above, are part of the
|
||||
%% same distribution. (The sources need not necessarily be
|
||||
%% in the same archive or directory.)
|
||||
%%
|
||||
%% The first command in your LaTeX source must be the \documentclass command.
|
||||
\documentclass[sigconf]{acmart}
|
||||
|
||||
%%
|
||||
%% \BibTeX command to typeset BibTeX logo in the docs
|
||||
\AtBeginDocument{%
|
||||
\providecommand\BibTeX{{%
|
||||
\normalfont B\kern-0.5em{\scshape i\kern-0.25em b}\kern-0.8em\TeX}}}
|
||||
|
||||
%% Rights management information. This information is sent to you
|
||||
%% when you complete the rights form. These commands have SAMPLE
|
||||
%% values in them; it is your responsibility as an author to replace
|
||||
%% the commands and values with those provided to you when you
|
||||
%% complete the rights form.
|
||||
\setcopyright{acmcopyright}
|
||||
\copyrightyear{2018}
|
||||
\acmYear{2018}
|
||||
\acmDOI{10.1145/1122445.1122456}
|
||||
|
||||
%% These commands are for a PROCEEDINGS abstract or paper.
|
||||
\acmConference[Woodstock '18]{Woodstock '18: ACM Symposium on Neural
|
||||
Gaze Detection}{June 03--05, 2018}{Woodstock, NY}
|
||||
\acmBooktitle{Woodstock '18: ACM Symposium on Neural Gaze Detection,
|
||||
June 03--05, 2018, Woodstock, NY}
|
||||
\acmPrice{15.00}
|
||||
\acmISBN{978-1-4503-XXXX-X/18/06}
|
||||
|
||||
|
||||
%%
|
||||
%% Submission ID.
|
||||
%% Use this when submitting an article to a sponsored event. You'll
|
||||
%% receive a unique submission ID from the organizers
|
||||
%% of the event, and this ID should be used as the parameter to this command.
|
||||
%%\acmSubmissionID{123-A56-BU3}
|
||||
|
||||
%%
|
||||
%% The majority of ACM publications use numbered citations and
|
||||
%% references. The command \citestyle{authoryear} switches to the
|
||||
%% "author year" style.
|
||||
%%
|
||||
%% If you are preparing content for an event
|
||||
%% sponsored by ACM SIGGRAPH, you must use the "author year" style of
|
||||
%% citations and references.
|
||||
%% Uncommenting
|
||||
%% the next command will enable that style.
|
||||
%%\citestyle{acmauthoryear}
|
||||
|
||||
\input{config}
|
||||
\input{extras}
|
||||
\input{preamble}
|
||||
|
||||
%%
|
||||
%% end of the preamble, start of the body of the document source.
|
||||
\begin{document}
|
||||
|
||||
\input{metadata}
|
||||
|
||||
%%
|
||||
%% The abstract is a short summary of the work to be presented in the
|
||||
%% article.
|
||||
\begin{abstract}
|
||||
\input{abstract}
|
||||
\end{abstract}
|
||||
|
||||
%%
|
||||
%% The code below is generated by the tool at http://dl.acm.org/ccs.cfm.
|
||||
%% Please copy and paste the code instead of the example below.
|
||||
%%
|
||||
\begin{CCSXML}
|
||||
<ccs2012>
|
||||
<concept>
|
||||
<concept_id>10010520.10010553.10010562</concept_id>
|
||||
<concept_desc>Computer systems organization~Embedded systems</concept_desc>
|
||||
<concept_significance>500</concept_significance>
|
||||
</concept>
|
||||
<concept>
|
||||
<concept_id>10010520.10010575.10010755</concept_id>
|
||||
<concept_desc>Computer systems organization~Redundancy</concept_desc>
|
||||
<concept_significance>300</concept_significance>
|
||||
</concept>
|
||||
<concept>
|
||||
<concept_id>10010520.10010553.10010554</concept_id>
|
||||
<concept_desc>Computer systems organization~Robotics</concept_desc>
|
||||
<concept_significance>100</concept_significance>
|
||||
</concept>
|
||||
<concept>
|
||||
<concept_id>10003033.10003083.10003095</concept_id>
|
||||
<concept_desc>Networks~Network reliability</concept_desc>
|
||||
<concept_significance>100</concept_significance>
|
||||
</concept>
|
||||
</ccs2012>
|
||||
\end{CCSXML}
|
||||
|
||||
\ccsdesc[500]{Computer systems organization~Embedded systems}
|
||||
\ccsdesc[300]{Computer systems organization~Redundancy}
|
||||
\ccsdesc{Computer systems organization~Robotics}
|
||||
\ccsdesc[100]{Networks~Network reliability}
|
||||
|
||||
%%
|
||||
%% Keywords. The author(s) should pick words that accurately describe
|
||||
%% the work being presented. Separate the keywords with commas.
|
||||
\keywords{datasets, neural networks, gaze detection, text tagging}
|
||||
|
||||
%% A "teaser" image appears between the author and affiliation
|
||||
%% information and the body of the document, and typically spans the
|
||||
%% page.
|
||||
|
||||
% commented by F.G.
|
||||
%% \begin{teaserfigure}
|
||||
%% \includegraphics[width=\textwidth]{sampleteaser}
|
||||
%% \caption{Seattle Mariners at Spring Training, 2010.}
|
||||
%% \Description{Enjoying the baseball game from the third-base
|
||||
%% seats. Ichiro Suzuki preparing to bat.}
|
||||
%% \label{fig:teaser}
|
||||
%% \end{teaserfigure}
|
||||
|
||||
%%
|
||||
%% This command processes the author and affiliation and title
|
||||
%% information and builds the first part of the formatted document.
|
||||
\maketitle
|
||||
|
||||
\input{main}
|
||||
|
||||
%%
|
||||
%% The next two lines define the bibliography style to be used, and
|
||||
%% the bibliography file.
|
||||
\bibliographystyle{ACM-Reference-Format}
|
||||
\bibliography{bibliography}
|
||||
|
||||
%%
|
||||
%% If your work has an appendix, this is the place to put it.
|
||||
\ifwithappendix
|
||||
\appendix
|
||||
\input{appendix}
|
||||
\fi
|
||||
\end{document}
|
||||
\endinput
|
||||
%%
|
||||
%% End of file `sample-sigconf.tex'.
|
||||
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
%%% TeX-master: t
|
||||
%%% End:
|
||||
{% endraw %}
|
@ -0,0 +1,13 @@
|
||||
\title{Insert your title}
|
||||
|
||||
% Author information does not appear in the pdf unless the "acceptedWithA" option is given
|
||||
% See tacl2018v2.sty for other ways to format author information
|
||||
\author{
|
||||
Template Author\Thanks{The {\em actual} contributors to this instruction
|
||||
document and corresponding template file are given in Section
|
||||
\ref{sec:contributors}.} \\
|
||||
Template Affiliation/Address Line 1 \\
|
||||
Template Affiliation/Address Line 2 \\
|
||||
Template Affiliation/Address Line 2 \\
|
||||
{\sf template.email@sampledomain.com} \\
|
||||
}
|
@ -0,0 +1,97 @@
|
||||
{% raw %}
|
||||
\pdfoutput=1
|
||||
% File tacl2018v2.tex
|
||||
% Sep 20, 2018
|
||||
|
||||
% The English content of this file was modified from various *ACL instructions
|
||||
% by Lillian Lee and Kristina Toutanova
|
||||
%
|
||||
% LaTeXery is mostly all adapted from acl2018.sty.
|
||||
|
||||
\documentclass[11pt,a4paper]{article}
|
||||
\usepackage{times,latexsym}
|
||||
\usepackage{url}
|
||||
\usepackage[T1]{fontenc}
|
||||
|
||||
%% Package options:
|
||||
%% Short version: "hyperref" and "submission" are the defaults.
|
||||
%% More verbose version:
|
||||
%% Most compact command to produce a submission version with hyperref enabled
|
||||
%% \usepackage[]{tacl2018v2}
|
||||
%% Most compact command to produce a "camera-ready" version
|
||||
%% \usepackage[acceptedWithA]{tacl2018v2}
|
||||
%% Most compact command to produce a double-spaced copy-editor's version
|
||||
%% \usepackage[acceptedWithA,copyedit]{tacl2018v2}
|
||||
%
|
||||
%% If you need to disable hyperref in any of the above settings (see Section
|
||||
%% "LaTeX files") in the TACL instructions), add ",nohyperref" in the square
|
||||
%% brackets. (The comma is a delimiter in case there are multiple options specified.)
|
||||
|
||||
\usepackage[]{tacl2018v2}
|
||||
|
||||
|
||||
|
||||
|
||||
%%%% Material in this block is specific to generating TACL instructions
|
||||
\usepackage{xspace,mfirstuc,tabulary}
|
||||
\newcommand{\dateOfLastUpdate}{Sept. 20, 2018}
|
||||
\newcommand{\styleFileVersion}{tacl2018v2}
|
||||
|
||||
\newcommand{\ex}[1]{{\sf #1}}
|
||||
|
||||
\newif\iftaclinstructions
|
||||
\taclinstructionsfalse % AUTHORS: do NOT set this to true
|
||||
\iftaclinstructions
|
||||
\renewcommand{\confidential}{}
|
||||
\renewcommand{\anonsubtext}{(No author info supplied here, for consistency with
|
||||
TACL-submission anonymization requirements)}
|
||||
\newcommand{\instr}
|
||||
\fi
|
||||
|
||||
%
|
||||
\iftaclpubformat % this "if" is set by the choice of options
|
||||
\newcommand{\taclpaper}{final version\xspace}
|
||||
\newcommand{\taclpapers}{final versions\xspace}
|
||||
\newcommand{\Taclpaper}{Final version\xspace}
|
||||
\newcommand{\Taclpapers}{Final versions\xspace}
|
||||
\newcommand{\TaclPapers}{Final Versions\xspace}
|
||||
\else
|
||||
\newcommand{\taclpaper}{submission\xspace}
|
||||
\newcommand{\taclpapers}{{\taclpaper}s\xspace}
|
||||
\newcommand{\Taclpaper}{Submission\xspace}
|
||||
\newcommand{\Taclpapers}{{\Taclpaper}s\xspace}
|
||||
\newcommand{\TaclPapers}{Submissions\xspace}
|
||||
\fi
|
||||
|
||||
%%%% End TACL-instructions-specific macro block
|
||||
%%%%
|
||||
|
||||
\input{metadata}
|
||||
\date{}
|
||||
|
||||
\input{config}
|
||||
\input{preamble}
|
||||
\input{extras}
|
||||
|
||||
\begin{document}
|
||||
\maketitle
|
||||
\begin{abstract}
|
||||
\input{abstract}
|
||||
\end{abstract}
|
||||
|
||||
\input{main}
|
||||
|
||||
\bibliography{bibliography}
|
||||
\bibliographystyle{acl_natbib}
|
||||
|
||||
\ifwithappendix
|
||||
\input{appendix}
|
||||
\fi
|
||||
|
||||
\end{document}
|
||||
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
%%% TeX-master: t
|
||||
%%% End:
|
||||
{% endraw %}
|
@ -0,0 +1,17 @@
|
||||
\title{Insert your title}
|
||||
|
||||
\author{\bf First Author \\
|
||||
Affiliation / Address line 1 \\
|
||||
Affiliation / Address line 2 \\
|
||||
Affiliation / Address line 3 \\
|
||||
\texttt{email@domain} \\
|
||||
\and \bf Second Author \\
|
||||
Affiliation / Address line 1 \\
|
||||
Affiliation / Address line 2 \\
|
||||
Affiliation / Address line 3 \\
|
||||
\texttt{email@domain} \\}
|
||||
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
%%% TeX-master: "{{cookiecutter.paper_id}}"
|
||||
%%% End:
|
@ -0,0 +1,50 @@
|
||||
{% raw %}
|
||||
\pdfoutput=1
|
||||
|
||||
\documentclass[11pt,a4paper]{article}
|
||||
\usepackage{natbib}
|
||||
\usepackage[margin=25mm]{geometry}
|
||||
|
||||
\usepackage{xcolor} % make links dark blue
|
||||
\definecolor{darkblue}{rgb}{0, 0, 0.66}
|
||||
\definecolor{darkred}{rgb}{0.875, 0, 0}
|
||||
\definecolor{darkgreen}{rgb}{0, 0.5, 0}
|
||||
|
||||
\usepackage{placeins}
|
||||
|
||||
\input{config}
|
||||
\input{extras}
|
||||
\input{preamble}
|
||||
\hypersetup{colorlinks=true,citecolor=darkgreen, linkcolor=darkred, urlcolor=darkblue}
|
||||
\input{metadata}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\maketitle
|
||||
|
||||
\begin{abstract}
|
||||
\input{abstract}
|
||||
\end{abstract}
|
||||
|
||||
\input{main}
|
||||
|
||||
\ifwithappendix
|
||||
\FloatBarrier
|
||||
|
||||
\clearpage
|
||||
|
||||
\appendix
|
||||
|
||||
\input{appendix}
|
||||
\fi
|
||||
|
||||
\bibliography{bibliography}
|
||||
\bibliographystyle{abbrvnat}
|
||||
|
||||
\end{document}
|
||||
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
%%% TeX-master: t
|
||||
%%% End:
|
||||
{% endraw %}
|
@ -0,0 +1,6 @@
|
||||
|
||||
% put an appendix here if needed (after bibliography)
|
||||
|
||||
\section{Other stuff}
|
||||
|
||||
This is a sample appendix.
|
@ -0,0 +1 @@
|
||||
Streszczenie po polsku (dla niektórych szablonów).
|
@ -0,0 +1 @@
|
||||
jedno słowo kluczowe, inne słowo kluczowe
|
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 65 KiB |
Binary file not shown.
After Width: | Height: | Size: 204 KiB |
1
{{cookiecutter.paper_repo_name}}/abstract.tex
Normal file
1
{{cookiecutter.paper_repo_name}}/abstract.tex
Normal file
@ -0,0 +1 @@
|
||||
Sample abstract.
|
1322
{{cookiecutter.paper_repo_name}}/acl.bst
Normal file
1322
{{cookiecutter.paper_repo_name}}/acl.bst
Normal file
File diff suppressed because it is too large
Load Diff
2907
{{cookiecutter.paper_repo_name}}/acmart.cls
Normal file
2907
{{cookiecutter.paper_repo_name}}/acmart.cls
Normal file
File diff suppressed because it is too large
Load Diff
5
{{cookiecutter.paper_repo_name}}/autozoil-extras.tex
Normal file
5
{{cookiecutter.paper_repo_name}}/autozoil-extras.tex
Normal file
@ -0,0 +1,5 @@
|
||||
{% raw %}
|
||||
\newcommand{\code}[1]{\texttt{#1}}
|
||||
\newcommand{\noqa}[1]{}
|
||||
\newcommand{\noqall}[1]{}
|
||||
{% endraw %}
|
3
{{cookiecutter.paper_repo_name}}/autozoil-via-docker.sh
Executable file
3
{{cookiecutter.paper_repo_name}}/autozoil-via-docker.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker run -v $(pwd):/link -it loxygen/autozoil /opt/autozoil/autozoil --locale en_US /link/main.tex --alt-log-file /link/{{cookiecutter.paper_id}}.log
|
29
{{cookiecutter.paper_repo_name}}/bibliography.bib
Normal file
29
{{cookiecutter.paper_repo_name}}/bibliography.bib
Normal file
@ -0,0 +1,29 @@
|
||||
{% raw %}
|
||||
|
||||
@inproceedings{gralinski-etal-2019-geval,
|
||||
title = "{GE}val: Tool for Debugging {NLP} Datasets and Models",
|
||||
author = "Grali{\'n}ski, Filip and
|
||||
Wr{\'o}blewska, Anna and
|
||||
Stanis{\l}awek, Tomasz and
|
||||
Grabowski, Kamil and
|
||||
G{\'o}recki, Tomasz",
|
||||
booktitle = "Proceedings of the 2019 ACL Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP",
|
||||
month = aug,
|
||||
year = "2019",
|
||||
address = "Florence, Italy",
|
||||
publisher = "Association for Computational Linguistics",
|
||||
url = "https://www.aclweb.org/anthology/W19-4826",
|
||||
pages = "254--262",
|
||||
abstract = "This paper presents a simple but general and effective method to debug the output of machine learning (ML) supervised models, including neural networks. The algorithm looks for features that lower the evaluation metric in such a way that it cannot be ascribed to chance (as measured by their p-values). Using this method {--} implemented as MLEval tool {--} you can find: (1) anomalies in test sets, (2) issues in preprocessing, (3) problems in the ML model itself. It can give you an insight into what can be improved in the datasets and/or the model. The same method can be used to compare ML models or different versions of the same model. We present the tool, the theory behind it and use cases for text-based models of various types.",
|
||||
}
|
||||
|
||||
@incollection { gonito2016,
|
||||
title = {Gonito.net -- Open Platform for Research Competition, Cooperation and Reproducibility},
|
||||
author = "Grali{\'n}ski, Filip and Jaworski, Rafa{\l} and Borchmann, {\L}ukasz and Wierzcho{\'n}, Piotr",
|
||||
editor = "Branco, António and Calzolari , Nicoletta and Choukri, Khalid",
|
||||
booktitle = {Proceedings of the 4REAL Workshop: Workshop on Research Results Reproducibility and Resources Citation in Science and Technology of Language},
|
||||
year = "2016",
|
||||
pages = "13-20"
|
||||
}
|
||||
|
||||
{% endraw %}
|
4
{{cookiecutter.paper_repo_name}}/build.sh
Executable file
4
{{cookiecutter.paper_repo_name}}/build.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash -xe
|
||||
|
||||
make
|
||||
make autozoil-log.txt
|
382
{{cookiecutter.paper_repo_name}}/coling2020.sty
Normal file
382
{{cookiecutter.paper_repo_name}}/coling2020.sty
Normal file
@ -0,0 +1,382 @@
|
||||
{% raw %}
|
||||
% File coling2018.sty
|
||||
|
||||
% This is the LaTeX style file for Coling 2018. It is identical to
|
||||
% the style file for Coling 2016.
|
||||
|
||||
% This is the LaTeX style file for Coling 2016. It is identical to
|
||||
% the style file for Coling 2014.
|
||||
|
||||
% This is the LaTeX style file for Coling 2014. It is nearly identical to
|
||||
% the style file for ACL 2014.
|
||||
%
|
||||
% Changes made: switched to single column format and removed margin around
|
||||
% abtract
|
||||
|
||||
% This is the LaTeX style file for ACL 2014. It is nearly identical to
|
||||
% the style files for ACL 2013, EACL 2006, ACL2005, ACL 2002, ACL
|
||||
% 2001, ACL 2000, EACL 95 and EACL 99.
|
||||
%
|
||||
% Changes made include: adapt layout to A4 and centimeters, widen abstract
|
||||
|
||||
% This is the LaTeX style file for ACL 2000. It is nearly identical to the
|
||||
% style files for EACL 95 and EACL 99. Minor changes include editing the
|
||||
% instructions to reflect use of \documentclass rather than \documentstyle
|
||||
% and removing the white space before the title on the first page
|
||||
% -- John Chen, June 29, 2000
|
||||
|
||||
% To convert from submissions prepared using the style file aclsub.sty
|
||||
% prepared for the ACL 2000 conference, proceed as follows:
|
||||
% 1) Remove submission-specific information: \whichsession, \id,
|
||||
% \wordcount, \otherconferences, \area, \keywords
|
||||
% 2) \summary should be removed. The summary material should come
|
||||
% after \maketitle and should be in the ``abstract'' environment
|
||||
% 3) Check all citations. This style should handle citations correctly
|
||||
% and also allows multiple citations separated by semicolons.
|
||||
% 4) Check figures and examples. Because the final format is double-
|
||||
% column, some adjustments may have to be made to fit text in the column
|
||||
% or to choose full-width (\figure*} figures.
|
||||
% 5) Change the style reference from aclsub to acl2000, and be sure
|
||||
% this style file is in your TeX search path
|
||||
|
||||
|
||||
% This is the LaTeX style file for EACL-95. It is identical to the
|
||||
% style file for ANLP '94 except that the margins are adjusted for A4
|
||||
% paper. -- abney 13 Dec 94
|
||||
|
||||
% The ANLP '94 style file is a slightly modified
|
||||
% version of the style used for AAAI and IJCAI, using some changes
|
||||
% prepared by Fernando Pereira and others and some minor changes
|
||||
% by Paul Jacobs.
|
||||
|
||||
% Papers prepared using the aclsub.sty file and acl.bst bibtex style
|
||||
% should be easily converted to final format using this style.
|
||||
% (1) Submission information (\wordcount, \subject, and \makeidpage)
|
||||
% should be removed.
|
||||
% (2) \summary should be removed. The summary material should come
|
||||
% after \maketitle and should be in the ``abstract'' environment
|
||||
% (between \begin{abstract} and \end{abstract}).
|
||||
% (3) Check all citations. This style should handle citations correctly
|
||||
% and also allows multiple citations separated by semicolons.
|
||||
% (4) Check figures and examples. Because the final format is double-
|
||||
% column, some adjustments may have to be made to fit text in the column
|
||||
% or to choose full-width (\figure*} figures.
|
||||
|
||||
% Place this in a file called aclap.sty in the TeX search path.
|
||||
% (Placing it in the same directory as the paper should also work.)
|
||||
|
||||
% Prepared by Peter F. Patel-Schneider, liberally using the ideas of
|
||||
% other style hackers, including Barbara Beeton.
|
||||
% This style is NOT guaranteed to work. It is provided in the hope
|
||||
% that it will make the preparation of papers easier.
|
||||
%
|
||||
% There are undoubtably bugs in this style. If you make bug fixes,
|
||||
% improvements, etc. please let me know. My e-mail address is:
|
||||
% pfps@research.att.com
|
||||
|
||||
% Papers are to be prepared using the ``acl'' bibliography style,
|
||||
% as follows:
|
||||
% \documentclass[11pt]{article}
|
||||
% \usepackage{acl2000}
|
||||
% \title{Title}
|
||||
% \author{Author 1 \and Author 2 \\ Address line \\ Address line \And
|
||||
% Author 3 \\ Address line \\ Address line}
|
||||
% \begin{document}
|
||||
% ...
|
||||
% \bibliography{bibliography-file}
|
||||
% \bibliographystyle{acl}
|
||||
% \end{document}
|
||||
|
||||
% Author information can be set in various styles:
|
||||
% For several authors from the same institution:
|
||||
% \author{Author 1 \and ... \and Author n \\
|
||||
% Address line \\ ... \\ Address line}
|
||||
% if the names do not fit well on one line use
|
||||
% Author 1 \\ {\bf Author 2} \\ ... \\ {\bf Author n} \\
|
||||
% For authors from different institutions:
|
||||
% \author{Author 1 \\ Address line \\ ... \\ Address line
|
||||
% \And ... \And
|
||||
% Author n \\ Address line \\ ... \\ Address line}
|
||||
% To start a seperate ``row'' of authors use \AND, as in
|
||||
% \author{Author 1 \\ Address line \\ ... \\ Address line
|
||||
% \AND
|
||||
% Author 2 \\ Address line \\ ... \\ Address line \And
|
||||
% Author 3 \\ Address line \\ ... \\ Address line}
|
||||
|
||||
% If the title and author information does not fit in the area allocated,
|
||||
% place \setlength\titlebox{<new height>} right after
|
||||
% \usepackage{coling2018}
|
||||
% where <new height> can be something larger than 5cm
|
||||
|
||||
\typeout{Conference Style for COLING 2020 -- prepared 29 Sep. 2019}
|
||||
|
||||
% NOTE: Some laser printers have a serious problem printing TeX output.
|
||||
% These printing devices, commonly known as ``write-white'' laser
|
||||
% printers, tend to make characters too light. To get around this
|
||||
% problem, a darker set of fonts must be created for these devices.
|
||||
%
|
||||
|
||||
|
||||
|
||||
% A4 modified by Eneko; again modified by Alexander for 5cm titlebox
|
||||
\setlength{\paperwidth}{21cm} % A4
|
||||
\setlength{\paperheight}{29.7cm}% A4
|
||||
\setlength\topmargin{-0.5cm}
|
||||
\setlength\oddsidemargin{0cm}
|
||||
\setlength\textheight{24.7cm}
|
||||
\setlength\textwidth{16.0cm}
|
||||
\setlength\columnsep{0.6cm}
|
||||
\newlength\titlebox
|
||||
\setlength\titlebox{5cm}
|
||||
\setlength\headheight{5pt}
|
||||
\setlength\headsep{0pt}
|
||||
\thispagestyle{empty}
|
||||
\pagestyle{empty}
|
||||
|
||||
|
||||
\flushbottom \sloppy
|
||||
|
||||
% We're never going to need a table of contents, so just flush it to
|
||||
% save space --- suggested by drstrip@sandia-2
|
||||
\def\addcontentsline#1#2#3{}
|
||||
|
||||
|
||||
\newif\ifcolingfinal
|
||||
\colingfinalfalse
|
||||
\def\colingfinalcopy{\global\colingfinaltrue}
|
||||
|
||||
% Footnote without marker for copyright/licence statement
|
||||
% Code taken from
|
||||
% http://tex.stackexchange.com/questions/30720/footnote-without-a-marker
|
||||
% which claims to have taken it, in turn, from
|
||||
% http://help-csli.stanford.edu/tex/latex-footnotes.shtml#unnumber
|
||||
% Note the comment that there may be numbering problems if
|
||||
% you are using the hyperref package.
|
||||
\def\blfootnote{\xdef\@thefnmark{}\@footnotetext}
|
||||
|
||||
% Code taken from
|
||||
% https://tex.stackexchange.com/questions/124410/hyperref-modifies-bibliography-style-of-acl-style-files
|
||||
% which fixes incorrect bibliography styles when using the hyperref package
|
||||
\newcommand{\@BIBLABEL}{\@emptybiblabel}
|
||||
\newcommand{\@emptybiblabel}[1]{}
|
||||
|
||||
\newcommand\outauthor{
|
||||
\begin{tabular}[t]{c}
|
||||
\ifcolingfinal
|
||||
\bf\@author
|
||||
\else
|
||||
% Avoiding common accidental de-anonymization issue. --MM
|
||||
\bf Anonymous COLING submission
|
||||
\fi
|
||||
\end{tabular}}
|
||||
|
||||
% Title stuff, taken from deproc.
|
||||
\def\maketitle{\par
|
||||
\begingroup
|
||||
\def\thefootnote{\fnsymbol{footnote}}
|
||||
\def\@makefnmark{\hbox to 0pt{$^{\@thefnmark}$\hss}}
|
||||
\@maketitle \@thanks
|
||||
\endgroup
|
||||
\setcounter{footnote}{0}
|
||||
\let\maketitle\relax \let\@maketitle\relax
|
||||
\gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax}
|
||||
\def\@maketitle{\vbox to \titlebox{\hsize\textwidth
|
||||
\linewidth\hsize \vskip 0.125in minus 0.125in \centering
|
||||
{\Large\bf \@title \par} \vskip 0.2in plus 1fil minus 0.1in
|
||||
{\def\and{\unskip\enspace{\rm and}\enspace}%
|
||||
\def\And{\end{tabular}\hss \egroup \hskip 1in plus 2fil
|
||||
\hbox to 0pt\bgroup\hss \begin{tabular}[t]{c}\bf}%
|
||||
\def\AND{\end{tabular}\hss\egroup \hfil\hfil\egroup
|
||||
\vskip 0.25in plus 1fil minus 0.125in
|
||||
\hbox to \linewidth\bgroup\large \hfil\hfil
|
||||
\hbox to 0pt\bgroup\hss \begin{tabular}[t]{c}\bf}
|
||||
\hbox to \linewidth\bgroup\large \hfil\hfil
|
||||
\hbox to 0pt\bgroup\hss \outauthor
|
||||
\hss\egroup
|
||||
\hfil\hfil\egroup}
|
||||
\vskip 0.3in plus 2fil minus 0.1in
|
||||
}}
|
||||
|
||||
% margins for abstract
|
||||
\renewenvironment{abstract}%
|
||||
{\centerline{\large\bf Abstract}%
|
||||
\begin{list}{}%
|
||||
{\setlength{\rightmargin}{0.6cm}%
|
||||
\setlength{\leftmargin}{0.6cm}}%
|
||||
\item[]\ignorespaces}%
|
||||
{\unskip\end{list}}
|
||||
|
||||
%\renewenvironment{abstract}{\centerline{\large\bf
|
||||
% Abstract}\vspace{0.5ex}\begin{quote}}{\par\end{quote}\vskip 1ex}
|
||||
|
||||
|
||||
% bibliography
|
||||
|
||||
\def\thebibliography#1{\section*{References}
|
||||
\global\def\@listi{\leftmargin\leftmargini
|
||||
\labelwidth\leftmargini \advance\labelwidth-\labelsep
|
||||
\topsep 1pt plus 2pt minus 1pt
|
||||
\parsep 0.25ex plus 1pt \itemsep 0.25ex plus 1pt}
|
||||
\list {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
|
||||
\advance\leftmargin\labelsep\usecounter{enumi}}
|
||||
\def\newblock{\hskip .11em plus .33em minus -.07em}
|
||||
\sloppy
|
||||
\sfcode`\.=1000\relax}
|
||||
|
||||
\def\@up#1{\raise.2ex\hbox{#1}}
|
||||
|
||||
% most of cite format is from aclsub.sty by SMS
|
||||
|
||||
% don't box citations, separate with ; and a space
|
||||
% also, make the penalty between citations negative: a good place to break
|
||||
% changed comma back to semicolon pj 2/1/90
|
||||
% \def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
|
||||
% \def\@citea{}\@cite{\@for\@citeb:=#2\do
|
||||
% {\@citea\def\@citea{;\penalty\@citeseppen\ }\@ifundefined
|
||||
% {b@\@citeb}{{\bf ?}\@warning
|
||||
% {Citation `\@citeb' on page \thepage \space undefined}}%
|
||||
% {\csname b@\@citeb\endcsname}}}{#1}}
|
||||
|
||||
% don't box citations, separate with ; and a space
|
||||
% Replaced for multiple citations (pj)
|
||||
% don't box citations and also add space, semicolon between multiple citations
|
||||
\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
|
||||
\def\@citea{}\@cite{\@for\@citeb:=#2\do
|
||||
{\@citea\def\@citea{; }\@ifundefined
|
||||
{b@\@citeb}{{\bf ?}\@warning
|
||||
{Citation `\@citeb' on page \thepage \space undefined}}%
|
||||
{\csname b@\@citeb\endcsname}}}{#1}}
|
||||
|
||||
% Allow short (name-less) citations, when used in
|
||||
% conjunction with a bibliography style that creates labels like
|
||||
% \citename{<names>, }<year>
|
||||
%
|
||||
\let\@internalcite\cite
|
||||
\def\cite{\def\citename##1{##1, }\@internalcite}
|
||||
\def\shortcite{\def\citename##1{}\@internalcite}
|
||||
\def\newcite{\def\citename##1{{\frenchspacing##1} (}\@internalciteb}
|
||||
|
||||
% Macros for \newcite, which leaves name in running text, and is
|
||||
% otherwise like \shortcite.
|
||||
\def\@citexb[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
|
||||
\def\@citea{}\@newcite{\@for\@citeb:=#2\do
|
||||
{\@citea\def\@citea{;\penalty\@m\ }\@ifundefined
|
||||
{b@\@citeb}{{\bf ?}\@warning
|
||||
{Citation `\@citeb' on page \thepage \space undefined}}%
|
||||
{\csname b@\@citeb\endcsname}}}{#1}}
|
||||
\def\@internalciteb{\@ifnextchar [{\@tempswatrue\@citexb}{\@tempswafalse\@citexb[]}}
|
||||
|
||||
\def\@newcite#1#2{{#1\if@tempswa, #2\fi)}}
|
||||
|
||||
\def\@biblabel#1{\def\citename##1{##1}[#1]\hfill}
|
||||
|
||||
%%% More changes made by SMS (originals in latex.tex)
|
||||
% Use parentheses instead of square brackets in the text.
|
||||
\def\@cite#1#2{({#1\if@tempswa , #2\fi})}
|
||||
|
||||
% Don't put a label in the bibliography at all. Just use the unlabeled format
|
||||
% instead.
|
||||
\def\thebibliography#1{\vskip\parskip%
|
||||
\vskip\baselineskip%
|
||||
\def\baselinestretch{1}%
|
||||
\ifx\@currsize\normalsize\@normalsize\else\@currsize\fi%
|
||||
\vskip-\parskip%
|
||||
\vskip-\baselineskip%
|
||||
\section*{References\@mkboth
|
||||
{References}{References}}\list
|
||||
{}{\setlength{\labelwidth}{0pt}\setlength{\leftmargin}{\parindent}
|
||||
\setlength{\itemindent}{-\parindent}}
|
||||
\def\newblock{\hskip .11em plus .33em minus -.07em}
|
||||
\sloppy\clubpenalty4000\widowpenalty4000
|
||||
\sfcode`\.=1000\relax}
|
||||
\let\endthebibliography=\endlist
|
||||
|
||||
% Allow for a bibliography of sources of attested examples
|
||||
\def\thesourcebibliography#1{\vskip\parskip%
|
||||
\vskip\baselineskip%
|
||||
\def\baselinestretch{1}%
|
||||
\ifx\@currsize\normalsize\@normalsize\else\@currsize\fi%
|
||||
\vskip-\parskip%
|
||||
\vskip-\baselineskip%
|
||||
\section*{Sources of Attested Examples\@mkboth
|
||||
{Sources of Attested Examples}{Sources of Attested Examples}}\list
|
||||
{}{\setlength{\labelwidth}{0pt}\setlength{\leftmargin}{\parindent}
|
||||
\setlength{\itemindent}{-\parindent}}
|
||||
\def\newblock{\hskip .11em plus .33em minus -.07em}
|
||||
\sloppy\clubpenalty4000\widowpenalty4000
|
||||
\sfcode`\.=1000\relax}
|
||||
\let\endthesourcebibliography=\endlist
|
||||
|
||||
\def\@lbibitem[#1]#2{\item[]\if@filesw
|
||||
{ \def\protect##1{\string ##1\space}\immediate
|
||||
\write\@auxout{\string\bibcite{#2}{#1}}\fi\ignorespaces}}
|
||||
|
||||
\def\@bibitem#1{\item\if@filesw \immediate\write\@auxout
|
||||
{\string\bibcite{#1}{\the\c@enumi}}\fi\ignorespaces}
|
||||
|
||||
% sections with less space
|
||||
\def\section{\@startsection {section}{1}{\z@}{-2.0ex plus
|
||||
-0.5ex minus -.2ex}{1.5ex plus 0.3ex minus .2ex}{\large\bf\raggedright}}
|
||||
\def\subsection{\@startsection{subsection}{2}{\z@}{-1.8ex plus
|
||||
-0.5ex minus -.2ex}{0.8ex plus .2ex}{\normalsize\bf\raggedright}}
|
||||
%% changed by KO to - values to get teh initial parindent right
|
||||
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-1.5ex plus
|
||||
-0.5ex minus -.2ex}{0.5ex plus .2ex}{\normalsize\bf\raggedright}}
|
||||
\def\paragraph{\@startsection{paragraph}{4}{\z@}{1.5ex plus
|
||||
0.5ex minus .2ex}{-1em}{\normalsize\bf}}
|
||||
\def\subparagraph{\@startsection{subparagraph}{5}{\parindent}{1.5ex plus
|
||||
0.5ex minus .2ex}{-1em}{\normalsize\bf}}
|
||||
|
||||
% Footnotes
|
||||
\footnotesep 6.65pt %
|
||||
\skip\footins 9pt plus 4pt minus 2pt
|
||||
\def\footnoterule{\kern-3pt \hrule width 5pc \kern 2.6pt }
|
||||
\setcounter{footnote}{0}
|
||||
|
||||
% Lists and paragraphs
|
||||
\parindent 1em
|
||||
\topsep 4pt plus 1pt minus 2pt
|
||||
\partopsep 1pt plus 0.5pt minus 0.5pt
|
||||
\itemsep 2pt plus 1pt minus 0.5pt
|
||||
\parsep 2pt plus 1pt minus 0.5pt
|
||||
|
||||
\leftmargin 2em \leftmargini\leftmargin \leftmarginii 2em
|
||||
\leftmarginiii 1.5em \leftmarginiv 1.0em \leftmarginv .5em \leftmarginvi .5em
|
||||
\labelwidth\leftmargini\advance\labelwidth-\labelsep \labelsep 5pt
|
||||
|
||||
\def\@listi{\leftmargin\leftmargini}
|
||||
\def\@listii{\leftmargin\leftmarginii
|
||||
\labelwidth\leftmarginii\advance\labelwidth-\labelsep
|
||||
\topsep 2pt plus 1pt minus 0.5pt
|
||||
\parsep 1pt plus 0.5pt minus 0.5pt
|
||||
\itemsep \parsep}
|
||||
\def\@listiii{\leftmargin\leftmarginiii
|
||||
\labelwidth\leftmarginiii\advance\labelwidth-\labelsep
|
||||
\topsep 1pt plus 0.5pt minus 0.5pt
|
||||
\parsep \z@ \partopsep 0.5pt plus 0pt minus 0.5pt
|
||||
\itemsep \topsep}
|
||||
\def\@listiv{\leftmargin\leftmarginiv
|
||||
\labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
|
||||
\def\@listv{\leftmargin\leftmarginv
|
||||
\labelwidth\leftmarginv\advance\labelwidth-\labelsep}
|
||||
\def\@listvi{\leftmargin\leftmarginvi
|
||||
\labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
|
||||
|
||||
\abovedisplayskip 7pt plus2pt minus5pt%
|
||||
\belowdisplayskip \abovedisplayskip
|
||||
\abovedisplayshortskip 0pt plus3pt%
|
||||
\belowdisplayshortskip 4pt plus3pt minus3pt%
|
||||
|
||||
% Less leading in most fonts (due to the narrow columns)
|
||||
% The choices were between 1-pt and 1.5-pt leading
|
||||
\def\@normalsize{\@setsize\normalsize{11pt}\xpt\@xpt}
|
||||
\def\small{\@setsize\small{10pt}\ixpt\@ixpt}
|
||||
\def\footnotesize{\@setsize\footnotesize{10pt}\ixpt\@ixpt}
|
||||
\def\scriptsize{\@setsize\scriptsize{8pt}\viipt\@viipt}
|
||||
\def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}
|
||||
\def\large{\@setsize\large{14pt}\xiipt\@xiipt}
|
||||
\def\Large{\@setsize\Large{16pt}\xivpt\@xivpt}
|
||||
\def\LARGE{\@setsize\LARGE{20pt}\xviipt\@xviipt}
|
||||
\def\huge{\@setsize\huge{23pt}\xxpt\@xxpt}
|
||||
\def\Huge{\@setsize\Huge{28pt}\xxvpt\@xxvpt}
|
||||
{% endraw %}
|
22
{{cookiecutter.paper_repo_name}}/config.tex
Normal file
22
{{cookiecutter.paper_repo_name}}/config.tex
Normal file
@ -0,0 +1,22 @@
|
||||
% In this file some settings are passed from cookiecutter to LaTeX.
|
||||
% Do not edit this file, but rather change .cookiecutter.yml and
|
||||
% re-apply the template.
|
||||
|
||||
% whether an appendix was created
|
||||
\newif\ifwithappendix
|
||||
{%- if cookiecutter.with_appendix == "yes" -%}
|
||||
\withappendixtrue
|
||||
{% else %}
|
||||
\withappendixfalse
|
||||
{% endif %}
|
||||
|
||||
% whether the appendix will actually be shown;
|
||||
% note: in some template, the appendix cannot be rendered,
|
||||
% you can use this conditional to change the content of your paper
|
||||
% (for instance, to remove parts like "see Appendix")
|
||||
\newif\ifappendixshown
|
||||
{%- if cookiecutter.latex_template == "coling" -%}
|
||||
\appendixshownfalse
|
||||
{% else %}
|
||||
\appendixshowntrue
|
||||
{% endif %}
|
12
{{cookiecutter.paper_repo_name}}/contributions.yaml
Normal file
12
{{cookiecutter.paper_repo_name}}/contributions.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
# This is in YAML format so we can easily generate
|
||||
# contribution declarations to be signed by the authors.
|
||||
|
||||
title: {{cookiecutter.paper_title}}
|
||||
authors:
|
||||
- author: Jan Iksinski
|
||||
contributions:
|
||||
- did this
|
||||
- did that
|
||||
- author: Józef Igrekowski
|
||||
contributions:
|
||||
- did something else
|
BIN
{{cookiecutter.paper_repo_name}}/cup_logo-eps-converted-to.pdf
Normal file
BIN
{{cookiecutter.paper_repo_name}}/cup_logo-eps-converted-to.pdf
Normal file
Binary file not shown.
11044
{{cookiecutter.paper_repo_name}}/cup_logo.eps
Normal file
11044
{{cookiecutter.paper_repo_name}}/cup_logo.eps
Normal file
File diff suppressed because one or more lines are too long
20
{{cookiecutter.paper_repo_name}}/extract-score-files.pl
Executable file
20
{{cookiecutter.paper_repo_name}}/extract-score-files.pl
Executable file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
use strict;
|
||||
|
||||
my %found = ();
|
||||
|
||||
for my $filepath (@ARGV) {
|
||||
open(my $ih, '<', $filepath);
|
||||
binmode($ih, ':utf8');
|
||||
|
||||
while (my $line=<$ih>) {
|
||||
while ($line =~ m<\\gonito(?:barescore|score|entry)\{([^\}]+)\}>g) {
|
||||
$found{$1} = 1;
|
||||
}
|
||||
}
|
||||
|
||||
close($ih);
|
||||
}
|
||||
|
||||
print join(" ", map { "scores/${_}.txt" } sort keys %found);
|
10
{{cookiecutter.paper_repo_name}}/extras.tex
Normal file
10
{{cookiecutter.paper_repo_name}}/extras.tex
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
{% raw %}
|
||||
\input{other-extras}
|
||||
\input{autozoil-extras}
|
||||
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
{% endraw %}
|
||||
%%% TeX-master: "{{cookiecutter.paper_id}}"
|
||||
%%% End:
|
28
{{cookiecutter.paper_repo_name}}/helpers/flatten-structure.pl
Executable file
28
{{cookiecutter.paper_repo_name}}/helpers/flatten-structure.pl
Executable file
@ -0,0 +1,28 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
# Flatten file structure (needed for an arxiv package)
|
||||
|
||||
use utf8;
|
||||
use strict;
|
||||
|
||||
binmode(STDIN, ':utf8');
|
||||
binmode(STDOUT, ':utf8');
|
||||
|
||||
my $subdir_regexp = qr{(?:figures|images)};
|
||||
|
||||
sub fix_subdirs {
|
||||
my ($p) = @_;
|
||||
|
||||
$p =~ s{/}{-}g;
|
||||
|
||||
return $p;
|
||||
}
|
||||
|
||||
while (my $line=<>) {
|
||||
$line =~ s<\\graphicspath\{(\s*)\{${subdir_regexp}/\}(\s*)><\\graphicspath\{$1\{.\}$2>;
|
||||
$line =~ s<(\\includegraphics[^{}]*?\{)./${subdir_regexp}/><${1}./>g;
|
||||
$line =~ s<(\\includegraphics[^{}]*?\{)([^\.][^{}]+/)><"$1".fix_subdirs($2)>ge;
|
||||
$line =~ s<\\input\{inputs/><\\input\{inputs->g;
|
||||
$line =~ s<\\minput\{scores/\#1\.txt\}><\\minput{scores-#1.txt}>g;
|
||||
print $line;
|
||||
}
|
32
{{cookiecutter.paper_repo_name}}/helpers/generate-pdf-from-arxiv-package.sh
Executable file
32
{{cookiecutter.paper_repo_name}}/helpers/generate-pdf-from-arxiv-package.sh
Executable file
@ -0,0 +1,32 @@
|
||||
#!/bin/bash -xe
|
||||
|
||||
arxiv_package="$1"
|
||||
target_pdf="$2"
|
||||
|
||||
gentmpdir=$(mktemp -d 2>/dev/null || mktemp -d -t 'gentmpdir')
|
||||
|
||||
cp "$arxiv_package" "$gentmpdir/"
|
||||
|
||||
cd "$gentmpdir"
|
||||
|
||||
tar xvf "$arxiv_package"
|
||||
|
||||
for f in *
|
||||
do
|
||||
if [[ -d "$f" ]]
|
||||
then
|
||||
echo >&2 "Unexpected directory: '$f'"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
main_source=ms
|
||||
main_source_file="${main_source}.tex"
|
||||
|
||||
pdflatex "$main_source_file"
|
||||
pdflatex "$main_source_file"
|
||||
pdflatex "$main_source_file"
|
||||
|
||||
cd -
|
||||
|
||||
cp "$gentmpdir/ms.pdf" "$target_pdf"
|
3
{{cookiecutter.paper_repo_name}}/helpers/get-sentences.sh
Executable file
3
{{cookiecutter.paper_repo_name}}/helpers/get-sentences.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
bash helpers/pdf-to-plain-text.sh "$1" | perl helpers/strip-references.pl | perl -pne 'chomp $_; $_.=" "' | python3 -m syntok.segmenter
|
3
{{cookiecutter.paper_repo_name}}/helpers/pdf-to-plain-text.sh
Executable file
3
{{cookiecutter.paper_repo_name}}/helpers/pdf-to-plain-text.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/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
|
133
{{cookiecutter.paper_repo_name}}/helpers/prepare-arxiv-package.sh
Executable file
133
{{cookiecutter.paper_repo_name}}/helpers/prepare-arxiv-package.sh
Executable file
@ -0,0 +1,133 @@
|
||||
#!/bin/bash -xe
|
||||
|
||||
if command -v arxiv_latex_cleaner > /dev/null 2>/dev/null;
|
||||
then
|
||||
:
|
||||
else
|
||||
echo >&2 "Please install arxiv_latex_cleaner"
|
||||
echo >&2 " git clone https://github.com/google-research/arxiv-latex-cleaner"
|
||||
echo >&2 " cd arxiv_latex_cleaner"
|
||||
echo >&2 " python3 setup.py install"
|
||||
echo >&2 " (you might need to install zlib1g-dev and libjpeg8-dev packages first)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
latex_template="$1"
|
||||
package_file="$2"
|
||||
|
||||
packtmpdir=$(mktemp -d 2>/dev/null || mktemp -d -t 'packtmpdir')
|
||||
project_dir="$packtmpdir/project"
|
||||
project_arxiv_dir="$packtmpdir/project_arXiv"
|
||||
mkdir -p "$packtmpdir/project"
|
||||
|
||||
arxiv_main_file=ms.tex
|
||||
|
||||
copy_to_project()
|
||||
{
|
||||
for f in "$@"
|
||||
do
|
||||
if [[ -r "$project_dir/$f" ]]
|
||||
then
|
||||
echo >&2 "The file '$f' will be overwritten. Something is wrong!!!"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
cp "$@" "$project_dir/"
|
||||
}
|
||||
|
||||
handle_subdir()
|
||||
{
|
||||
subdir="$1"
|
||||
|
||||
if [[ -d "$subdir" ]]
|
||||
then
|
||||
find $subdir -type f | while read f
|
||||
do
|
||||
nf=$(echo "$f" | perl -pne 's{^[^/]+/}{}; s{/}{-}')
|
||||
dst="$project_dir/$subdir-$nf"
|
||||
if [[ "$f" == *.tex ]]
|
||||
then
|
||||
perl helpers/flatten-structure.pl < "$f" > "$dst"
|
||||
else
|
||||
cp $f $dst
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
handle_subdir images
|
||||
handle_subdir figures
|
||||
handle_subdir scores
|
||||
handle_subdir inputs
|
||||
|
||||
for latex_file in *.tex
|
||||
do
|
||||
if [[ "$latex_file" == "$arxiv_main_file" ]]
|
||||
then
|
||||
echo >&2 "Your repo cannot contain '$arxiv_main_file' file."
|
||||
echo >&2 "This file is restricted for arxiv purposes"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
target_file="$project_dir/$latex_file"
|
||||
|
||||
if [[ "$latex_file" == "{{cookiecutter.paper_id}}.tex" ]]
|
||||
then
|
||||
target_file="$project_dir/$arxiv_main_file"
|
||||
fi
|
||||
|
||||
perl helpers/flatten-structure.pl < "$latex_file" > "$target_file"
|
||||
done
|
||||
|
||||
if [[ "$latex_template" == "vanilla" ]]
|
||||
then
|
||||
:
|
||||
elif [[ "$latex_template" == "tacl" ]]
|
||||
then
|
||||
copy_to_project tacl2018v2.sty acl.bst acl_natbib.bst
|
||||
elif [[ "$latex_template" == "acl" ]]
|
||||
then
|
||||
copy_to_project acl2020.sty acl.bst acl_natbib.bst
|
||||
elif [[ "$latex_template" == "nle" ]]
|
||||
then
|
||||
copy_to_project nle.cls nlelike.bst cup_logo.eps cup_logo-eps-converted-to.pdf
|
||||
elif [[ "$latex_template" == "sigconf" ]]
|
||||
then
|
||||
copy_to_project acmart.cls ACM-Reference-Format.bst
|
||||
elif [[ "$latex_template" == "pw-thesis" ]]
|
||||
then
|
||||
:
|
||||
elif [[ "$latex_template" == "coling" ]]
|
||||
then
|
||||
copy_to_project coling2020.sty acl.bst
|
||||
elif [[ "$latex_template" == "llncs" ]]
|
||||
then
|
||||
copy_to_project llncs.cls splncs04.bst
|
||||
elif [[ "$latex_template" == "emnlp" ]]
|
||||
then
|
||||
copy_to_project emnlp2020.sty acl.bst acl_natbib.bst
|
||||
elif [[ "$latex_template" == "eacl" ]]
|
||||
then
|
||||
copy_to_project eacl2021.sty acl.bst acl_natbib.bst
|
||||
elif [[ "$latex_template" == "poleval" ]]
|
||||
then
|
||||
copy_to_project poleval.bst poleval.cls
|
||||
else
|
||||
echo >&2 "Unknown template '$latex_template'!!!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
copy_to_project bibliography.bib
|
||||
|
||||
perl -pne 's/^\s*\\usepackage\{xurl\}$//' -i "$project_dir/other-extras.tex"
|
||||
|
||||
heredir=`pwd`
|
||||
|
||||
main_source=ms
|
||||
main_source_file="${main_source}.tex"
|
||||
|
||||
(cd "$project_dir" && pdflatex "$main_source_file" && bibtex "$main_source" && rm "${main_source}.pdf")
|
||||
|
||||
arxiv_latex_cleaner "$project_dir" --commands_to_delete '\todo'
|
||||
perl -pne 's/\\bibliography\{bibliography\}/\\bibliography\{ms\}/' -i "$project_arxiv_dir/$main_source_file"
|
||||
(cd "$project_arxiv_dir" && tar zvcf "$heredir/$package_file" .)
|
18
{{cookiecutter.paper_repo_name}}/helpers/stats.sh
Executable file
18
{{cookiecutter.paper_repo_name}}/helpers/stats.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
here_dir=$(dirname "$0")
|
||||
echo $here_dir
|
||||
|
||||
pdf_file="$1"
|
||||
|
||||
if [[ "$pdf_file" == "" ]]
|
||||
then
|
||||
>&2 echo "no file given"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
perl -e 'print "PHYSICAL PAGES\tCHARACTERS WITH SPACES\tSTANDARD PAGES\n"'
|
||||
pages=$(pdfinfo "$1" | perl -ne 'print "$1\n" if /Pages:\s+(\d+)/')
|
||||
chars=$(bash $here_dir/pdf-to-plain-text.sh "$1" | wc -m)
|
||||
spages=$(echo "scale=1; $chars / 1800.0" | bc)
|
||||
echo "$pages $chars $spages"
|
28
{{cookiecutter.paper_repo_name}}/helpers/strip-references.pl
Executable file
28
{{cookiecutter.paper_repo_name}}/helpers/strip-references.pl
Executable file
@ -0,0 +1,28 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
use strict;
|
||||
|
||||
my @previously_skipped = ();
|
||||
|
||||
my $was_reference = 0;
|
||||
|
||||
while (my $line=<STDIN>) {
|
||||
chomp $line;
|
||||
|
||||
if ($line =~ /^References$/) {
|
||||
if ($was_reference) {
|
||||
for my $pline (@previously_skipped) {
|
||||
print "$pline\n";
|
||||
}
|
||||
@previously_skipped = ();
|
||||
} else {
|
||||
$was_reference = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if ($was_reference) {
|
||||
push @previously_skipped, $line;
|
||||
} else {
|
||||
print "$line\n";
|
||||
}
|
||||
}
|
24
{{cookiecutter.paper_repo_name}}/helpers/synchro.sh
Executable file
24
{{cookiecutter.paper_repo_name}}/helpers/synchro.sh
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash -xe
|
||||
|
||||
. helpers/vars
|
||||
|
||||
if [[ "$OVERLEAF_GIT_URL" == "" ]]
|
||||
then
|
||||
>&2 echo "Please set OVERLEAF_GIT_URL in `helpers/vars`"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -e .git && ! -z "$(git status --untracked-files=no --porcelain)" ]]; then
|
||||
>&2 echo "Uncommited changes, commit your changes first"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git remote add overleaf "$OVERLEAF_GIT_URL" || git remote set-url overleaf "$OVERLEAF_GIT_URL"
|
||||
|
||||
git config credential.helper "cache --timeout=10000000"
|
||||
|
||||
git pull origin master
|
||||
git pull overleaf master
|
||||
|
||||
git push overleaf master
|
||||
git push origin master
|
2
{{cookiecutter.paper_repo_name}}/helpers/vars
Normal file
2
{{cookiecutter.paper_repo_name}}/helpers/vars
Normal file
@ -0,0 +1,2 @@
|
||||
# to be included with .
|
||||
OVERLEAF_GIT_URL=
|
4
{{cookiecutter.paper_repo_name}}/install-hooks.sh
Executable file
4
{{cookiecutter.paper_repo_name}}/install-hooks.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash -xe
|
||||
|
||||
cp hooks/pre-push .git/hooks/pre-push
|
||||
chmod 700 .git/hooks/pre-push
|
1
{{cookiecutter.paper_repo_name}}/keywords.tex
Normal file
1
{{cookiecutter.paper_repo_name}}/keywords.tex
Normal file
@ -0,0 +1 @@
|
||||
some keyword, another keyword
|
1220
{{cookiecutter.paper_repo_name}}/llncs.cls
Normal file
1220
{{cookiecutter.paper_repo_name}}/llncs.cls
Normal file
File diff suppressed because it is too large
Load Diff
12
{{cookiecutter.paper_repo_name}}/main.tex
Normal file
12
{{cookiecutter.paper_repo_name}}/main.tex
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
\section{Main}
|
||||
|
||||
This is a~sample paper~\cite{DBLP:journals/corr/cs-CL-0108005}.
|
||||
|
||||
\subsection{Gonito}
|
||||
|
||||
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.}
|
4212
{{cookiecutter.paper_repo_name}}/nle.cls
Normal file
4212
{{cookiecutter.paper_repo_name}}/nle.cls
Normal file
File diff suppressed because it is too large
Load Diff
1107
{{cookiecutter.paper_repo_name}}/nlelike.bst
Normal file
1107
{{cookiecutter.paper_repo_name}}/nlelike.bst
Normal file
File diff suppressed because it is too large
Load Diff
40
{{cookiecutter.paper_repo_name}}/other-extras.tex
Normal file
40
{{cookiecutter.paper_repo_name}}/other-extras.tex
Normal file
@ -0,0 +1,40 @@
|
||||
{% raw %}
|
||||
% various custom definitions
|
||||
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[textsize=tiny]{todonotes}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{booktabs}
|
||||
\usepackage{latexsym}
|
||||
|
||||
% so that footnotes in tables would work
|
||||
% https://tex.stackexchange.com/questions/109467/footnote-in-tabular-environment
|
||||
|
||||
\usepackage{footnote}
|
||||
\makesavenoteenv{tabular}
|
||||
\makesavenoteenv{table}
|
||||
\makesavenoteenv{table*}
|
||||
|
||||
% for better typesetting of URLs
|
||||
|
||||
\usepackage{xurl}
|
||||
|
||||
% input without unwanted end-of-line characters
|
||||
|
||||
\newcommand\minput[1]{%
|
||||
\input{#1}%
|
||||
\ifhmode\ifnum\lastnodetype=11 \unskip\fi\fi}
|
||||
|
||||
% Gonito stuff
|
||||
\usepackage{hyperref}
|
||||
\usepackage{xstring}
|
||||
% Format a reference to a Gonito submission
|
||||
\newcommand{\gonitoref}[1]{\{\href{https://gonito.net/q/#1}{\StrMid{#1}{1}{6}}\}}
|
||||
% A bare score from Gonito
|
||||
\newcommand{\gonitobarescore}[1]{\minput{scores/#1.txt}}
|
||||
% A score from Gonito along with a reference
|
||||
\newcommand{\gonitoscore}[1]{\gonitobarescore{#1} \gonitoref{#1}}
|
||||
% A reference and a score as two cells in a table
|
||||
\newcommand{\gonitoentry}[1]{\gonitoref{#1} & \minput{scores/#1.txt}}
|
||||
{% endraw %}
|
4
{{cookiecutter.paper_repo_name}}/preamble.tex
Normal file
4
{{cookiecutter.paper_repo_name}}/preamble.tex
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
% extra packages and definitions
|
||||
|
||||
\usepackage{amsmath}
|
33
{{cookiecutter.paper_repo_name}}/run-gitlab-runner.sh
Executable file
33
{{cookiecutter.paper_repo_name}}/run-gitlab-runner.sh
Executable file
@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ "$TEMPLATE_REPO_URL" == "" ]]
|
||||
then
|
||||
echo >&2 "Set the TEMPLATE_REPO_URL variable!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo 'gitlab-runner launched locally does not handle `include` directives.'
|
||||
echo 'THIS IS AN UGLY WORK-AROUND FOR https://gitlab.com/gitlab-org/gitlab-runner/issues/3327'
|
||||
|
||||
template_version=$(grep -P "^\s*ref:\s*'[0-9.]+'\s*$" .gitlab-ci.yml | grep -o -P '[0-9.]+')
|
||||
|
||||
cookiecutter_paper_dir=`mktemp -d -t run-gitlab-runner.XXXXXXXXXXX`
|
||||
(cd $cookiecutter_paper_dir && git clone ${TEMPLATE_REPO_DIR} -b $template_version)
|
||||
|
||||
new_gitlab_ci_yml=`mktemp -t new-gitlab-ci-yml.XXXXXXXXX`
|
||||
|
||||
perl -ne 'print if 1../THIS IS AN UGLY WORK-AROUND/' < .gitlab-ci.yml > $new_gitlab_ci_yml
|
||||
cat ${cookiecutter_paper_dir}/cookiecutter-*-paper/main.yml >> $new_gitlab_ci_yml
|
||||
|
||||
cp $new_gitlab_ci_yml .gitlab-ci.yml
|
||||
|
||||
current_commit=`git rev-parse HEAD`
|
||||
|
||||
# committing the manufactured .gitlab-ci.yml for a moment
|
||||
git add .gitlab-ci.yml
|
||||
git commit -m 'TEMPORARY COMMIT. DO NOT MERGE'
|
||||
|
||||
gitlab-runner exec docker "$@"
|
||||
|
||||
# going back to the original commit
|
||||
git reset --hard $current_commit
|
1550
{{cookiecutter.paper_repo_name}}/splncs04.bst
Normal file
1550
{{cookiecutter.paper_repo_name}}/splncs04.bst
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user