【问题标题】:Manual placement of bibliography in pdf markdown在 pdf markdown 中手动放置参考书目
【发布时间】:2021-06-15 06:48:45
【问题描述】:

我已经阅读了这篇文章中的答案,但我无法让它们中的任何一个起作用(鉴于这篇文章现在已经超过 6 年了,这并不奇怪):How to move the bibliography in markdown/pandoc

他们建议:

::: {refs}
:::

<div id="refs"></div>

这是我的 yaml:

  output:
    bookdown::pdf_document2:
      keep_tex: true
      toc: true
      fig_caption: true
      number_sections: true
      citation_package: biblatex
  fontsize: 12pt
  geometry: margin=2.54cm
  header-includes:
    - \usepackage{leading}
    - \leading{18pt}
  bibliography: "../references/growthPotential.bib"
  csl: "../references/trends-in-ecology-and-evolution.csl"
  link-citations: yes

我在整个文档中都有编号
1 - 摘要
2 - 简介
...
7 - 参考
[这是我想要参考的地方]
8 - 表格和数字

但默认情况下,列表会在文档的最底部添加、未编号且未链接。有什么建议吗?

【问题讨论】:

    标签: r-markdown bookdown


    【解决方案1】:

    此答案摘自 Yihui Xie 的 R Markdown Cookbook。

    默认情况下,参考书目出现在文档的最后。但是,在某些情况下,我们可能希望在参考文献之后放置额外的文本,最常见的情况是我们希望在文档中包含附录。我们可以通过使用 来强制引用的位置,如下所示:

    # References
    <div id="refs"></div>
    # Appendix
    

    虽然是 HTML 标签,但此方法也适用于其他输出格式,例如 PDF。

    【讨论】:

    • 如原帖中所述,这是行不通的。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-01
    相关资源
    最近更新 更多