Generalquestion about Latex references

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
cool_divya_4u
Posts: 7
Joined: Sun Jul 04, 2010 7:07 pm

question about Latex references

Post by cool_divya_4u »

Folks,

I'd like my references to be completely listed when I cite them. For example,

Instead of "it has been shown in [55-58]"
I would like "it has been shown in [55],[56],[57,[58]"

How do I do that? I am using \bibliographystyle{plain}

Thanks.
Last edited by cool_divya_4u on Thu Jul 08, 2010 11:00 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.

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: question about Latex references

Post by frabjous »

I'm fairly sure you must be using some other reference-related packages, like, perhaps, natbib, etc. I don't think it's possible to help without that information.
cool_divya_4u
Posts: 7
Joined: Sun Jul 04, 2010 7:07 pm

Re: question about Latex references

Post by cool_divya_4u »

Here are packages I am using:
\documentclass[11pt]{article}
\usepackage{epsfig,cite,times,fullpage,wrapfig,titlesec,longtable,url,selectp}
\usepackage[paper=letterpaper]{geometry}

By the way, a small correction to how I need the references to look:
I would like like this: "it has been shown in [55,56,57,58]".

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

Re: question about Latex references

Post by josephwright »

If you want each one as a separate citation (very unusual), then use one \cite per reference.
Joseph Wright
cool_divya_4u
Posts: 7
Joined: Sun Jul 04, 2010 7:07 pm

Re: question about Latex references

Post by cool_divya_4u »

If I use one \cite per reference then it shows up as "[55],[56],[57]". I would like it to look as "[55,56,57]".

Any other advice? Thanks.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

question about Latex references

Post by frabjous »

I'm pretty sure it's the cite package that is compressing your references.

Try changing:

Code: Select all

\usepackage{epsfig,cite,times,fullpage,wrapfig,titlesec,longtable,url,selectp}
to:

Code: Select all

\usepackage[nocompress]{cite}
\usepackage{epsfig,times,fullpage,wrapfig,titlesec,longtable,url,selectp}
(You might also want to use mathptmx or txfonts or txfontsb or tgtermes rather than times... I think the times package is considered obsolete.)
cool_divya_4u
Posts: 7
Joined: Sun Jul 04, 2010 7:07 pm

Re: question about Latex references

Post by cool_divya_4u »

Thanks a lot. The nocompress option for \cite did the trick.
Post Reply