投影仪压缩距离的内容表

投影仪压缩距离的内容表

我想从顶部挤压 beamer 中的目录。另外,我想增加字幕的水平距离,如下图所示

这里

这是我的代码。请建议简单的代码,因为我是 Beamer 的初学者

\documentclass{beamer}

\usepackage{beamerthemesplit}

\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[subsections numbered]


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

\frame{\titlepage}

\begin{frame}
    \frametitle{Contents:}
    \begin{minipage}[t][0.5cm]{\textwidth}
    \tableofcontents
    \end{minipage}
\end{frame}

%--------------------------------------------------------
%------------------/ Section 1 /-------------------------
\section{Abstract}
\begin{frame}
    \frametitle{\textbf{1. Abstract:}}
    The primary work of my research is 
\end{frame}

%______________________________________________________
\subsection{ssssss}
\begin{frame}
    \frametitle{\textbf{1.2. ssssssss}}
    ssssssssssssssssssssssss
\end{frame}

%______________________________________________________
\subsection{fffffff}
\begin{frame}
    \frametitle{\textbf{1.3. ffffff}}
    ffffffffffffffffffffffffffffff
\end{frame}

%--------------------------------------------------------
%------------------/ Section 2 /-------------------------
\section{Introduction}
\begin{frame}
    \frametitle{\textbf{2. Introduction:}}
\end{frame}


\end{document}

答案1

要增加子部分条目的缩进,可以使用

\addtobeamertemplate{subsection in toc}{\parshape 1 2em \dimexpr\linewidth-2em\relax}{}

(将 的两个出现位置都更改2em为所需长度)。要获取顶部的目录,请使用 的 t 选项frame

\begin{frame}[t]
    \frametitle{Contents:}
    \begin{minipage}[t][0.5cm]{\textwidth}
    \tableofcontents
    \end{minipage}
\end{frame}

代码:

\documentclass{beamer}

\usepackage{beamerthemesplit}

\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[subsections numbered]

\addtobeamertemplate{subsection in toc}{\parshape 1 2em \dimexpr\linewidth-2em\relax}{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

\frame{\titlepage}

\begin{frame}[t]
    \frametitle{Contents:}
    \begin{minipage}[t][0.5cm]{\textwidth}
    \tableofcontents
    \end{minipage}
\end{frame}

%--------------------------------------------------------
%------------------/ Section 1 /-------------------------
\section{Abstract}
\begin{frame}
    \frametitle{\textbf{1. Abstract:}}
    The primary work of my research is 
\end{frame}

%______________________________________________________
\subsection{ssssss}
\begin{frame}
    \frametitle{\textbf{1.2. ssssssss}}
    ssssssssssssssssssssssss
\end{frame}

%______________________________________________________
\subsection{fffffff}
\begin{frame}
    \frametitle{\textbf{1.3. ffffff}}
    ffffffffffffffffffffffffffffff
\end{frame}

%--------------------------------------------------------
%------------------/ Section 2 /-------------------------
\section{Introduction}
\begin{frame}
    \frametitle{\textbf{2. Introduction:}}
\end{frame}


\end{document}

在此处输入图片描述

相关内容