38

So I'm making this summary of a course where I've only been getting information from one book. Sometimes I want to show what page from the book a statement is taken from but I can't figure out a clean way of doing it.

Basically I would like to have something (in function) similar to:

"Statement[Book p123]"

Do you have any suggestions?

  • if you use only one book you can start by a note that say [number] refers to page number from the book. – touhami Feb 13 '16 at 12:05
52

This is quite easy with BibLaTeX, though for a single reference, it may seem a little like overkill (then again, it'll get you familiar).

Here's a minimal example:

TeX File:

\documentclass{article}

\usepackage{biblatex}
\addbibresource{references.bib}

\begin{document}
Reference to the book: \cite{kopka2003guide}, and something found on some page:
\cite[p.~150]{kopka2003guide}.

% The content of the [] brackets is arbitrary.

\printbibliography
\end{document}

Bib File:

@book{kopka2003guide,
  title        = {Guide to LaTeX (Adobe Reader)},
  author       = {Kopka, H. and Daly, P.W.},
  isbn         = 9780321617743,
  year         = 2003,
  publisher    = {Pearson Education}
}

Output

output

  • how to cite mulit pages with the same method? lets say from page 150 to 153. – Woeitg Jan 15 '17 at 12:15
  • 2
    The text is arbitrary in the brackets, so you can just write \cite[pp.~150--153]{kopka2003guide}. – JP-Ellis Jan 15 '17 at 12:18
  • 2
    Could you explain why you use a tilde (~) instead of a normal whitespace between p. and the page number? What are the advantages over using a whitespace? – Phonolog Jun 19 '17 at 7:12
  • 7
    The tilde ~ is a non-breaking space. Typically, LaTeX will prefer to break a line after a full stop (since this usually indicates the end of sentence), but in this case we want to avoid that hence the use of ~. – JP-Ellis Jun 19 '17 at 7:15
  • 3
    biblatex users don't need the p.~, a language-dependent page prefix will be added automatically (if the style wants a page prefix): \cite[150]{kopka2003guide} – moewe Sep 19 '18 at 12:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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