参考文献在 Latex 中显示为问号,且参考文献部分未显示在 PDF 中

参考文献在 Latex 中显示为问号,且参考文献部分未显示在 PDF 中

我对 Latex 还不太熟悉,我刚开始用 Latex 写论文。但是,我在参考文献管理方面遇到了这个问题。参考文献没有出现在文档中,而是出现了问号。我按照说明操作 这里并尝试了他们提到的所有方法。我已将.bib文件包含在正确的位置,并尝试了 PDFLatex > bibtex > PDFLatex > PDFLatex

当我运行时,PDFLatex我收到错误undefined references,当我运行时,bibtex它运行良好。我们该如何解决这个问题?我在 Ubuntu 18.0 上使用 TexmMaker 这是我的“blg”文件

This is BibTeX, Version 0.99d (TeX Live 2017/Debian)
Capacity: max_strings=100000, hash_size=100000, hash_prime=85009
The top-level auxiliary file: TempleThesis_Clean.aux
A level-1 auxiliary file: IPStatement/ipstatement.aux
A level-1 auxiliary file: Acknowledgement/acknowledgement.aux
A level-1 auxiliary file: Abstract/abstract.aux
A level-1 auxiliary file: Abbreviations/Abbreviations.aux
A level-1 auxiliary file: Chapters/Chapter_1/Chapter_1_File.aux
A level-1 auxiliary file: Chapters/Chapter_4/Chapter_4_File.aux
The style file: thesis.bst
You've used 7 entries,
            0 wiz_defined-function locations,
            103 strings with 886 characters,
and the built_in function-call counts, 0 in all, are:
= -- 0
> -- 0
< -- 0
+ -- 0
- -- 0
* -- 0
:= -- 0
add.period$ -- 0
call.type$ -- 0
change.case$ -- 0
chr.to.int$ -- 0
cite$ -- 0
duplicate$ -- 0
empty$ -- 0
format.name$ -- 0
if$ -- 0
int.to.chr$ -- 0
int.to.str$ -- 0
missing$ -- 0
newline$ -- 0
num.names$ -- 0
pop$ -- 0
preamble$ -- 0
purify$ -- 0
quote$ -- 0
skip$ -- 0
stack$ -- 0
substring$ -- 0
swap$ -- 0
text.length$ -- 0
text.prefix$ -- 0
top$ -- 0
type$ -- 0
warning$ -- 0
while$ -- 0
width$ -- 0
write$ -- 0

这是我的主文件的最小工作示例

\include{Macros/MacroFile1}

\documentclass[oneside,11pt]{Classes/myThesis}

\graphicspath{{./Chapters/Chapter_1/Chapter_1_Fig/}     
              {./Chapters/Chapter_2/Chapter_2_Fig/}
              {./Chapters/Chapter_3/Chapter_3_Fig/}
              {./ThesisFigs/}}

\newcommand{\theAuthor}{My name}
\newcommand{\authorEmail}{[email protected]}
\newcommand{\myTitle}{My Title}
\pdfinfo { /Title  (\myTitle)
           /Creator (TeX)
           /Producer (pdfTeX)
           /Author (\theAuthor \authorEmail)
           /ModDate (D:\pdfdate)
           /CreationDate (D:\pdfdate)  %format D:YYYYMMDDhhmmss
           /Subject (Condensed Matter Physics)
           /Keywords (PhD, Thesis)}    
        \pdfcatalog { /PageMode (/UseOutlines)
                  /OpenAction (fitbh)  }

\title{\myTitle}
\author{\href{mailto:\authorEmail}{\theAuthor}}
\crest{\includegraphics[width=35mm]{Leeds_Crest.png}}

\logo{\includegraphics[width=50mm]{UoL_logo}} %University Logo
\deptlogo{} %\includegraphics[width=50mm]{UoL_logo}} % Institute Logo

\collegeordept{\href{http://ipcms.unistra.fr}{Institut de Physique et Chimie des Materiaux de Strasbourg (IPCMS)}}
\university{\href{http://unistra.fr}{University of Strasbourg}}

\degree{Doctor of Philosophy}
\degreedate{\monthdate\today}



\linespread{1.3} %1.5 line spacing

\begin{document}

\maketitle

\setcounter{secnumdepth}{2}
\setcounter{tocdepth}{2}
\pagenumbering{roman}
\frontmatter

\include{IPStatement/ipstatement}
\include{Acknowledgement/acknowledgement}
\include{Abstract/abstract}
\newpage
\tableofcontents
\newpage
\listoffigures
\newpage
\listoftables
\newpage
\include{Abbreviations/Abbreviations}

\mainmatter

\pagenumbering{arabic}

\include{Chapters/Chapter_test_file}




\addcontentsline{toc}{chapter}{References} % Adds References to contents page
\bibliographystyle{thesis} % bibliography style
\renewcommand{\bibname}{References} 
\bibliography{References/library} 
\end{document}

这是我的章节文件的示例

\chapter{Introduction}
Thesis writing is lots of fun\cite{Febid1}

这是我的 bib 文件的一个示例

@PREAMBLE{
 "\providecommand{\noopsort}[1]{}" 
 # "\providecommand{\singleletter}[1]{#1}%" 
}

@article{fernandez-pacheco_three-dimensional_2017,
    title = {Three-dimensional nanomagnetism},
    volume = {8},
    copyright = {2017 The Author(s)},
    issn = {2041-1723},
    url = {https://www.nature.com/articles/ncomms15756},
    doi = {10.1038/ncomms15756},
    language = {en},
    number = {1},
    urldate = {2021-06-16},
    journal = {Nature Communications},
    author = {Fernández-Pacheco, Amalio and Streubel, Robert and Fruchart, Olivier and Hertel, Riccardo and Fischer, Peter and Cowburn, Russell P.},
    month = jun,
    year = {2017},
    note = {Number: 1
    Publisher: Nature Publishing Group},
    pages = {15756},
    file = {Full Text PDF:/home/rajgourav/Zotero/storage/N2WSEP79/Fernández-Pacheco et al. - 2017 - Three-dimensional nanomagnetism.pdf:application/pdf;Snapshot:/home/rajgourav/Zotero/storage/AK82XNP5/ncomms15756.html:text/html}
}

@article{Febid1,
author = {Utke, Ivo and Hoffmann, Patrik and Melngailis, John},
year = {2008},
month = {08},
pages = {1197 - 1276},
title = {Gas-assisted focused electron beam and ion beam processing and fabrication},
volume = {26},
journal = {Journal of Vacuum Science & Technology B: Microelectronics and Nanometer Structures},
doi = {10.1116/1.2955728}
}

@article{Febid_teresa_review_2016,
    title = {Review of magnetic nanostructures grown by focused electron beam induced deposition ({FEBID})},
    volume = {49},
    issn = {0022-3727},
    url = {https://doi.org/10.1088%2F0022-3727%2F49%2F24%2F243003},
    doi = {10.1088/0022-3727/49/24/243003}, 
    number = {24},
    urldate = {2020-05-05},
    journal = {Journal of Physics D: Applied Physics},
    author = {Teresa, J. M. De and Fernández-Pacheco, A. and Córdoba, R. and Serrano-Ramón, L. and Sangiao, S. and Ibarra, M. R.},
    month = may,
    year = {2016},
    note = {Publisher: IOP Publishing},
    pages = {243003}    
}

答案1

thesis更新:当我用 bib style替换naturebib style 并将bibliographystyle行移到行后时,问题得到了解决bibligraphy。我对 Latex 了解不够,无法解释发生了什么,但这解决了问题。

相关内容