Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

For my Dutch thesis I need to have the prefix to a name when using the \cite command but not in the bibliography. So basically what I need is

Cite: ‘De Jonge’

Bibliography: ‘Jonge, Marinus, de’

I cannot achieve this at the same time with biblatex, as it seems that I need useprefix=true for the citations and useprefix=false for the bibliography.

Can anyone help?

share|improve this question
add comment

2 Answers

up vote 8 down vote accepted

domwass' solution has one problem: In the bibliography, author names will be typeset without the prefix at the start, but sorting will still use the name prefix. So I suggest to a) set useprefix=false when loading biblatex b) use domwass' hack to set the underlying toggle to true at the begin of the document c) use the hack again to set it to false at the begin of the bibliography.

\documentclass{article}

\usepackage[useprefix=false,style=authoryear]{biblatex}% "useprefix=false" is the default

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
  author = {de Author, A.},
  year = {2001},
  title = {Alpha},
}
@misc{B02,
  author = {Buthor, B.},
  year = {2002},
  title = {Bravo},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\nocite{*}

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

\begin{document}

Some text \autocite{A01,B02}.

\printbibliography

\end{document}
share|improve this answer
2  
+1 Nice catch. This helps me with a related problem - I like to use the prefix in both citations and the bibliography, but sort without it. I can adapt your solution with \AtEveryBibitem{\toggletrue{blx@useprefix}}. –  Audrey Jun 22 '11 at 16:39
add comment

You could use the option useprefix=true and put the following in the preamble:

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

I did not test it, though, since you did not give a minimal example.

share|improve this answer
    
+1, but I assume you meant \togglefalse? –  Audrey Jun 22 '11 at 13:23
    
@Audrey, of course, I just wanted to check if everybody is reading closely (c; Thanks for the hint, I edited the code. –  domwass Jun 22 '11 at 13:31
    
No problem. –  Audrey Jun 22 '11 at 15:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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