Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R Markdown (Pandoc) beamer presentation with short title

I am trying to use beamer_presentation in RMarkdown and in the YAML header I include, say, title: "Long title". This title appears on the first title page of my slides but also at the bottom of all slides. However, at the bottom of all slides I would like a shorter title to appear. I wonder if something like short-title: "Short title" could be used. I know that there is uiucthemes that allows that, but I don't want to use the uiuc style. Thanks!

like image 564
Daniel Avatar asked May 08 '18 04:05

Daniel


1 Answers

You can pass an optional argument to the \title macro which will be used in the footline:

---
title: "Long title"
output: 
  beamer_presentation:
    theme: "CambridgeUS"
    keep_tex: true
header-includes:
  - \AtBeginDocument{\title[short title for footline]{long title for title page}}

---



text

enter image description here

like image 90
samcarter_is_at_topanswers.xyz Avatar answered Sep 30 '22 02:09

samcarter_is_at_topanswers.xyz