-
Notifications
You must be signed in to change notification settings - Fork 1
/
localcommands.tex
214 lines (191 loc) · 6.32 KB
/
localcommands.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
% Legally required note on this being an accepted dissertation
\renewcommand{\lsImpressumExtra}{\medskip Submitted in partial fulfillment of
the requirements for the degree \emph{Dr.~phil.} in German Language. Revised
Ph.\,D. thesis, University of Marburg, Department of German Studies and Arts,
2022.\medskip}
% AHL preference 'section' over '§'
% adapted here to German
\renewcommand{\sectref}[1]{Abschnitt~\ref{#1}}
% Author's ORCID
\newcommand*{\orcid}{0000-0002-6023-551X}
% Check and cross mark
\newcommand{\chk}{✔} % Check mark
\newcommand{\crs}{✘} % Cross mark
% Grammatical feature
\newcommand{\feat}[1]{{\textsc{\MakeLowercase{#1}}}}
% Foreign word in text
\newcommand{\fw}[1]{\emph{#1}}
% Gray text
\newcommand{\gr}[1]{\textcolor{gray}{#1}}
% Literally quoted MHG spelling
\newcommand{\lit}[1]{\emph{#1}}
% Normalized MHG spelling
\newcommand{\norm}[1]{\emph{#1}}
% Suppress shorthand field(s) in BibTeX citation on next citation
\newcommand{\nosh}{\AtNextCite{\AtEachCitekey{\clearfield{shorthand}}}}
% Orthography brackets
\newcommand{\orth}[1]{⟨#1⟩}
% % Fake superscripts
% \newcommand{\sscr}[2]{%
% \smash{$\stackrel{%
% \text{%
% \raisebox{-.45ex}[0pt][0pt]{%
% \smaller[2]#2%
% }%
% }%
% }{%
% \text{#1}%
% }$}%
% }
% \newcommand{\sscrit}[2]{%
% \smash{$\stackrel{%
% \text{%
% \raisebox{-.45ex}[0pt][0pt]{%
% \smaller[2]\hspace{.5ex}#2%
% }%
% }%
% }{%
% \text{#1}%
% }$}%
% }
% Introduction/definition of technical term
\newcommand{\term}[1]{{\textsc{\MakeLowercase{#1}}}}
% Titles of monographies
% langsci-unified relies on defaults set by biblatex.def:
% \DeclareFieldFormat{citetitle}{\mkbibemph{#1}} for books
\newcommand{\tit}[1]{{\emph{#1}}}
% Text-style super- and subscript
\let\tsub\textsubscript
\let\tsup\textsuperscript
% Titles of abbreviated works
\newcommand{\CAO}{\tit{CAO}}
\newcommand{\KC}{\tit{KC}}
\newcommand{\REA}{\tit{ReA}}
\newcommand{\REM}{\tit{ReM}}
\newcommand{\WMU}{\tit{WMU}}
% Shorthand for multicol, multirow
\let\mc\multicolumn
\let\mr\multirow
% Annotation macros
\newcommand{\SM}{♂}
\newcommand{\SF}{♀}
\newcommand{\SI}{⚬}
\newcommand{\SX}{?}
\newcommand{\SA}{∗}% {★}
\newcommand{\SMM}{⚣}
\newcommand{\SFF}{⚢}
\newcommand{\SMF}{⚤}
\newcommand{\SII}{⚭}
\newcommand{\subA}{\textsubscript{\SA}}
\newcommand{\subF}{\textsubscript{\SF}}
\newcommand{\subI}{\textsubscript{\SI}}
\newcommand{\subM}{\textsubscript{\SM}}
\newcommand{\subX}{\textsubscript{\SX}}
\newcommand{\subMM}{\textsubscript{\SMM}}
\newcommand{\subFF}{\textsubscript{\SFF}}
\newcommand{\subMF}{\textsubscript{\SMF}}
\newcommand{\subII}{\textsubscript{\SII}}
\newcommand{\MascA}{\textsc{m}\textsubscript{\SA}} % M∗
\newcommand{\MascF}{\textsc{m}\textsubscript{\SF}} % M♀
\newcommand{\MascI}{\textsc{m}\textsubscript{\SI}} % M⚬
\newcommand{\MascM}{\textsc{m}\textsubscript{\SM}} % M♂
\newcommand{\MascX}{\textsc{m}\textsubscript{\SX}} % M?
\newcommand{\FemA}{\textsc{f}\textsubscript{\SA}}
\newcommand{\FemF}{\textsc{f}\textsubscript{\SF}}
\newcommand{\FemI}{\textsc{f}\textsubscript{\SI}}
\newcommand{\FemM}{\textsc{f}\textsubscript{\SM}}
\newcommand{\FemX}{\textsc{f}\textsubscript{\SX}}
\newcommand{\NeutA}{\textsc{n}\textsubscript{\SA}}
\newcommand{\NeutF}{\textsc{n}\textsubscript{\SF}}
\newcommand{\NeutI}{\textsc{n}\textsubscript{\SI}}
\newcommand{\NeutM}{\textsc{n}\textsubscript{\SM}}
\newcommand{\NeutX}{\textsc{n}\textsubscript{\SX}}
\newcommand{\NeutMM}{\textsc{n}\textsubscript{\SMM}}
\newcommand{\NeutMF}{\textsc{n}\textsubscript{\SMF}}
\newcommand{\NeutII}{\textsc{n}\textsubscript{\SII}}
\newcommand{\NullA}{Ø\textsubscript{\SA}}
\newcommand{\NullF}{Ø\textsubscript{\SF}}
\newcommand{\NullI}{Ø\textsubscript{\SI}}
\newcommand{\NullM}{Ø\textsubscript{\SM}}
\newcommand{\NullX}{Ø\textsubscript{\SX}}
\newcommand{\UnknA}{?\textsubscript{\SA}}
\newcommand{\UnknF}{?\textsubscript{\SF}}
\newcommand{\UnknI}{?\textsubscript{\SI}}
\newcommand{\UnknM}{?\textsubscript{\SM}}
\newcommand{\UnknX}{?\textsubscript{\SX}}
% LFG macros
\newcommand{\downfeat}[2]{(↓~{\textsc{#1}})~=~{\textsc{#2}}} % (↓X) = Y
\newcommand{\downs}[1]{(↓~{\textsc{#1}})} % (↓X)
\newcommand{\elem}[1]{↓~$\in$~(↑~{\textsc{#1}})} % ↓ ∊ (↑X)
\newcommand{\pass}[1]{(↑~{\textsc{#1}})~=~↓} % (↑X) = ↓
\newcommand{\req}{=\textsubscript{c}} % =_c
\newcommand{\uncertain}[2]{((\textsc{#1}~↑)~{\textsc{#2}})} % ((X↑) Y)
\newcommand{\updown}{↑~=~↓} % ↑ = ↓
\newcommand{\updownelem}{↓~$\in$~↑} % ↓ ∊ ↑
\newcommand{\upfeat}[2]{(↑~{\textsc{#1}})~=~{\textsc{#2}}} % (↑X) = Y
\newcommand{\ups}[1]{(↑~{\textsc{#1}})} % (↑X)
\newcommand{\xbar}[1]{#1′} % X'
\newcommand{\xhead}[1]{#1⁰} % X⁰
% Secondary object and oblique argument
\newcommand{\SObj}[1]{%
\notblank{#1}{%
\textsc{obj}\textsubscript{\normalfont #1}%
}{%
\textsc{obj}\textsubscript{\normalfont θ}%
}%
}
\newcommand{\Oblq}[1]{%
\notblank{#1}{%
\textsc{obl}\textsubscript{\normalfont #1}%
}{%
\textsc{obl}\textsubscript{\normalfont θ}%
}%
}
% A-structure rules: \astruct[1]{2}{3} > '2 <3> 1'
\newcommand{\astruct}[3][]{\wdef{#2~⟨\,#3\,⟩%
\notblank{#1}{%
\enspace#1%
}{}%
}}
% Feature annotation above (for use in TREES); no value in [] prints ↑ = ↓
\newcommand{\anno}[2][\updown{}]{%
$\overset{\text{#1}}{\text{#2}}$%
}
% tikz
% Alias for tikzmark's \subnode[]{}{} to spare lots of empty brackets for nodes
% not containing any text anyway
\newcommand{\mysn}[1]{\subnode{#1}{}}
% tikz
% Definition copied from pgfsys-common-pdf-via-dvi.def
% Compare http://tex.stackexchange.com/q/229500 and comments!
% This is currently needed to make tikzmark compile with xelatex
\makeatletter
\def\pgfsys@hboxsynced#1{%
{%
\pgfsys@beginscope%
\setbox\pgf@hbox=\hbox{%
\hskip\pgf@pt@x%
\raise\pgf@pt@y\hbox{%
\pgf@pt@x=0pt%
\pgf@pt@y=0pt%
\special{pdf: content q}%
\pgflowlevelsynccm%
\pgfsys@invoke{q -1 0 0 -1 0 0 cm}%
\special{pdf: content -1 0 0 -1 0 0 cm q}% translate to original coordinate system
\pgfsys@invoke{0 J [] 0 d}% reset line cap and dash
\wd#1=0pt%
\ht#1=0pt%
\dp#1=0pt%
\box#1%
\pgfsys@invoke{n Q Q Q}%
}%
\hss%
}%
\wd\pgf@hbox=0pt%
\ht\pgf@hbox=0pt%
\dp\pgf@hbox=0pt%
\pgfsys@hbox\pgf@hbox%
\pgfsys@endscope%
}%
}
\makeatother