5

我很想在 Rmarkdown中制作“投影仪演示” Tufte 风格。在那里我可以放入 YAML 标头output: beamer_presentation

output:
  tufte::tufte_html: default    
  tufte::tufte_handout:
    citation_package: natbib
    latex_engine: xelatex

有什么办法可以结合这个吗?或者任何其他直接的解决方案?

注意:之前在 tex.stackexchange 上问过这个问题,但没有解决方案。

4

1 回答 1

1

有几个 tufte 风格的投影仪演示示例,例如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]

在此处输入图像描述

完整的 rstudio 项目可见https://rstudio.cloud/project/706957

于 2019-11-12T14:11:57.483 回答