LaTeX 和 Bibtex:从 bib 文件打印单个完整参考文献的命令?

发布于 2024-09-28 13:43:00 字数 458 浏览 5 评论 0原文

我希望能够在 LaTeX 文档中的任何位置打印 Bibtex .bib 文件中的单个参考文献 - 不是引用它,而是打印参考文献,与正常参考书目列表中显示的完全一样。

因此,如果这是常规引用,则会打印带括号的引用:

% Normal citation, appears as bracketed reference, e.g. [2]
\cite{Kawahara:2007p1116}

我想要类似以下内容的内容:

\print_citation{Kawahara:2007p1116}

它应该打印参考书目中出现的完整引用,如下所示:

[2] S 川原。日本说唱歌词中的半押韵和相似性知识。 东亚杂志 语言学,2007 年 1 月。

这可能吗?

I'd like to be able to print a single reference from a Bibtex .bib file anywhere in my LaTeX document—not cite it, but print the reference, exactly as it would appear in the normal bibliography listing.

So if this is a regular citation, that prints a bracketed reference:

% Normal citation, appears as bracketed reference, e.g. [2]
\cite{Kawahara:2007p1116}

I want something like the following:

\print_citation{Kawahara:2007p1116}

which should print the full citation as it appears in the bibliography, something like:

[2] S Kawahara. Half rhymes in japanese rap lyrics and knowledge of similarity. Journal of East Asian
Linguistics
, Jan 2007.

Is it possible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

森林散布 2024-10-05 13:43:00

\fullcitebiblatex 包一起使用,如 tex.stackexchange 上的这个答案

Use \fullcite with the biblatex package as mentioned in this answer on tex.stackexchange.

岁月苍老的讽刺 2024-10-05 13:43:00

bibentry 包将提供内联参考书目。参考:http://stefaanlippens.net/bibentry

不过我自己还没有尝试过。

bibentry package would provide inline bibliography. Ref: http://stefaanlippens.net/bibentry.

I've not tried it out myself though.

尬尬 2024-10-05 13:43:00

我的简历很好地使用了 multibib

\usepackage[resetlabels]{multibib}

% Define bibliographies.
\newcites{j,c}{Journal Publications,Conference Publications}

\begin{document}
% Stuff here.

% Publications.
\bibliographystylej{IEEEtran}
\bibliographystylec{IEEEtran}

\nocitej{journalpaperlabel1}
\nocitej{journalpaperlabel2}
\nocitec{conferencepaperlabel1}

\bibliographyj{mybib}
\bibliographyc{mybib}

% More stuff here.
\end{document}

此处编辑了一些不那么自我推销的内容。

My CV uses multibib nicely:

\usepackage[resetlabels]{multibib}

% Define bibliographies.
\newcites{j,c}{Journal Publications,Conference Publications}

\begin{document}
% Stuff here.

% Publications.
\bibliographystylej{IEEEtran}
\bibliographystylec{IEEEtran}

\nocitej{journalpaperlabel1}
\nocitej{journalpaperlabel2}
\nocitec{conferencepaperlabel1}

\bibliographyj{mybib}
\bibliographyc{mybib}

% More stuff here.
\end{document}

Edited with something less self-promoting here.

ζ澈沫 2024-10-05 13:43:00

另请参阅此答案,提供了一个使用 biblatex 及其类别系统的技巧:



\documentclass{article}
\usepackage{filecontents}
\usepackage{biblatex}
\begin{filecontents*}{\jobname.bib}
@misc{Gyro2012,
  author = {Gearloose, Gyro},
  title = {1st paper with a very loooooooooooong title, so it spans multiple rows},
}
@misc{Gyro2013,
  author = {Gearloose, Gyro},
  title = {2nd paper},
}
@misc{Stark2012,
  author = {Stark, Anthony Edward},
  title = {3rd paper},
}
@misc{Stark2013,
  author = {Stark, Anthony Edward},
  title = {4th paper},
}
\end{filecontents*}

\addbibresource{\jobname.bib}

\DeclareBibliographyCategory{enumpapers}

\newcommand{\enumcite}[1]{%
  \addtocategory{enumpapers}{#1}%
  \defbibcheck{key#1}{
    \iffieldequalstr{entrykey}{#1}
      {}
      {\skipentry}}%
  \printbibliography[heading=none,check=key#1]%
}

\begin{document}

\nocite{*}

\begin{enumerate}
    \item \enumcite{Gyro2012}
    \setcounter{enumi}{9} % Two digits to test alignment
    \item \enumcite{Gyro2013}
\end{enumerate}

\printbibliography[notcategory=enumpapers]
\end{document}

See also this answer, that provides a trick using biblatex and its category system:



\documentclass{article}
\usepackage{filecontents}
\usepackage{biblatex}
\begin{filecontents*}{\jobname.bib}
@misc{Gyro2012,
  author = {Gearloose, Gyro},
  title = {1st paper with a very loooooooooooong title, so it spans multiple rows},
}
@misc{Gyro2013,
  author = {Gearloose, Gyro},
  title = {2nd paper},
}
@misc{Stark2012,
  author = {Stark, Anthony Edward},
  title = {3rd paper},
}
@misc{Stark2013,
  author = {Stark, Anthony Edward},
  title = {4th paper},
}
\end{filecontents*}

\addbibresource{\jobname.bib}

\DeclareBibliographyCategory{enumpapers}

\newcommand{\enumcite}[1]{%
  \addtocategory{enumpapers}{#1}%
  \defbibcheck{key#1}{
    \iffieldequalstr{entrykey}{#1}
      {}
      {\skipentry}}%
  \printbibliography[heading=none,check=key#1]%
}

\begin{document}

\nocite{*}

\begin{enumerate}
    \item \enumcite{Gyro2012}
    \setcounter{enumi}{9} % Two digits to test alignment
    \item \enumcite{Gyro2013}
\end{enumerate}

\printbibliography[notcategory=enumpapers]
\end{document}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文