参考书目不显示引用编号

参考书目不显示引用编号

我正在写一篇论文报告,并使用 bibtex 制作参考书目。问题是,即使我按照引用顺序打印了参考文献,我也无法在参考书目章节中打印相应的编号。我正在运行 latex、bibtex、latex、latex:我没有收到任何错误,latex 将我的参考书目打印为文档末尾的章节,并且在文本中,引用的编号正确,但编号没有出现在参考书目章节中相应的参考文献旁边:

由 latex 打印的参考书目 有什么建议么?

MWE 如下:

.tex

%main file:

\documentclass[11pt,a4paper,oneside]{book}

\usepackage[section] {placeins}
\usepackage[pdftex]{graphicx}
\usepackage[margin=2.45cm]{geometry}
\usepackage{extramarks}
\usepackage{fancyhdr}
\setlength{\headheight}{21.5pt}

%%%%% HEADER AND FOOTERS

\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{#1}}{}}
\renewcommand{\sectionmark}[1]{\markboth{\MakeUppercase{#1}}{}}
\renewcommand{\headrulewidth}{0pt}

\fancyhf{}

%%%%% PACKAGES
\usepackage[sort,square,numbers]{natbib}
\usepackage{apalike}
\usepackage[english]{babel}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{dcolumn}
\usepackage{appendix}
\usepackage[neverdecrease]{paralist}
\usepackage{graphicx} 
\usepackage{supertabular}
\usepackage{longtable}
\usepackage[nottoc]{tocbibind}
\usepackage{hyperref}
\usepackage{cleveref}
\providecommand{\e}[1]{\ensuremath{\cdot 10^{#1}}}
\usepackage{tabulary}
\usepackage{chngpage}
\usepackage{pdfpages}
\usepackage[Gray,squaren,thinqspace,thinspace]{SIunits}
\usepackage{eurosym}
\usepackage[figuresright]{rotating}
\usepackage{subfigure}
\usepackage{epstopdf}
\usepackage{float}
\usepackage{fancyvrb} 
\usepackage[utf8]{inputenc} 
\usepackage{listings}
\usepackage{xcolor}
\usepackage{textcomp}
\usepackage{mcode}
\usepackage{color}
\usepackage{url}
\newcommand{\hilight}[1]{\colorbox{yellow}{#1}}
\usepackage{appendix}
\usepackage{pdflscape}
\usepackage{bookmark}
\usepackage{rotating}
\usepackage{pdfpages}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{textcomp}
\usepackage{mcode}
\usepackage{xfrac}
\setlength{\parindent}{0pt}
\usepackage{booktabs}
\usepackage{tabularx}
\renewcommand{\aboverulesep}{0pt}
\renewcommand{\belowrulesep}{0pt}
\epstopdfsetup{outdir=./}
\usepackage{xfrac}
\usepackage{longtable}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setcounter{tocdepth}{3}
\begin{document}
%\include{Title}


\frontmatter
%\include{Abstract}
\tableofcontents
\listoffigures \addcontentsline{toc}{chapter}{List of Figures}
\listoftables \addcontentsline{toc}{chapter}{List of Tables}


\mainmatter
%\include{Introduction}
%\include{Objectives}
%\include{literature}
%\include{Results}  
As a minimum, Gundlach \cite{designing-unmanned-aircraft} states that a typical UAV...        

\backmatter

\bibliographystyle{ieeetr}
\bibliography{Main}

%\renewcommand{\thesection}{A.\arabic{section}}
\renewcommand{\thepage}{\arabic{chapter}.\arabic{page}}  
\renewcommand{\thesection}{\arabic{chapter}.\arabic{section}}   
\renewcommand{\thetable}{\arabic{chapter}.\arabic{table}}   
\renewcommand{\thefigure}{\arabic{chapter}.\arabic{figure}}
\end{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

这是我的 .bib 文件中的条目示例:

@book{designing-unmanned-aircraft,
  title="Designing Unmanned Aircraft Systems: A Comprehensive Approach",
  author="Gundlach, Jay",
  year="2012",
  publisher="American Institute of Aeronautics and Astronautics",
}

希望你能帮我!

答案1

文档的序言加载了两个 LaTeX 引文管理包:natbibapalike。你应该只加载其中一个,而不是两个。由于你希望创建数字样式的引文标注,你应该不是加载apalike包:它 (a) 旨在与参考书目样式一起使用apalike,并且 (b) 旨在创建作者年份样式的引文标注。显然,这里的情况并非如此。

顺便说一句,apalike引文管理软件包和apalike参考书目样式可以追溯到 20 世纪 80 年代末。因此,它们不再代表最新的 APA 参考书目和引文标注格式要求。如果您的参考书目和引文标注应该符合当前(即第 6 版)APA 指南,则应使用该apacite软件包和apacite参考书目样式。

最后,您确实应该努力清理和简化您的前言。十个 [10!] 个软件包加载了两次(其中两个具有冲突的选项...),而其他软件包一开始就不应该加载(例如,color如果xcolor加载了)。还有一些软件包,例如,subfigure只是过时和弃用 - 因此也不应该加载。如果您的序言简洁明了,我相信您会自己注意到加载apalike(除了natbib)是造成困难的原因。

相关内容