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.

how to reference other reported works in the form of [-]?

I tried the following trick but didnot work out.

\cite{IEEE:Zhu - IEEE:Nguyen}

I'm using article document class.

share|improve this question
2  
It's rather unclear what you mean. If you want multiple citations, use \cite{IEEE:Zhu,IEEE:Nguyen}. The cite package supports grouping of citations. –  egreg Sep 12 '11 at 22:20
    
Do you want citations to be [Sparwasser, 1974 - Brandt, 1970]? this can be achieved with the natbib package. You can freely set brackets and separators: \bibpunct{[}{]}{-}{a}{,}{;}. Read this for more info. –  Tom Bombadil Sep 12 '11 at 22:44
    
@egreg: , is used for two or more references that there's no specific order among them but - is used for multiple incessant references. I want citations to be [1-4]. –  amir Sep 12 '11 at 22:54
add comment

2 Answers

Compressing can be achieved with the natbib package. Use the option sort&compress or compress if the bib entries should just be compressed, but not sorted:

\usepackage[sort&compress]{natbib}

If you use hyperref, this will cause problems, but the package hypernat can make them work together, but the order is of importance:

\usepackage[sort&compress]{natbib}
\usepackage{hyperref}
\usepackage{hypernat}
share|improve this answer
add comment

Sorting and compression of citations is accomplished also with the cite package:

\usepackage{cite}

that works with the standard BibTeX styles and also with a directly written thebibliography environment.

share|improve this answer
add comment

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.