summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex/biblatex1.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex/biblatex1.sty')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex/biblatex1.sty38
1 files changed, 30 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex/biblatex1.sty b/Master/texmf-dist/tex/latex/biblatex/biblatex1.sty
index 3e529ac3280..fecfbd515a0 100644
--- a/Master/texmf-dist/tex/latex/biblatex/biblatex1.sty
+++ b/Master/texmf-dist/tex/latex/biblatex/biblatex1.sty
@@ -69,6 +69,13 @@
amsrefs,apacite,babelbib,backref,bibtopic,bibunits,chapterbib,
cite,citeref,drftcite,footbib,inlinebib,jurabib,mcite,mciteplus,
mlbib,multibbl,multibib,natbib,opcit,overcite,splitbib,ucs}%
+ \def\blx@langstrings{}%
+ % Set up sortlocale defaults
+ \ifdefstring\blx@sortlocale{auto}
+ {\ifdef\bbl@main@language% babel or polyglossia is loaded
+ {\edef\blx@sortlocale{\bbl@main@language}}
+ {\def\blx@sortlocale{english}}}
+ {}%
\@ifpackageloaded{polyglossia}
{\ifboolexpr{
not test {\iftoggle{blx@autolangbib}}
@@ -4574,6 +4581,7 @@
\do{langpolish}%
\do{langportuguese}%
\do{langrussian}%
+ \do{langslovene}%
\do{langspanish}%
\do{langswedish}%
\do{fromamerican}%
@@ -4594,6 +4602,7 @@
\do{frompolish}%
\do{fromportuguese}%
\do{fromrussian}%
+ \do{fromslovene}%
\do{fromspanish}%
\do{fromswedish}%
\do{countryde}%
@@ -4711,8 +4720,8 @@
{\letcs\refname{\abx@str @references}}
{\let\refname\@empty}%
\ifcsdef{\abx@str @shorthands}
- {\letcs\losname{\abx@str @shorthands}}
- {\let\losname\@empty}}}
+ {\letcs\biblistname{\abx@str @shorthands}}
+ {\let\biblistname\@empty}}}
\def\blx@defbibstrings@i#1{%
\ifcsdef{abx@lstr@#1}
@@ -5079,6 +5088,7 @@
\csname\blx@thelangenv\expandafter\endcsname
\expandafter{\abx@field@langid}}}}}
{}%
+ \def\blx@langstrings{}%
\def\blx@imc@mainlang{\select@language{\bbl@main@language}}%
\blx@langsetup\bbl@main@language}
{\blx@err@patch{'babel' package}%
@@ -5117,6 +5127,11 @@
\csuse{abx@extras@\abx@field@langid}%
\csuse{abx@strings@\abx@field@langid}}}}}
{}%
+ % polyglossia needs this - it doesn't get the
+ % strings by automatically set for some reason
+ \def\blx@langstrings{%
+ \csuse{abx@extras@\languagename}%
+ \csuse{abx@strings@\languagename}}
\def\blx@imc@mainlang{\select@language{\bbl@main@language}}%
\blx@langsetup\bbl@main@language}
{\blx@err@patch{'polyglossia' package}%
@@ -6285,7 +6300,7 @@
{\endlist}
{\item}
-\defbibenvironment{shorthands}
+\defbibenvironment{shorthand}
{\list{\thefield{shorthand}}{%
\labelwidth\shorthandwidth
\labelsep\biblabelsep
@@ -6640,6 +6655,7 @@
\blx@safe@actives
\setkeys{blx@bhd}{#1}%
\blx@rest@actives
+ \blx@langstrings
\blx@bibheading\blx@theheading\blx@thetitle
\endgroup}
@@ -6792,6 +6808,7 @@
% {<entrykey>,...}
\def\blx@bibliography{%
+ \blx@langstrings
\blx@bibheading\blx@theheading\blx@thetitle
\blx@bibnote\blx@theprenote
\begingroup
@@ -6993,8 +7010,8 @@
\toggletrue{blx@tempa}%
\toggletrue{blx@tempb}%
\letcs\blx@tempa{blx@losh@\the\c@refsection}%
- \def\blx@theheading{shorthands}%
- \def\blx@theenv{shorthands}%
+ \def\blx@theheading{biblist}%
+ \def\blx@theenv{shorthand}%
\let\blx@theprenote\@empty
\let\blx@thepostnote\@empty
\let\blx@thetitle\@empty
@@ -7022,6 +7039,7 @@
\else
\@restonecolfalse
\fi
+ \blx@langstrings
\blx@bibheading\blx@theheading\blx@thetitle
\blx@bibnote\blx@theprenote
\begingroup
@@ -7066,13 +7084,13 @@
\blx@beglangbib
\bibsentence
\blx@pagetracker
- \blx@driver{shorthands}%
+ \blx@driver{shorthand}%
\blx@postpunct
\blx@endlangbib}%
\endgroup}
{}}
-\DeclareBibliographyDriver{shorthands}{%
+\DeclareBibliographyDriver{shorthand}{%
\iffieldundef{shorttitle}
{\printfield{title}}
{\printfield{shorttitle}}}
@@ -8904,7 +8922,11 @@
\protected\long\def\blx@imc@mkbibbold#1{%
\textbf{#1}\blx@imc@setpunctfont\textbf}
-\blx@regimcs{\mkbibquote \mkbibemph \mkbibbold}
+\newrobustcmd*{\mkbibitalic}{\textit}
+\protected\long\def\blx@imc@mkbibitalic#1{%
+ \textit{#1}\blx@imc@setpunctfont\textit}
+
+\blx@regimcs{\mkbibquote \mkbibemph \mkbibbold \mkbibitalic}
\newcommand*{\bibleftparen}{\blx@postpunct(}
\newcommand*{\bibrightparen}{\blx@postpunct)\midsentence}