在 R Markdown 文档中手动缩进引用

编程入门 行业动态 更新时间:2024-10-15 00:27:25
本文介绍了在 R Markdown 文档中手动缩进引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试手动缩进 R Markdown 文档中的引用.

I am trying to manually indent references in an R Markdown document.

它用于简历,包括我目前没有 BibTeX 格式的内容.

It is for a CV and includes things that I don't presently have in BibTeX format.

这是一个例子:

--- title: "Untitled" author: "Joshua Rosenberg" date: "10/20/2018" output: pdf_document: default html_document: default --- ### Journal Article \begingroup \setlength{\parindent}{-0.2in} \setlength{\leftskip}{0.2in} \setlength{\parskip}{8pt} Blois, M. S. (1958). Antioxidant determinations by the use of a stable free radical. Nature, 181(4617), 1199. Blois, M. S. (1958). Antioxidant determinations by the use of a stable free radical. Nature, 181(4617), 1199. \endgroup

然而,当我把它编成 PDF 时,第一个引用没有正确缩进,尽管所有后续引用都是:

When I knit this to a PDF, however, the first reference is not properly indented, though all subsequent references are:

知道如何使用 LaTeX(或其他方式)正确缩进所有引用吗?

Any idea how I can use LaTeX (or some other means) to correctly indent all of the references?

推荐答案

Put:

\noindent

在您不想缩进的行首或上方.

at beginning of or above the line you don't want to be indented.

更多推荐

在 R Markdown 文档中手动缩进引用

本文发布于:2023-11-28 13:33:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642611.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文档   Markdown

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!