BibTeX, biblatex and bibernatbib, pages in references

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
mclaine
Posts: 9
Joined: Tue Jul 28, 2009 6:00 pm

natbib, pages in references

Post by mclaine »

Hi everybody,

I started to use bibtex to organize the references in my dissertation today.

I really like the standard natbib style that looks a little like this:

A. Alesina, ... Journal of Public Economics ..., 2004. [7, 24]

BUT: Is there any way that the pages are NOT given at the end of the list entry? I'd like to see this:

A. Alesina, ... Journal of Public Economics ..., 2004.


Best regards,

Christian

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: natbib, pages in references

Post by gmedina »

Can you please post some relevant parts of your document? (Please post a little compilable sample code showing your document class, all the packages used that are relevant to the creation of the bibliography, the bibliographical style used, etc.)
1,1,2,3,5,8,13,21,34,55,89,144,233,...
mclaine
Posts: 9
Joined: Tue Jul 28, 2009 6:00 pm

Re: natbib, pages in references

Post by mclaine »

Hi,

these are my settings:

\usepackage[sectionbib,round]{natbib}

\begin{document}
\bibliographystyle{plainnat}

...


\citet{Akerlof1990}

.....


\bibliography{LiteraturDatenbank}

\end{document}
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

natbib, pages in references

Post by localghost »

When requested to provide a compilable code sample, you should do this by means of a minimal working example (MWE) that is compilable as is and shows the described problem. Instructions how to build such a MWE are given on the linked web site.


Best regards and welcome to the board
Thorsten
mclaine
Posts: 9
Joined: Tue Jul 28, 2009 6:00 pm

Re: natbib, pages in references

Post by mclaine »

Hi again,

and sorry for the inconvenience. I solved my problem by deleting the a package forgot to mention.

Best regards
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

natbib, pages in references

Post by localghost »

mclaine wrote:[...] I solved my problem by deleting the a package forgot to mention. [...]
It would be very kind to post the solution. The stuff you provided here is not enough to get an idea of what went wrong.
mclaine
Posts: 9
Joined: Tue Jul 28, 2009 6:00 pm

natbib, pages in references

Post by mclaine »

I accidently used usepackage{citref} and feel really sorry for the convenience ...

However, I've got ANOTHER question:

I tested different styles today and except for one tiny detail 'kluwer' looks perfect.

My example code is:

Code: Select all

\documentclass[12pt,titlepage]{article}
\usepackage{graphicx}
\usepackage[sectionbib,round]{natbib}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{color}
\usepackage{MNSymbol}
\usepackage[latin1]{inputenc}

\begin{document}
\bibliographystyle{kluwer}

\section{Introduction}\label{secintr}

\citet{Akerlof1990}, \citet{Card1994}

\bibliography{LiteraturDatenbank}

\end{document}
LiteraturDatenbank.bib:

Code: Select all

@ARTICLE{Akerlof1990,
  author = {Akerlof, G. A. and J. L. Yellen},
  title = {The Fair Wage-Effort Hypothesis and Unemployment},
  journal = {Quarterly Journal of Economics},
  year = {1990},
  volume = {105},
  pages = {255 - 283},
  number = {2},
  owner = {dst},
  timestamp = {2008.12.19}
}

@ARTICLE{Card1994,
  author = {Card, D. E. and A. B. Krueger},
  title = {Minimum Wages and Employment: A Case Study of the Fast-Food Industry
	in New Jersey and Pennsylvania},
  journal = {American Economic Review},
  year = {1994},
  volume = {84},
  pages = {772 - 793},
  number = {4},
  owner = {dst},
  timestamp = {2008.12.19}
}
The resulting references look like this (with some bold and italic parts I really like):

-------------------------------
Akerlof, G. A. and Yellen, J. L.: 1990, The fair wage-eort hypothesis and
unemployment, Quarterly Journal of Economics 105(2), 255 - 283.

Card, D. E. and Krueger, A. B.: 1994, Minimum wages and employment:
A case study of the fast-food industry in new jersey and pennsylvania,
American Economic Review 84(4), 772 - 793.
-------------------------------

THE PROBLEM with this is: New Jersey and Pennsylvania are not starting with capital letters, although I used them in JapRef.

IS THERE ANY WAY to fix this problem? I'm fine with the fact that everything else is written in lowercases, but for New Jersey etc. it looks odd.
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

natbib, pages in references

Post by gmedina »

Hi,

use braces to enclose capitaliced letters that you want to preserve; i.e., use something like the following:

Code: Select all

...
title = {Minimum Wages and Employment: A Case Study of the Fast-Food Industry
in {N}ew {J}ersey and {P}ennsylvania},
...
1,1,2,3,5,8,13,21,34,55,89,144,233,...
xpfenech
Posts: 3
Joined: Thu Jan 06, 2011 12:26 am

Re: natbib, pages in references

Post by xpfenech »

Useful!
Post Reply