我尝试了该问题的答案中的所有方法:“用问号或粗体引用键代替引用编号”,但我仍然有相同的警告。
以下是我使用 Latex 运行第一次编译时收到的警告:
“警告第 35 行:第 4 页上的引用‘...’未定义”
“警告行 1:有未定义的引用”。
我验证了所有内容: - 我运行 Latex > Bibtex > Latex > Latex - 我有一个 .blg 文件,其中包含我想要引用的参考文献 - 我在 Latex 中使用了默认样式:\bibliographystyle{alpha} - 我的数据库(biblio.bib)与我的 .tex 文件位于同一文件夹中,并且是唯一的(我用 zotero 创建的) - 我验证了 .bib 文件中参考文献的键与我在 \cite{...} 中输入的键相同
有人可以帮帮我吗?
这是我的 .tex 文件和 .bib 文件的副本,以便于理解:
备忘录_RBT_TA_MeHg.tex:
documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[top=2.5cm, bottom=2.5cm, left=2.5cm, right=2.5cm]{geometry}
\title{Etude des interactions entre les acides gras et le méthylmercure sur la différenciation et les fonctions du tissu adipeux chez la truite arc-en-ciel (\textit{Oncorhynchus mykiss})}
\author{Marine Courteille}
\date{2016 - 2017}
\begin{document}
\maketitle
\newpage
\tableofcontents
\newpage
\section{Préambule}
My text ...
\cite{wood_homeostasis_2012}
\bibliographystyle{alpha}
\bibliography{biblio}
\end{document}
biblio.bib:
@book{wood_homeostasis_2012,
edition = {Elsevier},
series = {Fish {Physiology} {Series}},
title = {Homeostasis and {Toxicology} of {Non}-{Essential} {Metals}},
volume = {31B},
author = {Wood, Chris P. and Farrell, Anthony P. and Brauner, Colin J.},
year = {2012},
file = {Farrel11_FishPhysiologyHomeostasisToxicologyNonEssentialMetals.pdf:C\:\\Users\\Marine\\AppData\\Roaming\\Zotero\\Zotero\\Profiles\\ji38u2t3.default\\zotero\\storage\\CIEQMEVN\\Farrel11_FishPhysiologyHomeostasisToxicologyNonEssentialMetals.pdf:application/pdf}
}
@article{babiarz_partitioning_2001,
title = {Partitioning of {Total} {Mercury} and {Methylmercury} to the {Colloidal} {Phase} in {Freshwaters}},
volume = {35},
issn = {0013-936X},
url = {http://dx.doi.org/10.1021/es010895v},
doi = {10.1021/es010895v},
abstract = {Using tangential flow ultrafiltration, total mercury (HgT) and methylmercury (MeHg) concentrations in the colloidal phase (0.4 μm−10 kDa) were determined for 15 freshwaters located in the upper Midwest (Minnesota, Michigan, and Wisconsin) and the Southern United States (Georgia and Florida). Unfiltered concentrations were typical of those reported for freshwater and ranged from 0.9 to 27.1 ng L-1 HgT and from 0.08 to 0.86 ng L-1 MeHg. For some rivers, HgT and MeHg in the colloidal phase comprised up to 72\% of the respective unfiltered concentration. On average, however, HgT and MeHg concentrations were evenly distributed between the particulate ({\textgreater}0.4 μm), colloidal, and dissolved ({\textless}10 kDa) phases. The pool of Hg in the colloidal phase decreased with increasing specific conductance. Results from experiments on freshwaters with artificially elevated specific conductance suggest that HgT and MeHg may partition to different subfractions of colloidal material. The colloidal-phase HgT correlation with filtered organic carbon (OCF) was generally poor (r2 {\textless} 0.14; p {\textgreater} 0.07), but the regression of MeHg with OCF was strong, especially in the upper Midwest (r2 = 0.78; p {\textless} 0.01). On a mass basis, colloidal-phase Hg concentrations were similar to those of unimpacted sediments in the Midwest. Mercury to carbon ratios averaged 352 pg of HgT/mg of C and 25 pg of MeHg/mg of C and were not correlated to ionic strength. The log of the partition coefficient (log KD) for HgT and MeHg ranged from 3.7 to 6.4 and was typical of freshwater values determined using a 0.4 μm cutoff between the particulate phase and the dissolved phase. Log KD calculated using the {\textless}10 kDa fraction as “dissolved” ranged from 4.3 to 6.6 and had a smaller standard deviation about the mean. In addition, our data support the “particle concentration effect” (PCE) hypothesis that the association of Hg with colloids in the filter-passing fraction can lower the observed log KD. The similarity between colloidal and particulate-phase partition coefficients suggests that colloidal mass and not preferential colloidal partitioning drives the PCE.},
number = {24},
urldate = {2017-05-01},
journal = {Environmental Science \& Technology},
author = {Babiarz, Christopher L. and Hurley, James P. and Hoffmann, Stephen R. and Andren, Anders W. and Shafer, Martin M. and Armstrong, David E.},
month = dec,
year = {2001},
pages = {4773--4782},
file = {ACS Full Text PDF w/ Links:C\:\\Users\\Marine\\AppData\\Roaming\\Zotero\\Zotero\\Profiles\\ji38u2t3.default\\zotero\\storage\\KQC39GD8\\Babiarz et al. - 2001 - Partitioning of Total Mercury and Methylmercury to.pdf:application/pdf;ACS Full Text Snapshot:C\:\\Users\\Marine\\AppData\\Roaming\\Zotero\\Zotero\\Profiles\\ji38u2t3.default\\zotero\\storage\\8T277BSC\\es010895v.html:text/html}
}
答案1
我尝试在计算机上再次安装 Latex,但没有任何变化。我还想尝试使用 Texstudio 而不是 Texmaker 作为编辑器,哦,奇迹,它成功了!它为我提供了参考书目和文本中的正确引用。所以,我仍然不知道为什么它不起作用,但如果有人遇到同样的问题,我建议尝试另一个文本编辑器。
答案2
我刚刚测试了这两个文件。它运行正常,引用也正确生成。根据您的描述,它看起来没有问题。您可以尝试将这两个文件复制到新文件夹并重新编译。