我即将完成论文的第一次 latex 设置,我决定测试一下图表以及如何将它们与参考文献和参考书目一起控制。一切进展顺利;我第一次引用参考文献和交叉引用材料时,参考书目按照引文在文本中出现的顺序进行编译(期望的结果),然后我摆弄了一下图表,突然我的参考书目就从下往上编译了(首先是图表/表格)。
我肯定是犯了一个新手错误,但是我在下面的精简论文设置的 MWE 中重现了同样的效果。
有人能解释一下为什么它会突然出现这种情况吗?我目前正在使用它sharelatex.com
作为我的编辑器。谢谢。
\documentclass[
bibliography=totoc,
headings=big,
captions=tableheading,
chapterprefix=true% like in standard class "report"
]{scrreprt}
\usepackage[left=2cm,right=2cm,top=2.5cm,bottom=3cm]{geometry}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{minitoc}
\setcounter{secnumdepth}{3} % number subsubsections
\setcounter{tocdepth}{3} % list subsubsections
\begin{document}
\dominitoc
\tableofcontents
\listoffigures
\listoftables
\addtokomafont{chapterprefix}{\raggedleft}
\addtokomafont{section}{\huge}
\addtokomafont{subsection}{\Large}
\addtokomafont{subsubsection}{\large}
\renewcommand*{\chapterformat}{%
\mbox{\scalebox{1.5}{\chapappifchapterprefix{\nobreakspace}}%
\scalebox{4}{\color{gray}\thechapter\autodot}\enskip}}
\setcounter{chapter}{6}\setcounter{page}{199}
\newpage\setcounter{page}{212}
\chapter{Conclusions}
\dictum[Sun Tzu]{If you know the enemy and you know yourself %\\
you need not fear the results of a hundred battles.}
\minitoc
\section{Summary of Achievements}
Text goes here
\subsection{Papers Submitted}
Text
\subsubsection{I want to go into the TOC}
Testing stuff out \cite{Guittonneau201071}
\begin{table}[htbp]
\caption{This is an example table \cite{Li2012}}
\centering
\begin{tabular}{llll}
This & is & an & example.\\\hline
This & is & an & example.
\end{tabular}
\label{example.table}
\end{table}
So this continues with the Table~\ref{example.table}
\begin{figure}
\setcapindent{1em}
\fbox{\parbox{.95\linewidth}{\centering{\KOMAScript}}}
\caption{Example \cite{Fu2009789} with slightly indented caption
starting at the second line}
\end{figure}
\bibliographystyle{plain}
\bibliography{bibliography}
\end{document}
我使用的 bib 参考如下:
@article{Song20084290
, author = {M.S. Song and B. Huang and M.X. Zhang and J.G. Li}
, title = {Formation and growth mechanism of ZrC hexagonal platelets synthesized by self-propagating reaction}
, journal = {Journal of Crystal Growth}
, year = {2008}
, volume = {310}
, number = {18}
, pages = {4290 - 4294}
, issn = {0022-0248}
, doi = {10.1016/j.jcrysgro.2008.07.016}
, url = {http://www.sciencedirect.com/science/article/pii/S0022024808005678}
, keywords = {B1. Zirconium carbide}
}
@article{Guittonneau201071
, author = {Fabrice Guittonneau and Abdesselam Abdelouas and Bernd Grambow}
, title = {HTR Fuel Waste Management: TRISO separation and acid-graphite intercalation compounds preparation}
, journal = {Journal of Nuclear Materials}
, year = {2010}
, volume = {407}
, number = {2}
, pages = {71 - 77}
, issn = {0022-3115}
, doi = {DOI: 10.1016/j.jnucmat.2010.09.026}
, url = {http://www.sciencedirect.com/science/article/pii/S0022311510005027}
}
@article{Fu2009789
, author = {Hongzhi Fu and Weimin Peng and Tao Gao}
, title = {Structural and elastic properties of ZrC under high pressure}
, journal = {Materials Chemistry and Physics}
, year = {2009}
, volume = {115}
, number = {2–3}
, pages = {789 - 794}
, issn = {0254-0584}
, doi = {10.1016/j.matchemphys.2009.02.031}
, url = {http://www.sciencedirect.com/science/article/pii/S0254058409001163}
, keywords = {<span style='font-style: italic'>Ab initio</span> calculations}
}
@article{Li2012
, author = {Qinggang Li and Haijun Zhou and Shaoming Dong and Zhen Wang and Ping He and Jinshan Yang and Bin Wu and Jianbao Hu}
, title = {Fabrication of a ZrC–SiC matrix for ceramic matrix composites and its properties}
, journal = {Ceramics International}
, year = {2012}
, number = {0}
, pages = { - }
, issn = {0272-8842}
, doi = {10.1016/j.ceramint.2012.01.023}
, url = {http://www.sciencedirect.com/science/article/pii/S0272884212000260}
, keywords = {ZrC precursor}
}
答案1
使用
\bibliographystyle{ieeetr}
代替
\bibliographystyle{plain}
并确保在重新运行 latex 之前删除大多数其他输出文件,如 .aux .bbl。我只留下 tex 和 bib 文件。我建议使用比布拉特克斯而不是 bibtex,因为它具有更多的控制权。以下是按顺序的输出。
答案2
我遇到了同样的问题。给出的答案对我不起作用。使用以下
\bibliographystyle{unsrt}
代替
\bibliographystyle{plain}