-
Notifications
You must be signed in to change notification settings - Fork 0
/
grammar-references.tex
238 lines (190 loc) · 8.08 KB
/
grammar-references.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
%% -*- coding:utf-8 -*-
% \documentclass[output=book
% ,smallfont
% ,biblatex
% ,babelshorthands
% ,newtxmath
% ,uniformtopskip
% ,chinesefont % for references from headless book raffelsiefen.tex
% ]{langscibook}
\documentclass{scrbook}
\usepackage[
natbib=true,
style=langsci-unified,
citestyle=langsci-unified,
datamodel=langsci, % add authauthor and autheditor as possible fields to bibtex entries
%refsection=chapter,
maxbibnames=99,
uniquename=false,
mincrossrefs=99,
maxcitenames=2,
isbn=false,
autolang=hyphen,
language=english,
backend=biber,
indexing=cite
]{biblatex}
% If the user provided a shortauthor in the bibtex entry, we use the authentic author (as with the
% authorindex package) if it is defined, otherwise we use the author.
% This gets F/T as shorthand right and puts the guys in the index.
% This fails for \citeauthor. See fix in locallangscifixes.tex
\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.
{}}
\apptocmd{\thebibliography}{%
\clubpenalty\@M
\@clubpenalty\clubpenalty
\widowpenalty\@M
}
{}{}
\usepackage{fontspec}
\setmonofont[
% Ligatures={TeX},% not supported by ttf
Scale=MatchLowercase,
BoldFont = DejaVuSansMono-Bold.ttf ,
SlantedFont = DejaVuSansMono-Oblique.ttf ,
BoldSlantedFont = DejaVuSansMono-BoldOblique.ttf
]{DejaVuSansMono.ttf}
\setsansfont[
%Ligatures={TeX,Common},% not supported by ttf
Scale=MatchLowercase,
BoldFont = Arimo-Bold.ttf,
ItalicFont = Arimo-Italic.ttf,
BoldItalicFont = Arimo-BoldItalic.ttf
]{Arimo-Regular.ttf}
\setmainfont
[
Ligatures={TeX,Common},
PunctuationSpace=0,
Numbers={Proportional},
BoldFont = LibertinusSerif-Semibold.otf,
ItalicFont = LibertinusSerif-Italic.otf,
BoldItalicFont = LibertinusSerif-SemiboldItalic.otf,
BoldSlantedFont = LibertinusSerif-Semibold.otf,
SlantedFont = LibertinusSerif-Regular.otf,
SlantedFeatures = {FakeSlant=0.25},
BoldSlantedFeatures = {FakeSlant=0.25},
SmallCapsFeatures = {FakeSlant=0},
]
{LibertinusSerif-Regular.otf}
\AtEndPreamble{
\newfontfamily\cn
[
Scale=MatchLowercase,
BoldFont=SourceHanSerif-Bold.otf,
Path=fonts/
]
{SourceHanSerif-Regular.otf}
}
\usepackage{ifthen}
\provideboolean{draft}
%\setboolean{draft}{true}
\setboolean{draft}{false}
\usepackage{etoolbox}
%\newtoggle{draft}\toggletrue{draft}
\newtoggle{draft}\togglefalse{draft}
% put all additional commands you need in the
% following files. If you do not know what this might
% mean, you can safely ignore this section
%\input{localmetadata.tex}
\title{Grammar: Verified references}
\author{Stefan Müller}
%\BackTitle{Grammar: Verified references}
%\BackBody{
%}
%\dedication{For me}
%\renewcommand{\lsISBNdigital}{978-3-96110-273-0}
%\renewcommand{\lsISBNhardcoverOne}{978-3-96110-075-0}
%\renewcommand{\lsISBNhardcoverTwo}{978-3-96110-076-7}
% \renewcommand{\lsISBNsoftcoverOne}{978-3-96110-203-7} % 3rd edition
% \renewcommand{\lsISBNsoftcoverTwo}{978-3-96110-204-4} % 3rd edition
% \renewcommand{\lsISBNhardcover}{978-3-96110-277-8} % 4th ed., one-volume ISBN
% \renewcommand{\lsISBNsoftcover}{978-3-96110-274-7} % 4th ed., one-volume ISBN
% \renewcommand{\lsBookDOI}{10.5281/zenodo.3992307} % 4th edition
% \renewcommand{\lsSeries}{tbls} % use lowercase acronym, e.g. sidl, eotms, tgdi
% \renewcommand{\lsSeriesNumber}{1} %will be assigned when the book enters the proofreading stage
% \renewcommand{\lsID}{25} % github, paperhive
% \renewcommand{\lsURL}{http://langsci-press.org/catalog/book/287} % contact the coordinator for the right number
%\renewcommand{\lsSeries}{guidelines}
\input{localcommands.tex}
\input{localpackages.tex}
\hypersetup{pdfborder={0 0 0}} % for hyperref
% https://tex.stackexchange.com/a/111851/18561
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\step[fieldsource=checked]
\step[fieldset=usera,origfieldval]
}
}
}
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\step[fieldsource=urldate]
\step[fieldset=userb,origfieldval]
}
}
}
%\DeclareFieldFormat{usera}{\red{#1}}
\AtEveryBibitem{
% not checked = red, checked = green
%\csappto{blx@bbx@\thefield{entrytype}}{\iffieldundef{usera}{\space \red{Not
%checked!}}{\space\green{\printfield{usera}}}}
%
% just not checked = red
\csappto{blx@bbx@\thefield{entrytype}}{\iffieldundef{usera}{\space \color{red}{Not checked!}}{}}
% url but no urldate
\csappto{blx@bbx@\thefield{entrytype}}{\iffieldundef{url}{}{\iffieldundef{userb}{\space \color{red}{access date missing}{}}}}
% series but no number
% does not work since "none" values are dropped and not contained in the bibliography drawn from handbook.bcf
%\csappto{blx@bbx@\thefield{entrytype}}{\iffieldundef{series}{}{\iffieldundef{number}{\space \red{number is missing}}{}}}
}
\bibliography{grammar}
%\bibliography{test.bib}
\begin{document}
\maketitle
\chapter*{Preface}
In the 1990ies I ran into a book and wondered why it was there: \citew{GEFO87a-u}. It was a
collection of references on Natural Language Processing in the 1980s. Now I compiled a similar
list. The following several hundered pages are the references from the HPSG handbook
\citep{HPSGHandbook}, my text book on grammatical theory \citep{MuellerGT-Eng} and some other books
I wrote or coedited \citep*{MuellerGermanic,MOeDanish,FSM2022a-ed}. The
references we got for the handbook chapters were of low quality and DOIs were often missing. This
also applied to my chapters. The reason probably is that collections of papers take a long time till
publication, drafts from various publications stages circulate in the net and hence various
publication years, page numbers and various orders of editors or even totally differeing sets of
editors are recorded on papers. So for the publication of the HPSG handbook we manually checked all
(!) references. I also checked all the references in my grammatical theory text book although I
believed that the quality of those was quite good. I found mistakes \ldots.
So this document is a printout of the BibTeX databases of the respective books in the Generic Style
Sheet for Linguistics in the version used by Language Science Press.
\input{count.txt} items, \pageref{lastpage} pages.
I hope it is useful.
I want to thank Elisabeth Eberle, Luisa Kalvelage, and David Müller for help with verifying the
\hologo{BibTeX} entries.
\mainmatter
\nocite{*}
\printbibliography
\label{lastpage}
\end{document}