From 9d22f4a5b8b14da9a2ee92d9a508b3fcffc0a8a4 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 9 Feb 2018 00:19:49 +0000 Subject: univie-ling (8feb18) git-svn-id: svn://tug.org/texlive/trunk@46572 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/univie-ling/univie-ling-expose.cls | 687 +++++++++++++++++ .../tex/latex/univie-ling/univie-ling-paper.cls | 789 +++++++++++++++++++ .../tex/latex/univie-ling/univie-ling-thesis.cls | 744 ++++++++++++++++++ .../tex/latex/univie-ling/univie-ling.bbx | 843 +++++++++++++++++++++ .../tex/latex/univie-ling/univie-ling.cbx | 90 +++ .../tex/latex/univie-ling/univielogo-sw.pdf | Bin 0 -> 25365 bytes 6 files changed, 3153 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/univie-ling/univie-ling-expose.cls create mode 100644 Master/texmf-dist/tex/latex/univie-ling/univie-ling-paper.cls create mode 100644 Master/texmf-dist/tex/latex/univie-ling/univie-ling-thesis.cls create mode 100644 Master/texmf-dist/tex/latex/univie-ling/univie-ling.bbx create mode 100644 Master/texmf-dist/tex/latex/univie-ling/univie-ling.cbx create mode 100644 Master/texmf-dist/tex/latex/univie-ling/univielogo-sw.pdf (limited to 'Master/texmf-dist/tex/latex/univie-ling') diff --git a/Master/texmf-dist/tex/latex/univie-ling/univie-ling-expose.cls b/Master/texmf-dist/tex/latex/univie-ling/univie-ling-expose.cls new file mode 100644 index 00000000000..ca8071421e2 --- /dev/null +++ b/Master/texmf-dist/tex/latex/univie-ling/univie-ling-expose.cls @@ -0,0 +1,687 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% File univie-ling-expose +%% +%% PhD Research Proposals in (Applied) Linguistics at the University of Vienna +%% +%% This file is part of the univie-ling LaTeX package, consisting of: +%% -- univie-ling-expose.cls: Class for PhD Research Proposals (this file) +%% -- univie-ling-paper.cls: Class for student papers +%% -- univie-ling-thesis.cls: Class for BA, MA or PhD theses +%% -- univie-logo-sw.pdf: University of Vienna logo +%% -- univie-ling.bbx: Biblatex bibliography style +%% -- univie-ling.cbx: Biblatex citation style +%% +%% Author: Juergen Spitzmueller +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2003/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% The Current Maintainer of this work is Juergen Spitzmueller. +%% Please report issues to https://github.com/jspitz/univie-ling/issues +%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{univie-ling-expose}[2018/02/04 v1.0 Univie Linguistic Exposes (JSp)] + +\RequirePackage{xkeyval} + +\newif\ifbiblatex\biblatextrue +\newif\ifapa\apafalse +\newif\ifcaptionp\captionptrue +\newif\ifrefsp\refsptrue +\newif\ifcovington\covingtontrue +\newif\ifmicrotype\microtypetrue + +% all= +% Load all packages +\define@boolkey+{uvt}{all}[true]{% + \ifKV@uvt@all + \biblatextrue + \captionptrue + \refsptrue + \covingtontrue + \microtypetrue + \else + \biblatexfalse + \captionpfalse + \refspfalse + \covingtonfalse + \microtypefalse + \fi +}{% + \ClassWarning{univie-ling-expose}{unknown 'all' value}% +} +\DeclareOptionX{all}{\setkeys{uvt}{all=#1}} + +% biblatex= +% Load biblatex +\define@boolkey+{uvt}{biblatex}[true]{% + \ifKV@uvt@biblatex + \biblatextrue + \else + \biblatexfalse + \fi +}{% + \ClassWarning{univie-ling-expose}{unknown biblatex value}% +} +\DeclareOptionX{biblatex}{\setkeys{uvt}{biblatex=#1}} + +% apa= +% Load APA style +\define@boolkey+{uvt}{apa}[true]{% + \ifKV@uvt@biblatex + \apatrue + \else + \apafalse + \fi +}{% + \ClassWarning{univie-ling-paper}{unknown apa value}% +} +\DeclareOptionX{apa}{\setkeys{uvt}{apa=#1}} + +% caption= +% Load caption +\define@boolkey+{uvt}{caption}[true]{% + \ifKV@uvt@caption + \captionptrue + \else + \captionpfalse + \fi +}{% + \ClassWarning{univie-ling-expose}{unknown caption value}% +} +\DeclareOptionX{caption}{\setkeys{uvt}{caption=#1}} + +% ref= +% Load varioref and prettyref +\define@boolkey+{uvt}{ref}[true]{% + \ifKV@uvt@ref + \refsptrue + \else + \refspfalse + \fi +}{% + \ClassWarning{univie-ling-expose}{unknown ref value}% +} +\DeclareOptionX{ref}{\setkeys{uvt}{ref=#1}} + +% covington= +% Load covington +\define@boolkey+{uvt}{covington}[true]{% + \ifKV@uvt@covington + \covingtontrue + \else + \covingtonfalse + \fi +}{% + \ClassWarning{univie-ling-expose}{unknown covington value}% +} +\DeclareOptionX{covington}{\setkeys{uvt}{covington=#1}} + +% microtype= +% Load microtype +\define@boolkey+{uvt}{microtype}[true]{% + \ifKV@uvt@microtype + \microtypetrue + \else + \microtypefalse + \fi +}{% + \ClassWarning{univie-ling-expose}{unknown microtype value}% +} +\DeclareOptionX{microtype}{\setkeys{uvt}{microtype=#1}} + +\newif\ifpsfonts\psfontstrue +\newif\ifotffonts\otffontsfalse +\newif\ifnofonts\nofontsfalse +% fonts= +\define@choicekey*+{uvt}{fonts}[\val\nr]{ps,otf,none}{% + \ifcase\nr\relax% ps: use PostScript fonts (classic LaTeX) + \psfontstrue + \otffontsfalse + \nofontsfalse + \or% otf: use OpenType fonts (fontspec) + \psfontsfalse + \otffontstrue + \nofontsfalse + \or% none: Use no font package + \psfontsfalse + \otffontsfalse + \nofontstrue + \fi +}{% + \PackageWarning{jsdossier}{unknown fonts value '#1'}% +} +\DeclareOptionX{fonts}{\setkeys{uvt}{fonts=#1}} + +\ProcessOptionsX + +\LoadClass[% + a4paper, + fontsize=12pt, + captions=tableheading, + listof=totoc, + numbers=noenddot, + titlepage=true, + sectionentrydots=true +]{scrartcl}[2003/04/22] + +\RequirePackage{array} + +%% ============================================================ +%% LOCALIZATION: +%% ============================================================ + +\RequirePackage{translations} +\DeclareTranslation{German}{section}{Abschnitt} +\DeclareTranslation{English}{section}{section} +\DeclareTranslation{German}{footnote}{Anm.} +\DeclareTranslation{English}{footnote}{fn.} +\DeclareTranslation{German}{example}{Beispiel} +\DeclareTranslation{English}{footnote}{example} +\DeclareTranslation{German}{stkz}{Studienkennzahl lt. Studienblatt} +\DeclareTranslation{English}{stkz}{Degree programme code as it appears on the student record sheet} +\DeclareTranslation{German}{strt}{Studienrichtung lt. Studienblatt} +\DeclareTranslation{English}{strt}{Degree programme as it appears on the student record sheet} +\DeclareTranslation{German}{expo}{Expos\'e zum Dissertationsprojekt} +\DeclareTranslation{English}{expo}{Research Proposal} +\DeclareTranslation{German}{tpcaption}{Titel des Dissertationsprojekts} +\DeclareTranslation{English}{tpcaption}{Title of the Dissertation Project} +\DeclareTranslation{German}{author}{Verfasst von} +\DeclareTranslation{English}{author}{Submitted by} +\DeclareTranslation{German}{vienna}{Wien} +\DeclareTranslation{English}{vienna}{Vienna} +\DeclareTranslation{German}{supervisor}{Betreut von} +\DeclareTranslation{English}{supervisor}{Supervisor} +\DeclareTranslation{German}{cosupervisor}{Mitbetreut von} +\DeclareTranslation{English}{cosupervisor}{Co-Supervisor} +\DeclareTranslation{German}{beirat}{Beirat} +\DeclareTranslation{English}{beirat}{Advisory board} + + +%% ============================================================ +%% FONTS AND EMPHASIZING: +%% ============================================================ + +\ifpsfonts + +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} + +% Times +\usepackage{mathptmx} + +% Arial or Helvetica +\IfFileExists{uarial.sty}{% +\RequirePackage{uarial} +}{% +\RequirePackage{helvet} +} +\fi + +\ifotffonts +\RequirePackage{fontspec} +\setmainfont{Times New Roman} +\setsansfont{Arial} +\fi + +% Hyperlinks +\RequirePackage{url} +\newcommand{\urlprefix}{} +% URLs italic +\@ifundefined{selectfont}{% +\def\UrlFont{\it}} +{\def\UrlFont{\rmfamily\itshape} +} + +% Fix for \slash-Makro, by Donald Arsenau +\def\slash{/\penalty\exhyphenpenalty\hskip\z@skip} + +% Font settings +\newkomafont{thesistype}{\fontsize{18}{20pt}\bfseries\sffamily} +\setkomafont{title}{\fontsize{18}{20pt}\sffamily} +\setkomafont{author}{\fontsize{18}{20pt}\large\sffamily} +\setkomafont{date}{\normalfont\fontsize{11}{13pt}\mdseries\sffamily} +\newkomafont{tpcaption}{\fontsize{11}{13pt}\sffamily} +\newkomafont{codes}{\fontsize{10}{12pt}\sffamily} +\setkomafont{sectionentry}{\normalsize} + + +%% ============================================================ +%% MACROS: +%% ============================================================ + +\def\@dirtype{} +\def\@dirtype@en{} + +\define@key{lec}{lecsem}{% + \AtEndPreamble{% + \ifcsundef{lecsemshort@#1}{% + \ClassError{univie-ling-expose}{Semester type '#1' is not defined!}{% + Please consult the package manual for instructions how to define it}{} + }{} + \def\lecsemshort{\csuse{lecsemshort@#1}}% + \def\lecsemverb{\csuse{lecsemverb@#1}}% + }% +} + +\def\@course{} +\def\@supervisor{} +\def\@cosupervisor{} +\def\@beirat{} +\newcommand\supervisor[1]{\def\@supervisor{#1}} +\newcommand\cosupervisor[1]{\def\@cosupervisor{#1}} +\newcommand\advisor[1]{\def\@beirat{#1}} +\def\@studienrichtung{} +\newcommand\studienrichtung[1]{\def\@studienrichtung{#1}} +\def\@studienkennzahl{} +\newcommand\studienkennzahl[1]{\def\@studienkennzahl{#1}} + +% Semantic markup +\newcommand\Expression[1]{\textit{#1}} +\newcommand\Concept[1]{\textsc{#1}} +\newcommand\Meaning[1]{\enquote*{#1}} + + +%% ============================================================ +%% STRINGS: +%% ============================================================ + +% 2.) Term types +% +% ss +\def\lecsemverb@ss{Sommersemester} +\def\lecsemshort@ss{SoSe} +% ws +\def\lecsemverb@ws{Wintersemester} +\def\lecsemshort@ws{WS} + + +%% ============================================================ +%% LAYOUT +%% ============================================================ + +\RequirePackage{geometry} + +\usepackage{setspace} +\onehalfspacing + +% Header and pagination: +% (scrlayer-scrpage) +\RequirePackage{scrlayer-scrpage} +\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}} +\RequirePackage{scrlayer-scrpage} +\renewcommand{\headfont}{\small\rmfamily} +\clearscrheadings +\ihead{\headmark} +\ohead{\pagemark} +\automark{section} +\KOMAoptions{headsepline=true} +\pagestyle{scrheadings} + +% No widows and orphans +% No overfull lines +\tolerance 1414 +\hbadness 1414 +\emergencystretch 1.5em +\hfuzz 0.3pt +\widowpenalty = 10000 +\vfuzz \hfuzz +\raggedbottom + +% Micro-typographic polishment +\ifmicrotype +\usepackage{microtype} +\fi + +% Smart quotes +\RequirePackage[autostyle=tryonce,german=guillemets,maxlevel=3]{csquotes} + + +%% ============================================================ +%% TITLING +%% ============================================================ + +% We need graphicx for the logo +\RequirePackage{graphicx} + +% Month name +\RequirePackage[ngerman,english]{datetime2} +\DeclareTranslation{German}{monthyear}{\DTMgermanmonthname{\@dtm@month} \@dtm@year} +\DeclareTranslation{English}{monthyear}{\DTMenglishmonthname{\@dtm@month} \@dtm@year} + +\renewcommand*\maketitle[1][1]{% + \newgeometry{top=2cm,bottom=2.5cm,left=2.5cm,right=2cm} + \expandafter\ifnum \csname scr@v@3.12\endcsname>\scr@compatibility\relax + \else + \def\and{% + \end{tabular}% + \hskip 1em \@plus.17fil% + \begin{tabular}[t]{c}% + }% + \fi + \begin{titlepage} + \sffamily% + \setcounter{page}{% + #1% + }% + \if@titlepageiscoverpage + \edef\titlepage@restore{% + \noexpand\endgroup + \noexpand\global\noexpand\@colht\the\@colht + \noexpand\global\noexpand\@colroom\the\@colroom + \noexpand\global\vsize\the\vsize + \noexpand\global\noexpand\@titlepageiscoverpagefalse + \noexpand\let\noexpand\titlepage@restore\noexpand\relax + }% + \begingroup + \topmargin=\dimexpr \coverpagetopmargin-1in\relax + \oddsidemargin=\dimexpr \coverpageleftmargin-1in\relax + \evensidemargin=\dimexpr \coverpageleftmargin-1in\relax + \textwidth=\dimexpr + \paperwidth-\coverpageleftmargin-\coverpagerightmargin\relax + \textheight=\dimexpr + \paperheight-\coverpagetopmargin-\coverpagebottommargin\relax + \headheight=0pt + \headsep=0pt + \footskip=\baselineskip + \@colht=\textheight + \@colroom=\textheight + \vsize=\textheight + \columnwidth=\textwidth + \hsize=\columnwidth + \linewidth=\hsize + \else + \let\titlepage@restore\relax + \fi + \let\footnotesize\small + \let\footnoterule\relax + \let\footnote\thanks + \renewcommand*\thefootnote{\@fnsymbol\c@footnote}% + \let\@oldmakefnmark\@makefnmark + \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}% + \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative + \begin{flushright} + \includegraphics[width=6cm]{univielogo-sw} + \end{flushright} + \vspace{2\baselineskip} + \begin{center} + \bgroup\usekomafont{thesistype}{\GetTranslation{expo}}\egroup + \end{center} + \vspace{2\baselineskip} + \begin{center} + {\usekomafont{tpcaption}\GetTranslation{tpcaption}\par} + {\usekomafont{title}{\enquote{\@title% + \ifx\@subtitle\@empty\else\\\@subtitle\fi}\par}}% + \vskip 2em + {% + {\usekomafont{tpcaption}\GetTranslation{author}\par} + \usekomafont{author}{% + \lineskip 0.75em% + \begin{tabular}[t]{c} + \@author + \end{tabular}\par + }% + }% + \end{center}\par + \vfill + {\usekomafont{date}{\GetTranslation{vienna}, \GetTranslation{monthyear}\par}}% + \vskip 2em + \usekomafont{codes}{% + \begin{tabular}[t]{@{}>{\raggedright}p{0.4\columnwidth}>{\raggedright}p{0.1\columnwidth}>{\raggedright}p{0.4\columnwidth}} + \GetTranslation{stkz}: & & \@studienkennzahl\tabularnewline + \noalign{\vskip6pt} + \GetTranslation{strt}: & & \@studienrichtung\tabularnewline + \noalign{\vskip6pt} + \GetTranslation{supervisor}: & & \@supervisor\tabularnewline% + \noalign{\vskip6pt} + \ifx\@cosupervisor\@empty\else\GetTranslation{cosupervisor}: & & \@cosupervisor\tabularnewline\fi + \noalign{\vskip6pt} + \ifx\@beirat\@empty\else\GetTranslation{beirat}: & & \@beirat\fi + \end{tabular}\par + } + \par + \@thanks\let\@thanks\@empty + \null + \if@twoside + \@tempswafalse + \expandafter\ifnum \@nameuse{scr@v@3.12}>\scr@compatibility\relax + \else + \fi + \fi + \ifx\@dedication\@empty + \else + \next@tdpage\null\vfill + {\centering\usekomafont{dedication}{\@dedication \par}}% + \vskip \z@ \@plus3fill + \@thanks\let\@thanks\@empty + \cleardoubleemptypage + \fi + \ifx\titlepage@restore\relax\else\clearpage\titlepage@restore\fi + \end{titlepage} + \setcounter{footnote}{0}% + \expandafter\ifnum \csname scr@v@3.12\endcsname>\scr@compatibility\relax + \let\thanks\relax + \let\maketitle\relax + \let\@maketitle\relax + \global\let\@thanks\@empty + \global\let\@author\@empty + \global\let\@date\@empty + \global\let\@title\@empty + \global\let\@subtitle\@empty + \global\let\@extratitle\@empty + \global\let\@titlehead\@empty + \global\let\@subject\@empty + \global\let\@publishers\@empty + \global\let\@uppertitleback\@empty + \global\let\@lowertitleback\@empty + \global\let\@dedication\@empty + \global\let\author\relax + \global\let\title\relax + \global\let\extratitle\relax + \global\let\titlehead\relax + \global\let\subject\relax + \global\let\publishers\relax + \global\let\uppertitleback\relax + \global\let\lowertitleback\relax + \global\let\dedication\relax + \global\let\date\relax + \fi + \global\let\and\relax + \restoregeometry +}% + + +%% ============================================================= +%% FOOTNOTES: +%% ============================================================= + +% Increase spacing between text and footnotes +\renewcommand\footnoterule{% + \kern-3\p@\hrule\@width.4\columnwidth% + \kern2.6\p@% + \vspace{0.2em}% +}% + +% Non-superscripted footnote sign +\newlength{\footnumwidth} +\newcommand*\maxfn{199} +\AtBeginDocument{% + \settowidth{\footnumwidth}{{\normalfont\footnotesize\maxfn\space\space}} + \deffootnote[\footnumwidth]{\footnumwidth}{1em}{\thefootnotemark\space\space} +} + + +%% ============================================================= +%% ADJUST ENVIRONMENTS: +%% ============================================================= + +% Headings +% (Serifs) +\setkomafont{sectioning}{\normalfont\normalcolor\bfseries} + +% Itemize +\def\labelitemi{--} + +% Quote (smaller) +\newcommand*{\OriginalQuote}{} +\let\OriginalQuote\quote +\renewcommand*{\quote}{\OriginalQuote\small} + +% Quotation (smaller) +\newcommand*{\OriginalQuotation}{} +\let\OriginalQuotation\quotation +\renewcommand*{\quotation}{\OriginalQuotation\small} + +% Description (normal italic) +\setkomafont{descriptionlabel}{\normalfont\itshape} + +\ifcovington +\RequirePackage{covington} +\renewcommand{\p@equation}[1]{(#1)} +\fi + +%% ============================================================= +%% TABLES AND FIGURES: +%% ============================================================= + +%% captionlabel bold +\setkomafont{captionlabel}{\bfseries} + +\ifcaptionp +\RequirePackage[format=plain, + justification=RaggedRight, + singlelinecheck=false + ]{caption} +\fi + +%% ============================================================= +%% BIBLIOGRAPHY: +%% ============================================================= + +% Biblatex +\ifbiblatex + +\ifapa +% Load biblatex with apa style +\RequirePackage[% + style=apa, + natbib=true, + sorting=nyvt, + sortcites=true, + backend=biber] +{biblatex} + +% Map localization files to the apa variants +\DeclareLanguageMapping{english}{english-apa} +\DeclareLanguageMapping{german}{german-apa} +\DeclareLanguageMapping{ngerman}{ngerman-apa} +\DeclareLanguageMapping{austrian}{austrian-apa} +\DeclareLanguageMapping{naustrian}{naustrian-apa} + +% Adapt to the DGPs guidelines: +% 1. Use "et al." (rather than "u.a.") in German +% 2. No comma before final and/& in German +% 3. "forthcoming a" rather than "forthcoming-a" +\DefineBibliographyStrings{german}{% + andothers = {et al\adddot}% +} +\DefineBibliographyExtras{german}{% + \def\finalandcomma{}% +} +\DefineBibliographyStrings{ngerman}{% + andothers = {et al\adddot}% +} +\DefineBibliographyExtras{ngerman}{% + \def\finalandcomma{}% +} +\DefineBibliographyStrings{austrian}{% + andothers = {et al\adddot}% +} +\DefineBibliographyExtras{austrian}{% + \def\finalandcomma{}% +} +\DefineBibliographyStrings{naustrian}{% + andothers = {et al\adddot}% +} +\DefineBibliographyExtras{naustrian}{% + \def\finalandcomma{}% +} +\renewcommand{\apashortdash}{~} + +% Change cite command for integrated csquotes env. +\SetCiteCommand{\parencite} +% Map \citealp to \nptextcite +\let\citealp\nptextcite +% +\else% Unified Style for Linguistics +\RequirePackage[% + style=univie-ling, + sorting=nyvt, + sortcites=true, + backend=biber] +{biblatex} + +% Change cite command for integrated csquotes env. +\SetCiteCommand{\parencite} + +% End of apa condition +\fi + +% End of biblatex condition +\fi + +%% ============================================================= +%% TOC: +%% ============================================================= + +\let\origtableofcontents\tableofcontents +\renewcommand*\tableofcontents{% +\thispagestyle{plain} +\origtableofcontents +\clearpage +} + + +%% ============================================================= +%% X-REFS: +%% ============================================================= + +\ifrefsp + +% Varioref: +\RequirePackage{varioref} +\AtBeginDocument{% + \vref@addto\extrasnaustrian{% + \def\reftextafter{auf der \reftextvario{folgenden}{n\"achsten} Seite}% + \def\reftextfaceafter{auf der gegen\"uberliegenden Seite}% + \def\reftextbefore{auf der \reftextvario{vorhergehenden}{vorangegangenen} Seite}% + \def\reftextfacebefore{auf der gegen\"uberliegenden Seite}% + \def\reftextfaraway[1]{auf S.~\pageref{##1}}% + \def\reftextpagerange[2]{auf S.~\pageref{##1}--\pageref{##2}}% + }% +} + +% Prettyref: +% (varioref-Befehle mit eingebunden) +\RequirePackage{prettyref} +\newrefformat{cha}{\chaptername~\ref{#1}} +\newrefformat{sec}{\GetTranslation{section}~\ref{#1}} +\newrefformat{sub}{\GetTranslation{section}~\ref{#1}} +\newrefformat{anm}{\GetTranslation{footnote}~\ref{#1}} +\newrefformat{app}{\appendixname~\vref{#1}} +\newrefformat{tab}{\tablename~\vref{#1}} +\newrefformat{fig}{\figurename~\vref{#1}} +\newrefformat{exa}{\GetTranslation{example}~\vref{#1}} + +\fi + +%% Finis. diff --git a/Master/texmf-dist/tex/latex/univie-ling/univie-ling-paper.cls b/Master/texmf-dist/tex/latex/univie-ling/univie-ling-paper.cls new file mode 100644 index 00000000000..b5a7c365610 --- /dev/null +++ b/Master/texmf-dist/tex/latex/univie-ling/univie-ling-paper.cls @@ -0,0 +1,789 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% File univie-ling-paper +%% +%% Student Papers in (Applied) Linguistics at the University of Vienna +%% +%% This file is part of the univie-ling LaTeX package, consisting of: +%% -- univie-ling-expose.cls: Class for PhD Research Proposals +%% -- univie-ling-paper.cls: Class for student papers (this file) +%% -- univie-ling-thesis.cls: Class for BA, MA or PhD theses +%% -- univie-logo-sw.pdf: University of Vienna logo +%% -- univie-ling.bbx: Biblatex bibliography style +%% -- univie-ling.cbx: Biblatex citation style +%% +%% Author: Juergen Spitzmueller +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2003/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% The Current Maintainer of this work is Juergen Spitzmueller. +%% Please report issues to https://github.com/jspitz/univie-ling/issues +%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{univie-ling-paper}[2018/02/03 v1.0 Univie Linguistic Papers (JSp)] + +\RequirePackage{xkeyval} + +\newif\ifbiblatex\biblatextrue +\newif\ifapa\apafalse +\newif\ifcaptionp\captionptrue +\newif\ifrefsp\refsptrue +\newif\ifcovington\covingtontrue +\newif\ifmicrotype\microtypetrue +\newif\ifmultiauthors\multiauthorsfalse + +% all= +% Load all packages +\define@boolkey+{uvt}{all}[true]{% + \ifKV@uvt@all + \biblatextrue + \captionptrue + \refsptrue + \covingtontrue + \microtypetrue + \else + \biblatexfalse + \captionpfalse + \refspfalse + \covingtonfalse + \microtypefalse + \fi +}{% + \ClassWarning{univie-ling-paper}{unknown 'all' value}% +} +\DeclareOptionX{all}{\setkeys{uvt}{all=#1}} + +% biblatex= +% Load biblatex +\define@boolkey+{uvt}{biblatex}[true]{% + \ifKV@uvt@biblatex + \biblatextrue + \else + \biblatexfalse + \fi +}{% + \ClassWarning{univie-ling-paper}{unknown biblatex value}% +} +\DeclareOptionX{biblatex}{\setkeys{uvt}{biblatex=#1}} + +% apa= +% Load APA style +\define@boolkey+{uvt}{apa}[true]{% + \ifKV@uvt@biblatex + \apatrue + \else + \apafalse + \fi +}{% + \ClassWarning{univie-ling-paper}{unknown apa value}% +} +\DeclareOptionX{apa}{\setkeys{uvt}{apa=#1}} + +% caption= +% Load caption +\define@boolkey+{uvt}{caption}[true]{% + \ifKV@uvt@caption + \captionptrue + \else + \captionpfalse + \fi +}{% + \ClassWarning{univie-ling-paper}{unknown caption value}% +} +\DeclareOptionX{caption}{\setkeys{uvt}{caption=#1}} + +% ref= +% Load varioref and prettyref +\define@boolkey+{uvt}{ref}[true]{% + \ifKV@uvt@ref + \refsptrue + \else + \refspfalse + \fi +}{% + \ClassWarning{univie-ling-paper}{unknown ref value}% +} +\DeclareOptionX{ref}{\setkeys{uvt}{ref=#1}} + +% covington= +% Load covington +\define@boolkey+{uvt}{covington}[true]{% + \ifKV@uvt@covington + \covingtontrue + \else + \covingtonfalse + \fi +}{% + \ClassWarning{univie-ling-paper}{unknown covington value}% +} +\DeclareOptionX{covington}{\setkeys{uvt}{covington=#1}} + +% microtype= +% Load microtype +\define@boolkey+{uvt}{microtype}[true]{% + \ifKV@uvt@microtype + \microtypetrue + \else + \microtypefalse + \fi +}{% + \ClassWarning{univie-ling-thesis}{unknown microtype value}% +} +\DeclareOptionX{microtype}{\setkeys{uvt}{microtype=#1}} + +\newif\ifpsfonts\psfontstrue +\newif\ifotffonts\otffontsfalse +\newif\ifnofonts\nofontsfalse +% fonts= +\define@choicekey*+{uvt}{fonts}[\val\nr]{ps,otf,none}{% + \ifcase\nr\relax% ps: use PostScript fonts (classic LaTeX) + \psfontstrue + \otffontsfalse + \nofontsfalse + \or% otf: use OpenType fonts (fontspec) + \psfontsfalse + \otffontstrue + \nofontsfalse + \or% none: Use no font package + \psfontsfalse + \otffontsfalse + \nofontstrue + \fi +}{% + \PackageWarning{jsdossier}{unknown fonts value '#1'}% +} +\DeclareOptionX{fonts}{\setkeys{uvt}{fonts=#1}} + +\ProcessOptionsX + +\LoadClass[% + a4paper, + captions=tableheading, + listof=totoc, + numbers=noenddot, + titlepage=true, + sectionentrydots=true +]{scrartcl}[2003/04/22] + + +%% ============================================================ +%% LOCALIZATION: +%% ============================================================ + +\RequirePackage{translations} +\DeclareTranslation{German}{subm}{Abgegeben am} +\DeclareTranslation{English}{subm}{Submission date:} +\DeclareTranslation{German}{submto}{bei} +\DeclareTranslation{English}{submto}{Instructor:} +\DeclareTranslation{German}{author}{Verfasst von} +\DeclareTranslation{English}{author}{Author} +\DeclareTranslation{German}{section}{Abschnitt} +\DeclareTranslation{English}{section}{section} +\DeclareTranslation{German}{footnote}{Anm.} +\DeclareTranslation{English}{footnote}{fn.} +\DeclareTranslation{German}{example}{Beispiel} +\DeclareTranslation{English}{footnote}{example} +\DeclareTranslation{German}{matnr}{Matrikelnummer} +\DeclareTranslation{English}{matnr}{Matrikelnummer} +\DeclareTranslation{German}{stkz}{Studienkennzahl} +\DeclareTranslation{English}{stkz}{Studienkennzahl} +\DeclareTranslation{German}{erkl}{Erkl\"arung} +\DeclareTranslation{English}{erkl}{Declaration} +\DeclareTranslation{German}{selbst1s}{Hiermit versichere ich, dass ich die vorliegende Arbeit selbst\"andig verfasst +und keine anderen als die angegebenen Hilfsmittel benutzt habe.} +\DeclareTranslation{German}{selbst1p}{Hiermit versichern wir, dass wir die vorliegende Arbeit selbst\"andig verfasst +und keine anderen als die angegebenen Hilfsmittel benutzt haben.} +\DeclareTranslation{German}{selbst2}{Die Stellen der Arbeit, die anderen Quellen im Wortlaut oder dem Sinn nach entnommen wurden, sind durch Herkunftsangaben kenntlich gemacht. +Dies gilt auch f\"ur Zeichnungen, Skizzen, bildliche Darstellungen sowie f\"ur Quellen aus dem Internet.} +\DeclareTranslation{German}{selbst3s}{Ich versichere ferner, dass ich die vorliegende Arbeit weder ganz noch in Teilen bereits als +Prüfungsleistung vorgelegt habe.} +\DeclareTranslation{German}{selbst3p}{Wir versichern ferner, dass wir die vorliegende Arbeit weder ganz noch in Teilen bereits als +Prüfungsleistung vorgelegt haben.} +\DeclareTranslation{English}{selbst1s}{I hereby declare that this paper is entirely my own work and that I used no source material or aids other than those stipulated.} +\DeclareTranslation{English}{selbst1p}{We hereby declare that this paper is entirely our own work and that we used no source material or aids other than those stipulated.} +\DeclareTranslation{English}{selbst2}{No part of it has been copied from any work produced by any other person or copied from any other source without reference to the source. +This includes all drawings, sketches, graphics and internet sources.} +\DeclareTranslation{English}{selbst3s}{Furthermore, I declare that this paper has not been submitted as an examination already, neither as a whole nor in parts.} +\DeclareTranslation{English}{selbst3p}{Furthermore, we declare that this paper has not been submitted as an examination already, neither as a whole nor in parts.} +\DeclareTranslation{German}{wien}{Wien} +\DeclareTranslation{English}{wien}{Vienna} + + +%% ============================================================ +%% FONTS AND EMPHASIZING: +%% ============================================================ + +\ifpsfonts + +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} + +% Palatino +\usepackage[osf]{mathpazo} + +% Arial or Helvetica +\IfFileExists{uarial.sty}{% +\RequirePackage{uarial} +}{% +\RequirePackage{helvet} +} +\fi + +\ifotffonts +\RequirePackage{fontspec} +\setmainfont{Palatino} +\setsansfont{Arial} +\fi + +% Hyperlinks +\RequirePackage{url} +\newcommand{\urlprefix}{} +% URLs italic +\@ifundefined{selectfont}{% +\def\UrlFont{\it}} +{\def\UrlFont{\rmfamily\itshape} +} + +% Fix for \slash-Makro, by Donald Arsenau +\def\slash{/\penalty\exhyphenpenalty\hskip\z@skip} + +% Font settings +\newkomafont{texttype}{\fontsize{24}{26pt}\bfseries\sffamily} +\setkomafont{title}{\fontsize{18}{20pt}\sffamily} +\setkomafont{author}{\fontsize{18}{20pt}\sffamily} +\setkomafont{subtitle}{\normalfont\fontsize{12}{14pt}\sffamily} +\setkomafont{date}{\normalfont\fontsize{10}{12pt}\mdseries\sffamily} +\newkomafont{course}{\normalfont\mdseries\sffamily} + + +%% ============================================================ +%% MACROS: +%% ============================================================ + +\def\lectype{} +\def\lectypeverb{} +\def\@texttype{} + +\define@key{lec}{lectype}{% + \AtEndPreamble{% + \ifcsundef{lectype@#1}{% + \ClassError{univie-ling-paper}{Lecture type '#1' is not defined!}{% + Please consult the package manual for instructions how to define it}{} + }{} + \def\lectype{\csuse{lectype@#1}}% + \def\lectypeverb{\csuse{lectypeverb@#1}}% + \def\@texttype{\csuse{texttype@#1}} + }% +} + +\define@key{lec}{lecsem}{% + \AtEndPreamble{% + \ifcsundef{lecsemshort@#1}{% + \ClassError{univie-ling-paper}{Semester type '#1' is not defined!}{% + Please consult the package manual for instructions how to define it}{} + }{} + \def\lecsemshort{\csuse{lecsemshort@#1}}% + \def\lecsemverb{\csuse{lecsemverb@#1}}% + }% +} + +\def\@texttype{Seminararbeit} +\newcommand\texttype[1]{\def\@texttype{#1}} +\def\@course{} +\newcommand\course[2]{\setkeys{lec}{lectype=#1}\def\@course{#2}} +\def\@instructor{} +\newcommand\instructor[1]{\def\@instructor{#1}} +\def\@matrikelnr{} +\newcommand\matrikelnr[1]{\def\@matrikelnr{#1}} +\def\@studienkennzahl{} +\newcommand\studienkennzahl[1]{\def\@studienkennzahl{#1}} +\def\@semester{} +\newcommand\semester[2]{\setkeys{lec}{lecsem=#1}\def\@semester{#2}} + +% Semantic markup +\newcommand\Expression[1]{\textit{#1}} +\newcommand\Concept[1]{\textsc{#1}} +\newcommand\Meaning[1]{\enquote*{#1}} + + +%% ============================================================ +%% STRINGS: +%% ============================================================ + +% 1) Course types +% +% vo +\def\lectypeverb@vo{Vorlesung} +\def\lectype@vo{VO} +\def\texttype@vo{} +% ps +\def\lectypeverb@ps{Proseminar} +\def\lectype@ps{PS} +\def\texttype@ps{Proseminararbeit} +% se +\def\lectypeverb@se{Seminar} +\def\lectype@se{SE} +\def\texttype@ps{Seminararbeit} +% ue +\def\lectypeverb@ue{\"Ubung} +\def\lectype@ue{UE} +\def\texttype@ue{} +% ko +\def\lectypeverb@ko{Kolloquium} +\def\lectype@ko{KO} +\def\texttype@ko{} +% pv +\def\lectypeverb@pv{Privatissimum} +\def\lectype@pv{PV} +\def\texttype@pv{} + +% 2.) Term types +% +% ss +\def\lecsemverb@ss{Sommersemester} +\def\lecsemshort@ss{SoSe} +% ws +\def\lecsemverb@ws{Wintersemester} +\def\lecsemshort@ws{WS} + + +%% ============================================================ +%% LAYOUT +%% ============================================================ + +\usepackage{setspace} +\onehalfspacing + +% Header and pagination: +% (scrlayer-scrpage) +\RequirePackage{scrlayer-scrpage} +\pagestyle{scrplain} + +% No widows and orphans +% No overfull lines +\tolerance 1414 +\hbadness 1414 +\emergencystretch 1.5em +\hfuzz 0.3pt +\widowpenalty = 10000 +\vfuzz \hfuzz +\raggedbottom + +% Micro-typographic polishment +\ifmicrotype +\usepackage{microtype} +\fi + +% Smart quotes +\RequirePackage[autostyle=tryonce,german=guillemets,maxlevel=3]{csquotes} + + +%% ============================================================ +%% TITLING +%% ============================================================ + +% We need graphicx for the logo +\RequirePackage{graphicx} + +\renewcommand*\maketitle[1][1]{% + \expandafter\ifnum \csname scr@v@3.12\endcsname>\scr@compatibility\relax + \else + \def\and{% + \end{tabular}% + \global\multiauthorstrue% + \hskip 1em \@plus.17fil% + \begin{tabular}[t]{c}% + }% + \fi + \begin{titlepage} + \sffamily% + \setcounter{page}{% + #1% + }% + \if@titlepageiscoverpage + \edef\titlepage@restore{% + \noexpand\endgroup + \noexpand\global\noexpand\@colht\the\@colht + \noexpand\global\noexpand\@colroom\the\@colroom + \noexpand\global\vsize\the\vsize + \noexpand\global\noexpand\@titlepageiscoverpagefalse + \noexpand\let\noexpand\titlepage@restore\noexpand\relax + }% + \begingroup + \topmargin=\dimexpr \coverpagetopmargin-1in\relax + \oddsidemargin=\dimexpr \coverpageleftmargin-1in\relax + \evensidemargin=\dimexpr \coverpageleftmargin-1in\relax + \textwidth=\dimexpr + \paperwidth-\coverpageleftmargin-\coverpagerightmargin\relax + \textheight=\dimexpr + \paperheight-\coverpagetopmargin-\coverpagebottommargin\relax + \headheight=0pt + \headsep=0pt + \footskip=\baselineskip + \@colht=\textheight + \@colroom=\textheight + \vsize=\textheight + \columnwidth=\textwidth + \hsize=\columnwidth + \linewidth=\hsize + \else + \let\titlepage@restore\relax + \fi + \let\footnotesize\small + \let\footnoterule\relax + \let\footnote\thanks + \renewcommand*\thefootnote{\@fnsymbol\c@footnote}% + \let\@oldmakefnmark\@makefnmark + \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}% + \ifx\@extratitle\@empty \else + \noindent\@extratitle\next@tdpage + \fi + \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative + \begin{flushright} + \includegraphics[width=6cm]{univielogo-sw} + \end{flushright} + \vspace{2\baselineskip} + \begin{center} + \bgroup\usekomafont{texttype}{\MakeUppercase{\@texttype}\par}\egroup + \end{center} + \vspace{2\baselineskip} + \begin{center} + \ifx\@subject\@empty \else + {\usekomafont{subject}{\@subject\par}}% + \vskip 3em + \fi + {\usekomafont{title}{\enquote{\@title% + \ifx\@subtitle\@empty\else\\\@subtitle\fi}\par}}% + {\ifx\@course\@empty\else\vskip 2em\usekomafont{course}{\lectypeverb\par\emph{\@course}\par(\lecsemshort~\@semester)\par}\fi}% + \vskip 2em + {% + \GetTranslation{author}\par + \usekomafont{author}{% + \lineskip 0.75em% + \begin{tabular}[t]{c} + \@author + \end{tabular}\par + }% + \def\and{% + \end{tabular}% + \hskip 1em \@plus.17fil% + \begin{tabular}[t]{c}% + \GetTranslation{matnr}:~ + }% + \usekomafont{date}{% + \begin{tabular}[t]{c} + Matrikelnummer: \@matrikelnr + \end{tabular}\par + \def\and{% + \end{tabular}% + \hskip 1em \@plus.17fil% + \begin{tabular}[t]{c}% + \GetTranslation{stkz}:~ + }% + \lineskip 0.75em% + \begin{tabular}[t]{c} + Studienkennzahl: \@studienkennzahl + \end{tabular}\par + }% + }% + \vfill + {\usekomafont{date}{\GetTranslation{subm} \@date \par}}% + {\ifx\@instructor\@empty\else\usekomafont{date}{\GetTranslation{submto} \@instructor\par}\fi}% + \end{center}\par + \@thanks\let\@thanks\@empty + \null + \if@twoside + \@tempswatrue + \expandafter\ifnum \@nameuse{scr@v@3.12}>\scr@compatibility\relax + \else + \ifx\@uppertitleback\@empty\ifx\@lowertitleback\@empty + \@tempswafalse + \fi\fi + \fi + \if@tempswa + \next@tpage + \begin{minipage}[t]{\textwidth} + \@uppertitleback + \end{minipage}\par + \vfill + \begin{minipage}[b]{\textwidth} + \@lowertitleback + \end{minipage}\par + \@thanks\let\@thanks\@empty + \fi + \fi + \ifx\@dedication\@empty + \else + \next@tdpage\null\vfill + {\centering\usekomafont{dedication}{\@dedication \par}}% + \vskip \z@ \@plus3fill + \@thanks\let\@thanks\@empty + \cleardoubleemptypage + \fi + \ifx\titlepage@restore\relax\else\clearpage\titlepage@restore\fi + \end{titlepage} + \setcounter{footnote}{0}% + \expandafter\ifnum \csname scr@v@3.12\endcsname>\scr@compatibility\relax + \let\thanks\relax + \let\maketitle\relax + \let\@maketitle\relax + \global\let\@thanks\@empty + \global\let\@author\@empty + \global\let\@date\@empty + \global\let\@title\@empty + \global\let\@subtitle\@empty + \global\let\@extratitle\@empty + \global\let\@titlehead\@empty + \global\let\@subject\@empty + \global\let\@publishers\@empty + \global\let\@uppertitleback\@empty + \global\let\@lowertitleback\@empty + \global\let\@dedication\@empty + \global\let\author\relax + \global\let\title\relax + \global\let\extratitle\relax + \global\let\titlehead\relax + \global\let\subject\relax + \global\let\publishers\relax + \global\let\uppertitleback\relax + \global\let\lowertitleback\relax + \global\let\dedication\relax + \global\let\date\relax + \fi + \global\let\and\relax +}% + +\newcommand\makedeclaration{% +\def\and{% + \end{tabular}% + \hskip 1em \@plus.17fil% + \begin{tabular}[t]{c}% + \hline + }% +\clearpage +\section*{\GetTranslation{erkl}} + +\ifmultiauthors +\GetTranslation{selbst1p} +\else +\GetTranslation{selbst1s} +\fi + +\GetTranslation{selbst2} + +\ifmultiauthors +\GetTranslation{selbst3p} +\else +\GetTranslation{selbst3s} +\fi + +\bigskip +\bgroup +\raggedleft +\GetTranslation{wien}, \today + +\vspace{15mm} + +\begin{tabular}[t]{c} + \hline + \@author +\end{tabular}\par +\egroup +\clearpage +\global\let\and\relax +} + + +%% ============================================================= +%% FOOTNOTES: +%% ============================================================= + +% Increase spacing between text and footnotes +\renewcommand\footnoterule{% + \kern-3\p@\hrule\@width.4\columnwidth% + \kern2.6\p@% + \vspace{0.2em}% +}% + +% Non-superscripted footnote sign +\newlength{\footnumwidth} +\newcommand*\maxfn{199} +\AtBeginDocument{% + \settowidth{\footnumwidth}{{\normalfont\footnotesize\maxfn\space\space}} + \deffootnote[\footnumwidth]{\footnumwidth}{1em}{\thefootnotemark\space\space} +} + + +%% ============================================================= +%% ADJUST ENVIRONMENTS: +%% ============================================================= + +% Headings +% (Serifs) +\setkomafont{sectioning}{\normalfont\normalcolor\bfseries} + +% Itemize +\def\labelitemi{--} + +% Quote (smaller) +\newcommand*{\OriginalQuote}{} +\let\OriginalQuote\quote +\renewcommand*{\quote}{\OriginalQuote\small} + +% Quotation (smaller) +\newcommand*{\OriginalQuotation}{} +\let\OriginalQuotation\quotation +\renewcommand*{\quotation}{\OriginalQuotation\small} + +% Description (normal italic) +\setkomafont{descriptionlabel}{\normalfont\itshape} + +\ifcovington +\RequirePackage{covington} +\renewcommand{\p@equation}[1]{(#1)} +\fi + +%% ============================================================= +%% TABLES AND FIGURES: +%% ============================================================= + +%% captionlabel bold +\setkomafont{captionlabel}{\bfseries} + +\ifcaptionp +\RequirePackage[format=plain, + justification=RaggedRight, + singlelinecheck=false + ]{caption} +\fi + +%% ============================================================= +%% BIBLIOGRAPHY: +%% ============================================================= + +% Biblatex +\ifbiblatex + +\ifapa +% Load biblatex with apa style +\RequirePackage[% + style=apa, + natbib=true, + sorting=nyvt, + sortcites=true, + backend=biber] +{biblatex} + +% Map localization files to the apa variants +\DeclareLanguageMapping{english}{english-apa} +\DeclareLanguageMapping{german}{german-apa} +\DeclareLanguageMapping{ngerman}{ngerman-apa} +\DeclareLanguageMapping{austrian}{austrian-apa} +\DeclareLanguageMapping{naustrian}{naustrian-apa} + +% Adapt to the DGPs guidelines: +% 1. Use "et al." (rather than "u.a.") in German +% 2. No comma before final and/& in German +% 3. "forthcoming a" rather than "forthcoming-a" +\DefineBibliographyStrings{german}{% + andothers = {et al\adddot}% +} +\DefineBibliographyExtras{german}{% + \def\finalandcomma{}% +} +\DefineBibliographyStrings{ngerman}{% + andothers = {et al\adddot}% +} +\DefineBibliographyExtras{ngerman}{% + \def\finalandcomma{}% +} +\DefineBibliographyStrings{austrian}{% + andothers = {et al\adddot}% +} +\DefineBibliographyExtras{austrian}{% + \def\finalandcomma{}% +} +\DefineBibliographyStrings{naustrian}{% + andothers = {et al\adddot}% +} +\DefineBibliographyExtras{naustrian}{% + \def\finalandcomma{}% +} +\renewcommand{\apashortdash}{~} + +% Change cite command for integrated csquotes env. +\SetCiteCommand{\parencite} +% Map \citealp to \nptextcite +\let\citealp\nptextcite +% +\else% Unified Style for Linguistics +\RequirePackage[% + style=univie-ling, + sorting=nyvt, + sortcites=true, + backend=biber] +{biblatex} + +% Change cite command for integrated csquotes env. +\SetCiteCommand{\parencite} + +% End of apa condition +\fi + +% End of biblatex condition +\fi + +%% ============================================================= +%% TOC: +%% ============================================================= + +\let\origtableofcontents\tableofcontents +\renewcommand*\tableofcontents{% +\thispagestyle{plain} +\origtableofcontents +\clearpage +} + + +%% ============================================================= +%% X-REFS: +%% ============================================================= + +\ifrefsp + +% Varioref: +\RequirePackage{varioref} +\AtBeginDocument{% + \vref@addto\extrasnaustrian{% + \def\reftextafter{auf der \reftextvario{folgenden}{n\"achsten} Seite}% + \def\reftextfaceafter{auf der gegen\"uberliegenden Seite}% + \def\reftextbefore{auf der \reftextvario{vorhergehenden}{vorangegangenen} Seite}% + \def\reftextfacebefore{auf der gegen\"uberliegenden Seite}% + \def\reftextfaraway[1]{auf S.~\pageref{##1}}% + \def\reftextpagerange[2]{auf S.~\pageref{##1}--\pageref{##2}}% + }% +} + +% Prettyref: +% (varioref-Befehle mit eingebunden) +\RequirePackage{prettyref} +\newrefformat{sec}{\GetTranslation{section}~\ref{#1}} +\newrefformat{sub}{\GetTranslation{section}~\ref{#1}} +\newrefformat{anm}{\GetTranslation{footnote}~\ref{#1}} +\newrefformat{app}{\appendixname~\vref{#1}} +\newrefformat{tab}{\tablename~\vref{#1}} +\newrefformat{fig}{\figurename~\vref{#1}} +\newrefformat{exa}{\GetTranslation{example}~\vref{#1}} + +\fi + +%% Finis. diff --git a/Master/texmf-dist/tex/latex/univie-ling/univie-ling-thesis.cls b/Master/texmf-dist/tex/latex/univie-ling/univie-ling-thesis.cls new file mode 100644 index 00000000000..cf0562bc1ca --- /dev/null +++ b/Master/texmf-dist/tex/latex/univie-ling/univie-ling-thesis.cls @@ -0,0 +1,744 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% File univie-ling-thesis +%% +%% BA, MA and PhD Theses in (Applied) Linguistics at the University of Vienna +%% +%% This file is part of the univie-ling LaTeX package, consisting of: +%% -- univie-ling-expose.cls: Class for PhD Research Proposals +%% -- univie-ling-paper.cls: Class for student papers +%% -- univie-ling-thesis.cls: Class for BA, MA or PhD theses (this file) +%% -- univie-logo-sw.pdf: University of Vienna logo +%% -- univie-ling.bbx: Biblatex bibliography style +%% -- univie-ling.cbx: Biblatex citation style +%% +%% Author: Juergen Spitzmueller +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2003/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% The Current Maintainer of this work is Juergen Spitzmueller. +%% Please report issues to https://github.com/jspitz/univie-ling/issues +%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{univie-ling-thesis}[2018/02/03 v1.0 Univie Linguistic Theses (JSp)] + +\RequirePackage{xkeyval} + +\newif\ifbiblatex\biblatextrue +\newif\ifapa\apafalse +\newif\ifcaptionp\captionptrue +\newif\ifrefsp\refsptrue +\newif\ifcovington\covingtontrue +\newif\ifmicrotype\microtypetrue + +% all= +% Load all packages +\define@boolkey+{uvt}{all}[true]{% + \ifKV@uvt@all + \biblatextrue + \captionptrue + \refsptrue + \covingtontrue + \microtypetrue + \else + \biblatexfalse + \captionpfalse + \refspfalse + \covingtonfalse + \microtypefalse + \fi +}{% + \ClassWarning{univie-ling-thesis}{unknown 'all' value}% +} +\DeclareOptionX{all}{\setkeys{uvt}{all=#1}} + +% biblatex= +% Load biblatex +\define@boolkey+{uvt}{biblatex}[true]{% + \ifKV@uvt@biblatex + \biblatextrue + \else + \biblatexfalse + \fi +}{% + \ClassWarning{univie-ling-thesis}{unknown biblatex value}% +} +\DeclareOptionX{biblatex}{\setkeys{uvt}{biblatex=#1}} + +% apa= +% Load APA style +\define@boolkey+{uvt}{apa}[true]{% + \ifKV@uvt@biblatex + \apatrue + \else + \apafalse + \fi +}{% + \ClassWarning{univie-ling-paper}{unknown apa value}% +} +\DeclareOptionX{apa}{\setkeys{uvt}{apa=#1}} + +% caption= +% Load caption +\define@boolkey+{uvt}{caption}[true]{% + \ifKV@uvt@caption + \captionptrue + \else + \captionpfalse + \fi +}{% + \ClassWarning{univie-ling-thesis}{unknown caption value}% +} +\DeclareOptionX{caption}{\setkeys{uvt}{caption=#1}} + +% ref= +% Load varioref and prettyref +\define@boolkey+{uvt}{ref}[true]{% + \ifKV@uvt@ref + \refsptrue + \else + \refspfalse + \fi +}{% + \ClassWarning{univie-ling-thesis}{unknown ref value}% +} +\DeclareOptionX{ref}{\setkeys{uvt}{ref=#1}} + +% covington= +% Load covington +\define@boolkey+{uvt}{covington}[true]{% + \ifKV@uvt@covington + \covingtontrue + \else + \covingtonfalse + \fi +}{% + \ClassWarning{univie-ling-thesis}{unknown covington value}% +} +\DeclareOptionX{covington}{\setkeys{uvt}{covington=#1}} + +% microtype= +% Load microtype +\define@boolkey+{uvt}{microtype}[true]{% + \ifKV@uvt@microtype + \microtypetrue + \else + \microtypefalse + \fi +}{% + \ClassWarning{univie-ling-thesis}{unknown microtype value}% +} +\DeclareOptionX{microtype}{\setkeys{uvt}{microtype=#1}} + +\newif\iffdegree\fdegreefalse +% fdegree= +% Female degree forms +\define@boolkey+{uvt}{fdegree}[true]{% + \ifKV@uvt@fdegree + \fdegreetrue + \else + \fdegreefalse + \fi +}{% + \ClassWarning{univie-ling-thesis}{unknown fdegree value}% +} +\DeclareOptionX{fdegree}{\setkeys{uvt}{fdegree=#1}} + +\newif\ifpsfonts\psfontstrue +\newif\ifotffonts\otffontsfalse +\newif\ifnofonts\nofontsfalse +% fonts= +\define@choicekey*+{uvt}{fonts}[\val\nr]{ps,otf,none}{% + \ifcase\nr\relax% ps: use PostScript fonts (classic LaTeX) + \psfontstrue + \otffontsfalse + \nofontsfalse + \or% otf: use OpenType fonts (fontspec) + \psfontsfalse + \otffontstrue + \nofontsfalse + \or% none: Use no font package + \psfontsfalse + \otffontsfalse + \nofontstrue + \fi +}{% + \PackageWarning{jsdossier}{unknown fonts value '#1'}% +} +\DeclareOptionX{fonts}{\setkeys{uvt}{fonts=#1}} + +\ProcessOptionsX + +\LoadClass[% + a4paper, + captions=tableheading, + listof=totoc, + numbers=noenddot, + titlepage=true, + chapterentrydots=true +]{scrreprt}[2003/04/22] + +\RequirePackage{array} + +%% ============================================================ +%% LOCALIZATION: +%% ============================================================ + +\RequirePackage{translations} +\DeclareTranslation{German}{section}{Abschnitt} +\DeclareTranslation{English}{section}{section} +\DeclareTranslation{German}{footnote}{Anm.} +\DeclareTranslation{English}{footnote}{fn.} +\DeclareTranslation{German}{example}{Beispiel} +\DeclareTranslation{English}{footnote}{example} +\DeclareTranslation{German}{stkz}{Studienkennzahl} +\DeclareTranslation{English}{stkz}{Studienkennzahl} + + +%% ============================================================ +%% FONTS AND EMPHASIZING: +%% ============================================================ + +\ifpsfonts + +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} + +% Palatino +\usepackage[osf]{mathpazo} + +% Arial or Helvetica +\IfFileExists{uarial.sty}{% +\RequirePackage{uarial} +}{% +\RequirePackage{helvet} +} +\fi + +\ifotffonts +\RequirePackage{fontspec} +\setmainfont{Palatino} +\setsansfont{Arial} +\fi + +% Hyperlinks +\RequirePackage{url} +\newcommand{\urlprefix}{} +% URLs italic +\@ifundefined{selectfont}{% +\def\UrlFont{\it}} +{\def\UrlFont{\rmfamily\itshape} +} + +% Fix for \slash-Makro, by Donald Arsenau +\def\slash{/\penalty\exhyphenpenalty\hskip\z@skip} + +% Font settings +\newkomafont{thesistype}{\fontsize{24}{26pt}\bfseries\sffamily} +\setkomafont{title}{\fontsize{18}{20pt}\sffamily} +\setkomafont{author}{\fontsize{18}{20pt}\large\sffamily} +\setkomafont{date}{\normalfont\fontsize{11}{13pt}\mdseries\sffamily} +\newkomafont{degree}{\fontsize{12}{14pt}\sffamily} +\newkomafont{baende}{\normalfont\fontsize{12}{14pt}\mdseries\sffamily} +\newkomafont{tpcaption}{\fontsize{11}{13pt}\sffamily} +\newkomafont{codes}{\fontsize{10}{12pt}\sffamily} + + +%% ============================================================ +%% MACROS: +%% ============================================================ + +\def\@thesistype{} +\def\@thesistype@en{} +\def\@dirtype{} +\def\@dirtype@en{} + +\define@key{lec}{thesistype}{% + \AtEndPreamble{% + \ifcsundef{thesistype@#1}{% + \ClassError{univie-ling-thesis}{Thesis type '#1' is not defined!}{% + Please consult the package manual for instructions how to define it}{} + }{} + \def\@thesistype{\csuse{thesistype@#1}} + \def\@thesistype@en{\csuse{thesistype@#1@en}} + \def\@dirtype{\csuse{dirtype@#1}} + \def\@dirtype@en{\csuse{dirtype@#1@en}} + \iffdegree + \def\@degree{\csuse{degree@#1@f}} + \else + \def\@degree{\csuse{degree@#1}} + \fi + }% +} + +\define@key{lec}{lecsem}{% + \AtEndPreamble{% + \ifcsundef{lecsemshort@#1}{% + \ClassError{univie-ling-thesis}{Semester type '#1' is not defined!}{% + Please consult the package manual for instructions how to define it}{} + }{} + \def\lecsemshort{\csuse{lecsemshort@#1}}% + \def\lecsemverb{\csuse{lecsemverb@#1}}% + }% +} + +\newcommand\thesistype[1]{\setkeys{lec}{thesistype=#1}} +\def\@course{} +\def\@supervisor{} +\def\@cosupervisor{} +\newcommand\supervisor[1]{\def\@supervisor{#1}} +\newcommand\cosupervisor[1]{\def\@cosupervisor{#1}} +\def\@studienrichtung{} +\newcommand\studienrichtung[1]{\def\@studienrichtung{#1}} +\def\@studienkennzahl{} +\newcommand\studienkennzahl[1]{\def\@studienkennzahl{#1}} +\def\@volume{} +\def\@volumes{} +\newcommand\volume[2]{\def\@volume{#1}\def\@volumes{#2}} +\def\@degree{} +\newcommand\degree[1]{\AtBeginDocument{\def\@degree{#1}}} + +% Semantic markup +\newcommand\Expression[1]{\textit{#1}} +\newcommand\Concept[1]{\textsc{#1}} +\newcommand\Meaning[1]{\enquote*{#1}} + + +%% ============================================================ +%% STRINGS: +%% ============================================================ + +% 1) Thesis types +% +% bachelor +\def\thesistype@bachelor{Bachelorarbeit} +\def\thesistype@bachelor@en{Bachelor's Thesis} +\def\dirtype@bachelor{Studienrichtung} +\def\dirtype@bachelor@en{degree programme} +\def\degree@bachelor{Bachelor of Arts (B.\,A.)} +\def\degree@bachelor@f{\degree@bachelor} +% master +\def\thesistype@master{Masterarbeit} +\def\thesistype@master@en{Master's Thesis} +\def\dirtype@master{Studienrichtung} +\def\dirtype@master@en{degree programme} +\def\degree@master{Master of Arts (M.\,A.)} +\def\degree@master@f{\degree@master} +% magister +\def\thesistype@magister{Magisterarbeit} +\def\thesistype@magister@en{Magister Thesis} +\def\dirtype@magister{Studienrichtung} +\def\dirtype@magister@en{degree programme} +\def\degree@magister{Magister der Philosophie (Mag.\,Phil.)} +\def\degree@magister@f{Magistra der Philosophie (Mag.\,Phil.)} +% diplom +\def\thesistype@diplom{Diplomarbeit} +\def\thesistype@diplom@en{Diploma Thesis} +\def\dirtype@diplom{Studienrichtung} +\def\dirtype@diplom@en{degree programme} +\def\degree@diplom{Magister der Philosophie (Mag.\,Phil.)} +\def\degree@diplom@f{Magistra der Philosophie (Mag.\,Phil.)} +% diss +\def\thesistype@diss{Dissertation} +\def\thesistype@diss@en{Doctoral Thesis} +\def\dirtype@diss{Dissertationsgebiet} +\def\dirtype@diss@en{field of study} +\def\degree@diss{Doktor der Philosophie (Dr.\,phil.)} +\def\degree@diss@f{Doktorin der Philosophie (Dr.\,phil.)} + +% 2.) Term types +% +% ss +\def\lecsemverb@ss{Sommersemester} +\def\lecsemshort@ss{SoSe} +% ws +\def\lecsemverb@ws{Wintersemester} +\def\lecsemshort@ws{WS} + + +%% ============================================================ +%% LAYOUT +%% ============================================================ + +\RequirePackage{geometry} + +\usepackage{setspace} +\onehalfspacing + +% Header and pagination: +% (scrlayer-scrpage) +\RequirePackage{scrlayer-scrpage} +\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}} +\RequirePackage{scrlayer-scrpage} +\renewcommand{\headfont}{\small\rmfamily} +\clearscrheadings +\ihead{\headmark} +\ohead{\pagemark} +\automark{chapter} +\KOMAoptions{headsepline=true} +\pagestyle{scrheadings} + +% No widows and orphans +% No overfull lines +\tolerance 1414 +\hbadness 1414 +\emergencystretch 1.5em +\hfuzz 0.3pt +\widowpenalty = 10000 +\vfuzz \hfuzz +\raggedbottom + +% Micro-typographic polishment +\ifmicrotype +\usepackage{microtype} +\fi + +% Smart quotes +\RequirePackage[autostyle=tryonce,german=guillemets,maxlevel=3]{csquotes} + + +%% ============================================================ +%% TITLING +%% ============================================================ + +% We need graphicx for the logo +\RequirePackage{graphicx} + +\renewcommand*\maketitle[1][1]{% + \newgeometry{top=2cm,bottom=2.5cm,left=2.5cm,right=2cm} + \expandafter\ifnum \csname scr@v@3.12\endcsname>\scr@compatibility\relax + \else + \def\and{% + \end{tabular}% + \hskip 1em \@plus.17fil% + \begin{tabular}[t]{c}% + }% + \fi + \begin{titlepage} + \sffamily% + \setcounter{page}{% + #1% + }% + \if@titlepageiscoverpage + \edef\titlepage@restore{% + \noexpand\endgroup + \noexpand\global\noexpand\@colht\the\@colht + \noexpand\global\noexpand\@colroom\the\@colroom + \noexpand\global\vsize\the\vsize + \noexpand\global\noexpand\@titlepageiscoverpagefalse + \noexpand\let\noexpand\titlepage@restore\noexpand\relax + }% + \begingroup + \topmargin=\dimexpr \coverpagetopmargin-1in\relax + \oddsidemargin=\dimexpr \coverpageleftmargin-1in\relax + \evensidemargin=\dimexpr \coverpageleftmargin-1in\relax + \textwidth=\dimexpr + \paperwidth-\coverpageleftmargin-\coverpagerightmargin\relax + \textheight=\dimexpr + \paperheight-\coverpagetopmargin-\coverpagebottommargin\relax + \headheight=0pt + \headsep=0pt + \footskip=\baselineskip + \@colht=\textheight + \@colroom=\textheight + \vsize=\textheight + \columnwidth=\textwidth + \hsize=\columnwidth + \linewidth=\hsize + \else + \let\titlepage@restore\relax + \fi + \let\footnotesize\small + \let\footnoterule\relax + \let\footnote\thanks + \renewcommand*\thefootnote{\@fnsymbol\c@footnote}% + \let\@oldmakefnmark\@makefnmark + \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}% + \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative + \begin{flushright} + \includegraphics[width=6cm]{univielogo-sw} + \end{flushright} + \vspace{2\baselineskip} + \begin{center} + \bgroup\usekomafont{thesistype}{\MakeUppercase{\@thesistype\,/\,\hskip\z@skip\mbox{\@thesistype@en}}\par}\egroup + \end{center} + \vspace{2\baselineskip} + \begin{center} + {\usekomafont{tpcaption}Titel der \@thesistype\,/\,Title of the \@thesistype@en\par} + {\usekomafont{title}{\enquote{\@title% + \ifx\@subtitle\@empty\else\\\@subtitle\fi}\par}}% + {\ifx\@volume\@empty\else\vskip 1em\usekomafont{baende}{Band \@volume\ von \@volumes\ Bänden\,/\,volume \@volume\ of \@volumes\ volumes}\fi}% + \vskip 2em + {% + {\usekomafont{tpcaption}verfasst von\,/\,submitted by\par} + \usekomafont{author}{% + \lineskip 0.75em% + \begin{tabular}[t]{c} + \@author + \end{tabular}\par + }% + }% + \vskip 2em + {\usekomafont{tpcaption}angestrebter akademischer Grad\,/\,in partial fulfilment of the requirements for the degree of\par} + \usekomafont{degree}{\@degree} + \end{center}\par + \vfill + {\usekomafont{date}{Wien, \the\year\,/\,Vienna, \the\year\par}}% + \vskip 2em + \usekomafont{codes}{% + \begin{tabular}[t]{@{}>{\raggedright}p{0.4\columnwidth}>{\raggedright}p{0.1\columnwidth}>{\raggedright}p{0.4\columnwidth}} + Studienkennzahl lt. Studienblatt/\newline degree programme code as it appears on the student record sheet: & & \@studienkennzahl\tabularnewline + \noalign{\vskip6pt} + \@dirtype\ lt. Studienblatt\slash\newline \@dirtype@en\ as it appears on the student record sheet: & & \@studienrichtung\tabularnewline + \noalign{\vskip6pt} + Betreut von\,/\,Supervisor: & & \@supervisor\tabularnewline% + \noalign{\vskip6pt} + \ifx\@cosupervisor\@empty\else Mitbetreut von\,/\,Co-Supervisor: & & \@cosupervisor\fi + \end{tabular}\par + } + \par + \@thanks\let\@thanks\@empty + \null + \if@twoside + \@tempswafalse + \expandafter\ifnum \@nameuse{scr@v@3.12}>\scr@compatibility\relax + \else + \fi + \fi + \ifx\@dedication\@empty + \else + \next@tdpage\null\vfill + {\centering\usekomafont{dedication}{\@dedication \par}}% + \vskip \z@ \@plus3fill + \@thanks\let\@thanks\@empty + \cleardoubleemptypage + \fi + \ifx\titlepage@restore\relax\else\clearpage\titlepage@restore\fi + \end{titlepage} + \setcounter{footnote}{0}% + \expandafter\ifnum \csname scr@v@3.12\endcsname>\scr@compatibility\relax + \let\thanks\relax + \let\maketitle\relax + \let\@maketitle\relax + \global\let\@thanks\@empty + \global\let\@author\@empty + \global\let\@date\@empty + \global\let\@title\@empty + \global\let\@subtitle\@empty + \global\let\@extratitle\@empty + \global\let\@titlehead\@empty + \global\let\@subject\@empty + \global\let\@publishers\@empty + \global\let\@uppertitleback\@empty + \global\let\@lowertitleback\@empty + \global\let\@dedication\@empty + \global\let\author\relax + \global\let\title\relax + \global\let\extratitle\relax + \global\let\titlehead\relax + \global\let\subject\relax + \global\let\publishers\relax + \global\let\uppertitleback\relax + \global\let\lowertitleback\relax + \global\let\dedication\relax + \global\let\date\relax + \fi + \global\let\and\relax + \restoregeometry +}% + + +%% ============================================================= +%% FOOTNOTES: +%% ============================================================= + +% Increase spacing between text and footnotes +\renewcommand\footnoterule{% + \kern-3\p@\hrule\@width.4\columnwidth% + \kern2.6\p@% + \vspace{0.2em}% +}% + +% Non-superscripted footnote sign +\newlength{\footnumwidth} +\newcommand*\maxfn{199} +\AtBeginDocument{% + \settowidth{\footnumwidth}{{\normalfont\footnotesize\maxfn\space\space}} + \deffootnote[\footnumwidth]{\footnumwidth}{1em}{\thefootnotemark\space\space} +} + + +%% ============================================================= +%% ADJUST ENVIRONMENTS: +%% ============================================================= + +% Headings +% (Serifs) +\setkomafont{sectioning}{\normalfont\normalcolor\bfseries} + +% Itemize +\def\labelitemi{--} + +% Quote (smaller) +\newcommand*{\OriginalQuote}{} +\let\OriginalQuote\quote +\renewcommand*{\quote}{\OriginalQuote\small} + +% Quotation (smaller) +\newcommand*{\OriginalQuotation}{} +\let\OriginalQuotation\quotation +\renewcommand*{\quotation}{\OriginalQuotation\small} + +% Description (normal italic) +\setkomafont{descriptionlabel}{\normalfont\itshape} + +\ifcovington +\RequirePackage{covington} +\renewcommand{\p@equation}[1]{(#1)} +\fi + +%% ============================================================= +%% TABLES AND FIGURES: +%% ============================================================= + +%% captionlabel bold +\setkomafont{captionlabel}{\bfseries} + +\ifcaptionp +\RequirePackage[format=plain, + justification=RaggedRight, + singlelinecheck=false + ]{caption} +\fi + +%% ============================================================= +%% BIBLIOGRAPHY: +%% ============================================================= + +% Biblatex +\ifbiblatex + +\ifapa +% Load biblatex with apa style +\RequirePackage[% + style=apa, + natbib=true, + sorting=nyvt, + sortcites=true, + backend=biber] +{biblatex} + +% Map localization files to the apa variants +\DeclareLanguageMapping{english}{english-apa} +\DeclareLanguageMapping{german}{german-apa} +\DeclareLanguageMapping{ngerman}{ngerman-apa} +\DeclareLanguageMapping{austrian}{austrian-apa} +\DeclareLanguageMapping{naustrian}{naustrian-apa} + +% Adapt to the DGPs guidelines: +% 1. Use "et al." (rather than "u.a.") in German +% 2. No comma before final and/& in German +% 3. "forthcoming a" rather than "forthcoming-a" +\DefineBibliographyStrings{german}{% + andothers = {et al\adddot}% +} +\DefineBibliographyExtras{german}{% + \def\finalandcomma{}% +} +\DefineBibliographyStrings{ngerman}{% + andothers = {et al\adddot}% +} +\DefineBibliographyExtras{ngerman}{% + \def\finalandcomma{}% +} +\DefineBibliographyStrings{austrian}{% + andothers = {et al\adddot}% +} +\DefineBibliographyExtras{austrian}{% + \def\finalandcomma{}% +} +\DefineBibliographyStrings{naustrian}{% + andothers = {et al\adddot}% +} +\DefineBibliographyExtras{naustrian}{% + \def\finalandcomma{}% +} +\renewcommand{\apashortdash}{~} + +% Change cite command for integrated csquotes env. +\SetCiteCommand{\parencite} +% Map \citealp to \nptextcite +\let\citealp\nptextcite +% +\else% Unified Style for Linguistics +\RequirePackage[% + style=univie-ling, + sorting=nyvt, + sortcites=true, + backend=biber] +{biblatex} + +% Change cite command for integrated csquotes env. +\SetCiteCommand{\parencite} + +% End of apa condition +\fi + +% End of biblatex condition +\fi + +%% ============================================================= +%% TOC: +%% ============================================================= + +\let\origtableofcontents\tableofcontents +\renewcommand*\tableofcontents{% +\thispagestyle{plain} +\origtableofcontents +\clearpage +} + + +%% ============================================================= +%% X-REFS: +%% ============================================================= + +\ifrefsp + +% Varioref: +\RequirePackage{varioref} +\AtBeginDocument{% + \vref@addto\extrasnaustrian{% + \def\reftextafter{auf der \reftextvario{folgenden}{n\"achsten} Seite}% + \def\reftextfaceafter{auf der gegen\"uberliegenden Seite}% + \def\reftextbefore{auf der \reftextvario{vorhergehenden}{vorangegangenen} Seite}% + \def\reftextfacebefore{auf der gegen\"uberliegenden Seite}% + \def\reftextfaraway[1]{auf S.~\pageref{##1}}% + \def\reftextpagerange[2]{auf S.~\pageref{##1}--\pageref{##2}}% + }% +} + +% Prettyref: +% (varioref-Befehle mit eingebunden) +\RequirePackage{prettyref} +\newrefformat{cha}{\chaptername~\ref{#1}} +\newrefformat{sec}{\GetTranslation{section}~\ref{#1}} +\newrefformat{sub}{\GetTranslation{section}~\ref{#1}} +\newrefformat{anm}{\GetTranslation{footnote}~\ref{#1}} +\newrefformat{app}{\appendixname~\vref{#1}} +\newrefformat{tab}{\tablename~\vref{#1}} +\newrefformat{fig}{\figurename~\vref{#1}} +\newrefformat{exa}{\GetTranslation{example}~\vref{#1}} + +\fi + +%% Finis. diff --git a/Master/texmf-dist/tex/latex/univie-ling/univie-ling.bbx b/Master/texmf-dist/tex/latex/univie-ling/univie-ling.bbx new file mode 100644 index 00000000000..ce4f3cbbd6c --- /dev/null +++ b/Master/texmf-dist/tex/latex/univie-ling/univie-ling.bbx @@ -0,0 +1,843 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% univie-ling.bbx +% +% This file is part of the univie-ling LaTeX package, consisting of: +% -- univie-ling-expose.cls: Class for PhD Research Proposals +% -- univie-ling-paper.cls: Class for student papers +% -- univie-ling-thesis.cls: Class for BA, MA or PhD theses +% -- univie-logo-sw.pdf: University of Vienna logo +% -- univie-ling.bbx: Biblatex bibliography style (this file) +% -- univie-ling.cbx: Biblatex citation style +% +% Author: Jürgen Spitzmüller +% +% The purpose of this file is to provide bibliography formatting +% following the recommendations of (Applied) Linguistics at University +% of Vienna. Those basically draw on the Unified Style Sheet for Linguistics +% (http://linguistlist.org/pubs/tocs/JournalUnifiedStyleSheet2007.pdf) +% +% This file heavily draws on, and was derived from, biblatex-sp-unified.bbx +% https://github.com/semprag/biblatex-sp-unified +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% of this license or (at your option) any later version. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX +% version 2003/12/01 or later. +% +% This work has the LPPL maintenance status "maintained". +% +% This Current Maintainer of this work is Jürgen Spitzmüller. +% Please report issues to https://github.com/jspitz/univie-ling/issues +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\ProvidesFile{univie-ling.bbx}[2018/02/04 v1.0 biblatex bibliography style] + +% Load base style (authoryear) +\RequireBibliographyStyle{authoryear} + +% Bibliography Options +\ExecuteBibliographyOptions{ + labeldateparts, + sorting=nyt, + abbreviate, + dateabbrev=false, + dashed=false, + isbn=false, + eprint=false, + maxbibnames=100 +} + +\@ifpackagelater{biblatex}{2016/09/07} + {} + {\PackageError{biblatex} + {Outdated 'biblatex' package\MessageBreak + Upgrade to biblatex v3.5 (2016/09/07) or later.\MessageBreak + I found: '\csuse{ver@biblatex.sty}'.\MessageBreak + This is a fatal error. I'm aborting now}% + \endinput} + +% Option "issueeditor": Output journal issue editor +% (false by default) +\newtoggle{issueeditor} +\DeclareBibliographyOption{issueeditor}[false]{% + \settoggle{issueeditor}{#1}} + +% +% NAME formatting (general) +% +\renewbibmacro*{name:family}[4]{% + \usebibmacro{name:delim}{#3#1}% + \usebibmacro{name:hook}{#3#1}% + \ifdefvoid{#3} + {} + {\ifcapital + {\mkbibnameprefix{\MakeCapital{#3}}\isdot} + {\mkbibnameprefix{#3}\isdot}% + \ifprefchar{}{\bibnamedelimc}}% + \mkbibnamefamily{#1}\isdot}% + +\renewbibmacro*{name:family-given}[4]{% + \usebibmacro{name:delim}{#3#1}% + \usebibmacro{name:hook}{#3#1}% + \mkbibnamefamily{#1}\isdot + \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot} + \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamegiven{#2}\isdot}% + \ifdefvoid{#3}{}{% + \addspace\mkbibnameprefix{#3}\isdot + \ifprefchar{}{\bibnamedelimc}}} + + +% +% DATE formatting +% +% Include pubstate in label +\DeclareLabeldate{% + \field{pubstate} + \field{date} + \field{year} + \field{eventdate} + \field{origdate} + \field{urldate} + \literal{nodate} +} + +\renewbibmacro*{date+extradate}{% + \iffieldundef{pubstate}{% + \iffieldundef{labelyear}{}{% + \printlabeldateextra% + \iffieldundef{origyear}{}{\addspace\mkbibbrackets{\printorigdate}} + \clearfield{year}% + }% + }{% + \printfield{pubstate}% + \printfield{extrayear}% + \clearfield{pubstate}% + }% +} + +\renewbibmacro*{date}{% + \iffieldundef{month} + {} + {\printdate}}% + +\renewbibmacro*{issue+date}{% + \ifboolexpr{ + test {\iffieldundef{issue}} + and + test {\iffieldundef{month}} + } + {} + {\printtext[parens]{% + \printfield{issue}% + \setunit*{\addspace}% + \printdate}}% + \newunit} + +% +% AUTHOR and EDITOR formats +% +\renewbibmacro*{author}{% + \ifboolexpr{ + test \ifuseauthor + and + not test {\ifnameundef{author}} + } + {\usebibmacro{bbx:dashcheck} + {\bibnamedash} + {\usebibmacro{bbx:savehash}% + \printnames{author}% + \iffieldundef{authortype} + {\newunit}% period instead of space + {\setunit{\addcomma\space}}}% + \iffieldundef{authortype} + {} + {\usebibmacro{authorstrg}% + \newunit}}% period instead of space + {\global\undef\bbx@lasthash + \usebibmacro{labeltitle}% + \newunit}% period instead of space + \usebibmacro{date+extradate}} + +\renewbibmacro*{editor}{% + \usebibmacro{bbx:editor}{editorstrg}} +\renewbibmacro*{editor+others}{% + \usebibmacro{bbx:editor}{editor+othersstrg}} +\renewbibmacro*{bbx:editor}[1]{% + \ifboolexpr{ + test \ifuseeditor + and + not test {\ifnameundef{editor}} + } + {\usebibmacro{bbx:dashcheck} + {\bibnamedash} + {\printnames{editor}% + \setunit{\addspace}% + \usebibmacro{bbx:savehash}}% + \printtext[parens]{\usebibmacro{#1}}% + \clearname{editor}% + \newunit}% period instead of space + {\global\undef\bbx@lasthash + \usebibmacro{labeltitle}% + \newunit}% period instead of space + \usebibmacro{date+extradate}} + +\renewbibmacro*{translator}{% + \usebibmacro{bbx:translator}{translatorstrg}} +\renewbibmacro*{translator+others}{% + \usebibmacro{bbx:translator}{translator+othersstrg}} +\renewbibmacro*{bbx:translator}[1]{% + \ifboolexpr{ + test \ifusetranslator + and + not test {\ifnameundef{translator}} + } + {\usebibmacro{bbx:dashcheck} + {\bibnamedash} + {\printnames{translator}% + \setunit{\addcomma\space}% + \usebibmacro{bbx:savehash}}% + \usebibmacro{translator+othersstrg}% + \clearname{translator}% + \newunit}% period instead of space + {\global\undef\bbx@lasthash + \usebibmacro{labeltitle}% + \newunit}% period instead of space + \usebibmacro{date+extradate}} + + +% +% TITLE formatting +% +\renewbibmacro*{journal}{% + \iffieldundef{journaltitle} + {} + {\printtext{% + \printfield{journaltitle}% + \setunit{\subtitlepunct}% + \printfield{journalsubtitle}}}} + +\newbibmacro*{journal+issuetitle+editor}{% + \usebibmacro{journal}% + \setunit*{\addspace}% + \iffieldundef{series} + {} + {\newunit + \printfield{series}% + \setunit{\addspace}}% + \usebibmacro{volume+number+eid}% + \setunit{\addspace}% + \usebibmacro{issue+date}% + \setunit{\addcolon\space}% + \usebibmacro{issue} + % The following three lines were originally not included inside of + % the journal+issuetitle bibmacro. They have been moved inside of + % this macro in order to allow them to be controlled by the toggle + % `issueeditor` that is defined at the top of this style file. + \iftoggle{issueeditor} + {% + \newunit + \usebibmacro{byeditor+others}% + \newunit} + {}% + \newunit} + +\newbibmacro*{unified:proc-as-article:maintitle}{% + \ifboolexpr{ + test {\iffieldundef{maintitle}} + and + test {\iffieldundef{mainsubtitle}} + } + {} + {\printtext{% + \printfield[maintitle]{maintitle}% + \setunit{\subtitlepunct}% + \printfield[maintitle]{mainsubtitle}}% + \newunit}% + \printfield{maintitleaddon}} + +\newbibmacro*{unified:proc-as-article:booktitle}{% + \ifboolexpr{ + test {\iffieldundef{booktitle}} + and + test {\iffieldundef{booksubtitle}} + } + {} + {\printtext{% + \printfield[booktitle]{booktitle}% + \setunit{\subtitlepunct}% + \printfield[booktitle]{booksubtitle}}% + \newunit}% + \printfield{booktitleaddon}} + +\newbibmacro*{unified:proc-as-article:maintitle+booktitle}{% + \iffieldundef{maintitle} + {} + {\usebibmacro{unified:proc-as-article:maintitle}% + \newunit\newblock} + \usebibmacro{unified:proc-as-article:booktitle}% + \setunit{\addspace}} + +\renewbibmacro*{volume+number+eid}{% + \printfield{volume}% + \printfield[parens]{number}% parentheses instead of dot before issue number + \setunit{\addcomma\space}% + \printfield{eid}} + +\renewbibmacro*{title+issuetitle}{% + \iffieldundef{issuetitle}{}{% + \usebibmacro{issue}% + \adddotspace% + [\bibstring{specialissue}]% + } + \setunit{\addcolon\space}% + \usebibmacro{issue+date}% + \usebibmacro{periodical}% + \setunit*{\addspace}% + \iffieldundef{series} + {} + {\newunit + \printfield{series}% + \setunit{\addspace}}% + \printfield{volume}% + \printfield[parens]{number}% parentheses instead of dot before issue number + \setunit{\addcomma\space}% + \printfield{eid}% + \newunit} + +\newbibmacro*{unified:proc-as-article:volume+number+eid}{% + \printfield[volume:unified:proc-as-article]{volume}% + \printfield[parens]{number}% + \setunit{\addcomma\space}% + \printfield{eid}} + + +% +% DATE formatting +% +\newcommand{\mkbibdateunified}[3]{% Year-Month-Day as input --> xx Month, Year + \iffieldundef{#3} + {} + {\stripzeros{\thefield{#3}}% + \nobreakspace}% + \iffieldundef{#2} + {\iffieldundef{#1}% + {}% + {\stripzeros{\thefield{#1}}}}% + {\mkbibmonth{\thefield{#2}}% + \iffieldundef{#1}% + {}% + {\iffieldundef{#3}% + {}% + {,}% + \space\stripzeros{\thefield{#1}}}% + }% + }% + + +\DefineBibliographyExtras{naustrian}{% + \renewcommand{\mkbibdateunified}[3]{% Year-Month-Day as input --> xx. Month Year + \iffieldundef{#3} + {} + {\stripzeros{\thefield{#3}.}% + \nobreakspace}% + \iffieldundef{#2} + {\iffieldundef{#1}% + {}% + {\stripzeros{\thefield{#1}}}}% + {\mkbibmonth{\thefield{#2}}% + \iffieldundef{#1}% + {}% + {\space\stripzeros{\thefield{#1}}}% + }% + }% +} + + +\DefineBibliographyExtras{ngerman}{% + \renewcommand{\mkbibdateunified}[3]{% Year-Month-Day as input --> xx. Month Year + \iffieldundef{#3} + {} + {\stripzeros{\thefield{#3}.}% + \nobreakspace}% + \iffieldundef{#2} + {\iffieldundef{#1}% + {}% + {\stripzeros{\thefield{#1}}}}% + {\mkbibmonth{\thefield{#2}}% + \iffieldundef{#1}% + {}% + {\space\stripzeros{\thefield{#1}}}% + }% + }% +} + + +\renewbibmacro*{addendum+pubstate}{% + \iffieldundef{addendum}{}{% + \printtext[brackets]{% <- Changed + \printfield{addendum}% + }% + }% + \newunit\newblock + \printfield{pubstate}% +} + +\renewbibmacro*{url+urldate}{% + \printfield{url}% + \iffieldundef{urlyear}% + {}% + {\setunit*{\addspace}% + \printtext[parens]{\bibstring{urlseen} \mkbibdateunified{urlyear}{urlmonth}{urlday}}}% + } + +\renewbibmacro*{series+number}{% + \iffieldundef{series} + {} + {\printtext[parens]{% + \printfield{series}% + \setunit*{\addspace}% + \printfield{number}}% + }} + +\renewbibmacro*{byeditor+others}{% + \ifnameundef{editor} + {} + {\printnames[byeditor]{editor}% + \setunit{\addspace}% + \printtext[parens]{\usebibmacro{editor+othersstrg}}% putting (ed.) or (eds.) after editors of books + \clearname{editor}% + \newunit}% + \usebibmacro{byeditorx}} + +\renewbibmacro*{chapter+pages}{% + \iffieldundef{chapter}% + {}% + {\printfield{chapter}% + \setunit{\addcomma\space}}% + \printfield{pages}% + \newunit} + +\renewbibmacro*{note+pages}{% + \iffieldundef{note}% + {}% + {\printfield{note}% + \setunit{\addcomma\space}}% + \printfield{pages}% + \newunit} + +\renewbibmacro*{publisher+location+date}{% + \iflistundef{location}{\bibstring{nolocation}}{% + \printlist{location}% + } + \iflistundef{publisher} + {\setunit*{\addcomma\space}} + {\setunit*{\addcolon\space}}% + \printlist{publisher}% + \setunit*{\addcomma\space}% + \usebibmacro{date}% + \newunit} + +\newbibmacro*{institution+location+type+date}{% + \iflistundef{location}{\bibstring{nolocation}}{% + \printlist{location}% + } + \iflistundef{institution} + {} + {\setunit*{\addcolon\space}}% + \printlist{institution}% + \setunit{\addspace}% + \printfield{type}% + \setunit*{\addcomma\space}% + \usebibmacro{date}% + \newunit} + +\renewbibmacro*{organization+location+date}{% + \iflistundef{location}{\bibstring{nolocation}}{% + \printlist{location}% + } + \iflistundef{organization} + {\setunit*{\addcomma\space}} + {\setunit*{\addcolon\space}}% + \printlist{organization}% + \setunit*{\addcomma\space}% + \usebibmacro{date}% + \newunit} + +\renewbibmacro*{labeltitle}{% + \iffieldundef{label} + {\iffieldundef{shorttitle} + {\printfield{title}% + \setunit{\addcomma\space}% Here it comes, preparing for the edition + \printfield{edition}% Here's the edition + \clearfield{title}% + \clearfield{edition}}% Clearing the edition field, so it's not printed again below + {\printfield[title]{shorttitle}}} + {\printfield{label}}} + +\renewcommand*{\finalnamedelim}{\addspace\&\addspace} +\renewcommand*{\finallistdelim}{\addspace\&\addspace} + +\renewcommand{\intitlepunct}{\addspace} + +\renewcommand{\subtitlepunct}{\ifpunct{\addspace}{\addcolon\space}} +\renewcommand*{\bibpagespunct}{\newunitpunct} % No comma before pages, just the usual new unit period + +\NewBibliographyString{specialissue} +\NewBibliographyString{nolocation} + +\DefineBibliographyStrings{english}{% + thiscite = {quote}, + nolocation = {n.\,L\adddot}, + urlseen = {accessed}, + edition = {edn\adddot}, + phdthesis = {dissertation}, + specialissue = {\autocap{s}pecial issue} +} + +\DefineBibliographyStrings{ngerman}{% + thiscite = {Zitat}, + nodate = {o.\,J\adddot}, + nolocation = {o.\,O\adddot}, + editor = {Hg\adddot}, + editors = {Hgg\adddot}, + urlseen = {Abruf}, + andothers = {et al\adddot}, + specialissue = {Themenheft} +} + +\DefineBibliographyStrings{german}{% + thiscite = {Zitat}, + nodate = {o.\,J\adddot}, + nolocation = {o.\,O\adddot}, + editor = {Hg\adddot}, + editors = {Hgg\adddot}, + urlseen = {Abruf}, + andothers = {et al\adddot}, + specialissue = {Themenheft} +} + +\DefineBibliographyStrings{naustrian}{% + thiscite = {Zitat}, + nodate = {o.\,J\adddot}, + nolocation = {o.\,O\adddot}, + editor = {Hg\adddot}, + editors = {Hgg\adddot}, + urlseen = {Abruf}, + andothers = {et al\adddot}, + specialissue = {Themenheft} +} + +\DefineBibliographyStrings{austrian}{% + thiscite = {Zitat}, + nodate = {o.\,J\adddot}, + nolocation = {o.\,O\adddot}, + editor = {Hg\adddot}, + editors = {Hgg\adddot}, + urlseen = {Abruf}, + andothers = {et al\adddot}, + specialissue = {Themenheft} +} + + +% +% FIELD FORMATS +% + +\DeclareFieldFormat[article,book,collection,incollection,inproceedings,thesis,unpublished]{titlecase}{\MakeSentenceCase*{#1}}% + +\DeclareFieldFormat[article,inbook,incollection,inproceedings,patent,thesis,unpublished]{title}{#1} + +\DeclareFieldFormat[thesis]{title}{\mkbibemph{#1}} + +\DeclareFieldFormat{pages}{#1} % no pp. prefix, took \mkpageprefix out [kvf] +\DeclareFieldFormat{doi}{% + \ifhyperref + {\href{http://dx.doi.org/#1}{\nolinkurl{http://dx.doi.org/#1}}} + {\nolinkurl{http://dx.doi.org/#1}}} +\DeclareFieldFormat{url}{\url{#1}} + +\DeclareFieldFormat{volume:unified:proc-as-article}{#1} + +\DeclareFieldFormat[periodical]{issuetitle}{#1} + + +% +% DRIVERS +% +\DeclareBibliographyDriver{article}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{bytranslator+others}% + \newunit\newblock + \printfield{version}% + \newunit\newblock +% \usebibmacro{in:}% We don't use "In: " before journal titles + \usebibmacro{journal+issuetitle+editor}% + \newblock% \newblock ensures period before pages + \usebibmacro{note+pages}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{issn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{book}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others/translator+others}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{maintitle+title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \usebibmacro{bytranslator+others}% + \newunit\newblock + \printfield{edition}% + \setunit{\addcomma\space} + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \newunit + \printfield{volumes}% + \setunit{\addspace}% crucial difference from standard.bbx: space and then (Series + number) + \usebibmacro{series+number}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit + \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} + +\DeclareBibliographyAlias{collection}{book} + +\DeclareBibliographyAlias{proceedings}{book} + +\DeclareBibliographyAlias{incollection}{inproceedings} + +\DeclareBibliographyAlias{inbook}{incollection} + +\DeclareBibliographyDriver{inproceedings}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \iffieldundef{issn} + {\usebibmacro{author/translator+others}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \usebibmacro{bytranslator+others}% + \newunit\newblock + \usebibmacro{in:}% + \ifnameundef{editor} + {\setunit{\addspace}} + {\usebibmacro{byeditor+others}\setunit{\addcomma\space}} + \usebibmacro{maintitle+booktitle}% + \setunit{\addcomma\space} + \printfield{edition}% + \setunit{\addcomma\space} + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \setunit{\addcomma\space} + \printfield{volumes}% + \setunit{\addspace}% + \usebibmacro{series+number}% + \setunit{\addcomma\space} + \usebibmacro{chapter+pages}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{publisher+location+date}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}} + {\usebibmacro{author/translator+others}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{bytranslator+others}% + \newunit\newblock + \printfield{version}% + \newunit\newblock + \usebibmacro{unified:proc-as-article:maintitle+booktitle}% + \usebibmacro{unified:proc-as-article:volume+number+eid} + \newunit\newblock% \newblock ensures period before pages + \usebibmacro{note+pages}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{issn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}} + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{thesis}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{institution+location+type+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit + \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{unpublished}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \printfield{howpublished}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{location+date}% + \newunit\newblock + \iftoggle{bbx:url} + {\usebibmacro{url+urldate}} + {}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{periodical}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{editor}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title+issuetitle}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byeditor}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{issn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} + +\endinput diff --git a/Master/texmf-dist/tex/latex/univie-ling/univie-ling.cbx b/Master/texmf-dist/tex/latex/univie-ling/univie-ling.cbx new file mode 100644 index 00000000000..be70b992d91 --- /dev/null +++ b/Master/texmf-dist/tex/latex/univie-ling/univie-ling.cbx @@ -0,0 +1,90 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% univie-ling.cbx +% +% This file is part of the univie-ling LaTeX package, consisting of: +% -- univie-ling-expose.cls: Class for PhD Research Proposals +% -- univie-ling-paper.cls: Class for student papers +% -- univie-ling-thesis.cls: Class for BA, MA or PhD theses +% -- univie-logo-sw.pdf: University of Vienna logo +% -- univie-ling.bbx: Biblatex bibliography style +% -- univie-ling.cbx: Biblatex citation style (this file) +% +% Author: Jürgen Spitzmüller +% +% The purpose of this file is to provide citation formatting +% following the recommendations of (Applied) Linguistics at University +% of Vienna. Those basically draw on the Unified Style Sheet for Linguistics +% (http://linguistlist.org/pubs/tocs/JournalUnifiedStyleSheet2007.pdf) +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% of this license or (at your option) any later version. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX +% version 2003/12/01 or later. +% +% This work has the LPPL maintenance status "maintained". +% +% This Current Maintainer of this work is Jürgen Spitzmüller. +% Please report issues to https://github.com/jspitz/univie-ling/issues +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\ProvidesFile{univie-ling.cbx}[2018/02/04 v1.0 biblatex citation style] + +\RequireCitationStyle{authoryear} + +\ExecuteBibliographyOptions{% + labeldateparts, + uniquename, + uniquelist, + autocite=inline, + sortcites=false, + maxcitenames=2 +} + +\@ifpackagelater{biblatex}{2016/09/07} + {} + {\PackageError{biblatex} + {Outdated 'biblatex' package\MessageBreak + Upgrade to biblatex v3.5 (2016/09/07) or later.\MessageBreak + I found: '\csuse{ver@biblatex.sty}'.\MessageBreak + This is a fatal error. I'm aborting now}% + \endinput} + +\renewbibmacro*{cite:shorthand}{% + \printtext[bibhyperref]{\printfield{shorthand}}} + +\renewbibmacro*{cite:label}{% + \iffieldundef{label} + {\printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}} + {\printtext[bibhyperref]{\printfield{label}}}} + +\renewbibmacro*{cite:labeldate+extradate}{% + \iffieldundef{labelyear} + {} + {\printtext[bibhyperref]{% + \printfield{labelyear}% + \printfield{extradate}}% + \iffieldundef{origyear}{}{\addspace\mkbibbrackets{\printorigdate}}% + }% +} + +\newbibmacro*{cite:extradate}{% + \iffieldundef{extradate} + {} + {\printtext[bibhyperref]{\printfield{extradate}}}} + +\renewcommand*{\nameyeardelim}{\addspace} + +\renewcommand*{\postnotedelim}{\addcolon\space} + +\DeclareFieldFormat{postnote}{#1} +\DeclareFieldFormat{multipostnote}{#1} + +\renewcommand*{\multicitedelim}{\addsemicolon\space} +\renewcommand*{\finalnamedelim}{\addspace\&\addspace} + +\endinput diff --git a/Master/texmf-dist/tex/latex/univie-ling/univielogo-sw.pdf b/Master/texmf-dist/tex/latex/univie-ling/univielogo-sw.pdf new file mode 100644 index 00000000000..6b6844228bb Binary files /dev/null and b/Master/texmf-dist/tex/latex/univie-ling/univielogo-sw.pdf differ -- cgit v1.2.3