Update on Overleaf.
This commit is contained in:
commit
2f39dd5892
2913
ACM-Reference-Format.bst
Normal file
2913
ACM-Reference-Format.bst
Normal file
File diff suppressed because it is too large
Load Diff
66
Jenkinsfile
vendored
Normal file
66
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: 'msc-drozdz.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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
118
Makefile
Normal file
118
Makefile
Normal file
@ -0,0 +1,118 @@
|
||||
SHELL=/bin/bash -O globstar
|
||||
|
||||
# Do not edit these values, they should be changed by modifying .cookiecutter.yml
|
||||
# and re-applying the template
|
||||
PAPER_ID=msc-drozdz
|
||||
HAS_APPENDIX=no
|
||||
LATEX_TEMPLATE=amu
|
||||
WITH_ARXIV_PACKAGE=no
|
||||
|
||||
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, $(shell ls **/*.tex))
|
||||
|
||||
CURRENT_DIR=$(shell pwd)
|
||||
AUTOZOIL_DIR?=/opt/autozoil
|
||||
AUTOZOIL_LOCALE=pl_PL
|
||||
|
||||
space := $(subst ,, )
|
||||
|
||||
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) 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)
|
||||
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 stats.txt sentences.txt helpers/$(PAPER_ID)-contribution-declaration.pdf
|
||||
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/$(subst $(space),%20,$*)" -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
|
||||
|
||||
|
||||
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)
|
||||
(cd helpers && pdflatex $(PAPER_ID)-contribution-declaration.tex)
|
||||
|
||||
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) < $< > $@
|
||||
|
||||
|
||||
clean:
|
||||
$(clean_latex_stuff)
|
5
README.md
Normal file
5
README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# msc-drozdz
|
||||
|
||||
Alex Drożdż MSc Thesis
|
||||
|
||||
[![pipeline status](https://git.wmi.amu.edu.pl/s468642/msc-drozdz/badges/master/pipeline.svg)](https://git.wmi.amu.edu.pl/s468642/msc-drozdz/commits/master)
|
1
abstract-pl.tex
Normal file
1
abstract-pl.tex
Normal file
@ -0,0 +1 @@
|
||||
Streszczenie po polsku (dla niektórych szablonów).
|
1
abstract.tex
Normal file
1
abstract.tex
Normal file
@ -0,0 +1 @@
|
||||
Sample abstract.
|
2907
acmart.cls
Normal file
2907
acmart.cls
Normal file
File diff suppressed because it is too large
Load Diff
976
amuthesis.cls
Normal file
976
amuthesis.cls
Normal file
@ -0,0 +1,976 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{amuthesis}[2017/10/01 AMU Thesis]
|
||||
|
||||
% ======================================================== %
|
||||
% Obsługa opcji pakietu %
|
||||
% ======================================================== %
|
||||
|
||||
% Język dokumentu
|
||||
\newif\if@optpolski
|
||||
\DeclareOption{polski}{\@optpolskitrue}
|
||||
\ExecuteOptions{polski}
|
||||
\DeclareOption{english}{\@optpolskifalse}
|
||||
|
||||
% Wcięcia pierwszych akapitów w paragrafie
|
||||
\newif\if@optindent
|
||||
\DeclareOption{indent}{\@optindenttrue}
|
||||
|
||||
% Logo zamiast nazwy uczelni
|
||||
\newif\if@optlogo
|
||||
\DeclareOption{logo}{\@optlogotrue}
|
||||
|
||||
% Zamiana numeru i nazwy otoczenia
|
||||
\newif\if@optswapthm
|
||||
\DeclareOption{swapthm}{\@optswapthmtrue}
|
||||
|
||||
% Numerowanie wierszy
|
||||
\newif\if@optlineno
|
||||
\DeclareOption{lineno}{\@optlinenotrue}
|
||||
|
||||
% Wsparcie dla stron pustych
|
||||
\newif\if@optleftblank
|
||||
\DeclareOption{leftblank}{\@optleftblanktrue}
|
||||
|
||||
% Skład jedno- i dwustronny
|
||||
\DeclareOption{oneside}{
|
||||
\PassOptionsToClass{oneside}{mwbk}
|
||||
\PassOptionsToClass{oneside}{book}
|
||||
}
|
||||
\DeclareOption{twoside}{
|
||||
\PassOptionsToClass{twoside}{mwbk}
|
||||
\PassOptionsToClass{twoside}{book}
|
||||
}
|
||||
|
||||
% Obsłuż nieznane opcje
|
||||
\DeclareOption*{
|
||||
\ClassWarning{amuthesis}{Nieznany parametr klasy: \CurrentOption}
|
||||
}
|
||||
|
||||
% Przetwórz opcje
|
||||
\ProcessOptions\relax
|
||||
|
||||
% Oprzyj dokument na jednym z zestawów, w zależności
|
||||
% od statusu opcji 'optpolski'
|
||||
\if@optpolski
|
||||
\LoadClass[oneside,11pt]{mwbk}
|
||||
\RequirePackage{polski}
|
||||
\else
|
||||
\LoadClass[oneside,11pt]{book}
|
||||
\fi
|
||||
|
||||
% Uruchom numerację wierszy, jeśli do klasy przekazano
|
||||
% opcję 'lineno'
|
||||
\if@optlineno
|
||||
\RequirePackage[mathlines]{lineno}
|
||||
\newcommand*\patchAmsMathEnvironmentForLineno[1]{%
|
||||
\expandafter\let\csname old#1\expandafter\endcsname\csname #1\endcsname
|
||||
\expandafter\let\csname oldend#1\expandafter\endcsname\csname end#1\endcsname
|
||||
\renewenvironment{#1}%
|
||||
{\linenomath\csname old#1\endcsname}%
|
||||
{\csname oldend#1\endcsname\endlinenomath}}%
|
||||
\newcommand*\patchBothAmsMathEnvironmentsForLineno[1]{%
|
||||
\patchAmsMathEnvironmentForLineno{#1}%
|
||||
\patchAmsMathEnvironmentForLineno{#1*}}%
|
||||
\AtBeginDocument{%
|
||||
\patchBothAmsMathEnvironmentsForLineno{equation}%
|
||||
\patchBothAmsMathEnvironmentsForLineno{align}%
|
||||
\patchBothAmsMathEnvironmentsForLineno{flalign}%
|
||||
\patchBothAmsMathEnvironmentsForLineno{alignat}%
|
||||
\patchBothAmsMathEnvironmentsForLineno{gather}%
|
||||
\patchBothAmsMathEnvironmentsForLineno{multline}%
|
||||
}
|
||||
\linenumbers
|
||||
\fi
|
||||
|
||||
% ======================================================== %
|
||||
% Podstawowe pakiety i ustawienia dokumentu %
|
||||
% ======================================================== %
|
||||
|
||||
\RequirePackage{ifxetex}
|
||||
\RequirePackage{ifluatex}
|
||||
\newif\if@xetexorluatex
|
||||
\ifxetex
|
||||
\@xetexorluatextrue
|
||||
\else
|
||||
\ifluatex
|
||||
\@xetexorluatextrue
|
||||
\else
|
||||
\@xetexorluatexfalse
|
||||
\fi
|
||||
\fi
|
||||
|
||||
\setlength{\textfloatsep}{2\baselineskip}
|
||||
|
||||
% Obsługa fontów
|
||||
\if@xetexorluatex
|
||||
%\RequirePackage{unicode-math}
|
||||
\RequirePackage{fontspec}
|
||||
\RequirePackage{mathpazo}
|
||||
\RequirePackage{avant}
|
||||
\setmainfont
|
||||
[ BoldFont = texgyrepagella-bold.otf ,
|
||||
ItalicFont = texgyrepagella-italic.otf ,
|
||||
BoldItalicFont = texgyrepagella-bolditalic.otf ]
|
||||
{texgyrepagella-regular.otf}
|
||||
\newfontfamily\scshape[Letters=SmallCaps]{texgyrepagella-regular.otf}
|
||||
\else
|
||||
\RequirePackage[sc]{mathpazo}
|
||||
\RequirePackage{avant}
|
||||
\fi
|
||||
% Dołącz font 'Souce Code Pro'
|
||||
\RequirePackage[scale=.93,semibold]{sourcecodepro}
|
||||
|
||||
% Ustal rozmiar dokumentu
|
||||
\RequirePackage{geometry}
|
||||
\geometry{a4paper,%
|
||||
innermargin=3.75cm,%
|
||||
outermargin=3.75cm,%
|
||||
tmargin=4.0cm,%
|
||||
bmargin=4.0cm,%
|
||||
headsep=24pt,%
|
||||
footskip=42pt}
|
||||
|
||||
% Zapewnij poprawną interakcję wewnątrz pliku PDF
|
||||
\RequirePackage[hidelinks,unicode]{hyperref}
|
||||
|
||||
% Obsłuż opis pustych stron
|
||||
\newcommand*{\leftblank}[1]{\gdef\@leftblank{#1}}
|
||||
\newcommand*{\@leftblank}{}
|
||||
|
||||
\if@optpolski
|
||||
\leftblank{Ta strona jest pusta.}
|
||||
\else
|
||||
\leftblank{This page intentionally left blank.}
|
||||
\fi
|
||||
|
||||
\if@optleftblank
|
||||
\def\cleardoublepage{%
|
||||
\clearpage\if@twoside%
|
||||
\ifodd\c@page%
|
||||
\else
|
||||
\vspace*{\fill}
|
||||
\hfill
|
||||
\begin{center}
|
||||
\@leftblank
|
||||
\end{center}
|
||||
\vspace{\fill}
|
||||
\thispagestyle{empty}
|
||||
\newpage
|
||||
\if@twocolumn\hbox{}\newpage\fi
|
||||
\fi
|
||||
\fi
|
||||
}
|
||||
\fi
|
||||
|
||||
% Dołącz podstawowe pakiety
|
||||
\RequirePackage{xcolor}
|
||||
\RequirePackage{amsmath}
|
||||
\RequirePackage{amssymb}
|
||||
\RequirePackage{amsthm}
|
||||
\RequirePackage{graphicx}
|
||||
\RequirePackage{microtype}
|
||||
\RequirePackage{array}
|
||||
\RequirePackage{tabularx}
|
||||
\RequirePackage{longtable}
|
||||
\RequirePackage{makecell}
|
||||
\RequirePackage{booktabs}
|
||||
\RequirePackage{verbatim}
|
||||
|
||||
% ======================================================== %
|
||||
% Etykiety %
|
||||
% ======================================================== %
|
||||
|
||||
\RequirePackage[justification=centering,
|
||||
singlelinecheck=false,
|
||||
labelsep=period]{caption}
|
||||
\DeclareCaptionFormat{stdcap}{\textbf{#1#2}#3\vspace*{0.5em}}
|
||||
\captionsetup[table]{justification=centering}
|
||||
\captionsetup{format=stdcap}
|
||||
|
||||
% ======================================================== %
|
||||
% Listingi %
|
||||
% ======================================================== %
|
||||
|
||||
\RequirePackage{listings}
|
||||
\AtBeginDocument{%
|
||||
\renewcommand*{\thelstlisting}{\thechapter-\arabic{lstlisting}}%
|
||||
}
|
||||
|
||||
\if@optpolski
|
||||
\renewcommand{\lstlistingname}{Wyci\k{a}g}
|
||||
\else
|
||||
\renewcommand{\lstlistingname}{Listing}
|
||||
\fi
|
||||
|
||||
\lstset{
|
||||
basicstyle=\small\ttfamily,
|
||||
breaklines=true,
|
||||
xleftmargin=26pt,
|
||||
showstringspaces=false,
|
||||
belowskip=9pt,
|
||||
aboveskip=9pt,
|
||||
extendedchars=true,
|
||||
inputencoding=utf8,
|
||||
frame=l,
|
||||
framesep=5pt,
|
||||
numbers=left,
|
||||
numberstyle=\footnotesize\ttfamily\color{gray},
|
||||
rulecolor=\color{gray!50},
|
||||
extendedchars=true
|
||||
}
|
||||
|
||||
% ======================================================== %
|
||||
% Otoczenia %
|
||||
% ======================================================== %
|
||||
|
||||
\if@optpolski
|
||||
\newcommand*{\amsthmtheorem}{Twierdzenie}
|
||||
\newcommand*{\amsthmlemma}{Lemat}
|
||||
\newcommand*{\amsthmstatement}{Hipoteza}
|
||||
\newcommand*{\amsthmproposition}{Stwierdzenie}
|
||||
\newcommand*{\amsthmcorollary}{Wniosek}
|
||||
|
||||
\newcommand*{\amsthmdefinition}{Definicja}
|
||||
\newcommand*{\amsthmexample}{Przyk\l{}ad}
|
||||
\newcommand*{\amsthmtask}{Zadanie}
|
||||
\newcommand*{\amsthmexercise}{\'Cwiczenie}
|
||||
|
||||
\newcommand*{\amsthmremark}{Spostrze\.zenie}
|
||||
\newcommand*{\amsthmnote}{Obserwacja}
|
||||
\else
|
||||
\newcommand*{\amsthmtheorem}{Theorem}
|
||||
\newcommand*{\amsthmlemma}{Lemma}
|
||||
\newcommand*{\amsthmstatement}{Statement}
|
||||
\newcommand*{\amsthmproposition}{Proposition}
|
||||
\newcommand*{\amsthmcorollary}{Corollary}
|
||||
|
||||
\newcommand*{\amsthmdefinition}{Definition}
|
||||
\newcommand*{\amsthmexample}{Example}
|
||||
\newcommand*{\amsthmtask}{Task}
|
||||
\newcommand*{\amsthmexercise}{Exercise}
|
||||
|
||||
\newcommand*{\amsthmremark}{Remark}
|
||||
\newcommand*{\amsthmnote}{Note}
|
||||
\fi
|
||||
|
||||
\if@optswapthm
|
||||
\def\swappedhead#1#2#3{%
|
||||
\if@optpolski
|
||||
\thmnumber{#2.}%
|
||||
\else
|
||||
\thmnumber{#2}%
|
||||
\fi
|
||||
\thmname{\@ifnotempty{#2}{~}#1}%
|
||||
\thmnote{ {\the\thm@notefont(#3)}}}
|
||||
\swapnumbers
|
||||
\fi
|
||||
|
||||
\theoremstyle{plain}
|
||||
\newtheorem{theorem}{\amsthmtheorem}[chapter]
|
||||
\newtheorem{twierdzenie}[theorem]{\amsthmtheorem}
|
||||
\newtheorem{lemma}[theorem]{\amsthmlemma}
|
||||
\newtheorem{lemat}[theorem]{\amsthmlemma}
|
||||
\newtheorem{statement}[theorem]{\amsthmstatement}
|
||||
\newtheorem{hipoteza}[theorem]{\amsthmstatement}
|
||||
\newtheorem{proposition}[theorem]{\amsthmproposition}
|
||||
\newtheorem{stwierdzenie}[theorem]{\amsthmproposition}
|
||||
\newtheorem{corollary}[theorem]{\amsthmcorollary}
|
||||
\newtheorem{wniosek}[theorem]{\amsthmcorollary}
|
||||
|
||||
\theoremstyle{definition}
|
||||
\newtheorem{definition}{\amsthmdefinition}[chapter]
|
||||
\newtheorem{definicja}[definition]{\amsthmdefinition}
|
||||
\newtheorem{example}{\amsthmexample}[chapter]
|
||||
\newtheorem{przyklad}[example]{\amsthmexample}
|
||||
\newtheorem{task}{\amsthmtask}[chapter]
|
||||
\newtheorem{zadanie}[task]{\amsthmtask}
|
||||
\newtheorem{exercise}[task]{\amsthmexercise}
|
||||
\newtheorem{cwiczenie}[task]{\amsthmexercise}
|
||||
|
||||
\theoremstyle{remark}
|
||||
\newtheorem{remark}[theorem]{\amsthmremark}
|
||||
\newtheorem{spostrzezenie}[theorem]{\amsthmremark}
|
||||
\newtheorem{note}[theorem]{\amsthmnote}
|
||||
\newtheorem{obserwacja}[theorem]{\amsthmnote}
|
||||
|
||||
\newenvironment{dowod}{\begin{proof}}{\end{proof}}
|
||||
|
||||
% ======================================================== %
|
||||
% Konfiguracja i polecenia specjalne %
|
||||
% ======================================================== %
|
||||
|
||||
% Ustawienia składu pionowego
|
||||
\linespread{1.15}
|
||||
\raggedbottom
|
||||
|
||||
% Zdefiniuj otoczenia dla abstraktów
|
||||
\newenvironment{abstract}{\chapter*{Abstract}}{}
|
||||
\newenvironment{streszczenie}{\chapter*{Streszczenie}}{}
|
||||
|
||||
% Zdefiniuj otoczenie dla dedykacji
|
||||
\newenvironment{dedykacja}{%
|
||||
\cleardoublepage\thispagestyle{empty}\mbox{}\vfill
|
||||
\hfill\begin{minipage}{0.5\textwidth}
|
||||
\begin{flushleft}
|
||||
}{
|
||||
\end{flushleft}
|
||||
\end{minipage}
|
||||
\vspace*{4cm}
|
||||
}
|
||||
|
||||
% ======================================================== %
|
||||
% Strona tytułowa %
|
||||
% ======================================================== %
|
||||
|
||||
\RequirePackage{ifthen}
|
||||
|
||||
% Zdefiniuj parametry strony tytułowej
|
||||
\newcommand*{\titlePL}[1]{\gdef\@titlePL{#1}}
|
||||
\newcommand*{\@titlePL}{}
|
||||
\newcommand*{\titleEN}[1]{\gdef\@titleEN{#1}}
|
||||
\newcommand*{\@titleEN}{}
|
||||
|
||||
% \firstAuthor
|
||||
\newcommand*{\firstAuthor}[1]{\gdef\@firstAuthor{#1}}
|
||||
\newcommand*{\@firstAuthor}{}
|
||||
% \secondAuthor
|
||||
\newcommand*{\secondAuthor}[1]{\gdef\@secondAuthor{#1}}
|
||||
\newcommand*{\@secondAuthor}{}
|
||||
% \thirdAuthor
|
||||
\newcommand*{\thirdAuthor}[1]{\gdef\@thirdAuthor{#1}}
|
||||
\newcommand*{\@thirdAuthor}{}
|
||||
% \fourthAuthor
|
||||
\newcommand*{\fourthAuthor}[1]{\gdef\@fourthAuthor{#1}}
|
||||
\newcommand*{\@fourthAuthor}{}
|
||||
|
||||
% \firstAlbum
|
||||
\newcommand*{\firstAlbum}[1]{\gdef\@firstAlbum{#1}}
|
||||
\newcommand*{\@firstAlbum}{}
|
||||
% \secondAlbum
|
||||
\newcommand*{\secondAlbum}[1]{\gdef\@secondAlbum{#1}}
|
||||
\newcommand*{\@secondAlbum}{}
|
||||
% \thirdAlbum
|
||||
\newcommand*{\thirdAlbum}[1]{\gdef\@thirdAlbum{#1}}
|
||||
\newcommand*{\@thirdAlbum}{}
|
||||
% \fourthAlbum
|
||||
\newcommand*{\fourthAlbum}[1]{\gdef\@fourthAlbum{#1}}
|
||||
\newcommand*{\@fourthAlbum}{}
|
||||
|
||||
\newcommand*{\type}[1]{\gdef\@type{#1}}
|
||||
\newcommand*{\@type}{}
|
||||
\newcommand*{\field}[1]{\gdef\@field{#1}}
|
||||
\newcommand*{\@field}{}
|
||||
\newcommand*{\supervisor}[1]{\gdef\@supervisor{#1}}
|
||||
\newcommand*{\@supervisor}{}
|
||||
\newcommand*{\specialty}[1]{\gdef\@specialty{#1}}
|
||||
\newcommand*{\@specialty}{}
|
||||
\specialty{}
|
||||
|
||||
% Wydział
|
||||
\newcommand*{\faculty}[1]{\gdef\@faculty{#1}}
|
||||
\newcommand*{\@faculty}{}
|
||||
\newcommand*{\facultyM}[1]{\gdef\@facultyM{#1}}
|
||||
\newcommand*{\@facultyM}{}
|
||||
\newcommand*{\facultyD}[1]{\gdef\@facultyD{#1}}
|
||||
\newcommand*{\@facultyD}{}
|
||||
|
||||
\facultyM{\emph{[Zdefiniuj wydzia\l{}]}}
|
||||
\facultyD{\emph{[Zdefiniuj wydzia\l{}]}}
|
||||
|
||||
\newcommand*{\setfaculty}{
|
||||
% --- WA --- Wydział Anglistyki
|
||||
\ifthenelse{\equal{\@faculty}{WA}}{
|
||||
\facultyM{Wydzia\l{} Anglistyki}
|
||||
\facultyD{Wydzia\l{}u Anglistyki}
|
||||
}{}
|
||||
% --- WAiK --- Wydział Antropologii i Kulturoznawstwa
|
||||
\ifthenelse{\equal{\@faculty}{WAiK}}{
|
||||
\facultyM{Wydzia\l{} Antropologii i Kulturoznawstwa}
|
||||
\facultyD{Wydzia\l{}u Antropologii i Kulturoznawstwa}
|
||||
}{}
|
||||
% --- WAr --- Wydział Archeologii
|
||||
\ifthenelse{\equal{\@faculty}{WAr}}{
|
||||
\facultyM{Wydzia\l{} Archeologii}
|
||||
\facultyD{Wydzia\l{}u Archeologii}
|
||||
}{}
|
||||
% --- WB --- Wydział Biologii
|
||||
\ifthenelse{\equal{\@faculty}{WB}}{
|
||||
\facultyM{Wydzia\l{} Biologii}
|
||||
\facultyD{Wydzia\l{}u Biologii}
|
||||
}{}
|
||||
% --- WCh --- Wydział Chemii
|
||||
\ifthenelse{\equal{\@faculty}{WCh}}{
|
||||
\facultyM{Wydzia\l{} Chemii}
|
||||
\facultyD{Wydzia\l{}u Chemii}
|
||||
}{}
|
||||
% --- WFPiK --- Wydział Filologii Polskiej i Klasycznej
|
||||
\ifthenelse{\equal{\@faculty}{WFPiK}}{
|
||||
\facultyM{Wydzia\l{} Filologii Polskiej i~Klasycznej}
|
||||
\facultyD{Wydzia\l{}u Filologii Polskiej i~Klasycznej}
|
||||
}{}
|
||||
% --- WFi --- Wydział Filozoficzny
|
||||
\ifthenelse{\equal{\@faculty}{WFi}}{
|
||||
\facultyM{Wydzia\l{} Filozoficzny}
|
||||
\facultyD{Wydzia\l{}u Filolozoficznego}
|
||||
}{}
|
||||
% --- WF --- Wydział Fizyki
|
||||
\ifthenelse{\equal{\@faculty}{WF}}{
|
||||
\facultyM{Wydzia\l{} Fizyki}
|
||||
\facultyD{Wydzia\l{}u Fizyki}
|
||||
}{}
|
||||
% --- WGSE --- Geografii Społeczno-Ekonomicznej i Gospodarki Przestrzennej
|
||||
\ifthenelse{\equal{\@faculty}{WGSE}}{
|
||||
\facultyM{Wydzia\l{} Geografii Spo\l{}eczno-Ekonomicznej i~Gospodarki Przestrzennej}
|
||||
\facultyD{Wydzia\l{}u Geografii Spo\l{}eczno-Ekonomicznej i~Gospodarki Przestrzennej}
|
||||
}{}
|
||||
% --- WH --- Wydział Historii
|
||||
\ifthenelse{\equal{\@faculty}{WH}}{
|
||||
\facultyM{Wydzia\l{} Historii}
|
||||
\facultyD{Wydzia\l{}u Historii}
|
||||
}{}
|
||||
% --- WMiI --- Wydział Matematyki i Informatyki
|
||||
\ifthenelse{\equal{\@faculty}{WMiI}}{
|
||||
\facultyM{Wydzia\l{} Matematyki i~Informatyki}
|
||||
\facultyD{Wydzia\l{}u Matematyki i~Informatyki}
|
||||
}{}
|
||||
% --- WNGiG --- Wydział Nauk Geograficznych i Geologicznych
|
||||
\ifthenelse{\equal{\@faculty}{WNGiG}}{
|
||||
\facultyM{Wydzia\l{} Nauk Geograficznych i~Geologicznych}
|
||||
\facultyD{Wydzia\l{}u Nauk Geograficznych i~Geologicznych}
|
||||
}{}
|
||||
% --- WNoS --- Wydział Nauk o Sztuce
|
||||
\ifthenelse{\equal{\@faculty}{WNoS}}{
|
||||
\facultyM{Wydzia\l{} Nauk o~Sztuce}
|
||||
\facultyD{Wydzia\l{}u Nauk o~Sztuce}
|
||||
}{}
|
||||
% --- WNPiD --- Wydział Nauk Politycznych i Dziennikarstwa
|
||||
\ifthenelse{\equal{\@faculty}{WNPiD}}{
|
||||
\facultyM{Wydzia\l{} Nauk Politycznych i~Dziennikarstwa}
|
||||
\facultyD{Wydzia\l{}u Nauk Politycznych i~Dziennikarstwa}
|
||||
}{}
|
||||
% --- WN --- Wydział Neofilologii
|
||||
\ifthenelse{\equal{\@faculty}{WN}}{
|
||||
\facultyM{Wydzia\l{} Neofilologii}
|
||||
\facultyD{Wydzia\l{}u Neofilologii}
|
||||
}{}
|
||||
% --- WPiK --- Wydział Psychologii i Kognitywistyki
|
||||
\ifthenelse{\equal{\@faculty}{WPiK}}{
|
||||
\facultyM{Wydzia\l{} Psychologii i Kognitywistyki}
|
||||
\facultyD{Wydzia\l{}u Psychologii i Kognitywistyki}
|
||||
}{}
|
||||
% --- WPAK --- Wydział Pedagogiczno-Artystyczny w Kaliszu
|
||||
\ifthenelse{\equal{\@faculty}{WPAK}}{
|
||||
\facultyM{Wydzia\l{} Pedagogiczno-Artystyczny w~Kaliszu}
|
||||
\facultyD{Wydzia\l{}u Pedagogiczno-Artystycznego w~Kaliszu}
|
||||
}{}
|
||||
% --- WPiA --- Wydział Prawa i Administracji
|
||||
\ifthenelse{\equal{\@faculty}{WPiA}}{
|
||||
\facultyM{Wydzia\l{} Prawa i~Administracji}
|
||||
\facultyD{Wydzia\l{}u Prawa i~Administracji}
|
||||
}{}
|
||||
% --- WS --- Wydział Socjologii
|
||||
\ifthenelse{\equal{\@faculty}{WS}}{
|
||||
\facultyM{Wydzia\l{} Socjologii}
|
||||
\facultyD{Wydzia\l{}u Socjologii}
|
||||
}{}
|
||||
% --- WSE --- Wydział Studiów Edukacyjnych
|
||||
\ifthenelse{\equal{\@faculty}{WSE}}{
|
||||
\facultyM{Wydzia\l{} Studi\'ow Edukacyjnych}
|
||||
\facultyD{Wydzia\l{}u Studi\'ow Edukacyjnych}
|
||||
}{}
|
||||
% --- WT --- Wydział Teologiczny
|
||||
\ifthenelse{\equal{\@faculty}{WT}}{
|
||||
\facultyM{Wydzia\l{} Teologiczny}
|
||||
\facultyD{Wydzia\l{}u Teologicznego}
|
||||
}{}
|
||||
% --- IKE --- Instytut Kultury Europejskiej w Gnieźnie
|
||||
\ifthenelse{\equal{\@faculty}{IKE}}{
|
||||
\facultyM{Instytut Kultury Europejskiej w~Gnie\'znie}
|
||||
\facultyD{Instytutu Kultury Europejskiej w~Gnie\'znie}
|
||||
}{}
|
||||
}
|
||||
|
||||
\if@optpolski
|
||||
\title{\@titlePL}
|
||||
\else
|
||||
\title{\@titleEN}
|
||||
\fi
|
||||
|
||||
% Zdefiniuj polecenie '\maketitle'
|
||||
\renewcommand*{\maketitle}{%
|
||||
\clearpage\thispagestyle{empty}%
|
||||
\setfaculty
|
||||
\if@optlogo
|
||||
{\noindent\centering%
|
||||
\includegraphics[width=5cm]{uam-logo.pdf}\par}%
|
||||
{\noindent\centering\normalfont%
|
||||
\@facultyM
|
||||
\strut\par}%
|
||||
\vspace{1.5cm}
|
||||
|
||||
{\vspace{0.3cm}\noindent\centering\normalfont\@firstAuthor\strut\par
|
||||
Numer albumu: \@firstAlbum\strut\par}%
|
||||
|
||||
\ifthenelse{\equal{\@secondAuthor}{}}{}{
|
||||
\vspace{0.3cm}\noindent\centering\normalfont\@secondAuthor\strut\par
|
||||
Numer albumu: \@secondAlbum\strut\par}
|
||||
|
||||
\ifthenelse{\equal{\@thirdAuthor}{}}{}{
|
||||
\vspace{0.3cm}\noindent\centering\normalfont\@thirdAuthor\strut\par
|
||||
Numer albumu: \@thirdAlbum\strut\par}
|
||||
|
||||
\ifthenelse{\equal{\@fourthAuthor}{}}{}{
|
||||
\vspace{0.3cm}\noindent\centering\normalfont\@fourthAuthor\strut\par
|
||||
\noindent Numer albumu: \@fourthAlbum\strut\par}
|
||||
|
||||
\vspace{1.8cm}
|
||||
\else
|
||||
{\noindent\centering\scshape\large%
|
||||
Uniwersytet im. Adama Mickiewicza w Poznaniu%
|
||||
\strut\par}%
|
||||
{\noindent\centering\normalfont%
|
||||
\@facultyM
|
||||
\strut\par}%
|
||||
\vspace{2.5cm}
|
||||
|
||||
{\vspace{0.3cm}\noindent\centering\normalfont\@firstAuthor\strut\par
|
||||
Numer albumu: \@firstAlbum\strut\par}%
|
||||
|
||||
\ifthenelse{\equal{\@secondAuthor}{}}{}{
|
||||
\vspace{0.3cm}\noindent\centering\normalfont\@secondAuthor\strut\par
|
||||
Numer albumu: \@secondAlbum\strut\par}
|
||||
|
||||
\ifthenelse{\equal{\@thirdAuthor}{}}{}{
|
||||
\vspace{0.3cm}\noindent\centering\normalfont\@thirdAuthor\strut\par
|
||||
Numer albumu: \@thirdAlbum\strut\par}
|
||||
|
||||
\ifthenelse{\equal{\@fourthAuthor}{}}{}{
|
||||
\vspace{0.3cm}\noindent\centering\normalfont\@fourthAuthor\strut\par
|
||||
\noindent Numer albumu: \@fourthAlbum\strut\par}
|
||||
|
||||
\vspace{2.8cm}
|
||||
\fi
|
||||
% Uzależnij kolejność tytułów od wybranego języka
|
||||
\if@optpolski
|
||||
{\noindent\centering\Large\@titlePL\strut\par}%
|
||||
{\noindent\centering\normalfont\@titleEN\strut\par}%
|
||||
\else
|
||||
{\noindent\centering\Large\@titleEN\strut\par}%
|
||||
{\noindent\centering\normalfont\@titlePL\strut\par}%
|
||||
\fi
|
||||
\vfill
|
||||
{\noindent\normalfont\centering{%
|
||||
Praca \@type{} na kierunku {\bfseries\@field{}}\\
|
||||
\ifthenelse{\equal{\@specialty}{}}{}{
|
||||
(specjalno\'s\'c: \@specialty)\\
|
||||
}
|
||||
napisana pod opiek\k{a}\\
|
||||
\bfseries{\@supervisor}%
|
||||
}\strut\par}%
|
||||
\vspace{2cm}%
|
||||
{\noindent\centering\normalfont\@date\strut\par}
|
||||
}
|
||||
|
||||
% ======================================================== %
|
||||
% Oświadczenie %
|
||||
% ======================================================== %
|
||||
|
||||
% Zdefiniuj parametry oświadczenia
|
||||
\newif\if@stmale
|
||||
\@stmaletrue
|
||||
\newcommand*{\stsex}[1]{%
|
||||
\ifthenelse{\equal{\unexpanded{#1}}{M}}{\@stmaletrue}{\@stmalefalse}%
|
||||
}
|
||||
|
||||
\newif\if@stmaleFirstAuthor
|
||||
\@stmaleFirstAuthortrue
|
||||
\newcommand*{\stsexFirstAuthor}[1]{%
|
||||
\ifthenelse{\equal{\unexpanded{#1}}{M}}{\@stmaleFirstAuthortrue}{\@stmaleFirstAuthorfalse}%
|
||||
}
|
||||
|
||||
\newif\if@stmaleSecondAuthor
|
||||
\@stmaleSecondAuthortrue
|
||||
\newcommand*{\stsexSecondAuthor}[1]{%
|
||||
\ifthenelse{\equal{\unexpanded{#1}}{M}}{\@stmaleSecondAuthortrue}{\@stmaleSecondAuthorfalse}%
|
||||
}
|
||||
|
||||
\newif\if@stmaleThirdAuthor
|
||||
\@stmaleThirdAuthortrue
|
||||
\newcommand*{\stsexThirdAuthor}[1]{%
|
||||
\ifthenelse{\equal{\unexpanded{#1}}{M}}{\@stmaleThirdAuthortrue}{\@stmaleThirdAuthorfalse}%
|
||||
}
|
||||
|
||||
\newif\if@stmaleFourthAuthor
|
||||
\@stmaleFourthAuthortrue
|
||||
\newcommand*{\stsexFourthAuthor}[1]{%
|
||||
\ifthenelse{\equal{\unexpanded{#1}}{M}}{\@stmaleFourthAuthortrue}{\@stmaleFourthAuthorfalse}%
|
||||
}
|
||||
|
||||
|
||||
\newcommand*{\stdate}[1]{\gdef\@stdate{#1}}
|
||||
\newcommand*{\@stdate}{}
|
||||
\newcommand*{\stread}[1]{\gdef\@stread{#1}}
|
||||
\newcommand*{\@stread}{}
|
||||
\newcommand*{\stprotect}[1]{\gdef\@stprotect{#1}}
|
||||
\newcommand*{\@stprotect}{}
|
||||
|
||||
% Zdefiniuj polecenie '\makestatement'
|
||||
\newcommand*{\makestatement}{%
|
||||
\cleardoublepage\thispagestyle{empty}%
|
||||
\setfaculty
|
||||
{\noindent\normalfont\flushright{\@stdate{}}\strut\par}%
|
||||
\vskip 2.5 \baselineskip
|
||||
\vbox to 6 \baselineskip{%
|
||||
\bgroup%
|
||||
\fontsize{18pt}{24pt}\selectfont\centering%
|
||||
\vskip 1.5 \baselineskip O\'swiadczenie\par%
|
||||
\vfill%
|
||||
\egroup%
|
||||
}%
|
||||
\if@optindent
|
||||
\makeatletter
|
||||
\@afterindenttrue
|
||||
\makeatother
|
||||
\else
|
||||
\makeatletter
|
||||
\@afterindentfalse
|
||||
\@afterheading
|
||||
\makeatother
|
||||
\fi%
|
||||
{%
|
||||
Ja, ni\.zej %
|
||||
\if@stmaleFirstAuthor podpisany \else podpisana \fi %
|
||||
{\bfseries\@firstAuthor}, %
|
||||
\if@stmaleFirstAuthor student \else studentka \fi %
|
||||
\@facultyD{} Uniwersytetu im.~Adama Mickiewicza w Poznaniu o\'swiadczam, \.ze przedk\l{}adan\k{a} prac\k{e} dyplomow\k{a} pt. %
|
||||
\emph{\@title} %
|
||||
\if@stmaleFirstAuthor napisa\l{}em \else napisa\l{}am \fi %
|
||||
samodzielnie. Oznacza to, \.ze przy pisaniu pracy, poza niezb\k{e}dnymi konsultacjami, nie %
|
||||
\if@stmaleFirstAuthor korzysta\l{}em \else korzysta\l{}am \fi %
|
||||
z pomocy innych os\'ob, a~w~szczeg\'olno\'sci nie %
|
||||
\if@stmaleFirstAuthor zleca\l{}em \else zleca\l{}am \fi %
|
||||
opracowania rozprawy lub jej cz\k{e}\'sci innym osobom, ani nie %
|
||||
\if@stmaleFirstAuthor odpisywa\l{}em \else odpisywa\l{}am \fi %
|
||||
tej rozprawy lub jej cz\k{e}\'sci od innych os\'ob. O\'swiadczam r\'ownie\.z, \.ze egzemplarz pracy dyplomowej w~wersji drukowanej jest ca\l{}kowicie zgodny z~egzemplarzem pracy dyplomowej w~wersji elektronicznej. Jednocze\'snie przyjmuj\k{e} do wiadomo\'sci, \.ze przypisanie sobie, w~pracy dyplomowej, autorstwa istotnego fragmentu lub innych element\'ow cudzego utworu lub ustalenia naukowego stanowi podstaw\k{e} stwierdzenia niewa\.zno\'sci post\k{e}powania w~sprawie nadania tytu\l{}u zawodowego.\par%
|
||||
}%
|
||||
{
|
||||
\vspace{2cm}%
|
||||
\small\noindent\begin{tabularx}{\textwidth}{@{}lX}
|
||||
{[\texttt{\uppercase{\@stread}}]} & wyra\.zam zgod\k{e} na udost\k{e}pnianie mojej pracy w czytelni Archiwum UAM\\[1ex]
|
||||
{[\texttt{\uppercase{\@stprotect}}]} & wyra\.zam zgod\k{e} na udost\k{e}pnianie mojej pracy w zakresie koniecznym do ochrony mojego prawa do autorstwa lub praw os\'ob trzecich\\
|
||||
\end{tabularx}
|
||||
}
|
||||
\clearpage
|
||||
% Statement of second person.
|
||||
\ifthenelse{\equal{\@secondAuthor}{}}{}{%
|
||||
\cleardoublepage\thispagestyle{empty}%
|
||||
\setfaculty
|
||||
{\noindent\normalfont\flushright{\@stdate{}}\strut\par}%
|
||||
\vskip 2.5 \baselineskip
|
||||
\vbox to 6 \baselineskip{%
|
||||
\bgroup%
|
||||
\fontsize{18pt}{24pt}\selectfont\centering%
|
||||
\vskip 1.5 \baselineskip O\'swiadczenie\par%
|
||||
\vfill%
|
||||
\egroup%
|
||||
}%
|
||||
\if@optindent
|
||||
\makeatletter
|
||||
\@afterindenttrue
|
||||
\makeatother
|
||||
\else
|
||||
\makeatletter
|
||||
\@afterindentfalse
|
||||
\@afterheading
|
||||
\makeatother
|
||||
\fi%
|
||||
{%
|
||||
Ja, ni\.zej %
|
||||
\if@stmaleSecondAuthor podpisany \else podpisana \fi %
|
||||
{\bfseries\@secondAuthor}, %
|
||||
\if@stmaleSecondAuthor student \else studentka \fi %
|
||||
\@facultyD{} Uniwersytetu im.~Adama Mickiewicza w Poznaniu o\'swiadczam, \.ze przedk\l{}adan\k{a} prac\k{e} dyplomow\k{a} pt. %
|
||||
\emph{\@title} %
|
||||
\if@stmaleSecondAuthor napisa\l{}em \else napisa\l{}am \fi %
|
||||
samodzielnie. Oznacza to, \.ze przy pisaniu pracy, poza niezb\k{e}dnymi konsultacjami, nie %
|
||||
\if@stmaleSecondAuthor korzysta\l{}em \else korzysta\l{}am \fi %
|
||||
z pomocy innych os\'ob, a~w~szczeg\'olno\'sci nie %
|
||||
\if@stmaleSecondAuthor zleca\l{}em \else zleca\l{}am \fi %
|
||||
opracowania rozprawy lub jej cz\k{e}\'sci innym osobom, ani nie %
|
||||
\if@stmaleSecondAuthor odpisywa\l{}em \else odpisywa\l{}am \fi %
|
||||
tej rozprawy lub jej cz\k{e}\'sci od innych os\'ob. O\'swiadczam r\'ownie\.z, \.ze egzemplarz pracy dyplomowej w~wersji drukowanej jest ca\l{}kowicie zgodny z~egzemplarzem pracy dyplomowej w~wersji elektronicznej. Jednocze\'snie przyjmuj\k{e} do wiadomo\'sci, \.ze przypisanie sobie, w~pracy dyplomowej, autorstwa istotnego fragmentu lub innych element\'ow cudzego utworu lub ustalenia naukowego stanowi podstaw\k{e} stwierdzenia niewa\.zno\'sci post\k{e}powania w~sprawie nadania tytu\l{}u zawodowego.\par%
|
||||
}%
|
||||
{
|
||||
\vspace{2cm}%
|
||||
\small\noindent\begin{tabularx}{\textwidth}{@{}lX}
|
||||
{[\texttt{\uppercase{\@stread}}]} & wyra\.zam zgod\k{e} na udost\k{e}pnianie mojej pracy w czytelni Archiwum UAM\\[1ex]
|
||||
{[\texttt{\uppercase{\@stprotect}}]} & wyra\.zam zgod\k{e} na udost\k{e}pnianie mojej pracy w zakresie koniecznym do ochrony mojego prawa do autorstwa lub praw os\'ob trzecich\\
|
||||
\end{tabularx}
|
||||
}
|
||||
\clearpage
|
||||
}
|
||||
% Statement of third person.
|
||||
\ifthenelse{\equal{\@thirdAuthor}{}}{}{%
|
||||
\cleardoublepage\thispagestyle{empty}%
|
||||
\setfaculty
|
||||
{\noindent\normalfont\flushright{\@stdate{}}\strut\par}%
|
||||
\vskip 2.5 \baselineskip
|
||||
\vbox to 6 \baselineskip{%
|
||||
\bgroup%
|
||||
\fontsize{18pt}{24pt}\selectfont\centering%
|
||||
\vskip 1.5 \baselineskip O\'swiadczenie\par%
|
||||
\vfill%
|
||||
\egroup%
|
||||
}%
|
||||
\if@optindent
|
||||
\makeatletter
|
||||
\@afterindenttrue
|
||||
\makeatother
|
||||
\else
|
||||
\makeatletter
|
||||
\@afterindentfalse
|
||||
\@afterheading
|
||||
\makeatother
|
||||
\fi%
|
||||
{%
|
||||
Ja, ni\.zej %
|
||||
\if@stmaleThirdAuthor podpisany \else podpisana \fi %
|
||||
{\bfseries\@thirdAuthor}, %
|
||||
\if@stmaleThirdAuthor student \else studentka \fi %
|
||||
\@facultyD{} Uniwersytetu im.~Adama Mickiewicza w Poznaniu o\'swiadczam, \.ze przedk\l{}adan\k{a} prac\k{e} dyplomow\k{a} pt. %
|
||||
\emph{\@title} %
|
||||
\if@stmaleThirdAuthor napisa\l{}em \else napisa\l{}am \fi %
|
||||
samodzielnie. Oznacza to, \.ze przy pisaniu pracy, poza niezb\k{e}dnymi konsultacjami, nie %
|
||||
\if@stmaleThirdAuthor korzysta\l{}em \else korzysta\l{}am \fi %
|
||||
z pomocy innych os\'ob, a~w~szczeg\'olno\'sci nie %
|
||||
\if@stmaleThirdAuthor zleca\l{}em \else zleca\l{}am \fi %
|
||||
opracowania rozprawy lub jej cz\k{e}\'sci innym osobom, ani nie %
|
||||
\if@stmaleThirdAuthor odpisywa\l{}em \else odpisywa\l{}am \fi %
|
||||
tej rozprawy lub jej cz\k{e}\'sci od innych os\'ob. O\'swiadczam r\'ownie\.z, \.ze egzemplarz pracy dyplomowej w~wersji drukowanej jest ca\l{}kowicie zgodny z~egzemplarzem pracy dyplomowej w~wersji elektronicznej. Jednocze\'snie przyjmuj\k{e} do wiadomo\'sci, \.ze przypisanie sobie, w~pracy dyplomowej, autorstwa istotnego fragmentu lub innych element\'ow cudzego utworu lub ustalenia naukowego stanowi podstaw\k{e} stwierdzenia niewa\.zno\'sci post\k{e}powania w~sprawie nadania tytu\l{}u zawodowego.\par%
|
||||
}%
|
||||
{
|
||||
\vspace{2cm}%
|
||||
\small\noindent\begin{tabularx}{\textwidth}{@{}lX}
|
||||
{[\texttt{\uppercase{\@stread}}]} & wyra\.zam zgod\k{e} na udost\k{e}pnianie mojej pracy w czytelni Archiwum UAM\\[1ex]
|
||||
{[\texttt{\uppercase{\@stprotect}}]} & wyra\.zam zgod\k{e} na udost\k{e}pnianie mojej pracy w zakresie koniecznym do ochrony mojego prawa do autorstwa lub praw os\'ob trzecich\\
|
||||
\end{tabularx}
|
||||
}
|
||||
\clearpage
|
||||
}
|
||||
% Statement of fourth person.
|
||||
\ifthenelse{\equal{\@fourthAuthor}{}}{}{%
|
||||
\cleardoublepage\thispagestyle{empty}%
|
||||
\setfaculty
|
||||
{\noindent\normalfont\flushright{\@stdate{}}\strut\par}%
|
||||
\vskip 2.5 \baselineskip
|
||||
\vbox to 6 \baselineskip{%
|
||||
\bgroup%
|
||||
\fontsize{18pt}{24pt}\selectfont\centering%
|
||||
\vskip 1.5 \baselineskip O\'swiadczenie\par%
|
||||
\vfill%
|
||||
\egroup%
|
||||
}%
|
||||
\if@optindent
|
||||
\makeatletter
|
||||
\@afterindenttrue
|
||||
\makeatother
|
||||
\else
|
||||
\makeatletter
|
||||
\@afterindentfalse
|
||||
\@afterheading
|
||||
\makeatother
|
||||
\fi%
|
||||
{%
|
||||
Ja, ni\.zej %
|
||||
\if@stmaleFourthAuthor podpisany \else podpisana \fi %
|
||||
{\bfseries\@fourthAuthor}, %
|
||||
\if@stmaleFourthAuthor student \else studentka \fi %
|
||||
\@facultyD{} Uniwersytetu im.~Adama Mickiewicza w Poznaniu o\'swiadczam, \.ze przedk\l{}adan\k{a} prac\k{e} dyplomow\k{a} pt. %
|
||||
\emph{\@title} %
|
||||
\if@stmaleFourthAuthor napisa\l{}em \else napisa\l{}am \fi %
|
||||
samodzielnie. Oznacza to, \.ze przy pisaniu pracy, poza niezb\k{e}dnymi konsultacjami, nie %
|
||||
\if@stmaleFourthAuthor korzysta\l{}em \else korzysta\l{}am \fi %
|
||||
z pomocy innych os\'ob, a~w~szczeg\'olno\'sci nie %
|
||||
\if@stmaleFourthAuthor zleca\l{}em \else zleca\l{}am \fi %
|
||||
opracowania rozprawy lub jej cz\k{e}\'sci innym osobom, ani nie %
|
||||
\if@stmaleFourthAuthor odpisywa\l{}em \else odpisywa\l{}am \fi %
|
||||
tej rozprawy lub jej cz\k{e}\'sci od innych os\'ob. O\'swiadczam r\'ownie\.z, \.ze egzemplarz pracy dyplomowej w~wersji drukowanej jest ca\l{}kowicie zgodny z~egzemplarzem pracy dyplomowej w~wersji elektronicznej. Jednocze\'snie przyjmuj\k{e} do wiadomo\'sci, \.ze przypisanie sobie, w~pracy dyplomowej, autorstwa istotnego fragmentu lub innych element\'ow cudzego utworu lub ustalenia naukowego stanowi podstaw\k{e} stwierdzenia niewa\.zno\'sci post\k{e}powania w~sprawie nadania tytu\l{}u zawodowego.\par%
|
||||
}%
|
||||
{
|
||||
\vspace{2cm}%
|
||||
\small\noindent\begin{tabularx}{\textwidth}{@{}lX}
|
||||
{[\texttt{\uppercase{\@stread}}]} & wyra\.zam zgod\k{e} na udost\k{e}pnianie mojej pracy w czytelni Archiwum UAM\\[1ex]
|
||||
{[\texttt{\uppercase{\@stprotect}}]} & wyra\.zam zgod\k{e} na udost\k{e}pnianie mojej pracy w zakresie koniecznym do ochrony mojego prawa do autorstwa lub praw os\'ob trzecich\\
|
||||
\end{tabularx}
|
||||
}
|
||||
\clearpage
|
||||
}
|
||||
}
|
||||
|
||||
% ======================================================== %
|
||||
% Definicje poleceń hierarchicznych %
|
||||
% ======================================================== %
|
||||
|
||||
\RequirePackage{xparse}
|
||||
|
||||
% Rozdziały
|
||||
\RenewDocumentCommand\chapter{sm}{%
|
||||
\cleardoublepage\phantomsection\mbox{}
|
||||
\vskip 3 \baselineskip
|
||||
\thispagestyle{plain}
|
||||
\IfBooleanTF{#1}{%
|
||||
\vbox to 6 \baselineskip{%
|
||||
\bgroup%
|
||||
\fontsize{18pt}{24pt}\selectfont\centering%
|
||||
\vskip 1.5 \baselineskip#2\par%
|
||||
\vfill%
|
||||
\egroup%
|
||||
}%
|
||||
\markboth{#2}{#2}%
|
||||
}{%
|
||||
\stepcounter{chapter}
|
||||
\vbox to 6 \baselineskip{%
|
||||
\bgroup%
|
||||
\fontsize{14pt}{24pt}\selectfont\centering%
|
||||
\textsc{\chaptername~\thechapter}\par%
|
||||
\vskip 0.5 \baselineskip%
|
||||
\fontsize{18pt}{24pt}\selectfont#2\par%
|
||||
\vfill%
|
||||
\egroup
|
||||
}%
|
||||
\addcontentsline{toc}{chapter}{\chaptername~\thechapter.~#2}%
|
||||
%\addtocontents{toc}{\vskip 1 \baselineskip}
|
||||
\markboth{\chaptername~\thechapter.~#2}{\chaptername~\thechapter.~#2}%
|
||||
}
|
||||
\if@optindent
|
||||
\makeatletter
|
||||
\@afterindenttrue
|
||||
\makeatother
|
||||
\else
|
||||
\makeatletter
|
||||
\@afterindentfalse
|
||||
\@afterheading
|
||||
\makeatother
|
||||
\fi
|
||||
}
|
||||
|
||||
% Paragrafy
|
||||
\RenewDocumentCommand\section{sm}{%
|
||||
\stepcounter{section}
|
||||
\vskip 2 \baselineskip
|
||||
\IfBooleanTF{#1}{%
|
||||
\vbox to 2 \baselineskip{%
|
||||
\bgroup%
|
||||
\fontsize{14pt}{24pt}\selectfont\centering%
|
||||
\textsc{#2}\par%
|
||||
\vfill%
|
||||
\egroup%
|
||||
}%
|
||||
\markright{#2}%
|
||||
}{%
|
||||
\vbox to 2 \baselineskip{%
|
||||
\bgroup%
|
||||
\fontsize{14pt}{24pt}\selectfont\centering%
|
||||
\if@optpolski
|
||||
\phantomsection
|
||||
\addcontentsline{toc}{section}{\thesection.~\hskip 0.25em #2}%
|
||||
\textsc{\thesection.~\hskip 0.25em #2}\par%
|
||||
\else
|
||||
\phantomsection
|
||||
\addcontentsline{toc}{section}{\thesection~\hskip 1em #2}%
|
||||
\textsc{\thesection~\hskip 1em #2}\par%
|
||||
\fi
|
||||
\vfill%
|
||||
\egroup%
|
||||
}%
|
||||
\markright{\thesection.~#2}%
|
||||
}
|
||||
\if@optindent
|
||||
\makeatletter
|
||||
\@afterindenttrue
|
||||
\makeatother
|
||||
\else
|
||||
\makeatletter
|
||||
\@afterindentfalse
|
||||
\@afterheading
|
||||
\makeatother
|
||||
\fi
|
||||
\nopagebreak[4]
|
||||
}
|
||||
|
||||
% Podparagrafy
|
||||
\RenewDocumentCommand\subsection{sm}{%
|
||||
\stepcounter{subsection}
|
||||
\vskip 2 \baselineskip
|
||||
\IfBooleanTF{#1}{%
|
||||
\vbox to 1 \baselineskip{%
|
||||
\bgroup%
|
||||
\noindent\textbf{#2}\par%
|
||||
\vfill%
|
||||
\egroup%
|
||||
}%
|
||||
\markright{#2}%
|
||||
}{%
|
||||
\vbox to 1 \baselineskip{%
|
||||
\bgroup%
|
||||
\noindent
|
||||
\if@optpolski
|
||||
\phantomsection
|
||||
\addcontentsline{toc}{subsection}{\thesubsection.~\hskip 0.25em #2}%
|
||||
\textbf{\thesubsection.~\hskip 0.25em #2}\par%
|
||||
\else
|
||||
\phantomsection
|
||||
\addcontentsline{toc}{subsection}{\thesubsection~\hskip 1em #2}%
|
||||
\textbf{\thesubsection~\hskip 1em #2}\par%
|
||||
\fi
|
||||
\vfill%
|
||||
\egroup%
|
||||
}%
|
||||
\markright{\thesubsection.~#2}%
|
||||
}
|
||||
\if@optindent
|
||||
\makeatletter
|
||||
\@afterindenttrue
|
||||
\makeatother
|
||||
\else
|
||||
\makeatletter
|
||||
\@afterindentfalse
|
||||
\@afterheading
|
||||
\makeatother
|
||||
\fi
|
||||
\nopagebreak[4]
|
||||
}
|
||||
|
||||
% ======================================================== %
|
||||
% Paginy %
|
||||
% ======================================================== %
|
||||
|
||||
\RequirePackage{fancyhdr}
|
||||
|
||||
\renewcommand{\headrulewidth}{0pt}
|
||||
|
||||
\fancyhf{}
|
||||
\fancyhead[RE]{\small\leftmark}
|
||||
\fancyhead[LO]{\small\rightmark}
|
||||
\fancyhead[LE,RO]{\small\thepage}
|
||||
|
||||
\pagestyle{fancy}
|
||||
|
||||
\renewcommand{\sectionmark}[1]{%
|
||||
\markright{#1}{}}
|
||||
\renewcommand{\chaptermark}[1]{%
|
||||
\markboth{\ifnum\value{chapter}>0\chaptername~\thechapter{}.~ \fi#1}{}}
|
||||
|
||||
\fancypagestyle{closing}{
|
||||
\fancyhf{}
|
||||
\fancyhead[RE]{\small\leftmark}
|
||||
\fancyhead[LO]{\small\rightmark}
|
||||
\fancyhead[LE,RO]{\small\thepage}
|
||||
}
|
||||
|
||||
\fancypagestyle{plain}{%
|
||||
\fancyhf{}
|
||||
\cfoot{\small\thepage}
|
||||
}
|
||||
|
||||
\endinput
|
6
autozoil-extras.tex
Normal file
6
autozoil-extras.tex
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
\newcommand{\code}[1]{\texttt{#1}}
|
||||
\newcommand{\noqa}[1]{}
|
||||
\newcommand{\noqall}[1]{}
|
||||
\newcommand{\eng}[1]{\textit{#1}}
|
||||
|
3
autozoil-via-docker.sh
Normal file
3
autozoil-via-docker.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker run -v $(pwd):/link -it loxygen/autozoil /opt/autozoil/autozoil --locale pl_PL /link/main.tex --alt-log-file /link/msc-drozdz.log
|
39
bibliography.bib
Normal file
39
bibliography.bib
Normal file
@ -0,0 +1,39 @@
|
||||
|
||||
% here the bibliographic entry for the paper itself should be given,
|
||||
% used for generating declarations
|
||||
|
||||
@InProceedings{this-paper,
|
||||
author="MSc Title",
|
||||
title="Alex Drożdż",
|
||||
year=2021
|
||||
}
|
||||
|
||||
|
||||
|
||||
@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"
|
||||
}
|
||||
|
||||
|
382
coling2020.sty
Normal file
382
coling2020.sty
Normal file
@ -0,0 +1,382 @@
|
||||
|
||||
% 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}
|
||||
|
16
config.tex
Normal file
16
config.tex
Normal file
@ -0,0 +1,16 @@
|
||||
% 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
|
||||
\withappendixfalse
|
||||
|
||||
|
||||
% 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
|
||||
\appendixshowntrue
|
||||
|
17
contributions.yaml
Normal file
17
contributions.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
# This is in YAML format so we can easily generate
|
||||
# contribution declarations to be signed by the authors.
|
||||
|
||||
title: MSc Title
|
||||
authors:
|
||||
- author: Alex Drożdż
|
||||
level: 1
|
||||
contributions:
|
||||
- did this
|
||||
- did that
|
||||
- author: Józef Igrekowski
|
||||
level: 1
|
||||
contributions:
|
||||
- did something else
|
||||
- author: Adam Abacki
|
||||
contributions:
|
||||
- did something else
|
BIN
cup_logo-eps-converted-to.pdf
Normal file
BIN
cup_logo-eps-converted-to.pdf
Normal file
Binary file not shown.
11074
cup_logo.eps
Normal file
11074
cup_logo.eps
Normal file
File diff suppressed because one or more lines are too long
20
extract-score-files.pl
Normal file
20
extract-score-files.pl
Normal 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" } map { s/ /\\ /g; $_} sort keys %found);
|
10
extras.tex
Normal file
10
extras.tex
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
|
||||
\input{other-extras}
|
||||
\input{autozoil-extras}
|
||||
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
|
||||
%%% TeX-master: "msc-drozdz"
|
||||
%%% End:
|
88
helpers/contribution-declaration.tex.tmpl
Normal file
88
helpers/contribution-declaration.tex.tmpl
Normal file
@ -0,0 +1,88 @@
|
||||
|
||||
\documentclass[a4paper]{article}
|
||||
\usepackage{booktabs}
|
||||
\usepackage{bibentry}
|
||||
%\usepackage[style=verbose]{biblatex}
|
||||
\usepackage[total={170mm,277mm}, left=20mm, top=10mm]{geometry}
|
||||
\thispagestyle{empty}
|
||||
\renewcommand{\labelitemi}{--}
|
||||
\usepackage{tabularx}
|
||||
\usepackage{longtable}
|
||||
|
||||
\usepackage[backend=biber,maxnames=12]{biblatex}
|
||||
\bibliography{../bibliography.bib}
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
||||
\begin{flushright}
|
||||
{{tday}}
|
||||
\end{flushright}
|
||||
|
||||
\medskip
|
||||
|
||||
\begin{center}
|
||||
{\bf Declaration}
|
||||
\end{center}
|
||||
|
||||
\bigskip
|
||||
|
||||
I hereby declare that the contribution to the following paper:
|
||||
|
||||
\smallskip
|
||||
|
||||
\noindent\fullcite{this-paper}
|
||||
|
||||
\smallskip
|
||||
|
||||
\noindent is correctly characterized in the table below{% if nb_of_levels == 0 %}.{% elif nb_of_levels == 1 %} ({{ level_symbols[0] }} denotes equal contributions).{% else %} ({% for lix in range(nb_of_levels) %}{% if lix == nb_of_levels - 1 %}{} and {{ level_symbols[lix] }}{} denote groups of equal contributions).{% elif lix == 0 %}{{ level_symbols[lix] }}{% else %}, {{ level_symbols[lix] }}{% endif %}{% endfor %}{% endif %}
|
||||
\medskip
|
||||
|
||||
|
||||
|
||||
\begin{center}
|
||||
\begin{longtable}{lc}
|
||||
\toprule
|
||||
\addlinespace[0.05cm]
|
||||
Contributor & Description of main tasks \\
|
||||
\addlinespace[0.05cm]
|
||||
\midrule
|
||||
\addlinespace[0.1cm]
|
||||
{% for author in data['authors'] %}
|
||||
{{ author['author'] }}{% if 'level' in author %}{{level_symbols[author['level']-1]}}{% endif %}
|
||||
&
|
||||
\begin{minipage} [t] {0.6\textwidth}
|
||||
\begin{itemize}
|
||||
\itemsep=0em
|
||||
{% for citem in author['contributions'] %}
|
||||
\item {{citem}}
|
||||
{% endfor %}
|
||||
\end{itemize}
|
||||
\end{minipage} \\
|
||||
{% if loop.index == loop.length %}
|
||||
\addlinespace[0.25cm]
|
||||
{% else %}
|
||||
\addlinespace[0.5cm]
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
\bottomrule
|
||||
\end{longtable}
|
||||
\end{center}
|
||||
|
||||
\vskip 0.8cm
|
||||
|
||||
\begin{tabularx}{\textwidth}{XXXX}
|
||||
{% for author in data['authors'] %}
|
||||
{{ author['author'] }}
|
||||
{% if loop.index == loop.length %}
|
||||
\\
|
||||
{% elif loop.index % 4 == 0 %}
|
||||
\\ \addlinespace[0.5cm]
|
||||
{% else %}
|
||||
&
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
\end{tabularx}
|
||||
|
||||
\end{document}
|
||||
|
28
helpers/flatten-structure.pl
Normal file
28
helpers/flatten-structure.pl
Normal 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;
|
||||
}
|
35
helpers/generate-contribution-declaration.py
Normal file
35
helpers/generate-contribution-declaration.py
Normal file
@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import yaml
|
||||
import sys
|
||||
import os
|
||||
import datetime
|
||||
|
||||
|
||||
from jinja2 import FileSystemLoader, Environment, PackageLoader, select_autoescape
|
||||
env = Environment(
|
||||
loader=FileSystemLoader(os.path.abspath('.')),
|
||||
autoescape=select_autoescape()
|
||||
)
|
||||
|
||||
|
||||
contributions = yaml.safe_load(sys.stdin)
|
||||
|
||||
|
||||
tday = datetime.date.today()
|
||||
ftday = tday.strftime('%B %d, %Y')
|
||||
|
||||
level_symbols = [
|
||||
'*',
|
||||
'\\dag',
|
||||
'\\ddag',
|
||||
'\\S',
|
||||
'\\P',
|
||||
'\\#']
|
||||
|
||||
nb_of_levels = len(set((c['level'] for c in contributions['authors'] if 'level' in c)))
|
||||
|
||||
|
||||
template = env.get_template("contribution-declaration.tex.tmpl")
|
||||
|
||||
print(template.render(tday=ftday, data=contributions, level_symbols=level_symbols, nb_of_levels=nb_of_levels))
|
32
helpers/generate-pdf-from-arxiv-package.sh
Normal file
32
helpers/generate-pdf-from-arxiv-package.sh
Normal 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
helpers/get-sentences.sh
Normal file
3
helpers/get-sentences.sh
Normal 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
helpers/pdf-to-plain-text.sh
Normal file
3
helpers/pdf-to-plain-text.sh
Normal 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
|
139
helpers/prepare-arxiv-package.sh
Normal file
139
helpers/prepare-arxiv-package.sh
Normal file
@ -0,0 +1,139 @@
|
||||
#!/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" == "msc-drozdz.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 acl.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" == "neurips" ]]
|
||||
then
|
||||
copy_to_project neurips_2021.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" == "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" .)
|
74
helpers/set-up-overleaf.sh
Normal file
74
helpers/set-up-overleaf.sh
Normal file
@ -0,0 +1,74 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
echo "Setting up interoperability with Overleaf..."
|
||||
echo "Note that you need ability to clone repos from Overleaf."
|
||||
|
||||
original_git_url=$(git remote get-url origin)
|
||||
|
||||
echo "Make sure $original_git_url exists at your git server."
|
||||
echo "It should be created as en empty repo, *uncheck* option"
|
||||
echo "'Initialize repository with a README' or similar."
|
||||
|
||||
echo ""
|
||||
echo "Press ENTER to start"
|
||||
read
|
||||
|
||||
here_dir=$(basename $PWD)
|
||||
|
||||
|
||||
make
|
||||
make source-pack
|
||||
|
||||
source_pack=msc-drozdz.zip
|
||||
|
||||
echo ""
|
||||
echo "Go to Overleaf, click New Project / Upload Project,"
|
||||
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 "paste here and press ENTER"
|
||||
|
||||
read
|
||||
overleaf_git_url=$REPLY
|
||||
|
||||
overleaf_git_id=$(basename $overleaf_git_url)
|
||||
|
||||
|
||||
cd ..
|
||||
|
||||
backup_dir=${here_dir}-backup
|
||||
mv $here_dir ${here_dir}-backup
|
||||
|
||||
git clone $overleaf_git_url $here_dir
|
||||
|
||||
cd $here_dir
|
||||
|
||||
git remote add overleaf $overleaf_git_url
|
||||
git remote set-url origin $original_git_url
|
||||
|
||||
git config credential.helper "cache --timeout=10000000"
|
||||
|
||||
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
|
||||
|
||||
git add --all
|
||||
git commit -m 'Bring back all the files'
|
||||
|
||||
perl -pne 's{OVERLEAF_GIT_URL=}{OVERLEAF_GIT_URL='$overleaf_git_url'}' -i helpers/vars
|
||||
|
||||
git add helpers/vars
|
||||
git commit -m 'Set vars'
|
||||
|
||||
git push overleaf master
|
||||
git push origin master
|
||||
|
||||
cd ..
|
||||
|
||||
echo "DONE"
|
||||
echo "Left ${backup_dir}, now type 'cd ..' and you can remove it"
|
18
helpers/stats.sh
Normal file
18
helpers/stats.sh
Normal 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
helpers/strip-references.pl
Normal file
28
helpers/strip-references.pl
Normal 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
helpers/synchro.sh
Normal file
24
helpers/synchro.sh
Normal 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
helpers/vars
Normal file
2
helpers/vars
Normal file
@ -0,0 +1,2 @@
|
||||
# to be included with .
|
||||
OVERLEAF_GIT_URL=
|
4
install-hooks.sh
Normal file
4
install-hooks.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash -xe
|
||||
|
||||
cp hooks/pre-push .git/hooks/pre-push
|
||||
chmod 700 .git/hooks/pre-push
|
1
keywords-pl.tex
Normal file
1
keywords-pl.tex
Normal file
@ -0,0 +1 @@
|
||||
jedno słowo kluczowe, inne słowo kluczowe
|
1
keywords.tex
Normal file
1
keywords.tex
Normal file
@ -0,0 +1 @@
|
||||
some keyword, another keyword
|
17
main.tex
Normal file
17
main.tex
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
\section{Main}
|
||||
|
||||
This is a~sample paper~\cite{gonito2016}.
|
||||
See the experiments described \bycite{gonito2016}.
|
||||
|
||||
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.}
|
66
metadata.tex
Normal file
66
metadata.tex
Normal file
@ -0,0 +1,66 @@
|
||||
|
||||
% --- Autorzy prac
|
||||
% --- --- Imię i nazwisko
|
||||
% --- --- Numer albumu
|
||||
% --- --- Płeć (M/K)
|
||||
\firstAuthor{ Alex Drożdż }
|
||||
\firstAlbum{ 468642 }
|
||||
\stsexFirstAuthor{M}
|
||||
|
||||
%\secondAuthor{Autor Drugi}
|
||||
%\secondAlbum{234561}
|
||||
%\stsexSecondAuthor{M}
|
||||
|
||||
%\thirdAuthor{Autor Trzeci}
|
||||
%\thirdAlbum{345612}
|
||||
%\stsexThirdAuthor{M}
|
||||
|
||||
%\fourthAuthor{Autor Czwarty}
|
||||
%\fourthAlbum{456123}
|
||||
%\stsexFourthAuthor{F}
|
||||
|
||||
% --- Tytuł pracy (w języku polskim i angielskim)
|
||||
\titlePL{ MSc Title }
|
||||
\titleEN{My thesis}
|
||||
% --- Typ pracy (inżynierska, licencjacka, magisterska)
|
||||
\type{magisterska}
|
||||
% --- Wydział (wykaz skrótów):
|
||||
% --- --- WA --- Wydział Anglistyki
|
||||
% --- --- WAiK --- Wydział Antropologii i Kulturoznawstwa
|
||||
% --- --- WAr --- Wydział Archeologii
|
||||
% --- --- WB --- Wydział Biologii
|
||||
% --- --- WCh --- Wydział Chemii
|
||||
% --- --- WFPiK --- Wydział Filologii Polskiej i Klasycznej
|
||||
% --- --- WFi --- Wydział Filozoficzny
|
||||
% --- --- WF --- Wydział Fizyki
|
||||
% --- --- WGSE --- Wydział Geografii Społeczno-Ekonomicznej i Gospodarki Przestrzennej
|
||||
% --- --- WH --- Wydział Historii
|
||||
% --- --- WMiI --- Wydział Matematyki i Informatyki
|
||||
% --- --- WNGiG --- Wydział Nauk Geograficznych i Geologicznych
|
||||
% --- --- WNoS --- Wydział Nauk o Sztuce
|
||||
% --- --- WNPiD --- Wydział Nauk Politycznych i Dziennikarstwa
|
||||
% --- --- WN --- Wydział Neofilologii
|
||||
% --- --- WPiK --- Wydział Psychologii i Kognitywistyki
|
||||
% --- --- WPAK --- Wydział Pedagogiczno-Artystyczny w Kaliszu
|
||||
% --- --- WPiA --- Wydział Prawa i Administracji
|
||||
% --- --- WS --- Wydział Socjologii
|
||||
% --- --- WSE --- Wydział Studiów Edukacyjnych
|
||||
% --- --- WT --- Wydział Teologiczny
|
||||
% --- --- IKE --- Instytut Kultury Europejskiej w Gnieźnie
|
||||
\faculty{WMiI}
|
||||
% --- Kierunek (w mianowniku)
|
||||
\field{ informatyka }
|
||||
% --- Specjalność (w formie mianownikowej)
|
||||
% --- (ustaw puste, jeśli bez specjalności)
|
||||
\specialty{ aaa }
|
||||
% --- Promotor (w dopełniaczu)
|
||||
\supervisor{ prof. UAM Filip Graliński }
|
||||
% --- Data złożenia pracy (Miasto, miesiąc rok)
|
||||
\date{Poznań, grudzień 2020}
|
||||
|
||||
% --- Zgoda na udostępnienie pracy w czytelni (TAK/NIE)
|
||||
\stread{TAK}
|
||||
% --- Zgoda na udostępnienie pracy w zakresie ochrony (TAK/NIE)
|
||||
\stprotect{TAK}
|
||||
% --- Data podpisania oświadczenia (Miasto, data)
|
||||
\stdate{Poznań, \today{} r.}
|
83
msc-drozdz.tex
Normal file
83
msc-drozdz.tex
Normal file
@ -0,0 +1,83 @@
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% [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.
|
||||
%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
% Na podstawie https://github.com/bprzybylski/amuthesis/blob/master/thesis.tex
|
||||
|
||||
\documentclass[oneside,polski,logo]{amuthesis}
|
||||
|
||||
% Zdefiniuj kodowanie pliku źródłowego (domyślnie utf8)
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage{authblk}
|
||||
|
||||
\input{metadata}
|
||||
|
||||
% ======================================================== %
|
||||
% Dodatkowe pakiety wykorzystywane w pracy %
|
||||
% ======================================================== %
|
||||
|
||||
% ---------------------- PREAMBLE PART ------------------------------
|
||||
|
||||
\input{config}
|
||||
\input{preamble}
|
||||
\input{extras}
|
||||
|
||||
|
||||
\newcommand{\citep}{\cite}
|
||||
\newcommand{\citet}{\cite}
|
||||
\newcommand\bycite[1]{przez~\citet{#1}}
|
||||
|
||||
%%
|
||||
|
||||
% ======================================================== %
|
||||
% Zasadnicza część dokumentu %
|
||||
% ======================================================== %
|
||||
|
||||
\begin{document}
|
||||
|
||||
% Strona tytułowa
|
||||
\maketitle
|
||||
% Oświadczenie
|
||||
\makestatement
|
||||
|
||||
% Blok abstraktu w języku polskim
|
||||
\begin{streszczenie}
|
||||
\input{abstract-pl}
|
||||
|
||||
\paragraph{Słowa kluczowe:} klasa
|
||||
\end{streszczenie}
|
||||
|
||||
% Blok abstraktu w języku angielskim
|
||||
\begin{abstract}
|
||||
\input{abstract}
|
||||
\input{abstract}
|
||||
|
||||
\paragraph{Keywords:} klasa
|
||||
\end{abstract}
|
||||
|
||||
% Opcjonalny blok dedykacji
|
||||
\begin{dedykacja}
|
||||
Tu możesz umieścić swoją dedykację.
|
||||
\end{dedykacja}
|
||||
|
||||
% Spis treści
|
||||
\tableofcontents
|
||||
|
||||
% ======================================================== %
|
||||
% Właściwa część pracy %
|
||||
% ======================================================== %
|
||||
|
||||
\input{main}
|
||||
|
||||
\bibliographystyle{unsrt}
|
||||
\bibliography{bibliography}
|
||||
|
||||
|
||||
\end{document}
|
||||
|
1107
nlelike.bst
Normal file
1107
nlelike.bst
Normal file
File diff suppressed because it is too large
Load Diff
43
other-extras.tex
Normal file
43
other-extras.tex
Normal file
@ -0,0 +1,43 @@
|
||||
|
||||
% 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}}
|
||||
% A reference and a score as two cells in a table, the score will be
|
||||
% marked as the best (typeset in bold)
|
||||
\newcommand{\gonitobestentry}[1]{\gonitoref{#1} & \textbf{\minput{scores/#1.txt}}}
|
||||
|
4
preamble.tex
Normal file
4
preamble.tex
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
% extra packages and definitions
|
||||
|
||||
\usepackage{amsmath}
|
33
run-gitlab-runner.sh
Normal file
33
run-gitlab-runner.sh
Normal 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
|
1
scores/6ab4979e4629c5559feba452b7ca74c0cac89ebb.txt
Normal file
1
scores/6ab4979e4629c5559feba452b7ca74c0cac89ebb.txt
Normal file
@ -0,0 +1 @@
|
||||
19.501
|
BIN
uam-logo.pdf
Normal file
BIN
uam-logo.pdf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user