Text Formattingbibtex do not show pages?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
casperyc
Posts: 50
Joined: Thu Oct 15, 2009 11:23 pm

bibtex do not show pages?

Post by casperyc »

Hi,

Code: Select all

\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{hyperref}

\begin{document}

\clearpage
\pdfbookmark[1]{\contentsname}{toc}
\tableofcontents

\section{A}
BLABLABLA
\section{B}
BLABLABLABLABLABLA
\subsection{B.1}
BLABLABLA

\clearpage

\appendix

\section{a}BLABLABLA
\section{c}BLABLABLA

\clearpage
\section{BIBLIOGRAPHY}
\renewcommand\refname{BIBLIOGRAPHY}
\bibliographystyle{plain}
\nocite{*}
\bibliography{ref}

\end{document}

Code: Select all

@BOOK{cobb2004,
  title = {Cryptography for Dummies},
  publisher = {Wiley Pub},
  year = {2004},
  pages {2--500},
  author = {Cobb, Chey},
  address = {Indianapolis},
  isbn = {9780764541889}
}
I use Jabref to manage my references.

1-why the page numbers are not shown in the reference?
2-how do i show the "BIBLIOGRAPHY" in the toc correctly?
now, if i use \section{BIBLIOGRAPHY}, it's shown as appendix C
without that, it dose not shown in toc(and bookmarks)

Thanks.

casper
Attachments
bibtest.pdf
(39.54 KiB) Downloaded 327 times

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: bibtex do not show pages?

Post by josephwright »

There is an = missing in your database on the pages line: try correcting that. For the TOC, look at the tocbibind package.
Joseph Wright
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: bibtex do not show pages?

Post by frabjous »

I'm not sure pages would be used for books in the bibliography anyway. I don't even understand it means to put in a page range in for a book. Pages are usually used when you're citing one article in a journal, or one contribution within an anthology (thus with @article or @incollection, etc.) If you want to give a page number where you actually make the citation, do:

\cite[p.~###]{cobb2004}
Post Reply