我已经采取了冒险,并正在准备一份手稿,以出版完全在RStudio使用预订。在主要的文本中,我想在一个单独的支持信息.Rmd文件中交叉引用数字。
假设这是我的主要文本文件,名为main.Rmd
---
title: "Main text"
output:
bookdown::pdf_book:
toc: no
---
Here is the main text file. I would like to refer to \@ref(fig:supporting-figure).
下面是名为supporting.Rmd的支持文本,以及要引用的图,保存在同一个文件夹中:
在这个问题中,我使用了Code First方法来构建数据库。我有以下(部分)实体:
public class Tournament {
public int TournamentID { get; set; }
public String Name { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? EndDate { get; set; }
public int? SportID { get; set; }
public virtual Sport S
我很感激我想做的事听起来很傻,但请耐心地听我说。我想要将一个表的现有图像( PNG)插入到RMarkdown文档中,该文档将被转换为pdf。我是否可以这样做,并将图像作为表进行编号处理?那就是,显然我可以
![A caption for my table](my_table_as_image.png)
但问题是它将被编号为例如图X,而不是表Y。我希望它被命名/编号为一个表。
谢谢你的建议。
当我将我的.Rmd编织成.docx时,我试图得到方程式编号,但我还没有找到一种方法来获得这个或标签来交叉引用它们。我试过这个:
$$
P(L|C_L, C_R) = \frac {10^{\sum_{n=1}^ {4} (w_{c_{L,i}} - w_{c_{R,i}})}} {1+10^{\sum_{n=1}^ {4} (w_{c_{L,i}} - w_{c_{R,i}})}}
$$\label(#eq:left)
The probability for the left side winning can be calculated using \@ref(eq:
我正在将一些Sweave文件转换为rmarkdown/bookdown。我有编号名单。在乳胶中,这些是
\begin{itemize}
\item one
\item two
\end{itemize}
如果我有两个项目,我会写
1. one
2. two
使用标准的标记。但我的清单是20-30个项目,我在编辑的时候移动东西。后者是问题所在。当我删除或添加一个\项时,我将不得不对所有内容重新编号。
有没有人注意到,如果引用使用下划线而不是连字符,rmarkdown不会对表标题进行编号?见下面的片段。或者为一个工作示例构建。
---
title: "Table Captioning"
output:
bookdown::html_document2:
number_sections: true
fig_caption: true
---
# Example
It works in table \@ref(tab:dummy-table) when using hypens.
Table: (\#tab:dummy-table) Some capti