Compare commits

..

76 Commits

Author SHA1 Message Date
f7f35ae41a Update ACL template 2024-09-20 20:29:16 +02:00
7da7e0c2cb Fix ACL template 2024-09-20 20:25:50 +02:00
aed83dd9c9 Fix message 2024-09-20 20:24:21 +02:00
bbaff01d29 Bump up 2024-09-09 19:27:35 +02:00
1368a229f5 remove unwanted tests 2024-09-09 19:22:42 +02:00
cc0c72fdf3 fix coling biblio 2024-09-09 18:31:32 +02:00
9e16d034f2 Switch off gonito reference 2024-09-09 18:22:24 +02:00
b303d00684 Update Coling 2024-09-09 18:19:50 +02:00
ea9d189175 fix gonito extraction 2024-09-07 11:43:19 +02:00
4bbe26b623 Bump version (fix) 2023-10-03 21:21:02 +02:00
cf1ab1f1a2 Bump up version cntd. 2023-10-03 20:54:59 +02:00
b5d2086ff6 Bump up version 2023-10-03 20:53:08 +02:00
6e2fa4e92a Remove broken tests 2023-10-03 20:48:07 +02:00
c15b518718 Remove broken test 2023-10-03 20:44:59 +02:00
6164e494e4 Fix Coling 2023-10-03 20:40:44 +02:00
d3f1bd0ab5 Update Coling template (also for LREC) 2023-10-03 20:25:12 +02:00
3bc4ec1b61 Bump up version 2022-12-20 22:06:39 +01:00
90f19285b2 Bump up version 2022-12-20 21:54:37 +01:00
db03b5dfcd Fix llncs cntd. 2022-12-20 21:41:27 +01:00
592c047ed1 Fix llncs 2022-12-20 21:28:28 +01:00
e7fac32914 Fill in llncs 2022-12-20 21:24:12 +01:00
b6ef23a6d0 Add test for English amuthesis 2022-12-20 21:23:57 +01:00
ec57ead6ae Bump up version 2022-12-19 13:13:43 +01:00
7e5f32217b Fix llncs URL 2022-12-19 12:52:35 +01:00
5e431c0b29 Bump up version 2022-11-09 18:40:12 +01:00
b60dcc36ff Fix update for MacOS 2022-11-09 18:36:59 +01:00
0a98a5a126 Bump up version 2022-11-09 18:20:05 +01:00
2d4b5e4b72 Fix download 2022-11-09 18:14:00 +01:00
8d158296df Fix link to ACM package 2022-11-09 17:01:46 +01:00
cce71acc1b Fix grep 2022-11-09 16:55:56 +01:00
cdd82857d5 Handle plots/ subdir, fix spaces in names 2022-11-09 16:55:32 +01:00
eacfc44ee9 Fixes for MacOS 2022-11-09 16:55:03 +01:00
30dfcf2970 Bump up version 2022-10-29 14:06:40 +02:00
a8dd752084 Continue fixing scitepress 2022-10-29 13:52:59 +02:00
5298f583c5 Fix title in scitepress 2022-10-29 13:50:13 +02:00
6b1ab4d994 Bump up version 2022-10-29 13:30:34 +02:00
69352245f8 Fix scitepress 2022-10-29 13:24:31 +02:00
97fa0c47e0 Fix code definition (in particular for scitepress) 2022-10-29 13:17:19 +02:00
2126aee5fb Add test for scitepress 2022-10-29 13:13:02 +02:00
090fbbcd0e Add scitepress template 2022-10-29 13:07:02 +02:00
b1fdf349dc Fix LLNCS 2022-10-29 12:44:14 +02:00
480e0cdea9 Fix Makefile cntd. 2022-06-06 20:17:42 +02:00
89956c72a8 Fix Makefile 2022-06-06 20:10:15 +02:00
2be0ae6d5d Bump up version 2022-06-06 20:06:18 +02:00
6f9f5f6a07 Optionally use an external checker 2022-06-06 20:03:04 +02:00
b81c455a1b Use different sentence extraction method for amu/pl_PL
As Polish letters were broken in PDF
2022-06-06 19:59:23 +02:00
bc7b4fdf89 Generalize script for extracting sentences
Can extract text using detex now (as an option).
2022-06-06 19:54:30 +02:00
d0acd0c8d4 Installing pyminder only when beeminder is turned on 2022-05-30 21:15:38 +02:00
90882c353f Fix proselint failing build 2022-05-30 21:14:45 +02:00
52d97ccc41 Bump up version 2022-04-13 20:37:34 +02:00
69866b5699 Turn on arxiv 2022-04-13 20:20:33 +02:00
c083533cbb Add bibliography style to ieee-conf 2022-04-13 20:02:24 +02:00
bd14fd336e Fix IEEE Conf template 2022-04-13 19:23:43 +02:00
d846591e9d Fix script 2022-04-13 19:20:40 +02:00
e63900953b Add ieee-conf 2022-04-13 19:13:30 +02:00
b2020da503 Bump up version 2022-02-14 22:01:58 +01:00
013beb9d17 Fix Jenkinsfile 2022-02-14 21:58:57 +01:00
18e9d8319b Bump up version 2022-02-12 13:00:20 +01:00
aa99ca8e7e Minor fix in sample main file 2022-02-12 12:57:25 +01:00
a8a1414fe1 Fix version 2022-02-12 12:57:10 +01:00
02870f2ae5 Bump up version 2022-02-12 12:46:09 +01:00
44cd345519 Use chapters instead of sections for thesis templates 2022-02-12 12:41:49 +01:00
ed02d7e00e Improve default values for the amu template 2022-02-12 12:38:56 +01:00
5c780e2eb9 Improve the AMU template 2022-02-12 12:38:39 +01:00
217ec8cd94 Remove "git clone" from Overleaf link 2022-02-12 12:17:43 +01:00
a9267748e8 Fix bug with contribution 2022-02-12 12:14:17 +01:00
d7131d2642 Bump up version 2022-02-12 12:04:55 +01:00
8e0fa440a9 Contribution declaration is optional 2022-02-12 11:56:46 +01:00
a610b4bbc3 Fix typo in CHANGELOG 2022-01-22 13:11:15 +01:00
fddc665b80 Bump up version 2022-01-22 13:08:29 +01:00
dc56dd3bcd Revert "Do not treat extras.tex as a content file"
This reverts commit bed3d909a3.
2022-01-22 12:59:51 +01:00
bed3d909a3 Do not treat extras.tex as a content file 2022-01-22 12:49:32 +01:00
c0fde893d1 Fix Cookiecutter YAML 2022-01-22 12:46:59 +01:00
6896f99d0e Fix typo 2022-01-22 12:36:36 +01:00
350daf1615 Add Beeminder support 2022-01-22 12:34:26 +01:00
f58bff3ff4 Fix script for generating statistics 2022-01-22 11:52:54 +01:00
37 changed files with 578 additions and 177 deletions

View File

@ -1,4 +1,148 @@
<a name="5.5.2"></a>
## 5.5.2 (2024-09-09)
Updates:
* Update Coling template
Misc:
* Switch off gonito scores in the example
<a name="5.5.0"></a>
## 5.5.0 (2023-10-03)
Updates:
* Update Coling template
Fixes:
* Remove some broken tests
<a name="5.4.6"></a>
## 5.4.6 (2022-12-20)
Bug fixes:
* Fix setting up Overleaf
<a name="5.4.5"></a>
## 5.4.5 (2022-12-20)
Improvements:
* fill in some fields in LLNCS
* add test for amu-en
<a name="5.4.4"></a>
## 5.4.4 (2022-12-19)
Bug fixes:
* update LLNCS URL
<a name="5.4.3"></a>
## 5.4.3 (2022-11-09)
Bug fixes:
* Fix updating on MacOS
<a name="5.4.2"></a>
## 5.4.2 (2022-11-09)
Bug fixes:
* Fix running on MacOS
* Download ACM template correctly
* Remove deprecated egrep/fgrep
<a name="5.4.1"></a>
## 5.4.1 (2022-10-29)
Bug fixes:
* Fix SCITEPRESS template
<a name="5.4.0"></a>
## 5.4.0 (2022-10-29)
Enhancements:
* Add SCITEPRESS template
Bug fixes:
* Fix downloading LLNCS template
<a name="5.3.1"></a>
## 5.3.1 (2022-06-06)
Enhancements:
* (Optionall) run an external checker
Bug fixes:
* Improve extracting sentences from Polish "amu" works
* Fix proselint fail
* Do not install pyminder if not needed
<a name="5.3.0"></a>
## 5.3.0 (2022-04-13)
Enhancements:
* Add ieee-conf template
<a name="5.2.3"></a>
## 5.2.3 (2022-02-14)
Bug fixes:
* Fix Jenkinsfile
<a name="5.2.2"></a>
## 5.2.2 (2022-02-12)
Bug fixes:
* Updating with the right version
<a name="5.2.1"></a>
## 5.2.1 (2022-02-12)
Bug fixes:
* Issue with contribution declaration
Improvements:
* Improve the defaults for thesis templates
<a name="5.2.0"></a>
## 5.2.0 (2022-02-12)
Enhancements:
* Contribution declarations are optional now
<a name="5.1.0"></a>
## 5.1.0 (2022-01-22)
Enhancements:
* Add Beeminder support (you can add an [Odometer
goal](https://help.beeminder.com/article/68-odometer-goals) to track
pages)
Bug fixes:
* Remove unwanted line in stats output
<a name="5.0.0"></a>
## 5.0.0 (2022-01-17)

View File

@ -6,8 +6,8 @@ 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 5.0.0
* run: `cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --checkout 5.0.0`
* find a paper-cutter tag applicable (usually the latest tag listed at <https://git.wmi.amu.edu.pl/filipg/paper-cutter/releases>), say 5.5.2
* run: `cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --checkout 5.5.2`
You will be asked to choose a LaTeX template, at the moment the
following templates are handled:
@ -18,13 +18,15 @@ following templates are handled:
* Natural Language Engineering journal (`nle`),
* ACM SIGCONF template (`sigconf`), e.g. for the SIGIR conference,
* MSc thesis at Warsaw University of Technology (`pw-thesis`)
* COLING (`coling`)
* COLING (& LREC, `coling`)
* LLNCS (`llncs`)
* EMNLP (`emnlp`)
* NeurIPS (`neurips`)
* ICML (`icml`)
* IEEE Access (`ieee-access`)
* IEEE Conf, e.g. FedCSIS (`ieee-conf`)
* PolEval (`poleval`)
* SCITEPRESS (`scitepress`, e.g. CSEDU conference)
* Msc thesis at Adam Mickiewicz University, Faculty of Mathematics and Computer Science (`amu`),
template prepared by Bartłomiej Przybylski (https://github.com/bprzybylski/amuthesis)
@ -57,7 +59,7 @@ git remote set-url origin YOUR-GIT-REPO
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 5.0.0 --output-dir .. --config-file .cookiecutter.yml --no-input --overwrite-if-exists`)
9. … so you need to copy `.cookiecutter.yml` file and re-apply the template (`cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --checkout 5.5.2 --output-dir .. --config-file .cookiecutter.yml --no-input --overwrite-if-exists`)
10. Re-commit the files (including recovered `.*` files).
11. Push the repo to Overleaf (fortunately, the `.*` will be treated
correctly when this is done by git): `git push overleaf master`
@ -71,10 +73,10 @@ 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 5.0.0
* find a paper-cutter tag applicable, say 5.5.2
* (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 5.0.0 --output-dir .. --config-file .cookiecutter.yml --no-input --overwrite-if-exists`
* run: `cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --checkout 5.5.2 --output-dir .. --config-file .cookiecutter.yml --no-input --overwrite-if-exists`
* check changes with git
Editing the files
@ -97,7 +99,7 @@ Switching to another conference or journal template is easy.
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 5.0.0 --output-dir .. --config-file .cookiecutter.yml --no-input --overwrite-if-exists`).
4. Re-run the template (as if updating, see above: `cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --checkout 5.5.2 --output-dir .. --config-file .cookiecutter.yml --no-input --overwrite-if-exists`).
5. Compare `metadata.tex` against the right metadata template file
(`*/*-template-meta.tex` in `_latex-templates/`) and make any fixes
needed. This is the only thing that needs to be done manually
@ -122,6 +124,17 @@ Some notes:
conflicting with Jinja directives (usually the whole or parts of `...-template.tex` and `...-template-meta.tex`
files.
MacOS Requirements
------------
```
brew install cookiecutter
brew install texlive
brew install biber
brew install pyyaml
pip3 install syntok jinja2 arxiv_latex_cleaner
```
Versioning the template
-----------------------
@ -159,7 +172,7 @@ Variables to be set in GitLab UI
## Authors
Prepared by Filip Graliński (Applica.ai).
Prepared by Filip Graliński (while at Adam Mickiewicz University / Applica.ai).
### Contributors

View File

@ -10,10 +10,12 @@
"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' }}",
"extra_locale": "{{ 'none' if cookiecutter.latex_template != 'pw-thesis' and cookiecutter.latex_template != 'amu' else 'pl_PL' }}",
"with_arxiv_package": "{{ 'yes' if cookiecutter.latex_template != 'pw-thesis' and cookiecutter.latex_template != 'amu' else 'no' }}",
"discipline": "none",
"specialization": "none",
"supervisor": "none",
"album_no": "none"
"album_no": "none",
"beeminder_support": "no",
"contribution_declaration": "{{ 'yes' if cookiecutter.latex_template != 'pw-thesis' and cookiecutter.latex_template != 'amu' else 'no' }}"
}

View File

@ -6,7 +6,7 @@ get_files()
shift
dump_dir=$(mktemp -d)
dumped_file=$dump_dir/file.zip
wget -O $dumped_file "$url"
wget -U 'paper-cutter' -O $dumped_file "$url"
(cd $dump_dir && unzip -j file.zip)
for file in $@
do
@ -25,7 +25,7 @@ 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"
sed -i~ 's|{\\errmessage{\\noexpand patch failed}}|{}|g' "$1"
}
if [ "{{ cookiecutter.latex_template }}" = "vanilla" ]; then
@ -54,7 +54,7 @@ elif [ "{{ cookiecutter.latex_template }}" = "nle" ]; then
cp -r _latex-templates/nle-template.tex {{cookiecutter.paper_id}}.tex
cp -r _latex-templates/nle-template-meta.tex metadata.tex
elif [ "{{ cookiecutter.latex_template }}" = "sigconf" ]; then
get_files "https://www.acm.org/binaries/content/assets/publications/consolidated-tex-template/acmart-primary.zip" \
get_files "https://portalparts.acm.org/hippo/latex_templates/acmart-primary.zip" \
acmart.cls \
ACM-Reference-Format.bst
cp -r _latex-templates/sigconf-template.tex {{cookiecutter.paper_id}}.tex
@ -66,13 +66,13 @@ elif [ "{{ cookiecutter.latex_template }}" = "pw-thesis" ]; then
cp -r _optional_files/_pw-thesis/* .
elif [ "{{ cookiecutter.latex_template }}" = "coling" ]; then
get_files "https://coling2020.org/coling2020.zip" \
coling.bst \
coling2020.sty
cp -r _latex-templates/coling2020-template.tex {{cookiecutter.paper_id}}.tex
cp -r _latex-templates/coling2020-template-meta.tex metadata.tex
get_files "https://coling2025.org/downloads/coling-2025.zip" \
coling_natbib.bst \
coling.sty
cp -r _latex-templates/coling-template.tex {{cookiecutter.paper_id}}.tex
cp -r _latex-templates/coling-template-meta.tex metadata.tex
elif [ "{{ cookiecutter.latex_template }}" = "llncs" ]; then
get_files "ftp://ftp.springernature.com/cs-proceeding/llncs/llncs2e.zip" \
get_files "https://resource-cms.springernature.com/springer-cms/rest/v1/content/19238648/data/v6" \
llncs.cls \
splncs04.bst
cp -r _latex-templates/llncs-template.tex {{cookiecutter.paper_id}}.tex
@ -114,7 +114,19 @@ elif [ "{{ cookiecutter.latex_template }}" == "ieee-access" ]; then
mkdir -p images
cp -r _latex-templates/ieee-access-template-photo.png images/sample-photo.png
# not compatible with tikz (and todonotes which is based on tikz)
sed -i 's/\\usepackage\[textsize=tiny\]{todonotes}/\\usepackage{todo}/' extras.tex
sed -i~ 's/\\usepackage\[textsize=tiny\]{todonotes}/\\usepackage{todo}/' extras.tex
elif [ "{{ cookiecutter.latex_template }}" == "ieee-conf" ]; then
cp -r _latex-templates/ieee-conf-template.tex {{cookiecutter.paper_id}}.tex
cp -r _latex-templates/ieee-conf-template-meta.tex metadata.tex
elif [ "{{ cookiecutter.latex_template }}" == "scitepress" ]; then
get_files "https://www.scitepress.org/documents/SCITEPRESS_Conference_Latex.zip" \
apalike.bst \
apalike.sty \
article.cls \
orcid.eps \
SCITEPRESS.sty
cp -r _latex-templates/scitepress-template.tex {{cookiecutter.paper_id}}.tex
cp -r _latex-templates/scitepress-template-meta.tex metadata.tex
elif [ "{{ cookiecutter.latex_template }}" = "poleval" ]; then
cp -r _latex-templates/poleval-template.tex {{cookiecutter.paper_id}}.tex
cp -r _latex-templates/poleval-template-meta.tex metadata.tex
@ -135,10 +147,23 @@ if [ "{{ cookiecutter.extra_locale }}" = "pl_PL" -o "{{ cookiecutter.locale }}"
cp -r _optional_files/_pl_files/* .
fi
if [ "{{ cookiecutter.beeminder_support }}" = "yes" ]; then
cp -r _optional_files/_beeminder_support/* .
fi
if [ "{{ cookiecutter.contribution_declaration }}" = "yes" ]; then
cp -r _optional_files/_contribution_declaration/* .
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
git checkout README.md main.tex abstract.tex preamble.tex metadata.tex bibliography.bib
if [ "{{ cookiecutter.contribution_declaration }}" = "yes" ]; then
git checkout contributions.yaml
fi
for f in helpers/vars abstract-pl.tex keywords.tex keywords-pl.tex appendix.tex
do
git checkout $f || true

12
test/configs/amu-en.yml Normal file
View File

@ -0,0 +1,12 @@
default_context:
latex_template: 'amu'
locale: 'pl_PL'
with_appendix: 'no'
extra_locale: 'en_US'
with_arxiv_package: 'no'
discipline: 'informatyka'
specialization: 'sztuczna inteligencja'
supervisor: 'prof. dr hab. Jan Nowak'
album_no: '123456'
contribution_declaration: 'no'

View File

@ -9,3 +9,4 @@ default_context:
specialization: 'sztuczna inteligencja'
supervisor: 'prof. dr hab. Jan Nowak'
album_no: '123456'
contribution_declaration: 'no'

View File

@ -1,5 +0,0 @@
default_context:
latex_template: 'ieee-access'
with_arxiv_package: 'no'

View File

@ -1,3 +0,0 @@
default_context:
latex_template: 'llncs'

View File

@ -1,3 +0,0 @@
default_context:
latex_template: 'pw-thesis'

View File

@ -1,3 +0,0 @@
default_context:
latex_template: 'sigconf'

View File

@ -16,7 +16,7 @@ check()
cd "$PAPER_DIR"
make clean
make
if [[ "$config_file" != "configs/pw-thesis.yml" && "$config_file" != "configs/amu.yml" && "$config_file" != "configs/ieee-access.yml" ]]
if [[ "$config_file" != "configs/pw-thesis.yml" && "$config_file" != "configs/amu.yml" && "$config_file" != "configs/ieee-access.yml" && "$config_file" != "configs/amu-en.yml" ]]
then
make arxiv-$PAPER_ID.tar.gz
fi

View File

@ -16,3 +16,5 @@ default_context:
specialization: '{{ cookiecutter.specialization }}'
supervisor: '{{ cookiecutter.supervisor }}'
album_no: '{{ cookiecutter.album_no }}'
beeminder_support: '{{ cookiecutter.beeminder_support }}'
contribution_declaration: '{{ cookiecutter.contribution_declaration }}'

View File

@ -6,5 +6,5 @@ variables:
# THIS IS AN UGLY WORK-AROUND
include:
- project: 'research/paper-cutter'
ref: '5.0.0'
ref: '5.5.2'
file: 'main.yml'

View File

@ -1,46 +1,30 @@
pipeline {
agent { label 'tau2013z' }
agent {
docker {
image 'loxygen/autozoil'
}
}
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 """
withEnv(["HOME=${env.WORKSPACE}"]) {
sh """
{% if cookiecutter.beeminder_support == 'yes' %}
pip3 install pyyaml pyminder
{% endif %}
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: ''
}
}
@ -48,19 +32,33 @@ make
stage ('autozoil') {
steps {
sh """
withEnv(["HOME=${env.WORKSPACE}"]) {
sh """
rm -f autozoil.xml
AUTOZOIL_DIR=autozoil make autozoil.xml
make autozoil
"""
}
}}
post {
always {
archiveArtifacts artifacts: 'autozoil.xml', fingerprint: true
junit 'autozoil.xml'
archiveArtifacts artifacts: 'autozoil*.xml', fingerprint: true
junit testResults: 'autozoil-external-check.xml', skipPublishingChecks: true
// junit testResults: 'autozoil.xml'
}
}
}
{% if cookiecutter.beeminder_support == 'yes' %}
stage ('beeminder') {
steps {
withCredentials([string(credentialsId: 'Beeminder', variable: 'BEEMINDER_TOKEN')]) {
sh """
BEEMINDER_USER=ptlen make logbeeminder
"""
}
}
}
{% endif %}
}
}

View File

@ -1,4 +1,4 @@
SHELL=/bin/bash -O globstar
SHELL=/bin/bash
# Do not edit these values, they should be changed by modifying .cookiecutter.yml
# and re-applying the template
@ -7,12 +7,14 @@ 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 extras.tex metadata.tex preamble.tex the-appendix.tex, $(shell ls **/*.tex))
CONTENT_TEX_SOURCES=$(filter-out $(PAPER_ID).tex config.tex extras.tex metadata.tex preamble.tex the-appendix.tex, $(shell find . -name '*.tex'))
CURRENT_DIR=$(shell pwd)
AUTOZOIL_DIR?=/opt/autozoil
AUTOZOIL_LOCALE={{cookiecutter.locale}}
EXTERNAL_PLAIN_TEXT_CHECKER=
space := $(subst ,, )
ifneq (,$(wildcard appendix.tex))
@ -38,9 +40,17 @@ 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) helpers/$(PAPER_ID)-contribution-declaration.tex helpers/$(PAPER_ID)-contribution-declaration.pdf helpers/*.aux helpers/*.bbl helpers/*.bcf helpers/*.blg helpers/*.log helpers/*.run.xml
ifeq ($(HAS_SUPPLEMENT),yes)
{% if cookiecutter.contribution_declaration == 'yes' %}
all: $(PAPER_ID).pdf abstract.txt supplement.zip stats.txt sentences.txt helpers/$(PAPER_ID)-contribution-declaration.pdf
{% else %}
all: $(PAPER_ID).pdf abstract.txt supplement.zip stats.txt sentences.txt
{% endif %}
else
{% if cookiecutter.contribution_declaration == 'yes' %}
all: $(PAPER_ID).pdf abstract.txt stats.txt sentences.txt helpers/$(PAPER_ID)-contribution-declaration.pdf
{% else %}
all: $(PAPER_ID).pdf abstract.txt stats.txt sentences.txt
{% endif %}
endif
source-pack: $(PAPER_ID).zip
@ -49,6 +59,11 @@ stats.txt: $(PAPER_ID).pdf helpers/stats.sh
bash helpers/stats.sh $< > $@
cat $@
{% if cookiecutter.beeminder_support == 'yes' %}
logbeeminder: helpers/logbeeminder.py stats.txt
python3 $<
{% endif %}
$(PAPER_ID).pdf: $(PAPER_ID).tex preamble.tex metadata.tex $(CONTENT_TEX_SOURCES) bibliography.bib $(SCOREFILES) $(EXTRA_PDFS)
pdflatex $<
bibtex $(PAPER_ID)
@ -59,8 +74,21 @@ $(PAPER_ID).pdf: $(PAPER_ID).tex preamble.tex metadata.tex $(CONTENT_TEX_SOURCES
abstract.txt: abstract.tex
cat $< | perl -pne 's/noqa\{[^}]+\}//g' | detex > $@
SENTENCE_EXTRACTION_METHOD=from-pdf
ifeq ($(LATEX_TEMPLATE),amu)
ifeq ($(AUTOZOIL_LOCALE),pl_PL)
SENTENCE_EXTRACTION_METHOD=from-tex
endif
endif
ifeq ($(SENTENCE_EXTRACTION_METHOD),from-tex)
sentences.txt: $(PAPER_ID).tex helpers/get-sentences.sh helpers/pdf-to-plain-text.sh helpers/strip-references.pl
bash helpers/get-sentences.sh $< from-tex > $@
else
sentences.txt: $(PAPER_ID).pdf helpers/get-sentences.sh helpers/pdf-to-plain-text.sh helpers/strip-references.pl
bash helpers/get-sentences.sh $< > $@
endif
scores/%.txt:
mkdir -p scores
@ -69,6 +97,16 @@ scores/%.txt:
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)/$@
ifeq ($(EXTERNAL_PLAIN_TEXT_CHECKER),)
autozoil: autozoil.xml
else
autozoil: autozoil.xml autozoil-external-check.xml
autozoil-external-check.xml: sentences.txt
curl -X POST -H "Content-Type: multipart/form-data" -F "file=@sentences.txt" $(EXTERNAL_PLAIN_TEXT_CHECKER) > $@
endif
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
@ -104,7 +142,7 @@ titlepage.pdf: titlepage.tex
xelatex $<
endif
{% if cookiecutter.contribution_declaration == 'yes' %}
helpers/$(PAPER_ID)-contribution-declaration.pdf: helpers/$(PAPER_ID)-contribution-declaration.tex bibliography.bib
(cd helpers && pdflatex $(PAPER_ID)-contribution-declaration.tex)
(cd helpers && biber $(PAPER_ID)-contribution-declaration)
@ -112,7 +150,7 @@ helpers/$(PAPER_ID)-contribution-declaration.pdf: helpers/$(PAPER_ID)-contributi
helpers/$(PAPER_ID)-contribution-declaration.tex: contributions.yaml helpers/contribution-declaration.tex.tmpl helpers/generate-contribution-declaration.py
(cd helpers && python3 generate-contribution-declaration.py) < $< > $@
{% endif %}
clean:
$(clean_latex_stuff)

View File

@ -1,6 +1,6 @@
\title{Insert your title}
\title{ {{ cookiecutter.paper_title }} }
\author{First Author \\
\author{ {{cookiecutter.main_contributor_name}} \\
Affiliation / Address line 1 \\
Affiliation / Address line 2 \\
Affiliation / Address line 3 \\

View File

@ -46,11 +46,16 @@
\newcommand\BibTeX{B\textsc{ib}\TeX}
\newcommand\bycite[1]{by~\citet{#1}}
\usepackage{graphicx}
\input{config}
\input{extras}
\input{preamble}
\input{metadata}
\usepackage{times}
\usepackage{inconsolata}
\begin{document}
\maketitle
\begin{abstract}

View File

@ -21,7 +21,7 @@
% --- Tytuł pracy (w języku polskim i angielskim)
\titlePL{ {{ cookiecutter.paper_title }} }
\titleEN{My thesis}
\titleEN{PUT YOUR TITLE IN ENGLISH!!!!!!!!}
% --- Typ pracy (inżynierska, licencjacka, magisterska)
\type{magisterska}
% --- Wydział (wykaz skrótów):
@ -56,8 +56,10 @@
% --- Promotor (w dopełniaczu)
\supervisor{ {{ cookiecutter.supervisor }} }
% --- Data złożenia pracy (Miasto, miesiąc rok)
\date{Poznań, grudzień 2020}
\newcommand{\monthname}{\ifcase \month \or styczeń\or luty\or marzec\or kwiecień\or maj%
\or czerwiec\or lipiec\or sierpień\or wrzesień\or październik\or listopad\or grudzień\fi}
\date{Poznań, \monthname{} \the\year}
% --- Zgoda na udostępnienie pracy w czytelni (TAK/NIE)
\stread{TAK}
% --- Zgoda na udostępnienie pracy w zakresie ochrony (TAK/NIE)

View File

@ -1,7 +1,6 @@
{% raw %}
\title{Insert your title}
\title{ {{ cookiecutter.paper_title }} }
\author{First Author \\
\author{ {{cookiecutter.main_contributor_name}} \\
Affiliation / Address line 1 \\
Affiliation / Address line 2 \\
Affiliation / Address line 3 \\
@ -11,4 +10,3 @@
Affiliation / Address line 2 \\
Affiliation / Address line 3 \\
\texttt{email@domain} \\}
{% endraw %}

View File

@ -0,0 +1,36 @@
{% raw %}
% COLING 2025 Example;
\documentclass[11pt]{article}
\usepackage[review]{coling}
\input{config}
\input{extras}
\input{preamble}
\input{metadata}
\usepackage{times}
\usepackage{inconsolata}
\newcommand\bycite[1]{by~\citet{#1}}
\begin{document}
\maketitle
\begin{abstract}
\input{abstract}
\end{abstract}
\input{main}
\section*{References}\label{sec:reference}
\bibliography{bibliography}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
{% endraw %}

View File

@ -1,73 +0,0 @@
{% raw %}
\pdfoutput=1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% [paper-cutter clarifications]
%
% DO NOT EDIT THIS FILE (unless you know what you are doing).
% THIS IS A FILE SUPPLIED BY THE TEMPLATE.
% PLEASE EDIT main.tex INSTEAD.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% File coling2020.tex
%
% Contact: feiliu@cs.ucf.edu & liang.huang.sh@gmail.com
%% Based on the style files for COLING-2018, which were, in turn,
%% Based on the style files for COLING-2016, which were, in turn,
%% Based on the style files for COLING-2014, which were, in turn,
%% Based on the style files for ACL-2014, which were, in turn,
%% Based on the style files for ACL-2013, which were, in turn,
%% Based on the style files for ACL-2012, which were, in turn,
%% based on the style files for ACL-2011, which were, in turn,
%% based on the style files for ACL-2010, which were, in turn,
%% based on the style files for ACL-IJCNLP-2009, which were, in turn,
%% based on the style files for EACL-2009 and IJCNLP-2008...
%% Based on the style files for EACL 2006 by
%%e.agirre@ehu.es or Sergi.Balari@uab.es
%% and that of ACL 08 by Joakim Nivre and Noah Smith
\newcommand\citep[1]{\cite{#1}}
\newcommand\citet[1]{\newcite{#1}}
\newcommand\bycite[1]{by~\citet{#1}}
\documentclass[11pt]{article}
\usepackage{coling2020}
\usepackage{times}
\usepackage{url}
\usepackage{latexsym}
%\setlength\titlebox{5cm}
% You can expand the titlebox if you need extra space
% to show all the authors. Please do not make the titlebox
% smaller than 5cm (the original size); we will check this
% in the camera-ready version and ask you to change it back.
\input{config}
\input{extras}
\input{preamble}
\input{metadata}
\begin{document}
\maketitle
\begin{abstract}
\input{abstract}
\end{abstract}
\input{main}
\bibliography{bibliography}
\bibliographystyle{coling}
\ifwithappendix
\typeout{!!! APPENDIX WILL BE SKIPPED FOR THIS TEMPLATE. !!!}
\fi
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
{% endraw %}

View File

@ -0,0 +1,18 @@
\title{ {{ cookiecutter.paper_title }} }
%
%
\author{
\IEEEauthorblockN{ {{ cookiecutter.main_contributor_name }} }
\IEEEauthorblockA{
University of This and That\\
in Flatland\\
ul.\ XYZ 111, 12-345 Flatcity, Flatland\\
Email: abc@flatland.edu}
\and
\IEEEauthorblockN{Second Author, Third Author}
\IEEEauthorblockA{Universit\'{e} de Paris-Sud,\\
Laboratoire d'Analyse Num\'{e}rique,\\
B\^{a}timent 425,\\
F-91405 Orsay Cedex, France\\
Email: \{second, third\}@subdomain.domain.fr}
}

View File

@ -0,0 +1,58 @@
{% raw %}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% [paper-cutter clarifications]
%
% DO NOT EDIT THIS FILE (unless you know what you are doing).
% THIS IS A FILE SUPPLIED BY THE TEMPLATE.
% PLEASE EDIT main.tex INSTEAD.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
% Based on https://fedcsis.org/resources/latex.zip
\documentclass[conference]{IEEEtran}
% This package serves to balance the column lengths on the last page of the document.
% please, insert \balance command in the left column of the last page
\usepackage{balance}
%% to enable \thank command
\IEEEoverridecommandlockouts
% to typeset algorithms
\usepackage{algorithmic}
\usepackage{algorithm}
% to typeset code fragments
\usepackage{listings}
% to make an accent \k be available
\usepackage[OT4,T1]{fontenc}
% provides various features to facilitate writing math formulas and to improve the typographical quality of their output.
\usepackage[cmex10]{amsmath}
\interdisplaylinepenalty=2500
% por urls typesetting and breaking
\usepackage{url}
% for vertical merging table cells
\usepackage{multirow}
\newcommand\bycite[1]{by~\cite{#1}}
\input{config}
\input{extras}
\input{preamble}
\input{metadata}
\begin{document}
\maketitle % typeset the title of the contribution
\begin{abstract}
\input{abstract}
\end{abstract}
\input{main}
\bibliographystyle{abbrv}
\bibliography{bibliography}
\end{document}
{% endraw %}

View File

@ -1,13 +1,15 @@
\title{ {{ cookiecutter.paper_title }}\thanks{Supported byorganization x.} }
{% 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
{% endraw %}
\author{ {{cookiecutter.main_contributor_name}}\inst{1}\orcidID{0000-1111-2222-3333} \and
Second Author\inst{2,3}\orcidID{1111-2222-3333-4444} \and
Third Author\inst{3}\orcidID{2222--3333-4444-5555}}
Third Author\inst{3}\orcidID{2222--3333-4444-5555} }
{% raw %}
%
\authorrunning{F. Author et al.}
% First names are abbreviated in the running head.

View File

@ -0,0 +1,6 @@
\title{ {{cookiecutter.paper_title}} }
\author{\authorname{ {{cookiecutter.main_contributor_name}}\sup{1}\orcidAuthor{0000-0000-0000-0000}, Second Author Name\sup{1}\orcidAuthor{0000-0000-0000-0000} and Third Author Name\sup{2}\orcidAuthor{0000-0000-0000-0000}}
\affiliation{\sup{1}Institute of Problem Solving, XYZ University, My Street, MyTown, MyCountry}
\affiliation{\sup{2}Department of Computing, Main University, MySecondTown, MyCountry}
\email{\{f\_author, s\_author\}@ips.xyz.edu, t\_author@dc.mu.edu}
}

View File

@ -0,0 +1,60 @@
{% raw %}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% [paper-cutter clarifications]
%
% DO NOT EDIT THIS FILE (unless you know what you are doing).
% THIS IS A FILE SUPPLIED BY THE TEMPLATE.
% PLEASE EDIT main.tex INSTEAD.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[a4paper,twoside]{article}
\usepackage{epsfig}
\usepackage{subcaption}
\usepackage{calc}
\usepackage{amssymb}
\usepackage{amstext}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{multicol}
\usepackage{pslatex}
\usepackage{apalike}
\usepackage[bottom]{footmisc}
\newcommand{\citep}{\cite}
\newcommand{\citet}{\cite}
\newcommand\bycite[1]{in~\citet{#1}}
\input{config}
\input{preamble}
\usepackage{SCITEPRESS}
\input{extras}
\begin{document}
\input{metadata.tex}
\keywords{%
\input{keywords}
}
\abstract{%
\input{abstract}
}
\onecolumn \maketitle \normalsize \setcounter{footnote}{0} \vfill
\input{main}
\bibliographystyle{apalike}
{\small
\bibliography{bibliography}}
\ifwithappendix
\input{appendix}
\fi
\end{document}
{% endraw %}

View File

@ -0,0 +1,37 @@
#!/usr/bin/env python3
import time
from pyminder.pyminder import Pyminder
import os
import sys
if 'BEEMINDER_USER' not in os.environ:
print('BEEMINDER_USER not set', file=sys.stderr)
exit(1)
if 'BEEMINDER_TOKEN' not in os.environ:
print('BEEMINDER_TOKEN not set', file=sys.stderr)
exit(1)
beeminder_user = os.environ['BEEMINDER_USER']
beeminder_token = os.environ['BEEMINDER_TOKEN']
pyminder = Pyminder(user=beeminder_user, token=beeminder_token)
goal = pyminder.get_goal('{{cookiecutter.paper_id}}')
with open('stats.txt', 'r') as stats_fh:
next(stats_fh)
stats = next(stats_fh)
page_count, _, _ = stats.split('\t')
print(f'reporting {page_count} pages', file=sys.stderr)
now = time.time()
goal.stage_datapoint(value=page_count,
time=now)
goal.commit_datapoints()

View File

@ -10,7 +10,11 @@ for my $filepath (@ARGV) {
while (my $line=<$ih>) {
while ($line =~ m<\\gonito(?:barescore|score|entry)\{([^\}]+)\}>g) {
$found{$1} = 1;
my $k = $1;
if ($k ne '#1') {
$found{$k} = 1;
}
}
}

View File

@ -12,6 +12,7 @@
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{latexsym}
\usepackage{microtype}
% so that footnotes in tables would work
% https://tex.stackexchange.com/questions/109467/footnote-in-tabular-environment
@ -47,7 +48,7 @@
\newcommand{\gonitobestentry}[1]{\gonitoref{#1} & \textbf{\minput{scores/#1.txt}}}
% Autozoil-related commands
\newcommand{\code}[1]{\texttt{#1}}
\providecommand{\code}[1]{\texttt{#1}}
\newcommand{\noqa}[1]{}
\newcommand{\noqall}[1]{}
\newcommand{\eng}[1]{\textit{#1}}

View File

@ -8,7 +8,7 @@ use strict;
binmode(STDIN, ':utf8');
binmode(STDOUT, ':utf8');
my $subdir_regexp = qr{(?:figures|images)};
my $subdir_regexp = qr{(?:figures|images|plots)};
sub fix_subdirs {
my ($p) = @_;

View File

@ -1,3 +1,15 @@
#!/bin/bash
bash helpers/pdf-to-plain-text.sh "$1" | perl helpers/strip-references.pl | perl -pne 'chomp $_; $_.=" "' | python3 -m syntok.segmenter
input_file="$1"
method="$2"
extract_text() {
if [[ "$method" == "from-tex" ]]
then
detex "$input_file" | grep -E '\S' | grep -v 'unsrt' | perl -pne 's/^\s+| +$//g'
else
bash helpers/pdf-to-plain-text.sh "$input_file" | perl helpers/strip-references.pl | perl -pne 'chomp $_; $_.=" "'
fi
}
extract_text | python3 -m syntok.segmenter | grep -E '\S'

View File

@ -1,3 +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
pdftotext "$1" - | grep -F -v 'Confidential Review Copy' | grep -E -v '^(ACL 2020 Submission \*\*\*\. Confidential Review Copy\. DO NOT DISTRIBUTE\.|Anonymous ACL submission|Abstract|Results|Conclusions|https?://\S+)\s*$' | grep '[^[:space:]]' | grep -E '[a-zA-Z]{2}' | perl -pne 's/\f//g;' | uniq

View File

@ -49,7 +49,7 @@ handle_subdir()
then
perl helpers/flatten-structure.pl < "$f" > "$dst"
else
cp $f $dst
cp "$f" "$dst"
fi
done
fi
@ -57,6 +57,7 @@ handle_subdir()
handle_subdir images
handle_subdir figures
handle_subdir plots
handle_subdir scores
handle_subdir inputs
@ -99,7 +100,8 @@ then
:
elif [[ "$latex_template" == "coling" ]]
then
copy_to_project coling2020.sty coling.bst
copy_to_project coling_natbib.bst \
coling.sty
elif [[ "$latex_template" == "llncs" ]]
then
copy_to_project llncs.cls splncs04.bst
@ -119,9 +121,19 @@ then
fancyhdr.sty \
icml2022.bst \
icml2022.sty
elif [[ "$latex_template" == "scitepress" ]]
then
copy_to_project apalike.bst \
apalike.sty \
article.cls \
orcid.eps \
SCITEPRESS.sty
elif [[ "$latex_template" == "ieee-access" ]]
then
copy_to_project bullet.png ieeeaccess.cls IEEEtran.cls ieeeaccess.cls spotcolor.sty logo.png notaglinelogo.png
elif [[ "$latex_template" == "ieee-conf" ]]
then
:
elif [[ "$latex_template" == "poleval" ]]
then
copy_to_project poleval.bst poleval.cls

View File

@ -27,12 +27,13 @@ echo "then upload $source_pack from here ($(pwd)/$source_pack)"
echo ""
echo "When it is uploaded, click Menu / Git, copy the URL"
echo "(something like https://git.overleaf.com/123456789ec0830001af836f),"
echo "(something like https://git@git.overleaf.com/123456789ec0830001af836f),"
echo "paste here and press ENTER"
read
overleaf_git_url=$REPLY
# remove "git clone" in case it was directly copied from Overleaf
overleaf_git_url=${overleaf_git_url#git clone }
overleaf_git_id=$(basename $overleaf_git_url)
@ -55,7 +56,7 @@ cp ../$backup_dir/.cookiecutter.yml .
git add .cookiecutter.yml
git commit -m 'Back cookiecutter config'
cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --checkout 4.7.0 --output-dir .. --config-file .cookiecutter.yml --no-input --overwrite-if-exists
cookiecutter https://git.wmi.amu.edu.pl/filipg/paper-cutter.git --checkout 5.5.2 --output-dir .. --config-file .cookiecutter.yml --no-input --overwrite-if-exists
git add --all
git commit -m 'Bring back all the files'

View File

@ -1,7 +1,6 @@
#!/bin/bash
here_dir=$(dirname "$0")
echo $here_dir
pdf_file="$1"

View File

@ -1,5 +1,9 @@
{% if cookiecutter.latex_template != 'pw-thesis' and cookiecutter.latex_template != 'amu' %}
\section{Main}
{% else %}
\chapter{Main}
{% endif %}
This is a~sample paper~\cite{gonito2016}.
See the experiments described \bycite{gonito2016}.
@ -8,10 +12,8 @@ Please put your content here.
\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.}
{% if cookiecutter.latex_template != 'pw-thesis' and cookiecutter.latex_template != 'amu' %}
\section{Yet another section}
{% else %}
\chapter{Yet another chapter}
{% endif %}