bib ファイル内の @misc 引用キーに問題があります

bib ファイル内の @misc 引用キーに問題があります

@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 のバグのため、画像は保留されていますが、このバグは修正される気配がありません。見栄えの悪い画像で申し訳ありません。]

関連情報