更改 Beamer 侧边栏的外观

更改 Beamer 侧边栏的外观

我想让我的左侧导航栏更大,并且让导航栏使用的字体更大。换句话说,我想让它扮演内容的角色。在此处输入图片描述

这是我的代码:

\documentclass[aspectratio=169,xcolor=dvipsnames]{ctexbeamer}
\usetheme{Berkeley}
\usecolortheme{spruce}
\usepackage{ctex}
\usepackage{hyperref}
\usepackage{graphicx} 
\usepackage{booktabs} 
\usepackage{amssymb,mathrsfs,amsmath}
\usepackage{mathrsfs}
\usepackage{cite}
\usepackage{multirow}
\usepackage{array}
\usepackage{pdfpages}

\setCJKsansfont{STSongti-SC-Regular}
\usepackage{fontspec}
\newfontfamily\chalkd{Times New Roman}
\setbeamerfont{normal text}{family=\chalkd,series=\mdseries}
\setbeamerfont{alerted text}{family=\chalkd,series=\bfseries}
\setbeamerfont{frametitle}{family=\chalkd,series=\bfseries}
\setbeamerfont{exampleblock}{family=\chalkd,series=\bfseries}
\AtBeginDocument{\usebeamerfont{normal text}}


\title[]{\huge  ********} % The short title appears at the bottom of every slide, the full title is only on the title page
\subtitle{}
\author[] {\Large *******}
\date{*******} 

\makeatletter
\setbeamertemplate{frametitle continuation}{\gdef\beamer@frametitle{}}
\makeatother

\newcommand\ucite[1]{\textsuperscript{\cite{#1}}}   
\newcommand\hs[1]{\hspace{#1}}
\newcommand\vs[1]{\vspace{#1}}



\begin{document}
    
    \begin{frame}
        \titlepage
    \end{frame}
    
    %------------------------------------------------
    \section{section1}

    %------------------------------------------------
    
    \begin{frame}{Bullet Points}
    0
    \end{frame}
    
    %------------------------------------------------
        \section{section2}
    \begin{frame}{Blocks of Highlighted Text}
    1
    \end{frame}
    
    %------------------------------------------------
    
    \section{section3}
    \begin{frame}
        2
    \end{frame}
\end{document}

答案1

  • 您可以使用width=...Berkeley 主题的选项来更改侧边栏的宽度

  • 侧边栏各部分的字体大小可以通过以下方式更改:\setbeamerfont{section in sidebar}{size=...}


\documentclass{beamer}
\usetheme[width=4cm]{Berkeley}
\setbeamerfont{section in sidebar}{size=\normalsize}
\usecolortheme{spruce}

\begin{document}

\section{section1}
\begin{frame}
test
\end{frame}

\end{document}

在此处输入图片描述

相关内容