我正在尝试打印整个 *.bib 文件。我想打印引文关键字以及所有条目.bib 文件。我可以打印我的书目数据文件(.bib),但无法打印我的引用密钥。我可以使用 BibTeX 或biblatex
。有什么想法可以做到这一点吗?
这是一个更清楚的解释:
我的 MCMC.bib 文件包含:
@ARTICLE{Ait04,
author = {Y. A\"{i}t-Sahalia},
title = {Disentangling Diffusion from Jumps},
journal = {Journal of Financial Economics },
year = {2004},
volume = {74},
pages = {487-528}
}
@ARTICLE{Ait02,
author = {Y. A\"{i}t-Sahalia},
title = {Maximum-Likelihood Estimation of Discretely-Sampled Diffusions: A Closed-Form Approximation Approach},
journal = {Econometrica },
year = {2002},
volume = {70},
pages = {223-262}
}
我使用以下 LaTeX 文件:
\documentclass[12pt]{article}
\usepackage[style=verbose,citestyle=alphabetic,sorting=nty,natbib=true]{biblatex}
\bibliography{MCMC}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
我希望输出文件包含引用键Ait04
和Ait02
每个引用的开头,这样我就能知道我为每个引用分配了什么键。如能得到任何帮助我将不胜感激。
答案1
这showkeys
这个包可能正好满足你的需求:
\documentclass[12pt]{article}
\usepackage[style=verbose,citestyle=alphabetic,sorting=nty,natbib=true]{biblatex}
\begin{filecontents}{MCMC.bib}
@ARTICLE{Ait04,
author = {Y. A\"{i}t-Sahalia},
title = {Disentangling Diffusion from Jumps},
journal = {Journal of Financial Economics },
year = {2004},
volume = {74},
pages = {487-528}
}
@ARTICLE{Ait02,
author = {Y. A\"{i}t-Sahalia},
title = {Maximum-Likelihood Estimation of Discretely-Sampled Diffusions: A Closed-Form Approximation Approach},
journal = {Econometrica },
year = {2002},
volume = {70},
pages = {223-262}
}
\end{filecontents}
%\bibliography{MCMC}
\addbibresource{MCMC.bib}% is recommended for biblatex
\usepackage{showkeys}
\begin{document}
\nocite{*}
\printbibliography
\end{document}