I am using RMarkdown Beamer and I set the theme: Szeged in the YAML header as per:

title: title

author: name
date: date

    theme: Szeged
    slide_level: 2
      in_header: header.tex
linkcolor: blue


% remove title slides at beginning of sections
% add page counter to the footer
\setbeamertemplate{footline}[frame number]

But I would like to remove the second section (between the 2nd and 3rd line) since I do not have anything there:

enter image description here

How can I do it?

Is it possible to change the colour of these lines as well?

1 Answer 1


I added the following to the TeX file:

% remove 2nd section from header
% change colour of lines
\setbeamercolor{separation line}{bg=mycolor}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .