如何在 Bookdown 中配置推特按钮?
How to configure twitter button in Bookdown?
我想知道如何在 bookdown 的 gitbook 输出格式中配置 twitter 按钮。
我无法在 Authoring Books and Technical Documents with R Markdown
中找到答案
来自 https://bookdown.org/yihui/bookdown/html.html#gitbook-style
bookdown::gitbook:
config:
sharing:
facebook: yes
twitter: yes
google: no
weibo: no
instapper: no
vk: no
all: ['facebook', 'google', 'twitter', 'weibo', 'instapaper']
On the right of the toolbar, there are some buttons to share the link on social network websites such as Twitter, Facebook, and Google+. You can use the sharing
option to decide which buttons to enable. If you want to get rid of these buttons entirely, use sharing: null
(or no
).
这是一个最小的例子:
index.Rmd
---
title: "A Book"
author: "Frida Gomam"
site: bookdown::bookdown_site
output:
bookdown::gitbook:
config:
sharing:
twitter: yes
---
# reference
This is my table \@ref(tab:mytable)
# table
```{r mytable, echo=TRUE}
knitr::kable(iris[1:10, ], booktabs=T, caption='A table of the first 10 rows of the mtcars data')
```
我想知道如何在 bookdown 的 gitbook 输出格式中配置 twitter 按钮。
我无法在 Authoring Books and Technical Documents with R Markdown
中找到答案来自 https://bookdown.org/yihui/bookdown/html.html#gitbook-style
bookdown::gitbook:
config:
sharing:
facebook: yes
twitter: yes
google: no
weibo: no
instapper: no
vk: no
all: ['facebook', 'google', 'twitter', 'weibo', 'instapaper']
On the right of the toolbar, there are some buttons to share the link on social network websites such as Twitter, Facebook, and Google+. You can use the
sharing
option to decide which buttons to enable. If you want to get rid of these buttons entirely, usesharing: null
(orno
).
这是一个最小的例子:
index.Rmd
---
title: "A Book"
author: "Frida Gomam"
site: bookdown::bookdown_site
output:
bookdown::gitbook:
config:
sharing:
twitter: yes
---
# reference
This is my table \@ref(tab:mytable)
# table
```{r mytable, echo=TRUE}
knitr::kable(iris[1:10, ], booktabs=T, caption='A table of the first 10 rows of the mtcars data')
```