Text FormattingCompressed numerical citation

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
FerBet
Posts: 1
Joined: Tue Feb 24, 2015 1:20 am

Compressed numerical citation

Post by FerBet »

Hello!
I'm using \usepackage[num,alf,recuo=1cm,bibjustif]{abntex2cite} for my citations but in the text it's appears like this: [1,2,3,4]
But i want it like this: [1-4]

Please, someone can help me?
Ps: i'm using Latexian (last version) on MacBook
Thanks!!!

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Compressed numerical citation

Post by Stefan Kottwitz »

Hi FerBet,

welcome to the forum!

In the source code of abntex2cite.sty I can read:

% - Macros for output sorted and compressed numerical citations
% [9,2,3,1,4,11,7,10] becames [1--4,7,9--11]


So this should be supported. Perhaps show a Infominimal working example which doesn't work.

Unfortunately, the documentation of abntex2cite is not in English, so I cannot say much more. Btw. today author-year citations are more popular.

Stefan
LaTeX.org admin
edfrancojr
Posts: 1
Joined: Wed Feb 25, 2015 10:27 pm

Re: Compressed numerical citation

Post by edfrancojr »

only

\usepackage{cite}
Post Reply