BibTeX, biblatex and biberremoving automatic comma and p./pp. from in-line citations

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
jkw74
Posts: 4
Joined: Thu Nov 15, 2012 2:44 pm

removing automatic comma and p./pp. from in-line citations

Post by jkw74 »

My in-line citations when page numbers are provided are not what I want them to be, and I can't figure out how to change them.

I want them to look like this:
Smith (1995: 14-16)

but they look like this:
Smith (1995, pp. 14-16)

(in other words, there should be a colon and a space separating the year from the pages, and the abbreviation pp. should not be added automatically)

This is the command I'm using:

Code: Select all

\citet[14-16]{Smith1995}
I'm using biblatex with biber as a backend, here's what I have in my preamble:

Code: Select all

\usepackage[
  backend=biber,
  sorting=nyt,
  style=authoryear-comp,
  sortlocale=de_DE,
  natbib=true,
  url=false,
  doi=true,
  eprint=false]{biblatex}
I've tried using the following commands in the preamble and within the document-environment, but these only result in errors:
1. \setcitestyle{notesep={:}}
2. \bibpunct[: ]{[}{]}{,}{a}{}{;}
I suspect these trigger errors because they are commands from the natbib-package, but the natbib-package is only declared via the options in the usepackage{biblatex} command.

I have no idea where else to look to find where that comma and the automatic p./pp. are added, and then change them.

Any help would be appreciated!
Last edited by cgnieder on Thu Nov 15, 2012 11:34 pm, edited 1 time in total.

Recommended reading 2024:

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

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

jkw74
Posts: 4
Joined: Thu Nov 15, 2012 2:44 pm

removing automatic comma and p./pp. from in-line citations

Post by jkw74 »

I've perused the BibLaTeX-package manual and answered my own question.

1. to set the delimiter between the end of the citation and the postnote text to ': ' (the default is ', '), add the following to the preamble:
\renewcommand{\postnotedelim}{: }%

2. to remove the p./pp: from preceding page number(s) in a citation, add the following command to the preamble:
\DeclareFieldFormat{postnote}{#1}%

Another hint: to remove the comma from the delimiter between author name(s) and the year in the citation (the default is ', '), add the following command to the preamble:
\renewcommand{\nameyeardelim}{ }%

Now, the result of
\citet[14-16]{Smith1995}
will be:
Smith (1995: 14-16)
and
\cite[14-16]{Smith1995}
will be:
Smith 1995: 14-16
Post Reply