Am Mo., 28. Jan. 2019 um 19:51 Uhr schrieb Baris Erkus <
[email protected]>:
> Thanks Jürgen. This one I understand. However, this requirement does not
> call for loading babel+biblatex right before the \begin{document}; they can
> still be placed right after other packages loaded after \documentclass. The
> examples on BibLaTeX, I sqw SE or other web pages loads BibLaTeX in the
> block after \documentclass, but late.
>
The loading order of packages is tricky. Some packages need to be loaded
after the user preamble, and babel needs to be loaded after that, and
biblatex after babel. Just because this works in your case in the different
order does not mean it works generally.
The only way around that would be a second user preamble:
https://www.lyx.org/trac/ticket/5366
> It does compiling, but the replacement did not work.
>
> I think, the \AtBeginDocument{...} macro places the contents right after
> the \begin{document}, but not in the preamble.
>
No, it is part of the preamble:
http://joshua.smcvt.edu/latex2e/_005cAtBeginDocument.html
> However, the \DefineBibliographyStrings{...} and similar BibLaTeX commands
> are placed in the preamble according to Section 3.9 of BibLaTeX manual.
> Maybe this is the reason it does not do the replacement (?).
>
I don't think so. The reason might be that it comes too late for biblatex,
which hooks itself into the document.
Try instead:
\usepackage{etoolbox}
\AtEndPreamble{%
...
}
>
> (TBH, this was not my original problem. I was trying to use BibLaTeX for a
> Turkish document, only to find out BibLaTeX does not have Turkish support
> yet :< )
>
Adding a new localization is quite straightforward and not too much work.
If you feel like contributing that, it would be a good way to "give back"
to the community:
https://github.com/plk/biblatex/wiki/Checklist-for-submitting-a-new-localisation-file-(.lbx)
HTH
Jürgen
> Baris
>
> --
> ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
> Please bottom-post. Start your reply here:
>
>