Beamer目录用multicol不能对齐

发布于 2026-04-14 12:31:08

请问为什么目录分列之后,顶部不能对齐,以下是代码

\documentclass{ctexbeamer}
\usepackage{multicol}
% 自定义颜色
\xdefinecolor{mycolor}{RGB}{0,102,204}
\begin{document}
{
\setbeamertemplate{headline}{}
\setbeamertemplate{footline}{}
\begin{frame}[plain]
    \vspace*{\fill}
    \centering
    % 标题
    {\Huge \bfseries \textcolor{mycolor}{目录}}%
    \vspace{1.2em}
    \textcolor{mycolor}{\hrule}
    \vspace{1.5em}
    \begin{minipage}{0.85\textwidth}
        \begin{multicols}{2}
            \tableofcontents[hideallsubsections]
        \end{multicols}
    \end{minipage}
\end{frame}
}
\section{第一章 研究背景}
\section{第二章 研究意义}
\section{第三章 研究内容}
\section{第四章 研究方法}
\section{第五章 技术路线}
\section{第六章 总结展望}

\begin{frame}
    正文
\end{frame}
\end{document}

查看更多

关注者
0
被浏览
43
0 个回答
暂无答案,快来添加答案吧

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览