Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Want to use citestyle=numeric-comp for bibtex.

426 views
Skip to first unread message

hongy...@gmail.com

unread,
Aug 7, 2021, 11:49:16 PM8/7/21
to
I noticed the following example on <https://tex.stackexchange.com/questions/518430/how-to-replace-multiple-references-by-an-en-dash-in-a-citation-using-biblatex>:

%%%
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[style=ieee, citestyle=numeric-comp, backend=biber]{biblatex}

\addbibresource{biblatex-examples.bib}


\begin{document}
\cite{sigfridsson,worman,geer,nussbaum}
\printbibliography
\end{document}
%%%

But the above example is based on biblatex. I wonder if there is an option based on bibtex to achieve a similar effect.

Regards,
HY

Dr Engelbert Buxbaum

unread,
Aug 10, 2021, 4:51:18 AM8/10/21
to
In article <100963e5-6422-4b35...@googlegroups.com>,
hongy...@gmail.com says...
>
> \usepackage[style=ieee, citestyle=numeric-comp, backend=biber]
{biblatex}
>
> But the above example is based on biblatex. I wonder if there is an
option based on bibtex to achieve a similar effect.

Numeric-compressed citation is certainly possible with natbib, and I
would be surprised if the IEEE had no bibtex style file.

--
DIN EN ISO 9241 Ergonomic requirements for office work with visual
display terminals (VDTs) - Part 13: User guidance
9.5.3 Error messages should convey what is wrong, what corrective
actions can be taken, and the cause of the error.

hongy...@gmail.com

unread,
Aug 10, 2021, 8:35:08 AM8/10/21
to
On Tuesday, August 10, 2021 at 4:51:18 PM UTC+8, Dr Engelbert Buxbaum wrote:
> In article <100963e5-6422-4b35...@googlegroups.com>,
> hongy...@gmail.com says...
> >
> > \usepackage[style=ieee, citestyle=numeric-comp, backend=biber]
> {biblatex}
> >
> > But the above example is based on biblatex. I wonder if there is an
> option based on bibtex to achieve a similar effect.
> Numeric-compressed citation is certainly possible with natbib, and I
> would be surprised if the IEEE had no bibtex style file.

Thank you for your comment. I figured out the problem based on the discussion on <https://tex.stackexchange.com/questions/3871/citing-a-range-of-papers-using-numeric-keys-as-in-citea-b-c-1-3>. See the examples given under the section: "The cite, natbib, and biblatex packages, at least, will all do this."

HY

hongy...@gmail.com

unread,
Aug 10, 2021, 8:48:20 AM8/10/21
to
To be more specifically, all the following methods do the trick:


\usepackage[citestyle=numeric-comp]{biblatex}
%or
%\usepackage[style=numeric-comp]{biblatex}
\bibliography{\string~/Documents/bibliograph/better-bibtex/references-biblatex}

or

\usepackage[numbers,sort&compress]{natbib}
\bibliographystyle{unsrtnat}
\bibliography{\string~/Documents/bibliograph/better-bibtex/references-bibtex}

or
\usepackage{cite}
\bibliographystyle{unsrt}
\bibliography{\string~/Documents/bibliograph/better-bibtex/references-bibtex}

HY

hongy...@gmail.com

unread,
Aug 12, 2021, 6:05:04 AM8/12/21
to
All the `\bibliography*' macros should be put in the document's body part instead of the preamble. See <https://lists.gnu.org/archive/html/auctex/2021-08/msg00000.html> for some relevant discussion.

HY
0 new messages