Hello,

I observed that if biblatex is selected for the bibliography style, the 
\usepackage[*options*]{biblatex} is placed right before the \begin{document}, 
but not after the \documentclass, where usually packages are called.

If I want to place some code in the preamble that requires the biblatex 
package, then these codes appear before the \usepackage[*options*]{biblatex} 
line, and they do not work.

For example I wanted to replace "et al.", "and", "Bibliography (title)" with 
their Turkish counterparts by simply placing the following code to the preamble:

\DefineBibliographyStrings{english}{%
  references = {{Kaynaklar}},
  and = {ve},
  andothers ={ve diğerleri},
}

but it does not work.

I exported the LyX file into a (PDF)LaTeX file and moved the 
\usepackage[*options*]{biblatex} line after the \documentclass and before the 
new definitions, which works fine.

Is this how it's intended to be or, \usepackage[*options*]{biblatex} line 
should be placed along with the other package definitions right after the 
\documentclass ? I can make the similar observation for the babel package, BTW.

Attached is a MWE and its LaTeX preview, its export to LaTeX file, and the 
corrected LaTeX file along with the sample bib file.

BE

[cid:part1.3B97E451.0145701D@hotmail.com]

--
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
Please bottom-post. Start your reply here:
%% LyX 2.3.2-2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\DefineBibliographyStrings{english}{%
  references = {{Kaynaklar}},
  and = {ve},
  andothers ={ve diğerleri},
}

\makeatother

\usepackage{babel}
\usepackage[style=authoryear,maxcitenames=2]{biblatex}
\addbibresource{test.bib}
\begin{document}
Testing \parencite{Nagarajaiah1991} Testing \parencite{AtikAbrahamson2010}

\printbibliography

\end{document}
%% LyX 2.3.2-2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[style=authoryear,maxcitenames=2]{biblatex}

\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\DefineBibliographyStrings{english}{%
  references = {{Kaynaklar}},
  and = {ve},
  andothers ={ve diğerleri},
}

\makeatother

\addbibresource{test.bib}
\begin{document}
Testing \parencite{Nagarajaiah1991} Testing \parencite{AtikAbrahamson2010}

\printbibliography

\end{document}
@Article{AtikAbrahamson2010,
  author  = {Linda Al Atik and Norman Abrahamson},
  title   = {An Improved Method for Nonstationary Spectral Matching},
  journal = {Earthquake Spectra},
  year    = {2010},
  volume  = {26},
  number  = {3},
  pages   = {601-617},
}

@Article{Nagarajaiah1991,
  author  = {Satish Nagarajaiah and Andrei M. Reinhorn and Michalakis C. 
Constantinou},
  title   = {Nonlinear Dynamic Analysis of 3D Base Isolated Structures},
  journal = {Journal of Structural Engineering},
  year    = {1991},
  volume  = {117},
  number  = {7},
  pages   = {2035-2054},
}

Attachment: newfile1-biblatex.lyx
Description: newfile1-biblatex.lyx

Reply via email to