BibTeX, biblatex and bibera list of citations

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
kzg
Posts: 12
Joined: Fri Sep 03, 2010 5:51 pm

a list of citations

Post by kzg »

Hello,

in my thesis i am referencing a list of publications in the following form:
...blablabla ~\cite{item1,item2,item3,item4} blablabla....

this line apear in the text like this:

...blablabla [1,2,3,4] blablabla...

what should i do to have a citations list like this:

...blablabla [1-4] blablabla...

thank in forward
kzg
Last edited by kzg on Mon Oct 25, 2010 12:11 pm, edited 1 time in total.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

a list of citations

Post by gmedina »

Without further useful information, it's hard to provide the exact solution; if you are not loading natbib, then you could use the cite package; if you are using natbib it's enough to load it with the sort&compress
option.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
kzg
Posts: 12
Joined: Fri Sep 03, 2010 5:51 pm

Re: a list of citations

Post by kzg »

i am using bibtex and LEd for editting.

can you please show how can i use this 'compress' option?

thx
kzg
Posts: 12
Joined: Fri Sep 03, 2010 5:51 pm

Re: a list of citations

Post by kzg »

i have also included
\usepackage{citeref}

compressing should be set per defaulf, but somehow it does not compress my citations :(
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

a list of citations

Post by gmedina »

We'll need a minimal working example showing the packages and settings relevant to the creation of the bibliography.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
kzg
Posts: 12
Joined: Fri Sep 03, 2010 5:51 pm

a list of citations

Post by kzg »

here the code:

Code: Select all


\documentclass[12pt, a4paper, oneside]{memoir}
\usepackage[OT4]{fontenc}
\usepackage[cp1250]{inputenc}
\usepackage{citeref}
\begin{document}
blablabla
\cite{item1, item2, item3, item4}
blablabla
\bibliographystyle{unsrt}
\small\bibliography{PhD}
\end{document}

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

a list of citations

Post by gmedina »

Reading the documentation for citeref, I noticed that the only purpose of this package is to add reference-page-list to bibliography-items and not to compress the lists of citations. To compress this list, you need to load some other package (like cite); however, loading the cite package in your example code produces compilation errors.

An alternative would be to use the backref package instead of the citeref package (to add the reference-page-list to the bibliography) together with the cite package to sort and compress the list of citations:

Code: Select all

\documentclass[12pt, a4paper, oneside]{memoir}
\usepackage[OT4]{fontenc}
\usepackage[cp1250]{inputenc}
\usepackage{cite}
\usepackage{hyperref}
\usepackage[pageref]{backref}
\begin{document}
blablabla
\cite{item1,item2,item2,item4}

blablabla
\bibliographystyle{unsrt}
\small\bibliography{PhD}
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
kzg
Posts: 12
Joined: Fri Sep 03, 2010 5:51 pm

Re: a list of citations

Post by kzg »

it does not work at all for me.
I have included the natbib package and solved the problem.

Thx
Post Reply