Search code examples
r-markdownbeamer

too much text for a slide: how to get all smaller


I am trying to make a very simple presentation with Rmarkdown, no chunks involved. I would like to have quite a lot of text, so things got not printed because they are off limits.

Isn't there an option that beamer will set the size of the text such that all the text is visible, or at least a quick way to make the text smaller by hand?


Solution

  • To make the text of some slides smaller, you could wrap it in a small (or tiny or footnotesize) environment:

    ---
    output: beamer_presentation
    header-includes:
    - \newcommand{\bsmall}{\begin{small}}
    - \newcommand{\esmall}{\end{small}}
    ---
    
    ## Normal slide
    
    slide text 
    
    ## Small slide
    
    \bsmall
    Slide text
    \esmall
    

    Cf. this question on tex.SE