summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/biblatex-contrib/biblatex-trad/biblatex-trad.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/biblatex-contrib/biblatex-trad/biblatex-trad.tex')
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-trad/biblatex-trad.tex187
1 files changed, 162 insertions, 25 deletions
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-trad/biblatex-trad.tex b/macros/latex/contrib/biblatex-contrib/biblatex-trad/biblatex-trad.tex
index 5971cd93a1..f5eae36bdb 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-trad/biblatex-trad.tex
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-trad/biblatex-trad.tex
@@ -1,28 +1,161 @@
-% TEX root = path/to/root_file.tex
-% !TEX program = arara
-% !TEX encoding = utf8
-% !TEX spellcheck = en_GB
-% arara: pdflatex: {synctex: true}
-%: Start Header
-\documentclass{ltxdockit}[2011/03/25]
-\usepackage{btxdockit}
+\documentclass{article}
\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
\usepackage[british]{babel}
\usepackage[strict]{csquotes}
-\usepackage{libertine}
-\usepackage[scaled=0.8]{beramono}
+\usepackage[useregional]{datetime2}
+\usepackage{libertinus}
+\usepackage[scaled=0.78]{beramono}
\usepackage{microtype}
+\usepackage{multicol}
+\usepackage{ragged2e}
+\usepackage{btxdockit}
+
+\hypersetup{%
+ colorlinks=true,
+ allcolors=spot,
+ bookmarksopen=false,
+ bookmarksnumbered=false,
+ plainpages=false}
+
+\definecolor{spot}{rgb}{0,0.2,0.6}
+
\lstset{basicstyle=\ttfamily,keepspaces=true}
-\KOMAoptions{numbers=noenddot}
-\addtokomafont{paragraph}{\spotcolor}
-\addtokomafont{section}{\spotcolor}
-\addtokomafont{subsection}{\spotcolor}
-\addtokomafont{subsubsection}{\spotcolor}
-\addtokomafont{descriptionlabel}{\spotcolor}
-\pretocmd{\cmd}{\sloppy}{}{}
-\pretocmd{\bibfield}{\sloppy}{}{}
-\pretocmd{\bibtype}{\sloppy}{}{}
+\makeatletter
+% this is taken from ltxdockit.cls, which is not loaded
+\newrobustcmd*{\fnurl}[1][]{\hyper@normalise\ltd@fnurl{#1}}
+\def\ltd@fnurl#1#2{\footnote{#1\hyper@linkurl{\Hurl{#2}}{#2}}}
+
+\newrobustcmd*{\email}{\hyper@normalise\ltd@email}
+\def\ltd@email#1{\href{mailto:#1}{#1}}
+
+% title
+\providecommand*{\titlepage}{}
+\providecommand*{\titlefont}{}
+\renewrobustcmd*{\titlepage}[1]{\setkeys{ltd@ttp}{#1}}
+\renewcommand*{\titlefont}{\bfseries}
+\define@key{ltd@ttp}{title}{\def\ltd@title@title{#1}}
+\define@key{ltd@ttp}{subtitle}{\def\ltd@title@subtitle{#1}}
+\define@key{ltd@ttp}{url}{\def\ltd@title@url{#1}}
+\define@key{ltd@ttp}{author}{\def\ltd@title@author{#1}}
+\define@key{ltd@ttp}{email}{\def\ltd@title@email{#1}}
+\define@key{ltd@ttp}{revision}{\def\ltd@title@revision{#1}}
+\define@key{ltd@ttp}{date}{\def\ltd@title@date{#1}}
+
+\providecommand*{\printtitlepage}{}
+\renewrobustcmd*{\printtitlepage}{%
+ \begingroup
+ \centering\titlefont
+ \begingroup\LARGE
+ \ifundef\ltd@title@url
+ {\ltd@title@title}
+ {\href{\ltd@title@url}{\ltd@title@title}}%
+ \par
+ \endgroup
+ \vspace{0.25\baselineskip}
+ \begingroup\large
+ \ltd@title@subtitle\par
+ \endgroup
+ \expandafter\url\expandafter{\ltd@title@url}\par
+ \begin{multicols}{2}
+ \raggedleft
+ \ltd@title@author\par
+ \expandafter\email\expandafter{\ltd@title@email}\par
+ \raggedright
+ Version \ltd@title@revision\par\ltd@title@date
+ \end{multicols}
+ \endgroup}
+
+
+\renewcommand\tableofcontents{%
+ \pdfbookmark[1]{\contentsname}{contents}%
+ \section*{\contentsname
+ \@mkboth{%
+ \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
+ \@starttoc{toc}%
+ }
+\def\@starttoc#1{%
+ \begingroup
+ \begin{multicols}{2}
+ \makeatletter
+ \RaggedRight
+ \@input{\jobname.#1}%
+ \if@filesw
+ \expandafter\newwrite\csname tf@#1\endcsname
+ \immediate\openout \csname tf@#1\endcsname \jobname.#1\relax
+ \fi
+ \end{multicols}
+ \@nobreakfalse
+ \endgroup}
+
+\let\accentcolour\spotcolor
+
+\newcommand*{\allsectionsfont}{\sffamily\accentcolour}
+
+\renewcommand\section{\@startsection {section}{1}{\z@}%
+ {-3.5ex \@plus -1ex \@minus -.2ex}%
+ {2.3ex \@plus.2ex}%
+ {\normalfont\Large\bfseries\allsectionsfont}}
+\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
+ {-3.25ex\@plus -1ex \@minus -.2ex}%
+ {1.5ex \@plus .2ex}%
+ {\normalfont\large\bfseries\allsectionsfont}}
+\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
+ {-3.25ex\@plus -1ex \@minus -.2ex}%
+ {1.5ex \@plus .2ex}%
+ {\normalfont\normalsize\bfseries\allsectionsfont}}
+\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
+ {3.25ex \@plus1ex \@minus.2ex}%
+ {-1em}%
+ {\normalfont\normalsize\bfseries\allsectionsfont}}
+\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
+ {3.25ex \@plus1ex \@minus .2ex}%
+ {-1em}%
+ {\normalfont\normalsize\bfseries\allsectionsfont}}
+
+% from KOMA-Script
+\newcommand*{\@list@extra}{%
+ \ifdim\parskip>\z@
+ \topsep\z@
+ \parsep\parskip
+ \itemsep\z@
+ \fi
+}
+\appto\@listi{\@list@extra}
+\appto\@listii{\@list@extra}
+\appto\@listiii{\@list@extra}
+\appto\@listiv{\@list@extra}
+\appto\@listv{\@list@extra}
+\appto\@listvi{\@list@extra}
+\makeatother
+
+\newrobustcmd*{\tex}{\TeX}
+\newrobustcmd*{\etex}{\mbox{e-TeX}}
+\newrobustcmd*{\pdftex}{pdf\-\tex}
+\newrobustcmd*{\xetex}{Xe\-\tex}
+\newrobustcmd*{\luatex}{Lua\-\tex}
+\newrobustcmd*{\latex}{\LaTeX}%{La\kern-0.07em TeX}
+\newrobustcmd*{\pdflatex}{pdf\-\latex}
+\newrobustcmd*{\xelatex}{Xe\-\latex}
+\newrobustcmd*{\lualatex}{Lua\-\latex}
+\newrobustcmd*{\miktex}{Mik\-\tex}
+\newrobustcmd*{\texlive}{\tex~live}
+\newrobustcmd*{\bibtex}{Bib\kern-0.07em TeX}
+\newrobustcmd*{\lppl}{\latex{} Project Public License}
+
+\renewcommand*{\verbatimfont}{\ttfamily}
+\renewcommand*{\displayverbfont}{\ttfamily}
+\renewcommand*{\marglistfont}{\accentcolour\sffamily\small}
+\renewcommand*{\margnotefont}{\sffamily\small}
+\renewcommand*{\optionlistfont}{\accentcolour\sffamily\displayverbfont}
+\renewcommand*{\ltxsyntaxfont}{\ttfamily}
+\renewcommand*{\ltxsyntaxlabelfont}{\accentcolour\displayverbfont}
+\renewcommand*{\changelogfont}{\normalfont}
+\renewcommand*{\changeloglabelfont}{\accentcolour\sffamily\bfseries}
+\newcommand*{\stylelistlabelfont}{\accentcolour\sffamily\small}
+\newcommand*{\bibfieldformatfont}{\sffamily}
+\newcommand*{\bibfieldformatlabelfont}{\accentcolour\bibfieldformatfont\small}
\MakeAutoQuote*{<}{>}
@@ -30,11 +163,11 @@
\titlepage{%
title={The \sty{biblatex-trad} Package},
subtitle={Traditional bibliography styles for \sty{biblatex}},
- url={},
+ url={https://github.com/moewew/biblatex-trad/},
author={Marco Daniel\\Moritz Wemheuer},
- email={},
- revision={0.4a},
- date={17th February 2018}}
+ email={mwemheu@posteo.de},
+ revision={0.5},
+ date={\DTMDate{2021-03-06}}}
\hypersetup{%
pdftitle={The biblatex-trad Package},
@@ -77,7 +210,7 @@ The package is motivated by a question at \tex{} -- \latex Stack Exchange
\subsection{Requirements}
The use of the styles requires the \sty{biblatex} package.
-It is tested with the current version of \sty{biblatex} (at the time of writing that is 3.10).
+It is tested with the current version of \sty{biblatex} (at the time of writing that is v3.16).
Care has been taken to retain backwards compatibility with older versions,
but please do not expect the styles to work flawlessly with ancient versions of \sty{biblatex}.
Note also that the style may fail silently with older versions, it need not necessarily emit noisy
@@ -89,7 +222,7 @@ Some features of this style will only work properly if you use the default Biber
\subsection{License}
-Copyright \textcopyright\ 2012--2015 Marco Daniel, 2016--2018 Moritz Wemheuer. Permission is granted to copy, distribute and\slash or modify this software under the terms of the \lppl, version 1.3c.\fnurl{http://www.latex-project.org/lppl.txt}
+Copyright \textcopyright\ 2012--2015 Marco Daniel, 2016--2021 Moritz Wemheuer. Permission is granted to copy, distribute and\slash or modify this software under the terms of the \lppl, version 1.3c.\fnurl{http://www.latex-project.org/lppl.txt}
\subsection{Feedback}\label{subsec:int:feb}
@@ -133,6 +266,10 @@ files handle those fields.
\section{Revision History}\label{apx:log}
\begin{changelog}
+\begin{release}{0.5}{2021-03-06}
+\item Synced with \sty{biblatex} v3.16 (2020-12-31)
+\end{release}
+
\begin{release}{0.4a}{2018-02-17}
\item Fixed alphabetic labels for names with prefix (\enquote{von} part) (\gitissuelink{34})
\end{release}