198 lines
4.3 KiB
TeX
198 lines
4.3 KiB
TeX
% Schrift auf Times New Roman (auskommentiert, aktivieren bei Bedarf)
|
|
%\usepackage{fontspec}
|
|
\setmainfont{Times New Roman}
|
|
|
|
% 1,5facher Zeilenabstand
|
|
\usepackage{setspace}
|
|
\onehalfspacing
|
|
% Einrücken Absatz
|
|
\setlength{\parindent}{0pt}
|
|
% Abstand zwischen 2 Absätzen
|
|
\setlength{\parskip}\medskipamount
|
|
|
|
% rechtsbündig
|
|
%\raggedright
|
|
% Deaktiviert die Silbentrennung (optional, auskommentiert)
|
|
%\hyphenpenalty=10000
|
|
%\exhyphenpenalty=10000
|
|
|
|
% Pakete laden
|
|
\usepackage{csquotes}
|
|
\usepackage[
|
|
backend=biber,
|
|
style=authortitle-ibid,
|
|
autocite=footnote,
|
|
ibidtracker=true
|
|
]{biblatex}
|
|
\usepackage[ngerman]{varioref}
|
|
\usepackage[hidelinks]{hyperref}
|
|
\usepackage{cleveref}
|
|
|
|
% ibidem-Tracker setzen
|
|
\DefineBibliographyStrings{ngerman}{
|
|
ibidem = {ebd.}
|
|
}
|
|
|
|
% Namen als "Vorname Nachname" ausgeben
|
|
%\DeclareNameAlias{author}{given-family}
|
|
%\DeclareNameAlias{editor}{given-family}
|
|
|
|
% Trennung mehrerer Namen mit Schrägstrich
|
|
\renewcommand*\multinamedelim{\,/\ }
|
|
\renewcommand*\finalnamedelim{\,/\ }
|
|
|
|
% Titel und Untertitel formatieren
|
|
\DeclareFieldFormat{title}{\mkbibemph{#1\adddot}}
|
|
\DeclareFieldFormat{subtitle}{\addspace#1\adddot}
|
|
\renewcommand{\subtitlepunct}{\addperiod\space}
|
|
|
|
% Herausgeber:innen kennzeichnen
|
|
\DefineBibliographyStrings{ngerman}{%
|
|
editor = {(Hg.)},
|
|
editors = {(Hg.)},
|
|
byeditor = {hg\adddot},
|
|
}
|
|
|
|
\renewbibmacro*{byeditor+others}{%
|
|
\ifnameundef{editor}
|
|
{}
|
|
{\printnames{editor}%
|
|
\setunit{\addspace}%
|
|
\printtext{\mkbibparens{\bibstring{editor}}}%
|
|
\newunit}%
|
|
}
|
|
|
|
% Anpassung des 'in:' Makrospagetotal
|
|
\renewbibmacro{in:}{%
|
|
\printtext{\bibstring{in}\space}}
|
|
|
|
% Verlag entfernen
|
|
\AtEveryBibitem{%
|
|
\clearfield{publisher}%
|
|
}
|
|
|
|
% Anpassung der Orts- und Jahresangaben
|
|
\AtEveryBibitem{%
|
|
\iflistundef{location}{%
|
|
\def\mylocation{, \mkbibbrackets{o\adddot O\adddot}}%
|
|
}{%
|
|
\def\mylocation{\printlist{location}}%
|
|
}%
|
|
\iffieldundef{year}{%
|
|
\def\myyear{ \mkbibbrackets{o\adddot J\adddot}}%
|
|
}{%
|
|
\def\myyear{\printfield{year}}%
|
|
}%
|
|
}
|
|
|
|
\renewbibmacro*{publisher+location+date}{%
|
|
\mylocation%
|
|
\setunit{\addspace}%
|
|
\myyear%
|
|
\newunit}
|
|
|
|
% Auflage mit "Aufl." ausgeben
|
|
\DeclareFieldFormat{edition}{#1.\addspace Aufl\adddot}
|
|
|
|
% Auflage nur angeben, wenn vorhanden
|
|
\AtEveryBibitem{%
|
|
\ifboolexpr{
|
|
test {\iffieldundef{edition}}
|
|
}{%
|
|
\clearfield{edition}%
|
|
}{}%
|
|
}
|
|
|
|
% Gesamtseitenzahl mit "S." ausgeben
|
|
\DeclareFieldFormat{pagetotal}{#1\addspace S\adddot}
|
|
|
|
% Anpassung des 'series+number' Makros
|
|
\renewbibmacro{series+number}{%
|
|
\ifentrytype{book}{%
|
|
\iffieldundef{series}{}{%
|
|
\setunit{\addspace}%
|
|
\printtext{(%
|
|
\printfield{series}%
|
|
\iffieldundef{number}
|
|
{}
|
|
{\addspace\printfield{number}}%
|
|
)}%
|
|
}%
|
|
}{}%
|
|
}
|
|
|
|
% Definieren der Trennzeichen für Mehrfachzitate
|
|
\DeclareDelimFormat{multicitedelim}{\addsemicolon\space}
|
|
\DeclareDelimFormat{finalcitedelim}{\addsemicolon\space}
|
|
|
|
% Weitere Anpassungen für Internetquellen
|
|
% Datum für online-Einträge entfernen
|
|
\AtEveryBibitem{%
|
|
\ifentrytype{online}{%
|
|
\clearfield{year}%
|
|
\clearfield{date}%
|
|
}{}%
|
|
}
|
|
|
|
% Formatierung des url-Feldes mit Hyperlink
|
|
\DeclareFieldFormat{url}{\url{#1}}
|
|
|
|
% Formatierung des urldate-Feldes
|
|
\DeclareFieldFormat{urldate}{%
|
|
\mkbibparens{Aufruf: #1}}
|
|
|
|
\DeclareBibliographyDriver{book}{%
|
|
%\usebibmacro{begentry}%
|
|
\ifnameundef{author}
|
|
{}% Wenn kein Autor vorhanden ist, nichts tun
|
|
{%
|
|
\printnames{author}%
|
|
\setunit{:\space}%
|
|
}%
|
|
\printfield{title}%
|
|
\space%
|
|
\printfield{subtitle}%
|
|
\adddot\space%
|
|
\usebibmacro{series+number}%
|
|
\setunit{\addcomma\space}%
|
|
\printfield{edition}%
|
|
\setunit{\addcomma\space}%
|
|
\usebibmacro{publisher+location+date}%
|
|
\newunit\newblock%
|
|
\printfield{pagetotal}%
|
|
\adddot%
|
|
\usebibmacro{finentry}%
|
|
}
|
|
|
|
\DeclareBibliographyDriver{inbook}{%
|
|
%\usebibmacro{begentry}%
|
|
\ifnameundef{author}
|
|
{}% Wenn kein Autor vorhanden ist, nichts tun
|
|
{%
|
|
\printnames{author}%
|
|
\setunit{:\space}%
|
|
}%
|
|
\printfield{title}%
|
|
\setunit{\addcomma\space}%
|
|
\usebibmacro{publisher+location+date}%
|
|
\setunit{\addcomma\space In:\space}%
|
|
\printfield{booktitle}%
|
|
\setunit{\addcomma\space}%
|
|
\newunit\newblock%
|
|
\printfield{pages}%
|
|
\adddot%
|
|
\usebibmacro{finentry}%
|
|
}
|
|
|
|
% Bibliographietreiber für online-Einträge anpassen
|
|
\DeclareBibliographyDriver{online}{%
|
|
\printnames{author}%
|
|
\setunit{:\space}%
|
|
\printfield{title}%
|
|
\adddot\space%
|
|
\printfield{url}%
|
|
\setunit{\addspace}%
|
|
\printurldate%
|
|
\adddot%
|
|
\usebibmacro{finentry}%
|
|
} |