BibTeX, biblatex and biberPreferences refs in figs before in text ?

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
herebedragons
Posts: 2
Joined: Fri Apr 29, 2011 12:26 pm

Preferences refs in figs before in text ?

Post by herebedragons »

Hi all,
new user here and I've been playing around with LyX 1.6.5.
My problem is that reference numbers are favouring references in figure captions before references in the text (even if the text appears before the figure in the document)

For example I could have refs [1] [2] [3] and [4] appear in the text in that order, then later on (further down) add a reference (same as the 3rd reference above) to the caption of a figure and it will rename the ref in the figure caption as [1].

This making the text references (at the top of the document) appear as [2] [3] [1] [4] and the reference in the figure caption (further on in the document) as [1].


I'd like this to appear as [1] [2] [3] [4] in the text and the figure caption (same as the 3rd reference) to be [3]
Any tips or things to try out? I have my bibliographt style as 'unsrt', if that's relevant

Many thanks

Recommended reading 2024:

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

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

annmucc
Posts: 11
Joined: Mon May 16, 2011 7:33 pm

Re: Preferences refs in figs before in text ?

Post by annmucc »

I found I had the same problem when I was placing the 'List of Figures' at the start of the document. Is this something which you have? My solution was to place the 'list of Figures' at the end of the document. Not the most elegant solution, but if you're flexible to do that it might work!
herebedragons
Posts: 2
Joined: Fri Apr 29, 2011 12:26 pm

Re: Preferences refs in figs before in text ?

Post by herebedragons »

Hey annmucc,
thanks a lot for the reponse, yes I had the list of figures at the start and yes this does fix the problem! The refs are sometimes not in perfect chronological order (probably because of using float for the graphics) but they are close enough.
With soem of the huge figure captions I've got it's probably better behind hidden down the back anyway, or removed alltogether

Cheers for that, all the best
annmucc
Posts: 11
Joined: Mon May 16, 2011 7:33 pm

Re: Preferences refs in figs before in text ?

Post by annmucc »

An update to this: you can also have \caption[text without reference]{text with reference}. within [] the text appears in the list of tables/figures while within {} it appears as the caption. That has elegantly solved my problem as I had to put the list of figures and tables at the beginning
Post Reply