将子部分添加到 smoothtree outertheme

将子部分添加到 smoothtree outertheme

我想让子部分的名称出现在演示文稿中。这是我的 MWE:

\documentclass[dvipsnames,svgnames,table]{beamer}

\usetheme{Warsaw} 
\usepackage{amsmath,amsfonts,amssymb,pxfonts,eulervm,xspace}
\usepackage{graphicx}

\useinnertheme{rounded}
\useoutertheme{smoothtree}
\usepackage{geometry}
\setlength{\tabcolsep}{10cm}
\oddsidemargin = -1.8cm
\usepackage{pdfpages}
\setcounter{framenumber}{-1}
\marginparwidth = -12pt
\usepackage{tcolorbox}
\usepackage[spanish, es-tabla]{babel}
\usepackage[utf8]{inputenc}
\begin{document}
\subsection{Propiedades Eléctricas}
\subsubsection{Análisis de Impedancia}
\begin{frame}
Hola
\end{frame}
\end{document}

我得到的是enter image description here

但我想要: enter image description here

谢谢你!

答案1

标题的定义smoothtree可以在 中找到beamerouterthemesmoothtree.sty。在下面的代码中,您可以找到有关如何合并 的示例subsubsection。如果您想要原始设计的完美副本,您仍然需要合并阴影内容。

\documentclass{beamer}

\usetheme{Warsaw} 
\useoutertheme{smoothtree}

\setbeamertemplate{headline}
{%
    \begin{beamercolorbox}[wd=\paperwidth,ht=2.125ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}
        \usebeamerfont{title in head/foot}\insertshorttitle
    \end{beamercolorbox}
    \begin{beamercolorbox}[wd=\paperwidth,ht=2.125ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot}
        \usebeamerfont{section in head/foot}%
        \hskip6pt\insertsectionhead
    \end{beamercolorbox}
    \begin{beamercolorbox}[wd=\paperwidth,ht=2.125ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
        \usebeamerfont{subsection in head/foot}%
        \hskip12pt\insertsubsectionhead
    \end{beamercolorbox}
    \begin{beamercolorbox}[wd=\paperwidth,ht=2.125ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot}
        \usebeamerfont{subsubsection in head/foot}%
        \hskip18pt\insertsubsubsectionhead
    \end{beamercolorbox}
}

\title{test}

\begin{document}
\section{blub}
\subsection{Propiedades Elctricas}
\subsubsection{Anlisis de Impedancia}
\begin{frame}{frametitle}{framesubtitle}
Hola
\end{frame}
\end{document}

enter image description here

相关内容