最后一节之前的引用不起作用

最后一节之前的引用不起作用

我正在尝试写一篇论文,花了几个小时才弄清楚如何正确使用 Biber。一切都运行良好,直到我转到下一部分。参考资料消失了,只剩下一堆零,如照片中所示。 第一节在下一节中引用工作正常,但仅限于该节,而不是上一节。这是我的代码:

\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
% The preceding line is only needed to identify funding in the first footnote. If that is unneeded, please comment it out.
\usepackage[backend=biber,defernumbers=true,refsection=section]{biblatex}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
    T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\usepackage{graphicx}
\usepackage[colorlinks,allcolors=blue]{hyperref}
\addbibresource{biblio.bib}

\begin{document}

\title{Measuring ...}

\author{\IEEEauthorblockN{1\textsuperscript{st} G}
\IEEEauthorblockA{\textit{S} \\
\textit{I}\\
Th \\
.edu.gr}
\and
\IEEEauthorblockN{2\textsuperscript{nd} S}
\IEEEauthorblockA{\textit{School of Science and Technology} \\
\textit{I}\\
Th \\
ihu.edu.gr}}


\maketitle
\begin{abstract}
This document is a model and instructions for latex
This and the IEEEtran.cls file define the components of your paper [title, text, heads, etc.]. *CRITICAL: Do Not Use Symbols, Special Characters, Footnotes, 
or Math in Paper Title or Abstract.

\end{abstract}

\begin{IEEEkeywords}
component, formatting, style, styling, insert
\end{IEEEkeywords}

\section{Introduction}

\subsection{Epileptic...}
The EEG ... intervals and seizure intervals~\cite{alotaiby}. 
Therefore pattern recognition algorithms such as $k$-Nearest Neighbour ($k$-NN) or machine learning Neural Networks are necessary to analyse such data.\cite{liu} 

\begin{figure}
\centering
\includegraphics[width=0.4\textwidth]{fig1.png}
\caption{An EEG signal with containing a seizure~\cite{alotaiby}}
\end{figure}  


\subsection{Data}
Our dataset ...an epileptic seizure~\cite{andrze}. Data available at:~\url{https://archive.ics.uci.edu/ml/datasets/Epileptic+Seizure+Recognition}   

\section{Methodology}
\subsection{Rescaling}
In Machine learning.. [-1,1] with the general form been~\cite{aksoy_resc}:

\begin{align}
x' = \frac{x-min(x)}{max(x)-min(x)}\
\end{align}  

where $x$ is the original value and $x'$ the normalized one.

\subsection{$k$-Nearest Neighbors}
The $k$-nearest neighbors algorithm ($k$-NN) is a non-parametric method used for classification and regression~\cite{altman_knn}. In our problem we have a classification problem. For classification the output of the k-NN is a class membership , in our study is whether we have an epileptic seizure or not. Our object will be classified by the plurality vote of the neighbours with the subject of been epileptic seizure or not, among $k$ nearest neighbours. 

The $k$-NN algorithm is one of the simplest across other machine learning algorithms. In the training phase the algorithm only of storing the class labes and feature vectors of the training sample~\cite{coomans_knn}. Then the user-defined $k$ and a unlabelled vector is classified with the labels that classify the $k$ nearest training sample points. The metric that we used for measuring the distance between the neighbours is the Euclidean distance~\cite{phyu_knn}     


\printbibliography[heading=subbibliography]
\end{document}

答案1

这种行为可以在稍小的 MWE 中重现

\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[backend=biber, style=numeric,
  defernumbers=true, refsection=section]{biblatex}

\addbibresource{biblatex-examples.bib}

\begin{document}
\section{Lorem}
Lorem~\cite{nussbaum}

\section{Ipsum}
Ipsum~\cite{sigfridsson}

\printbibliography
\end{document}

Lorem [0]//Ipsum [1]//(参考书目仅包含 <code>sigfridsson</code>)

这是由选项引起的

refsection=section,

并且因 而加剧(幸运的是,否则您可能永远不会意识到存在问题)defernumbers=true,

refsection=section,告诉您为文档中的每个(或)命令biblatex启动一个新的命令。 s 旨在在您的文档中生成几个完全独立的参考书目。 A始终是当前的本地命令,并将忽略来自其他命令的引用。refsection\section\section*refsection\printbibliographyrefsectionrefsection

在示例中,\printbibliography属于第二个\section\section{Ipsum}在我的示例中,\section{Methodology}在问题的示例中),并且只会从那里选取引文。第一部分的引文悬而未决,没有\printbibliography(请注意nussbaum参考文献未出现在任何参考书目中)。由于 ,defernumbers=true,只有当引文首次出现在 中时,才会为其分配编号\printbibliography。第一部分的条目从未出现在任何内容中\printbibliography,因此全部获得虚拟值“[0]”。

我假设你想要为你的文档提供一个全局书目,所以解决方案是删除该选项

refsection=section,

如果你只有一个参考书目列表,你可以另外删除该选项

defernumbers=true,

我应该补充一下,这IEEEtran是提交给 IEEE 期刊和会议记录的文档类,它附带自己的 BibTeX.bst样式。如果您想要提交给 IEEE,您应该使用他们的 BibTeX 样式,而不是biblatex(IEEE 不太可能接受biblatex提交,因为他们需要不同的工作流程:Biblatex:向期刊投稿)。如果你不想提交给 IEEE,那么标准类可能是比 更好的选择IEEEtran

相关内容