0

I'm working in R and knitting my output into a beamer presentation (The script below can be copied into an R script). My titles are naturally larger than the main text. However, I would like everything to be larger, meaning that I don't want everything the same font size, but everything one font larger compared to what it is now:

#' ---
#' title: "title"
#' subtitle: "Subtitle"
#' author: |
#'   | Me
#' institute: University
#' date: January, 2018
#' header-includes:
#'   - \usepackage{array}         # #' fontsize: 13pt
#'   - \usepackage{multicol}
#'   - \usepackage{fontspec}
#'   - \setmainfont{Montserrat Bold}
#'   - \setsansfont{Roboto Light}
#' output: 
#'   beamer_presentation:
#'     toc: no
#'     slide_level: 2
#'     fig_caption: false
#'     latex_engine: xelatex
#' ---
#' ## Contents
#' 
#' \tableofcontents
#' 
#' # Introduction
#' 
#' ## More Text
#' 
#'  
#' ## Title
#' 
#' - Part I 
#' - Part II
#' - Part III
#' 

Changing the font size as I have it now doesn't work. Any suggestions on what I need to change?

  • Can you try to add \makeatletter\def\beamer@size{{size14.clo}}\makeatother to your header? – user36296 Feb 5 '18 at 16:15
  • Or you could choose a smaller paper size. – user36296 Feb 5 '18 at 16:17
  • Thank you for the suggestion, but I wasn't able to knit that. I got the following error: Error producing PDF. ! LaTeX Error: Can be used only in preamble – Nina Feb 5 '18 at 17:16
  • 1
    can you try tex.stackexchange.com/a/187757/36296 with \documentclass[14pt]{beamer}? – user36296 Feb 5 '18 at 18:09
  • 1
    It's hard to say based on the code you've provided. You can improve your question by adding a minimal working example (MWE) that more users can copy/paste onto their systems to work on. – erik Feb 6 '18 at 19:51
1

In order to load a fontsize of 14, you have to have the extsize package installed.

From beamer manual :

\documentclass[14pt]{beamer}

Makes all fonts somewhat bigger. Requires extsize to be installed.

  • You don't have to load the package, it only needs to be installed. – user36296 Feb 8 '18 at 12:24
  • @samcarter. Thanks. Edited my post. And I was wondering how does beamer parses a usepackage before reading the first line. – sztruks Feb 8 '18 at 12:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.