BibTeX, biblatex and biber ⇒ How to cite like [1-7] instead of [1,2,3,4,5,6,7]?
How to cite like [1-7] instead of [1,2,3,4,5,6,7]?
I want modify an existing BST file to change the way that multiple references look.
For example, currently, when I type \cite{ref1,ref2,ref3,ref4,ref5}, the pdf output looks like this: [1,2,3,4,5]. However, I want to have an output like this when there are more than three references: [1-5].
Could you please help me about that?
Thanks in advance
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
-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
How to cite like [1-7] instead of [1,2,3,4,5,6,7]?
Code: Select all
\usepackage[sort&compress]{cite}
How to cite like [1-7] instead of [1,2,3,4,5,6,7]?
should bejosephwright wrote:The bst file has nothing to do with it. TryCode: Select all
\usepackage[sort&compress]{cite}
Code: Select all
\usepackage[sort&compress]{natbib}
Code: Select all
\usepackage{cite}
Re: How to cite like [1-7] instead of [1,2,3,4,5,6,7]?
Thank you very much!