![在乳胶文件中看不到添加的参考书目,这是怎么回事?](https://linux22.com/image/436874/%E5%9C%A8%E4%B9%B3%E8%83%B6%E6%96%87%E4%BB%B6%E4%B8%AD%E7%9C%8B%E4%B8%8D%E5%88%B0%E6%B7%BB%E5%8A%A0%E7%9A%84%E5%8F%82%E8%80%83%E4%B9%A6%E7%9B%AE%EF%BC%8C%E8%BF%99%E6%98%AF%E6%80%8E%E4%B9%88%E5%9B%9E%E4%BA%8B%EF%BC%9F.png)
我无法包含我拥有的 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}}
它们完全没用(而且是错误的)。