【问题标题】:Page number for references with pdf_book is final reference page, not firstpdf_book 参考的页码是最终参考页,而不是第一页
【发布时间】:2021-07-28 05:12:42
【问题描述】:

在 _output.yml 文件中,我有

bookdown::pdf_book:
  includes:
    in_header: preamble.tex
  toc_depth: 2
  latex_engine: xelatex
  citation_package: natbib
  toc_bib: true
  keep_tex: yes

目录页码都是正确的,除了页码 对于我所说的参考文献而不是参考书目, 这是 84 应该是 81。

(我用过

\renewcommand{\bibname}{References}

在 index.Rmd 中将名称更改为 References,但有 检查这对目录中的数字没有影响)

2021 年 8 月 19 日添加: 事实证明,如果我在删除 citation_package: natbib 的情况下返回并重新运行“Build Book”,然后重新运行 citation_package: natbib 重新添加,则会出现引用 因此(……为第一后的参考),目录中的页码是正确的。

\begin{CSLReferences}{0}{0}
\leavevmode\hypertarget{ref-r2_begley_2013}{}%
Begley, C. G. 2013. {``Reproducibility: Six Red Flags for Suspect Work.''} \emph{Nature} 497 (7450): 433--34. \url{https://doi.org/10.1038/497433a}.
. . .
\end{CSLReferences}

并且页面引用是正确的。

【问题讨论】:

  • 在参考部分开头生成的 LaTeX 是什么样的?

标签: r reference bookdown tableofcontents bibliography


【解决方案1】:

如果我从_output.yaml 下的bookdown::pdf_book: 中删除citation_package: natbib,那么分页是正确的。引用并不是在所有方面都得到了正确处理(至少在 bookdown 的 0.22 版中),除非使用 Pandoc 的默认值来处理引用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-09-15
    • 2011-11-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-19
    • 2012-09-19
    相关资源
    最近更新 更多