GeneralAbbreviating reference lists within text

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
latexbird
Posts: 4
Joined: Wed May 05, 2021 10:33 pm

Abbreviating reference lists within text

Post by latexbird »

Hello,

Apologies if this has been asked before; I couldn't find anything about it, probably because I have some terminology wrong. I am using an ieeetr bibliography with bibtex files and I cannot figure out if there is a way to display lists of refs within the text in an abbreviated fashion. In particular, instead of having, say
[40, 41, 42, 3, 43, 44, 45, 46, 47, 48, 49]
I would like to have
[40-42, 3, 43-49]
or if necessary,
[3, 40-49].

Do you know if there is any way to do this?

Thank you!
latexbird

Recommended reading 2024:

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

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

latexbird
Posts: 4
Joined: Wed May 05, 2021 10:33 pm

Abbreviating reference lists within text

Post by latexbird »

To clarify, I'm open to any reference format that uses increasing numbers like ieeetr. I don't have to use ieeetr, that's just what I'm using now. I've read the documentation on ieeetr and didn't find any way to achieve what I'm hoping for.
Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Abbreviating reference lists within text

Post by Bartman »

I would like to recommend you to read the description of the numeric-comp style of the biblatex package. There are two possibilities mentioned, which should produce the desired output when using the ieeetr style.

Because of your addendum, I would advise you to use the biblatex style.
Post Reply