Rmarkdown中的Tufte风格beamer演示文稿?

5
我很乐意在Rmarkdown中制作"Tufte风格"的"beamer演示文稿"Tufte-style。在YAML头部,我可以放置output: beamer_presentation或者
output:
  tufte::tufte_html: default    
  tufte::tufte_handout:
    citation_package: natbib
    latex_engine: xelatex

有没有什么方法可以将这些内容合并起来?或者其他简单直接的解决方案?

注意:我之前在tex.stackexchange上提过这个问题before,但没有得到解决。


1
不确定rmardown如何处理此问题,但在普通的pandoc中,您只需定义一个自定义模板即可:http://pandoc.org/MANUAL.html#templates - mb21
鉴于Tufte先生曾公开反对使用PPT,也许这是有意而为之的呢;-) - bjw
1个回答

1

有几个图夫特风格的Beamer演示文稿例子,例如https://github.com/ViniciusBRodrigues/simple-tufte-beamer

可以像这样调整它们用于rmarkdown:

---
output: 
  beamer_presentation:
    keep_tex: true
    includes:
      in_header: preamble.tex

---

# {.plain}
\titlepage


# Titulo do slide

Este é um exemplo de texto.

使用 preamble.tex
\usepackage{mathpazo}
\usefonttheme{serif}
\usepackage[document]{ragged2e}
\usepackage[scaled=0.90]{helvet}
\usepackage[scaled=0.85]{beramono}


\title[Título da apresentação]{\textls[200]{\uppercase{Título da apresentação}}}
\author[Vinícius Barros Rodrigues]{\textls[200]{\uppercase{Vinícius Barros Rodrigues \\ \vspace*{0.2cm} Universidade Federal de Viçosa \\ \vspace*{0.7cm}}} \texttt{\lowercase{\textls[10]{viniciusbrbio@gmail.com}}}}

\date{}
\setbeamerfont{title}{family=\fontfamily{phv}}
\setbeamercolor{title}{fg=black}
\setbeamerfont{author}{family=\fontfamily{phv}}
\setbeamercolor{author}{fg=black}
\setbeamerfont{frametitle}{series=\itshape}
\setbeamercolor{frametitle}{fg=black} 
\setbeamertemplate{frametitle}{\vspace*{0.7cm}\insertframetitle}
\setbeamertemplate{title page}[default][left]

enter image description here

完整的RStudio项目可以在https://rstudio.cloud/project/706957中查看。

不错,但是我遇到了一个错误 pandoc.exe: Cannot decode byte '\xed': Data.Text.Internal.Encoding.decodeUtf8: Invalid UTF-8 stream。你能让这个问题更容易重现吗? - jay.sf
@jay.sf 对于 pandoc 错误我也不清楚,但在 rstudio.cloud 上它可以正常工作。我已经添加了一个链接到完整的项目。你根本不需要 zip 文件,因为它是用于普通的 beamer,正如我在回答中所写的,它需要适应 rmarkdown。 - samcarter_is_at_topanswers.xyz

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接