In my document I call the biblatex
package with some given options (see MWE below).
The package including all given options (as well as multiple other packages that are not subject of my question) are called via \input{...}
(not displayed below, as not subject of my question either) and have to be called (to have all the required packages for my thesis).
Is it possible to change the biblatex
options afterwards (in this case change the numeric style to the APA style)?
Uncommenting the second call of biblatex
with the other options results in the error message Option clash for package biblatex.
MWE:
% !TeX program = lualatex
\documentclass{scrreprt}
\usepackage{filecontents}
\begin{filecontents}[overwrite]{Quellen.bib}
@book{Test:2023,
address = {Test Adress},
author = {Surname, Given Name},
editor = {Test Editor},
publisher = {Test Publisher},
title = {This is a Test Entry},
year = {2023},}
\end{filecontents}
%from here
\usepackage[%
backend=biber,
bibencoding=utf8,
style=numeric,
citestyle=numeric,
sorting=none,
defernumbers=true
]{biblatex}
\addbibresource{Quellen.bib}
%to here the entries can't be changed
%\usepackage[%
% backend=biber,
% bibencoding=utf8,
% style=apa,
% defernumbers=true
%]{biblatex}
\begin{document}
\cite{Test:2023}
\printbibliography
\end{document}
Use case: My use case would be the following: I have a collection of packages I usually use for documents I have to write. For some documents I have to write I have to change the options for biblatex, as the cite style has to be different. If it is possible, I would like to leave this collection as it currently is and change the options as asked above. If it is not possible I would copy the entire collection of packages and change the options manually where biblatex is going to be called (so exchange the commented out version of the biblatex call with the current call of it). As (per today) this would only be for one document I have to write I think the latter would be more suitable, wouldn't it?
style=numeric, citestyle=numeric,
is completely equivalent tostyle=numeric,
. If you're compiling with LuaLaTeX (or any modern LaTeX withoutinputenc
saying otherwise), UTF-8 will be assumed, sobibencoding=utf8,
is superfluous.