Gre*_*ell 3 html markdown rstudio knitr
我希望我已经正确标记了这一点 - 我想在R Studio中使用Markdown创建一个HTML演示文稿.我想要做的是创建超链接,点击时将跳转到指定页面,而不是大多数演示文稿的直线性进展.例如:
---
title: "Presentation"
output: ioslides_presentation
---
## Slide 1
This is the first slide. I'd like to be able to insert hyperlinks to a different page within the slide. For example:
[Slide 2](hyperlink to slide 2) - clicking this would jump to slide 2
[Slide 3](hyperlink to slide 3) - clicking this would jump to slide 3
[Slide 4](hyperlink to slide 4) - clicking this would jump to slide 4
## Slide 2
Text for slide 2
## Slide 3
More text for slide 3
## Slide 4
Even more text for slide 4.
Run Code Online (Sandbox Code Playgroud)
这可能吗?我试过四处寻找,但只能找到如何链接到外部网站(即[link to google](www.google.com)
这是可能的,虽然结果并不完美:
[Slide 4](#4)
Run Code Online (Sandbox Code Playgroud)
ioslides默认在新窗口中打开链接,因此链接在RStudio预览中不起作用,并将在运行时创建新的浏览器选项卡.
如果你不关心降价纯度会更容易 - 一点点HTML和JavaScript都有很长的路要走:
<a href="javascript:slidedeck.loadSlide(4)">Slide 4</a>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1642 次 |
| 最近记录: |