
我在 @misc 引文中的關鍵字參數方面遇到問題,更具體地說,它的鍵是如何定義的。有人知道它的問題嗎?
@misc{CABRAL123,
Author = {Umberlandia Cabral},
Date-Added = {2024-04-09 18:58:06 +0000},
Date-Modified = {2015-04-27 22:43:06 +0000},
Howpublished = {IBGE},
Keywords = {wiki},
Title = {Sistema de Indicadores Culturais: Pais tem quase 40% da população em municipios sem salas de cinema},
Url = {https://agenciadenoticias.ibge.gov.br/agencia-noticias/2012-agencia-de-noticias/noticias/26239-pais-tem-quase-40-da-populacao-em-municipios-sem-salas-de-cinema},
Urlaccessdate = {10 abr 2024},
Year = {2019},
Bdsk-Url-1 = {https://agenciadenoticias.ibge.gov.br/agencia-noticias/2012-agencia-de-noticias/noticias/26239-pais-tem-quase-40-da-populacao-em-municipios-sem-salas-de-cinema}
}
這是我的第一篇文章,所以感謝您的耐心...
當我編譯文檔時,(??)
文檔和日誌中顯示:
Citation `CABRAL123' on page 1 undefined on input line 210.
./main.tex, 210
You have cited something which is not included in your bibliography. Make sure that the citation (\cite{...}) has a corresponding key in your bibliography, and that both are spelled the same way.
Learn more
我對任何其他引用都沒有任何問題,我推測鍵名稱或日期值有問題,但根本沒有任何明顯的問題。
答案1
我無法用 BibTeX 或 Biblatex 重現您報告的問題。但是,我確實得到了前者的錯誤結果和後者的編譯失敗。
您需要轉義%
標題中的 ,以便 LaTeX 讀取時.bbl
它不會忽略該行的其餘部分。在 Biblatex 的情況下,您最終會丟失右大括號,因此條目永遠不會結束,從而導致標準失控錯誤。在 BibTeX 的情況下,您不會遺失欄位的末尾,但會遺失中間的一塊,因此條目的標題排版錯誤。
要修復它,只需使用\%
.
\begin{filecontents*}[overwrite]{\jobname.bib}
@misc{CABRAL123,
Author = {Umberlandia Cabral},
Date-Added = {2024-04-09 18:58:06 +0000},
Date-Modified = {2015-04-27 22:43:06 +0000},
Howpublished = {IBGE},
Keywords = {wiki},
Title = {Sistema de Indicadores Culturais: Pais tem quase 40\% da população em municipios sem salas de cinema},
Url = {https://agenciadenoticias.ibge.gov.br/agencia-noticias/2012-agencia-de-noticias/noticias/26239-pais-tem-quase-40-da-populacao-em-municipios-sem-salas-de-cinema},
Urlaccessdate = {10 abr 2024},
Year = {2019},
Bdsk-Url-1 = {https://agenciadenoticias.ibge.gov.br/agencia-noticias/2012-agencia-de-noticias/noticias/26239-pais-tem-quase-40-da-populacao-em-municipios-sem-salas-de-cinema}
}
\end{filecontents*}
\documentclass{article}
\usepackage{biblatex}
\bibliography{\jobname}
\begin{document}
\cite{CABRAL123}
\printbibliography
\end{document}
如果這不是問題,請注意問題可能出在以前的文件中的條目.bib
,因為這是產生不完全正確訊息的錯誤的常見原因。
[圖像因 Okular 錯誤而被保留,該錯誤沒有顯示出修復的跡象。抱歉缺少養眼的東西。