【问题标题】:Is there a way to keep the numbering of the bibliography but have the citation itself in apa-style?有没有办法保留参考书目的编号,但引用本身是 apa 风格的?
【发布时间】:2021-06-17 08:49:00
【问题描述】:

所以目前我的参考书目包括:

[1] 名字姓氏,第二作者。关于某事的有趣论文,第 900 卷。科学论文,2022 年。

但是,我想在 APA 引用中使用它,即

[1] 姓氏,F.,作者,S. (2022)。关于某事的有趣论文,第 900 卷。科学论文。

但是,在实现 apacite 时,这是我的 google 搜索中最推荐的答案,这会导致 [1] 被删除,并且文本引用也被破坏了。有没有办法在文本和参考书目中保留这些 [x] 引用,但以 APA 样式获取引用?

【问题讨论】:

  • 请制作一个可编译的minimal reproducible example
  • 经验法则:每当你想改变你的围兜风格时,如果你切换到 biblatex,这会容易得多。
  • @samcarter_is_at_topanswers.xyz 这怎么不是 MRE?这里应该很清楚我想要什么
  • 我还没有在 biblatex 中看到这样做的方法
  • mre 应该包含一个简短但可编译的文档,我们可以使用它进行测试。我们不知道您的文档是什么样子,您使用的是哪个包等。

标签: latex bibliography


【解决方案1】:

使用 biblatex 你可以做到:

\documentclass{article}

\usepackage[citestyle=numeric,bibstyle=apa]{biblatex}

\makeatletter
\DeclareFieldFormat{bibentrysetcount}{\mkbibparens{\mknumalph{#1}}}
\DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}}
\DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}}
\defbibenvironment{bibliography}
  {\list
     {\printtext[labelnumberwidth]{%
        \printfield{labelprefix}%
        \printfield{labelnumber}}}
     {\setlength{\labelwidth}{\labelnumberwidth}%
      \setlength{\leftmargin}{\labelwidth}%
      \setlength{\labelsep}{\biblabelsep}%
      \addtolength{\leftmargin}{\labelsep}%
      \setlength{\itemsep}{\bibitemsep}%
      \setlength{\parsep}{\bibparsep}}%
      \renewcommand*{\makelabel}[1]{\hss##1}}
  {\endlist}
  {\item}
\makeatother

\addbibresource{biblatex-examples.bib}

\begin{document}

\cite{angenendt}

\printbibliography

\end{document}

【讨论】:

  • 谢谢!这正是我想要的:)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-02-03
  • 2020-07-16
  • 2014-09-30
  • 1970-01-01
相关资源
最近更新 更多