-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbiblatex.tex
33 lines (29 loc) · 965 Bytes
/
biblatex.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
% See https://tex.stackexchange.com/questions/469555/unicode-u301-error-in-biblatex-but-not-in-main-text-i
\DeclareDatafieldSet{setall}{
\member[datatype=literal]
\member[datatype=name]
\member[field=journal]% journal is special since it is
% actually journaltitle
}
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map[overwrite, foreach={setall}]{
% \`{\i}
\step[fieldsource=\regexp{$MAPLOOP},
match=\regexp{\x{0131}\x{0300}},
replace=\regexp{\x{00EC}}]
% \'{\i}
\step[fieldsource=\regexp{$MAPLOOP},
match=\regexp{\x{0131}\x{0301}},
replace=\regexp{\x{00ED}}]
% \^{\i}
\step[fieldsource=\regexp{$MAPLOOP},
match=\regexp{\x{0131}\x{0302}},
replace=\regexp{\x{00EE}}]
% \"{\i}
\step[fieldsource=\regexp{$MAPLOOP},
match=\regexp{\x{0131}\x{0308}},
replace=\regexp{\x{00EF}}]
}
}
}