首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >引用R markdown中的markdown表

引用R markdown中的markdown表
EN

Stack Overflow用户
提问于 2019-12-11 01:59:53
回答 1查看 553关注 0票数 1

我的问题是如何引用像下面这样的markdown格式的表,因为这里的答案不起作用Referencing a 'hand-made' table using bookdown package我尝试过

代码语言:javascript
复制
---
output: html_document
---

you may refer to this table using \@ref(tab:foo)

Table: (\#tab:foo) Your table caption.

+-----------------------+-----------------------+-----------------------+
| Auteur                | Protocole             | Résultats             |
+=======================+=======================+=======================+
| (Jiayi 2011)          | Analyse formantique   | Diphtongaison de [e  |
+-----------------------+-----------------------+-----------------------+

但它并没有起作用。

它会给出"Table:(#tab:foo) Your table caption“。如果我使用@ref(标签:foo)交叉引用,则标题和“您可以使用@ref(标签:foo)引用此表”。

也可以有自动编号功能吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-12-11 02:32:44

看起来你只需要使用bookdown的output formats

代码语言:javascript
复制
---
output:
  bookdown::html_document2:
    df_print: paged
---

you may refer to this table using \@ref(tab:foo)

Table: (\#tab:foo) Your table caption.

+-----------------------+-----------------------+-----------------------+
| Auteur                | Protocole             | Résultats             |
+=======================+=======================+=======================+
| (Jiayi 2011)          | Analyse formantique   | Diphtongaison de [e  |
+-----------------------+-----------------------+-----------------------+
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59272981

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档