![主題:塞格德 - 如何編輯標題](https://rvso.com/image/420739/%E4%B8%BB%E9%A1%8C%EF%BC%9A%E5%A1%9E%E6%A0%BC%E5%BE%B7%20-%20%E5%A6%82%E4%BD%95%E7%B7%A8%E8%BC%AF%E6%A8%99%E9%A1%8C.png)
我正在使用 RMarkdown Beamer,並在 YAML 標頭中設定主題:Szeged,如下所示:
---
title: title
author: name
date: date
output:
beamer_presentation:
theme: Szeged
slide_level: 2
includes:
in_header: header.tex
linkcolor: blue
---
header.tex
% remove title slides at beginning of sections
\AtBeginSection{}
% add page counter to the footer
\setbeamertemplate{footline}[frame number]
但我想刪除第二部分(第二行和第三行之間),因為我那裡沒有任何內容:
我該怎麼做?
是否也可以改變這些線條的顏色?
答案1
我將以下內容添加到 TeX 文件中:
% remove 2nd section from header
\makeatletter
\beamer@theme@subsectionfalse
\makeatother
% change colour of lines
\definecolor{mycolor}{RGB}{7,75,164}
\setbeamercolor{separation line}{bg=mycolor}