我的硕士论文在引用某个条目时出现问题。它给出了以下错误:“TeX 容量超出,抱歉 [输入堆栈大小=5000]。...coe/prognostic-data-repository/#battery}}”
我的 .tex 文件(最小化)如下所示:
\documentclass[ 12pt, % Font size
twoside, % Comment if you want to print on one side
openright,
headsepline, % Adds a line under the page header
headings=small, % Defines sizing of the headers
numbers=noenddot, % No point at the right side of the section number
%draft=false,
BCOR=15mm, % Absolute value of the binding correction.
DIV=10, % larger value --> larger use of the page
%captions=tableheading,
paper=a4, % only change if you want another paper size
abstracton,
]{scrreprt}
\usepackage{ifpdf}
\ifpdf
%We use PDFLaTeX
\usepackage[pdftex]{graphicx}
\pdfimageresolution=100
\pdfminorversion=7
\pdfcompresslevel=9
\usepackage[pdftex,
urlcolor=blue,
linktoc=all,
colorlinks=true,
linkcolor=black,
citecolor=black,
pdfview=FitH,
pdfstartview=FitH,
plainpages=false]{hyperref} % Allows cross references and hyperlinks
\hypersetup{
pdfauthor={Your Name},
pdftitle={Name of your thesis},
pdfsubject={},
pdfkeywords={Keywords},
pdfproducer={LaTeX with hyperref},
pdfcreator={pdflatex}}
\usepackage[figure,figure*]{hypcap}
\else
%DVI oder PS Ausgabe
\usepackage{graphicx}
\fi
\usepackage{pdfpages}
\usepackage[square]{natbib}
\newcommand{\Literaturename}{Literature}
\begin{document}
\citet{Saha.data}
\protect\bibliographystyle{plainnat}
\bibliography{Literature}
\end{document}
我的.bib 文件包含 Saha.data-entry,如下所示:
@misc{Saha.data,
author = {Saha, B. and Goebel, K.},
year = {2007},
title = {{Battery Data Set}},
url = {\url{https://ti.arc.nasa.gov/tech/dash/groups/pcoe/prognostic-data-repository/#battery}},
publisher = {{NASA AMES Prognostics Data Repository}},
institution = {{NASA Ames Research Center, Moffett Field, CA}}
}
答案1
问题出在字段上url
,您不必将其包含\url
在 Bibtexurl
文件中。plainnat
样式会为您插入它。
如果你确实包含了\url
这些,那么在bbl
文件中你将拥有
\newblock URL
\url{\url{https://ti.arc.nasa.gov/tech/dash/groups/pcoe/prognostic-data-repository/#battery}}.
这就导致了问题。