如何在r Markdown文档中插入“复制到剪贴板”图标

问题描述 投票:0回答:1

我想在我的块中插入 复制到剪贴板 图标,而不是复杂的描述,只需查看图像,这是 R Markdown Cookbook第 3.1 章的屏幕截图。

我的代码(缺少代码行来获取如图所示的图标和工具提示):

--- title: "First R Markdown Document" author: "My name" date: "Last edited: `r format(Sys.time(), '%d.%m.%Y')`" output: html_document --- This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. You can embed an R code chunk like this: ```{r, echo=TRUE} summary(cars) ``` You can also embed plots, for example: ```{r, echo=TRUE} plot(cars) ```
我发现的只是使用包 

klippy - 但这是另一种方法(或?!)。

提前非常感谢!

enter image description here

r r-markdown markdown
1个回答
0
投票
似乎这个特定的按钮仅适用于

output: bookdown::gitbook

(或本机四开):

--- title: "First R Markdown Document" author: "My name" date: "Last edited: `r format(Sys.time(), '%d.%m.%Y')`" output: bookdown::gitbook --- This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. You can embed an R code chunk like this: ```{r, echo=TRUE} summary(cars) ``` You can also embed plots, for example: ```{r, echo=TRUE} plot(cars) ```
    
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.