14

The answer to this article describes very nicely how to change the title of the bibliography in the preamble when using biblatex. My problem:

I am printing multiple bibliographies and want to have different title for each of them. My file looks something like this:

\begin{document}
\usepackage{polyglossia}
\usepackage[
    style=authortitle-dw, 
    backref=true,
    idembib=true,
    firstfull=true,
    backrefstyle=two+,
    hyperref=true,
    isbn=false,
    backend=biber,
    citereset=chapter,
    bibencoding=utf8
]{biblatex}

\addbibresource{literatur.bib}
\addbibresource{predigten.bib}
\addbibresource{quellen.bib}
\addbibresource{lexika.bib}
\addbibresource{unverquellen.bib}

\DeclareSourcemap{
  \maps[datatype=bibtex, overwrite]{
    \map{
      \perdatasource{literatur.bib}
      \step[fieldset=KEYWORDS, fieldvalue=literatur, append]
    }
    \map{
      \perdatasource{quellen.bib}
      \step[fieldset=KEYWORDS, fieldvalue=quellen, append]
    }
    \map{
        \perdatasource{unverquellen.bib}
        \step[fieldset=KEYWORDS, fieldvalue=unverquellen, append]
    }
    \map{
        \perdatasource{predigten.bib}
        \step[fieldset=KEYWORDS, fieldvalue=predigten, append]
    }
    \map{
        \perdatasource{lexika.bib}
        \step[fieldset=KEYWORDS, fieldvalue=lexika, append]
    }
  }
}

\DefineBibliographyStrings{german}{
    bibliography = {Literaturverzeichnis},
    references = {Literaturverzeichnis}
}   
\printbibliography[keyword=literatur]
\DefineBibliographyStrings{german}{
    bibliography = {Quellenverzeichnis},
    references = {Quellenverzeichnis}
}
\printbibliography[keyword=quellen]
\DefineBibliographyStrings{german}{
    bibliography = {Verzeichnis der unveroffentlichten Quellen},
    references = {Verzeichnis der unveroffentlichten Quellen}
}
\printbibliography[keyword=unverquellen]
\DefineBibliographyStrings{german}{
    bibliography = {Predigtverzeichnis},
    references = {Predigtverzeichnis}
}
\printbibliography[keyword=predigten]
\DefineBibliographyStrings{german}{
    bibliography = {Lexika},
    references = {Lexika}
}
\printbibliography[keyword=lexika]
\end{document}

it tells me \DefineBibliographyStrings can only be called in the preamble. Does anyone have a solution

19

You can use the title-key to set a specific header:

\printbibliography[title=Mein Titel]

More complicated solutions are only needed if they should be able to adapt to more then one language or something similar..

  • It changes the title from "Bibliography" to our desired name mentioned in "title" string. But this section is not showing now in table of contents. Do you know how to accomplish this ? My code was \printbibliography[title=References] \label{bib:mybiblio} – Shyamkkhadka Nov 30 '17 at 2:34
  • 1
    What if I don't want any title? Also, I don't want the line for the title to be empty. – H. R. Mar 14 '19 at 14:02
  • @H.R. Don't ask such questions in comments. Ask a new question together with a suitable minimal example. – Ulrike Fischer Mar 14 '19 at 14:15
  • 2
    @UlrikeFischer: Your are right but I thought that it is closely related to this question and your answer. :) It seems \printbibliography[heading=none] does the job. – H. R. Mar 14 '19 at 14:36
  • @H.R. It doesn't matter if it is related or not. By asking your question in a comment of an old answer you are actually trying to force me -- and me alone -- to solve your problem. That is not ok. I'm not your personal support. – Ulrike Fischer Mar 14 '19 at 15:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.