引用された BibTeX エントリだけを印刷する参考文献スタイルはありますか?

引用された BibTeX エントリだけを印刷する参考文献スタイルはありますか?

参考文献のスタイルで気に入らないことの 1 つは、情報が失われることがあり、引用スタイルによっては引用と参考文献のエントリをリンクするのが難しいことです。極端な対応としては、参考.bib文献の代わりに使用するファイルを印刷し、 を実行せずbiber、などのbibtex書式設定されていないエントリを残すことです\textcite

BibLaTeX でもう少し良いバージョンを実現できますか?

\documentclass{article}
\usepackage{biblatex}

\begin{filecontents}{\jobname.bib}

@article{Seshadrinathan2010A-Subjective-St,
    Author = {K. Seshadrinathan and R. Soundararajan and A. C. Bovik and L. K. Cormack},
    title={foo},
    year={2011},
    journal={bla}
}

@article{Seshadrinathan2009Study-of-Subjec,
    Author = {K. Seshadrinathan and R. Soundararajan and A. C. Bovik and L. K. Cormack},
    title={bar},
    year={2010},
    journal={bla}
}
\end{filecontents}
\addbibresource{\jobname.bib}

\begin{document}

Some words \textcites{Seshadrinathan2010A-Subjective-St}{Seshadrinathan2009Study-of-Subjec}.

\printbibliography

\end{document}

いくつかの言葉Seshadrinathan2010A-主観的-StそしてSeshadrinathan2009主題の研究

文献

@article{Seshadrinathan2010A-主観的-St,

    Author = {K. Seshadrinathan and R. Soundararajan and A. C. Bovik and L. K. Cormack},

    title={foo},
    year={2011},
    journal={bla}
}

@article{Seshadrinathan2009Study-of-Subjec,
    Author = {K. Seshadrinathan and R. Soundararajan and A. C. Bovik and L. K. Cormack},
    title={bar},
    year={2010},
    journal={bla}

多分

文献

Seshadrinathan2010A-主観的-St:

著者: K. Seshadrinathan、R. Soundararajan、AC Bovik、LK Cormack

タイトル: foo

年: 2011

ジャーナル: bla

Seshadrinathan2009主題の研究

著者: K. Seshadrinathan、R. Soundararajan、AC Bovik、LK Cormack

タイトルバー

年: 2010

答え1

Mico は、このアプローチの背後にある動機に疑問を投げかける際に、非常に良い点を指摘しています。

ご覧のとおり、出力はかなり圧倒的で、読者はあなたが押し付ける情報の壁に迷ってしまうかもしれません。 適切に選択された参考文献のスタイルにより、読者は探しているものを見つけやすくなります。.bibファイル全体を読者に渡したとしても、読者が混乱したり、正しい引用を見つけるのを妨げたりする間違いを犯していないという保証はありません。 ファイルが、.bib適切なスタイルで生成された参考文献の出力よりも読者に有利になる唯一の状況は、エントリがのデータ モデル.bibに準拠していない場合ですが、 を使用すると、そのことを簡単に警告できます。 全体として、ファイル全体を単に表示することのデメリットはメリットを上回るはずです。論文や教科書で、自分のファイルを適切な参考文献として渡そうとする人を私は一度も見たことがありません。biblatexbiber --validate-datamodel.bib.bib


とはいえ、debugスタイルは

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[british]{babel}
\usepackage{csquotes}
\usepackage[style=debug]{biblatex}

\addbibresource{biblatex-examples.bib}

\begin{document}
\cite{sigfridsson}
\printbibliography
\end{document}

ここに画像の説明を入力してください

このスタイルではbiblatex、データ モデル内で Biber に認識されているフィールドのみがリストされます。奇妙なフィールドを使用したり、フィールド名に入力ミスがあったりすると、それらは削除されます。もちろん、biber --validate-datamodelこれについては警告が表示されます。


楽しみのために、当初の意図に近い解決策をここに示します。

シェル エスケープを有効にして、次の 2 回 LaTeX を実行します。必要な実行は既にシェル エスケープによって実行されているため、これ以上 Biber を実行する必要はありません。通常どおり Biber を実行すると、引用はstyle=debug上記のように太字から通常の形式に変わります。通常どおり Biber を実行しない場合は、当然、Biber を再度実行するように通知する警告が表示されますが、これらの警告は無視できます。

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[british]{babel}
\usepackage{csquotes}
\usepackage[style=debug]{biblatex}
\usepackage{listings}
\lstset{basicstyle=\ttfamily, breaklines=true}
\addbibresource{biblatex-examples.bib}

\usepackage{filecontents}
\begin{filecontents*}{onlycitedsort.conf}
<?xml version="1.0" encoding="UTF-8"?>
<config>
  <output_align>true</output_align>
  <output_fieldcase>lower</output_fieldcase>
  <output_safechars>1</output_safechars>
  <sorting>
    <sort order="1">
      <sortitem order="1">entrykey</sortitem>
    </sort>
  </sorting>
</config>
\end{filecontents*}

\IfFileExists{\jobname.bcf}
  {\immediate\write18{biber --output_format=bibtex \jobname.bcf}%
   \immediate\write18{biber --tool --configfile=onlycitedsort.conf \jobname_biber.bib}}
 {\typeout{Please rerun LaTeX.}}

\begin{document}
\cite{sigfridsson,worman,geer,cicero,vizedom:related}
\IfFileExists{\jobname_biber_bibertool.bib}
  {\lstinputlisting{\jobname_biber_bibertool.bib}}
  {empty bibliography}
\end{document}

取得する

ここに画像の説明を入力してください

関連情報