I have two code examples here.
Option british
for babel
\documentclass{article}
\usepackage[british]{babel}
\usepackage[style=authoryear,date=year,urldate=long,dateabbrev=false]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
Read \textcite{markey}.
\printbibliography
\end{document}
Output:
Markey, Nicolas (2005). Tame the BeaST. The B to X of BibTeX. Version 1.3. URL:
http://mirror.ctan.org/info/bibtex/tamethebeast/ttb_en.pdf
(visited on 1st October 2006).
Option australian
for babel
\documentclass{article}
\usepackage[australian]{babel}
\usepackage[style=authoryear,date=year,urldate=long,dateabbrev=false]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
Read \textcite{markey}.
\printbibliography
\end{document}
Output:
Markey, Nicolas (2005). Tame the BeaST. The B to X of BibTeX. Version 1.3. url:
http://mirror.ctan.org/info/bibtex/tamethebeast/ttb_en.pdf
(visited on 1 October 2006).
I want this output. This output has "1 October 2006" and I want this. The previous output had "1st October 2006" which I do not want.
My question
Now apparently the file texmf-dist/tex/latex/biblatex/lbx/australian.lbx
has only this:
\ProvidesFile{australian.lbx}
[\abx@lbxid]
\InheritBibliographyExtras{british}
\DeclareBibliographyExtras{%
\protected\def\mkbibdatelong#1#2#3{%
\iffieldundef{#3}
{}
{\stripzeros{\thefield{#3}}%
\iffieldundef{#2}{}{\nobreakspace}}%
\iffieldundef{#2}
{}
{\mkbibmonth{\thefield{#2}}%
\iffieldundef{#1}{}{\space}}%
\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\stripzeros{\thefield{#1}}}}%
\protected\def\mkbibyeardivisiondateshort#1#2{%
\mkbibyeardivision{\thefield{#2}}%
\iffieldundef{#1}{}{\space}%
\mkyearzeros{\thefield{#1}}}%
\protected\def\mkbibyeardivisiondatelong#1#2{%
\mkbibyeardivision{\thefield{#2}}%
\iffieldundef{#1}{}{\space}%
\mkyearzeros{\thefield{#1}}}%
}
\InheritBibliographyStrings{english}
\endinput
It looks like australian.lbx
redefines only a few date formats but it is otherwise same as british.lbx
(because it inherits british). Is it possible to tell biblatex to use australian
only for \mkbibdatelong
but british
for everything else?
If not for this preferred date format (per our university style guide), I am supposed to be using british
for everything else. But since australian
inherits british
and gives this preferred date format, I am considering using australian
. So my question is can I just use australian.lbx
to produce the output I want? Or would doing so lead to problems later?
I know I can always explicitly redefine \mkbibdatelong
myself (like shown in this answer: https://tex.stackexchange.com/a/672612/18587) but I was thinking why duplicate code that is already present in australian.lbx
? So I still want to know if simply using \usepackage[australian]{babel}
is going to lead me to problems later?
To summarize my questions:
- Can using
\usepackage[australian]{babel}
cause problems when I want british style for the rest of the document? - Is there a way to tell biblatex to use
australian
only for\mkbibdatelong
and usebritish
for everything else?
australian.lbx
doing exactly what you want?australian
(when I would otherwise normally usebritish
) could lead to any problems that I cannot foresee right now. More experienced LaTeX users and developers might be able to tell me whether it is a bad idea to useaustralian
when my original intention was to usebritish
.