Rpres HTML5演示文稿"另存为PDF"(谷歌浏览器)显示不正确

Dan*_*ian 16 pdf html5 google-chrome r rstudio

我试图将Rpres HTML5演示文稿(Rstudio的一个新功能)保存为PDF文档,它将作为演示文稿讲义(如此处所示)

问题是输出看起来在pdf中搞砸了,即使对于RStudio提供的基本演示示例也是如此.

如何重新创建问题 - 将其从RStudio中复制到新的.Rpres文件,或者只是打开新的File -> New File -> R Presentation:

test
========================================================
author: 
date: 

First Slide
========================================================

For more details on authoring R presentations click the
**Help** button on the toolbar.

- Bullet 1
- Bullet 2
- Bullet 3

Slide With Code
========================================================

```{r}
summary(cars)
```

Slide With Plot
========================================================

```{r, echo=FALSE}
plot(cars)
```
Run Code Online (Sandbox Code Playgroud)

在RStudio中,单击Preview -> View in Browser Google Chrome内部,right-click -> Print...将产生以下凌乱的pdf

Dan*_*ian 13

目前,RStudio没有为Rpresentations提供打印CSS.根据RStudio支持回复,他们希望添加该功能以直接保存为RStudio.与此同时,Pandoc是要走的路.

编辑2014年5月12日:

同时,PDF制作演示文稿已在RStudio中实施.您可以使用控件在幻灯片之间导航,从而获得横向格式的精美PDF.从这里下载预览版本0.98.836或更高版本.然后点击:

File -> New File -> R Markdown -> Presentation -> Default Output Format = PDF (Beamer)

在此输入图像描述

  • ioslides格式与默认R Presentation的格式明显不同,从一个到另一个的粘贴会产生各种错误.有没有办法将从Rpres脚本生成的现有HTML5文件打印到pdf,以免产生奇怪的混乱pdf? (7认同)