Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tufte-style beamer presentations in Rmarkdown?

I'd love to make "beamer presentations" Tufte-style in Rmarkdown. There I can put in the YAML header either output: beamer_presentation or

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

Is there any way to combine this? Or any other straightforward solution?

Note: I've asked the question before on tex.stackexchange with no solution.

like image 807
jay.sf Avatar asked Nov 08 '22 14:11

jay.sf


1 Answers

There are several example of tufte style beamer presentation, e.g. https://github.com/ViniciusBRodrigues/simple-tufte-beamer

One can adjust them for rmarkdown like this:

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

---

# {.plain}
\titlepage


# Titulo do slide

Este é um exemplo de texto.

with 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]{[email protected]}}}}

\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

The complete rstudio project can be seen at https://rstudio.cloud/project/706957

like image 143
samcarter_is_at_topanswers.xyz Avatar answered Nov 21 '22 22:11

samcarter_is_at_topanswers.xyz