^[脚注] 在 R Markdown 中使用罗马数字?
在 R Markdown 中使用 ^[footnote]
时,有没有办法生成罗马数字或字母,而不是数值?
谢谢!
我最初的 R Markdown 设置:
---
title: |
| title
author: |
| author
date: date
fontsize: 9pt
output:
beamer_presentation:
theme: default
slide_level: 2
includes:
in_header: header.tex
keep_tex: true
linkcolor: false
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
```
Is there a way to generate roman numerals or letters, instead of numerical values, when using ^[footnote]
in R Markdown?
Thanks!
My initial R Markdown setup:
---
title: |
| title
author: |
| author
date: date
fontsize: 9pt
output:
beamer_presentation:
theme: default
slide_level: 2
includes:
in_header: header.tex
keep_tex: true
linkcolor: false
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
```
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为重复的答案并没有说得很清楚,但基本上,你本身无法实现你想要的。
如果可以的话,您需要对 CSS(或 Markdown 处理器)进行一些更改,以在输出中包含罗马数字。
来自文档:
因此,假设这是您的 markdown:
您需要创建一个名为
'styles.css'
的新文件,并向其中添加以下代码:这将导致一些 HTML 渲染,例如这个(见下面的演示)
I think the duplicate answer does not make it very clear but basically, you cannot achieve what you want natively.
If you are able, you need to add some changes to your CSS (or Markdown processor somewhere) to include the roman numerals at the output for you.
From the docs:
So, let's say this is your markdown:
You need to create a new file called
'styles.css'
and add the following code to it:This would result in some HTML rendering like this (see demo below)