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.

my question: Is it possible to optionally leave page number citations out when compiling a document? For Example when I write \parencite[see][225-226]{7.01:1}. I would like the corresponding citation to look like sth. "(see Herbst-Damm & Kulik, 2005)".

My minimal example:

\documentclass[]{article}
\usepackage[english, american]{babel}
\usepackage[autostyle=true]{csquotes}

\usepackage[
    backend=biber,
    style=apa,
]{biblatex}

\addbibresource{biblatex-apa-test-references.bib}

\usepackage[]{hyperref}
\hypersetup{
    colorlinks=true,
}

\DeclareLanguageMapping{american}{american-apa}

%% ##############################
\begin{document}
    Lorem ipsum dolor sit amet \parencite[see][225-226]{7.01:1}.
    At vero eos et accusam et justo duo dolores et ea rebum \parencites[see][143-168]{7.01:13a}[226]{7.01:1}.

    \printbibliography[]
\end{document}

Is this possible? Maybe be using a macro (I have no experience programming them).

share|improve this question
1  
Why don't you just write \parencite[see][]{7.01:1} if you don't want the pages to show. If that's not acceptable, what condition would you like to check for to determine whether to print the page number or not? –  moewe Sep 4 '13 at 14:28
    
I want to write the page numbers for my personal references but some journals dont want them. So I would like an option to not print the page number citations. As I have no macro knowledge: Maybe a simple NoPageCitations=True??? –  FLW Sep 4 '13 at 14:40

1 Answer 1

up vote 7 down vote accepted

You can use

 \renewbibmacro*{postnote}{}

but this will naturally affect all cite commands.

If only \parencite should be change you should add this to your document:

\DeclareCiteCommand{\parencite}[\mkbibparens] %from apa.cbx
  {\renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2 \finalandcomma\fi\addspace\&\space}%
   \usebibmacro{cite:init}%
   \usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \usebibmacro{cite}}
  {}
  {}%removed `\usebibmacro{postnote}
share|improve this answer
    
'\renewbibmacro*{postnote}{}' works, thank you. –  FLW Sep 5 '13 at 7:06

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.