首页 > 解决方案 > 如何在 R markdown 中仅缩进段落的第一行?

问题描述

我正在用 R Markdown 编写我的论文并编写 HTML 或 word 文档,我只想缩进每个段落的第一行。有没有办法做到这一点?

我在 YAML 中尝试过 'indent' true' 但它没有用

这是 YAML 标头:

bibliography: references.bib
output:
  html_document:
    code_folding: show
    toc: true
    theme: journal
    fig_caption: true
    df_print: paged
    number_sections: true
    indent: true
  word_document:
    toc: true
    indent: true
link-citations: true
csl: nature.csl
biblio-style: nature

标签: r-markdownindentationparagraph

解决方案


推荐阅读