BibTeX, biblatex and biberBibliography Entries of Names with Prefixes

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
tjaenare
Posts: 30
Joined: Tue Nov 11, 2008 3:49 pm

Bibliography Entries of Names with Prefixes

Post by tjaenare »

Hey there,

I have searched the net for a couple of hours and (I believe to have) made some progress. However, I somehow cannot get it solved.

Starting point is, that I need to adopt my document to the Dutch way of referring to what is called "tussenvoegsel", i.e. all kinds of intermediate parts of the name. In the text, the reference should e.g. be mentioned as "van 't Veld (2000)" while in the bibliography it should be sorted as "Veld, Anton van 't (2000)".

After some searching, I figured out, that apparently this only works with Biber. Is that right?

So, I have tried to convert a perfectly running document under the back-end BibTeX8 of biblatex to the back-end Biber. I have updated MiKTeX, which I use with TeXnicCenter, call Biber, have converted the files to utf8 encoding, and deleted all unnecessary files in the same path.

The problem now is, that not only I won't get the desired result, but Biber tells me that my citation is undefined, though apparently the file is found. I have created the file "diss.bbl" as this was the first error. Furthermore, the system is apparently still trying to draw on some references I included previously, but have omitted them already.

The problem disappears when using either BibTeX as the back-end or including the bibliography data through the filecontents environment. Trying to use my common bibliography file, it stops there (it does not matter whether the file is located in the same folder or somewhere else). So, I assume there is some problem of data interchange?

It would be great if someone with more experience in using Biber had an idea what might be the cause for this problem! In what follows a "minimum" (was not sure, to what extent the packages interfere with Biber) example is shown as well as the *.blg file.

In addition, what setting do I need to apply to result in the desired way of quotation?

Code: Select all

\documentclass[
  index=totoc,
  version=first,
  headsepline,
  1.5headlines,
  oneside
]{scrbook}
\usepackage{hyperref}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage[swedish,dutch,ngerman,british]{babel}
\usepackage[headsepline]{scrpage2}
\usepackage{geometry}
\pagestyle{scrheadings}
\usepackage[adobe-utopia]{mathdesign}
\usepackage[scaled=.92]{helvet}
\usepackage{tipa}
\usepackage{pifont}
\usepackage{eurosym}
\usepackage{MnSymbol}
\automark[section]{subsection}
\usepackage{enumerate}
\usepackage{enumitem}
\usepackage{changebar}
\usepackage{mdwlist}
\usepackage{rotating}
\usepackage{setspace}
\usepackage{graphicx}
\usepackage[absolute,overlay]{textpos}
\usepackage{floatflt}
\usepackage{wrapfig}
\usepackage{picins}
\usepackage{url}
\usepackage{fancybox}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{array}
\usepackage{booktabs}
\usepackage{dcolumn}
\usepackage{varioref}
\usepackage{color}
\usepackage{tabularx}
\usepackage{tabulary}
\setlength\tymax{420pt}
\usepackage{colortbl}
\usepackage[normalem]{ulem}
\usepackage{makeidx}
\makeindex
\usepackage{acronym}
\usepackage[
  backend=biber,
  style=authoryear-icomp,
  useprefix=true,
  sortcites=false,
  isbn=false,
  citereset=part,
  uniquename=false,
  maxcitenames=3,
  maxbibnames=10,
  hyperref,
  pagetracker=page,
  ibidtracker=constrict
]{biblatex}
\addbibresource{/References_biber.bib}
%\addbibresource{References_biber.bib}

%\begin{filecontents}{References_biber.bib}
%@ARTICLE{Waarden1992,
  %author = {Frans van Waarden},
  %title = {The historical institutionalization of typical national patterns
	%in policy networks between state and industry},
  %journal = {European Journal of Political Research},
  %year = {1992},
  %volume = {21},
  %pages = {131-162},
  %number = {1 -- 2},
  %endnotereftype = {Journal Article},
  %shorttitle = {The historical institutionalization of typical national patterns in
	%policy networks between state and industry}
%}
%@INCOLLECTION{Waarden1993,
  %author = {Waarden, Frans {\relax van}},
  %title = {{Über die Beständigkeit nationaler Politikstile und Politiknetzwerke.
	%Eine Studie zur Genese ihrer institutionellen Verankerung}},
  %year = {1993},
  %pages = {191-212},
  %address = {Opladen},
  %booktitle = {Verhandlungsdemokratie, Interessenvermittlung, Regierbarkeit},
  %editor = {Czada, Roland and Schmidt, Manfred G.},
  %publisher = {Westdeutscher Verlag},
  %endnotereftype = {Book Section},
  %shorttitle = {Über die Beständigkeit nationaler Politikstile und Politiknetzwerke.
	%Eine Studie zur Genese ihrer institutionellen Verankerung}
%}
%\end{filecontents}

\begin{document}

\parencites{Waarden1992,Waarden1993}
\printbibliography[heading=bibintoc]

\end{document}

Code: Select all

[1] Config.pm:361> INFO - This is Biber 1.5
[3] Config.pm:364> INFO - Logfile is 'Diss.blg'
[370] biber-MSWIN:190> INFO - === Di Apr , 2013, 12:23:07
[377] Biber.pm:327> INFO - Reading 'Diss.bcf'
[794] Utils.pm:167> WARN - Warning: Found biblatex control file version 2.0, expected version 2.3
[796] Biber.pm:619> INFO - Found 2 citekeys in bib section 0
[900] Biber.pm:2976> INFO - Processing section 0
[1013] Biber.pm:3086> INFO - Looking for bibtex format file './../Bibliography/References_biber.bib' for section 0
[1466] bibtex.pm:889> INFO - Decoding LaTeX character macros into UTF-8
[2183] bibtex.pm:764> INFO - Found BibTeX data source './../Bibliography/References_biber.bib'
[2189] Utils.pm:167> WARN - Invalid or undefined BibTeX entry key in file 'C:\Temp\GCxrjXbSn7\References_biber.bib_2596.utf8', skipping ...
[2190] Utils.pm:167> WARN - Invalid or undefined BibTeX entry key in file 'C:\Temp\GCxrjXbSn7\References_biber.bib_2596.utf8', skipping ...
[2192] Utils.pm:167> WARN - Invalid or undefined BibTeX entry key in file 'C:\Temp\GCxrjXbSn7\References_biber.bib_2596.utf8', skipping ...
[2534] Utils.pm:167> WARN - Entry MinisterieVolksgezondheidWelzijnenSport does not parse correctly
[2762] Utils.pm:167> WARN - Entry Weber1991 does not parse correctly
[2892] Utils.pm:167> WARN - BibTeX subsystem: C:\Temp\GCxrjXbSn7\References_biber.bib_2596.utf8, line 42, warning: "(" in strange place -- should get a syntax error
[2893] Utils.pm:183> ERROR - BibTeX subsystem: C:\Temp\GCxrjXbSn7\References_biber.bib_2596.utf8, line 42, syntax error: found "(", expected one of: number, name (entry type, key, field, or macro name), end of entry ("}" or ")") or quoted string ({...} or "...")
[2895] Biber.pm:107> INFO - WARNINGS: 7
[2895] Biber.pm:111> INFO - ERRORS: 1
Thank you so much in advance!!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Bibliography Entries of Names with Prefixes

Post by cgnieder »

After removing the huge amount of apparently unrelated packages and adding the filecontents package which ensures that the file specified with the {filecontents} environment is rewritten if it already exists I got the following file:

Code: Select all

\documentclass[
  index=totoc,
  version=first,
  headsepline,
  1.5headlines,
  oneside
]{scrbook}

\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage[swedish,dutch,ngerman,british]{babel}

\usepackage{hyperref}

\usepackage[
  backend=biber,
  style=authoryear-icomp,
  useprefix=true,
  sortcites=false,
  isbn=false,
  citereset=part,
  uniquename=false,
  maxcitenames=3,
  maxbibnames=10,
  hyperref,
  pagetracker=page,
  ibidtracker=constrict
]{biblatex}
\addbibresource{\jobname.bib}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@ARTICLE{Waarden1992,
  author = {Frans van Waarden},
  title = {The historical institutionalization of typical national patterns
in policy networks between state and industry},
  journal = {European Journal of Political Research},
  year = {1992},
  volume = {21},
  pages = {131-162},
  number = {1 -- 2},
  endnotereftype = {Journal Article},
  shorttitle = {The historical institutionalization of typical national patterns in
policy networks between state and industry}
}
@INCOLLECTION{Waarden1993,
  author = {Waarden, Frans {\relax van}},
  title = {{Über die Beständigkeit nationaler Politikstile und Politiknetzwerke.
Eine Studie zur Genese ihrer institutionellen Verankerung}},
  year = {1993},
  pages = {191-212},
  address = {Opladen},
  booktitle = {Verhandlungsdemokratie, Interessenvermittlung, Regierbarkeit},
  editor = {Czada, Roland and Schmidt, Manfred G.},
  publisher = {Westdeutscher Verlag},
  endnotereftype = {Book Section},
  shorttitle = {Über die Beständigkeit nationaler Politikstile und Politiknetzwerke.
Eine Studie zur Genese ihrer institutionellen Verankerung}
}
\end{filecontents}

\begin{document}

\parencites{Waarden1992,Waarden1993}
\printbibliography[heading=bibintoc]

\end{document}
After compiling with
  1. pdflatex
  2. biber
  3. pdflatex
  4. pdflatex
I get the following:
biber1.png
biber1.png (5.7 KiB) Viewed 12302 times
biber2.png
biber2.png (63.47 KiB) Viewed 12302 times
Regards
site moderator & package author
tjaenare
Posts: 30
Joined: Tue Nov 11, 2008 3:49 pm

Re: Bibliography Entries of Names with Prefixes

Post by tjaenare »

Dear Clemens,
thanks a ton for your effort and response!!

Unfortunately, this does not solve my problem! As I wrote in my text already, I was able to produce that result before. As stated, the problem begins once I want to include the bibliography immediately from the bibliography file. Furthermore, the desired effect of having the 'tussenvoegsel' in front of the name in the text (van Waarden) and after it in the list of references (Waarden, van) is not solved by that changes, either, which might also be due to the input in the name-field.

I guess, biber is drawing on some other files while compiling and somehow "ignoring" new input. However, I am not familiar with its routines so far, that I would know where to look and how to remedy that problem.

Best,
Alexander
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Bibliography Entries of Names with Prefixes

Post by cgnieder »

I boiled down the example even more. Your sorting issue can be solved by a bit of a hack using a solution found on TeX.sx: don't use the useprefix option and set the corresponding toggle manually to true for the document and to false for the bibliography:

Code: Select all

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[british]{babel}

\usepackage[
  backend=biber,
  style=authoryear-icomp
]{biblatex}
\addbibresource{\jobname.bib}

\makeatletter
\AtBeginDocument{\toggletrue{blx@useprefix}}
\AtBeginBibliography{\togglefalse{blx@useprefix}}
\makeatother

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{prefix,
  author   = {Alpha van Gamma},
  title    = {Names with prefixes},
  journal  = {About prefixes in biblatex},
  year     = {2013}
}
@article{alpha,
  author  = {Alpha Author},
  title   = {Alpha},
  journal = {Alpha Journal},
  year    = {2013}
}
@article{xeta,
  author  = {Xeta Xuthor},
  title   = {Xeta},
  journal = {Xeta Journal},
  year    = {2013}
}
\end{filecontents}

\begin{document}

\parencites{prefix,alpha,xeta}
\printbibliography[heading=bibintoc]

\end{document}
prefix.png
prefix.png (17.72 KiB) Viewed 12296 times
Your troubles with biber seem to be caused by entries you haven't even placed in your own Infominimal working example:

Code: Select all

[2534] Utils.pm:167> WARN - Entry MinisterieVolksgezondheidWelzijnenSport does not parse correctly
[2762] Utils.pm:167> WARN - Entry Weber1991 does not parse correctly
The entries mentioned there, MinisterieVolksgezondheidWelzijnenSport and Weber1991, seem to have syntax errors - a missing comma or missing braces or something.

Do you have the same troubles with the code you posted or the one I posted?

Regards
site moderator & package author
tjaenare
Posts: 30
Joined: Tue Nov 11, 2008 3:49 pm

Re: Bibliography Entries of Names with Prefixes

Post by tjaenare »

Hey again and thanks a lot for your effort!

That really looks promising! I am travelling right now and will take a look at what it produces and get back when I am back!

Best,
Alexander
tjaenare
Posts: 30
Joined: Tue Nov 11, 2008 3:49 pm

Bibliography Entries of Names with Prefixes

Post by tjaenare »

Dear Clemens,
these setting did the job:

Code: Select all

\makeatletter
\AtBeginDocument{\toggletrue{blx@useprefix}}
\AtBeginBibliography{\togglefalse{blx@useprefix}}
\makeatother
They even work with the backend bibtex8, which lets me hesitate a bit to switch to biber. Nevertheless, I will check whether your bilbiography entries yield the same results. Actually, both entries in my bibliography are a bit odd as the field for year is comprised of two years (a reprint, thus it is Weber 1991 (1904) and field for authors includes the abbreviationm, thus it is Ministerie Volksgezondheid, Welzijn en Sport. So, this might indeed cause the trouble. I was only the more suprised that this causes an error while the entry is not even called in the example.

Thank you so much for your help!
Alexander
Post Reply