书目样式 unsrt 不起作用

书目样式 unsrt 不起作用

我正在写一篇文章(我不能在这里完全透露其内容),我在使用unsrt参考书目样式时遇到了一些引用顺序问题。直到某个时候,引用顺序都是正确的,但自从我添加了一些 .tex 文件后,这种情况就不再发生了。有什么建议吗?

\documentclass[a4paper,12pt,oneside,english,american]{book}
\usepackage[utf8]{inputenc} 
\usepackage{listings}
\usepackage{subcaption}
\usepackage[toc,acronym,nonumberlist,acronym,shortcuts]{glossaries}




\usepackage{hyperref}
\usepackage{fancyhdr}
\usepackage{geometry}
\usepackage{pdfpages}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{pgfplots}
\usepackage{makecell}
\usepackage{lscape}
\usepackage{eurosym}


\usepackage[linesnumbered,ruled]{algorithm2e}



\usepackage{tcolorbox}

\tcbuselibrary{theorems}

\newtcbtheorem[number within=section]{mytheo}{Definition}%
{colback=green!5,colframe=green!35!black,fonttitle=\bfseries}{th}

\usepackage{url}

\hypersetup{pdftex,colorlinks=true,allcolors=black}

\makeatletter% Set distance from top of page to first float
\setlength{\@fptop}{5pt}
\makeatother
\sloppy

\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\setlength{\headheight}{14.5pt}
\cfoot{\thepage}
\chead{\includegraphics[width=\textwidth]    {folder1/document1.pdf}}


\usepackage{eso-pic,graphicx}
\makeatletter
\newcommand\BackgroundPicture[2]{
\setlength{\unitlength}{1pt}
\put(0,\strip@pt\paperheight){
\parbox[t][\paperheight]{\paperwidth}{
\vfill
\centering\includegraphics[angle=#2]{#1}
\vfill
}
}
}
\makeatother

\geometry{verbose,tmargin=3cm,bmargin=3cm,lmargin=3.5cm,rmargin=2.5cm,headheight=2cm,headsep=0.5cm}
\linespread{1.5}

\lstset{belowcaptionskip=1\baselineskip,
breaklines=true,
frame=single,
xleftmargin=\parindent,
showstringspaces=false
}

\lstdefinestyle{ccode}{
basicstyle=\footnotesize\ttfamily,
language=C,
morekeywords={uint32_t},
identifierstyle=\color{green!40!black}
}

\lstdefinestyle{pseudocode}{
language=C,
basicstyle=\footnotesize\ttfamily,
morekeywords={uint32_t,not},
escapechar=@,
%keywordstyle=\bfseries\color{green!40!black},
%commentstyle=\itshape\color{purple!40!black},
%stringstyle=\color{orange},
}

\AtBeginDocument{
\renewcommand{\subsectionautorefname}{\sectionautorefname}
\renewcommand{\subsubsectionautorefname}{\sectionautorefname}
\renewcommand{\itemautorefname}{step}
}

\newcommand{\var}{\emph}

\makeglossaries



\title{Text Title}
\author{Text Author}
\vspace{3cm}

\begin{document}

\frontmatter

\includepdf[pages=-]{./folder1/document.pdf}

\AddToShipoutPicture{\BackgroundPicture{folder1/picture.png}{0}}
\setcounter{page}{1}

\nocite{*}

\phantomsection
\addcontentsline{toc}{chapter}{Contents}
\tableofcontents

    \cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures

\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{List of Tables}
\listoftables

%\cleardoublepage
\phantomsection
\printglossaries
\cleardoublepage

\graphicspath{{./figures/}{./measurements/}}

\mainmatter

\input{chapter1/1/chapter.tex}


\input{chapter/2/chapter.tex}





\bibliographystyle{unsrt}
\bibliography{references}


\end{document}

相关内容