Graphics, Figures & Tablescitation number in the figure captions is not correct

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
waterque
Posts: 3
Joined: Sat Mar 14, 2015 4:29 pm

citation number in the figure captions is not correct

Post by waterque »

Recently, I try to use latex to complete my thesis using a template that senior student shared with us online. A problem confuses me for a long time.

The citation number is ussorted [\bibliographystyle{unsrt}]. And the numbering of the citation in the maintext is normer, but it is not correct in the figure captions. Although I have citations before the figure, but the numbering starts from the figure caption, and then the other maintext. as shown in the attached figure.
The citations are circled out. In the first citation place in the picture, the number is 11, wheras in the following figure caption, the citation number is 1. This is not what I want.

Would some experts solve my problems, thans a lot 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.

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

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

citation number in the figure captions is not correct

Post by Johannes_B »

Hi and welcome,

the photo you linked to contained some ad for a chinese foundation, i removed that from your post.

Without a minimal working example, it is hard to make any suggestions, but i think what you are referring to is the placement of the citation within the list of figures.

You can use package notoccite or use the optional argument for caption \caption[this goes to the lof]{this stays with the figure}.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: citation number in the figure captions is not correct

Post by Stefan Kottwitz »

Welcome to the forum!

If you would like to show a picture, you can upload it as an attachment to a post.

Stefan
LaTeX.org admin
waterque
Posts: 3
Joined: Sat Mar 14, 2015 4:29 pm

citation number in the figure captions is not correct

Post by waterque »

Thank you for your suggestion. As shown in the picture enclosed, the citation numbers are circled. At the first place, it is 11, whereas in the following figure caption, it is 1. In the normal case, the reference number is also following the previous one.
Stefan_K wrote:Welcome to the forum!

If you would like to show a picture, you can upload it as an attachment to a post.

Stefan
Attachments
Capture2.PNG
Capture2.PNG (91.65 KiB) Viewed 6391 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

citation number in the figure captions is not correct

Post by Johannes_B »

Johannes_B wrote:Without a minimal working example, it is hard to make any suggestions, but i think what you are referring to is the placement of the citation within the list of figures.

You can use package notoccite or use the optional argument for caption \caption[this goes to the lof]{this stays with the figure}.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: citation number in the figure captions is not correct

Post by Stefan Kottwitz »

Please try Johannes' suggestion, and tell us, if it helped.

I think the same. Citations in moving figures (which even go to the list of figures) are a problem.

Stefan
LaTeX.org admin
waterque
Posts: 3
Joined: Sat Mar 14, 2015 4:29 pm

Re: citation number in the figure captions is not correct

Post by waterque »

Thanks all for your kind and nice reply. Yesterday, I found that the thesis template includes listoffigure which also contains the captions in my case. After I deleted this part, it turned out to be okay. Next time I would try Johannes' suggestion.

Thanks all again.
Post Reply