New MembersHelp me in figure caption citation

You would like to introduce yourself before starting to post? That's a nice idea and here is the forum for you...
Post Reply
Dharam
Posts: 1
Joined: Wed Oct 22, 2014 4:45 pm

Help me in figure caption citation

Post by Dharam »

Hi everyone,

I am Dharam Rabari, new member on latex forum.

I have prepared one article in latex using following documentclass

Code: Select all

\documentclass[preprint,sort&compress,12pt]{elsarticle}
\usepackage{natbib}
Using, sort&compress, I am happy with sorting and compression in main document. I want to cite one figure caption. I have used,
\caption{Equilibrium data\cite{ref1,ref2,ref3,ref4}}

I got the output "Fig. 1 Equilibrium data[3,9,18,19]"
It means sorting is ok but citing is not compressed. I want following output

"Fig. 1 Equilibrium data[3,9,18-19]"

I have used \protect\cite{} in place of \cite{} but same result.

Please help me. Thanks in Advance...

Recommended reading 2024:

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

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Help me in figure caption citation

Post by Johannes_B »

Hi and welcome,
can you extend the information you have given to a compilable example, making it easy for helpers to just copy/paste/compile and test possible solutions?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply