在乳胶文件中看不到添加的参考书目,这是怎么回事?

在乳胶文件中看不到添加的参考书目,这是怎么回事?

我无法包含我拥有的 bib 文件(文件是 cool.bib),它在我的另一个 latex 项目中可以工作,但在这个项目中,有些东西就是不起作用,我正在使用 TexMaker。请帮我理解为什么它不显示任何内容,以及为什么如果我使用 cite 它会显示 [?]。谢谢

\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{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\usepackage[super]{natbib}
\bibliographystyle{IEEEtranN}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
    T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\begin{document}

\title{name of paper\\
\thanks{Identify applicable funding agency here. If none, delete this.}
}

\author{\IEEEauthorblockN{other guy}
\IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\
\textit{name of organization (of Aff.)}\\
City, Country \\
email address or ORCID}
\and
\IEEEauthorblockN{name me}
\IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\
\textit{name of organization (of Aff.)}\\
City, Country \\
email address or ORCID}
}

\maketitle
\nocite{*}

\begin{abstract}
abstract
\end{abstract}


\section{Introduction}
text bla bla \cite{graph} bla.


\section*{Acknowledgment}

template

\section*{Literature}
\begingroup
\renewcommand{\section}[2]{}%
\bibliography{cool}

\endgroup

\end{document}

基地

This is BibTeX, Version 0.99d
Capacity: max_strings=200000, hash_size=200000, hash_prime=170003
The top-level auxiliary file: paper4.aux
Reallocating 'name_of_file' (item size: 1) to 5 items.
I found no \bibstyle command---while reading file paper4.aux
You've used 2 entries,
            0 wiz_defined-function locations,
            86 strings with 497 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
(There was 1 error message)

答案1

我不确定为什么要做\begingroup\endgroup业务。你只是想修改\refname

\begin{filecontents*}{\jobname.bib}
@article{graph,
 author={A. Uthor},
 title={Title},
 journal={Journal},
 year={2021},
}
\end{filecontents*}

\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{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\usepackage[super]{natbib}

\bibliographystyle{IEEEtranN}
\renewcommand{\refname}{Literature}

\begin{document}

\title{name of paper\\
\thanks{Identify applicable funding agency here. If none, delete this.}
}

\author{\IEEEauthorblockN{other guy}
\IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\
\textit{name of organization (of Aff.)}\\
City, Country \\
email address or ORCID}
\and
\IEEEauthorblockN{name me}
\IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\
\textit{name of organization (of Aff.)}\\
City, Country \\
email address or ORCID}
}

\maketitle
\nocite{*}

\begin{abstract}
abstract
\end{abstract}


\section{Introduction}
text bla bla \cite{graph} bla.


\section*{Acknowledgment}

template

\bibliography{\jobname}

\end{document}

filecontents*只是为了使示例自包含,您可以继续使用您的.bib文件。

在此处输入图片描述

你会注意到我删除了

\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
    T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}

它们完全没用(而且是错误的)。

相关内容