-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathlocaltemporaryfixes.tex
86 lines (75 loc) · 3.24 KB
/
localtemporaryfixes.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
%% -*- coding:utf-8 -*-
% St. Mü. 13.06.2021
%
% This is a file containing temporary fixes.
%
% They should be removed for further releases when the packages have been updated.
%
\makeatletter
% fix for https://github.com/plk/biblatex/issues/1149
% https://tex.stackexchange.com/q/600943/35864
% remove this when biblatex is updated to v3.17
\renewbibmacro*{related:default}[1]{%
\entrydata*{#1}{%
\usedriver
{\ifnameundef{savedauthor}
{\ifnameundef{savededitor}
{}
{\ifnamesequal{editor}{savededitor}
{\clearname{editor}}
{}}}
{\ifnamesequal{author}{savedauthor}
{\clearname{author}}
{}}%
\DeclareNameAlias{sortname}{default}%
% from authortitle and authoryear
\ifbibmacroundef{bbx:dashcheck}
{}
{\renewbibmacro*{bbx:dashcheck}[2]{##2}}%
% authoryear
\ifbibmacroundef{labeltitle}
{}
{\renewbibmacro*{labeltitle}{}}%
\ifbibmacroundef{date+extradate}
{}
{\renewbibmacro*{date+extradate}{}%
\renewbibmacro*{bbx:ifmergeddate}{\@secondoftwo}}%
\renewbibmacro*{pageref}{}%
\renewbibmacro*{related:init}{}}
{\thefield{entrytype}}}}
\makeatother
% This should go to the langsci citation file langsci-unified.cbx
\DeclareCiteCommand{\citeauthor}
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\printtext[bibhyperref]{\printnames{labelname}}}
{\multicitedelim}
{\usebibmacro{postnote}}
% This should be in langscibook.cls
% Necessary for Tsujii, Jun’ichi
\renewbibmacro*{citeindex}{%
\ifciteindex
{\iffieldequalstr{labelnamesource}{shortauthor} % If biblatex uses shortauthor as the label of a bibitem
{\ifnameundef{authauthor} % we check whether there is something in authauthor
{\indexnames{author}} % if not, we use author
{\indexnames{authauthor}}} % if yes, we use authauthor
{\iffieldequalstr{labelnamesource}{author} % if biblatex uses author we similarly test for
% authauthor and use this field
{\ifnameundef{authauthor}% if defined use authauthor
{\indexnames{author}}
{\indexnames{authauthor}}} % if defined use this field
% same for editor
{\iffieldequalstr{labelnamesource}{shorteditor} % If biblatex uses shorteditor as the label of a bibitem
{\ifnameundef{autheditor} % we check whether there is something in autheditor
{\indexnames{editor}} % if not, we use editor
{\indexnames{autheditor}}} % if yes, we use autheditor
{\iffieldequalstr{labelnamesource}{editor} % if biblatex uses editor we similarly test for
% auteditor and use this field
{\ifnameundef{autheditor}% if defined use autheditor
{\indexnames{editor}}
{\indexnames{autheditor}}}} % if defined use this field
{\indexnames{labelname}}}}} % as a fallback we index on whatever biblatex used.
{}}
%\renewcommand{\itsdb}{}