使用bookdown(单个文档)时,数字会自动编号为:
图1图标题文字.
在化学中,惯例是将主要数字标记为:
图1.图标题文字.
并为支持信息文件:
图S1.图标题文字.
另外在我们需要的文字参考文献中:
......如图1所示,......
所以参考文本不应该是粗体.
如何使用bookdown(或rmarkdown)生成图形和表格标题,如下所示:" 图S1.一些文字." 和" 表S1.一些文字." ?
我需要这是MS Word格式.
到目前为止,我试图修改_bookdown.yml文件如下:
language:
label:
fig: "**Figure S**"
tab: "**Table S**"
Run Code Online (Sandbox Code Playgroud)
这给出了:图S 1一些文本......以及使用时的内联引用:
Figure S\@ref(fig:Xray)
Run Code Online (Sandbox Code Playgroud)
是图S1,没关系.
这是一个最小的例子:
---
title: Supporting Information
subtitle: "Iron(I) etc"
author: "Some people here"
abstract: "Added the addresses here since there is no abstract in the SI"
output:
bookdown::word_document2:
fig_caption: yes
toc: yes
toc_depth: 1
---
## Reaction of etc.
Some …Run Code Online (Sandbox Code Playgroud) 我已经看到了各种适用于 pdf 和 HTML 文档输出的解决方案。但是,对于文字输出,没有一个对我有用。当|按照此处的建议使用时:将标题拆分为多行?只是让整个标题消失了。这是代码:
---
title: |
| Supporting Information
| Development and mechanistic bla bla.
author: Some people
output:
word_document:
reference_docx: ACS SI style for RMD.docx
mainfont: Arial
---
<style>
body {
text-align: justify}
p {line-height: 1.5em;}
</style>
Run Code Online (Sandbox Code Playgroud)
任何帮助将非常感激。
是否可以使用 RMarkdown 在文本中执行简单的计算?例如,当输入:
...compound A (50 mg, ?0.05/2? mmol) was added...
Run Code Online (Sandbox Code Playgroud)
在哪里 ?是一些语法让 RMarkdown 知道它需要计算之间的内容,而不仅仅是将其导出为文本,以获取单词输出文件:
...添加化合物 A (50 mg, 0.025 mmol)...
我发现这个关于 LaTeX 的相关问题:Is There a Calculator with LaTeX-syntax? 但不知道在 RMarkdown 中是否可行。这似乎是一个显而易见的功能。