I'm trying to put a \cite within a figure caption, but when the list of references is being built, it places all \cites inside figure captions first, and only then it starts placing all the other references in the document.
I know that this question has already been asked multiple times and i found several answers around the Web, but nobody of them seems to solve my problem.
I've tried:
- To use \protect\cite
- To use package notoccite
- To use \caption[text without cite command]{text with \cite}
Here's my minimal program:
\documentclass[a4paper,11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english, italian]{babel}
\usepackage{lipsum}
\usepackage{url}
\usepackage{amsmath}
\usepackage{siunitx}
\usepackage[autostyle,italian=guillemets]{csquotes}
\usepackage{hyperref}
\usepackage[bibstyle=numeric, backend=biber, hyperref]{biblatex}
\addbibresource{Bibliografia.bib}
\usepackage{sectsty}
\allsectionsfont{\centering}
\usepackage{graphicx}
\usepackage{notoccite}
\begin{document}
\author{Me}
\title{Title}
\maketitle
%...
\section{}
\lipsum[1]\cite{focardi}
\appendix
\section{Viscosità attesa teoricamente}
\label{app:appA}
\begin{figure}
\centering
\includegraphics[width=0.9\textwidth]{tabviscos.png}
\caption[Caption]{Viscosità di soluzioni acquose di glicerina ($cP$) \protect\cite{glic}}
\label{fig:tabvisc}
\end{figure}
\lipsum[1]
\printbibliography[heading=bibintoc]
\end{document}
I'm working with Overleaf
Best Answer
Adding the
sorting=none
option tobiblatex
seems to resolve your issue: