我有一份包含图表、图表列表和参考书目的文档。在构建参考文献列表时,它会先将所有的\cite
s 放在图表标题中,然后才开始将所有其他参考文献放在文档中。有没有办法更改编号以匹配参考文献在文档正文中的顺序?
MWE: 文档.tex
\documentclass{article}
\usepackage[square,numbers]{natbib}
\begin{document}
\listoffigures
\section{MWE}
First, there's a body of text with a first reference.\cite{ref1}
\begin{figure}[htbp]
\centering
\caption{Here's a figure, which uses a second reference.\cite{ref2}}
\end{figure}
And after the figure, we have another piece of text, using a third reference.\cite{ref3}
\bibliographystyle{IEEEtran}
\bibliography{library}
\end{document}
图书馆参考书目
@Article{ref1,
author = {Papa, Umberto and Del Core, Giuseppe},
title = {Design and Assembling of a low-cost Mini UAV Quadcopter System},
journal = {Department of Science and Technology, University of Naples" Parthenope},
year = {2014},
file = {:Design and Assembling of a low-cost Mini UAV Quadcopter System.pdf:PDF},
}
@InProceedings{ref2,
author = {P. Kosobutskyy and R. Ferens},
title = {Statistical analysis of noise measurement system based on accelerometer-gyroscope GY-521 and Arduino platform},
booktitle = {14th International Conference The Experience of Designing and Application of CAD Systems in Microelectronics (CADSM)},
year = {2017},
pages = {405-407},
month = {Feb},
doi = {10.1109/CADSM.2017.7916162},
file = {:Statistical analysis of noise measurement.pdf:PDF},
keywords = {Accelerometers;Fluctuations;Force;Gyroscopes;Microcontrollers;Noise measurement;Power harmonic filters;Arduino;CADSM 2017;accelerometer;analysis},
}
@Article{ref3,
author = {Luukkonen, Teppo},
title = {Modelling and control of quadcopter},
journal = {Independent research project in applied mathematics, Espoo},
year = {2011},
file = {:Modelling_and_control_of_quadcopter_Scho.pdf:PDF},
}
您可以看到参考文献 2(在图表标题中引用)首先出现,因为它包含在图表列表中。
答案1
添加包notoccite
。
\documentclass{article}
\usepackage[square,numbers]{natbib}
\usepackage{filecontents,notoccite}
\begin{filecontents*}{library.bib}
@Article{ref1,
author = {Papa, Umberto and Del Core, Giuseppe},
title = {Design and Assembling of a low-cost Mini UAV Quadcopter System},
journal = {Department of Science and Technology, University of Naples" Parthenope},
year = {2014},
file = {:Design and Assembling of a low-cost Mini UAV Quadcopter System.pdf:PDF},
}
@InProceedings{ref2,
author = {P. Kosobutskyy and R. Ferens},
title = {Statistical analysis of noise measurement system based on accelerometer-gyroscope GY-521 and Arduino platform},
booktitle = {14th International Conference The Experience of Designing and Application of CAD Systems in Microelectronics (CADSM)},
year = {2017},
pages = {405-407},
month = {Feb},
doi = {10.1109/CADSM.2017.7916162},
file = {:Statistical analysis of noise measurement.pdf:PDF},
keywords = {Accelerometers;Fluctuations;Force;Gyroscopes;Microcontrollers;Noise measurement;Power harmonic filters;Arduino;CADSM 2017;accelerometer;analysis},
}
@Article{ref3,
author = {Luukkonen, Teppo},
title = {Modelling and control of quadcopter},
journal = {Independent research project in applied mathematics, Espoo},
year = {2011},
file = {:Modelling_and_control_of_quadcopter_Scho.pdf:PDF},
}
\end{filecontents*}
\begin{document}
\listoffigures
\section{MWE}
First, there's a body of text with a first reference.\cite{ref1}
\begin{figure}[htbp]
\centering
\caption{Here's a figure, which uses a second reference.\cite{ref2}}
\end{figure}
And after the figure, we have another piece of text, using a third reference.\cite{ref3}
\bibliographystyle{IEEEtran}
\bibliography{library}
\end{document}