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.

How can I set prenote for \cite globally with the possibility to pass an individual option via optional parameter to a single \cite command?

It should work like this:

\cite{key} --> \cite[see][]{key}
\cite[otherSuffix][]{key} --> \cite[otherSuffix][]{key}
share|improve this question
add comment

1 Answer 1

If I have understood correctly the question, every citation is introduced by "see" unless an optional parameter is given. This can be obtained by redefining the prenote bibmacro.

\renewbibmacro*{prenote}{%
  \iffieldundef{prenote}
    {\printtext{see}}
    {\printfield{prenote}}%
    \setunit{\prenotedelim}%
}
share|improve this answer
    
I think you mean: \renewbibmacro*. –  jon Mar 21 '13 at 5:05
    
@jon Yes, \renewbibmacro* is better, though, with \newbibmacro* biblatex will just issue a warning and fall back to \renewcommand* –  Guido Mar 21 '13 at 11:47
add comment

Your Answer

 
discard

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