
私は現在、LaTeXを使用して初めてのプレゼンテーションを作成しています。beamer
パッケージ。
目次ページの列挙記号を変更する方法はありますか?
現在はこんな感じですが、私にとってはちょっと派手すぎるような気がします。
答え1
section in toc
、 (subsection in toc
および場合によってはsection in toc shaded
、 ) テンプレートを設定することでsubsection in toc shaded
、目次のセクション単位エントリの書式を変更できます。セクション エントリのいくつかの代替案 (番号とボールの抑制、円の使用、番号なしのボールの使用、および四角形の使用) を示す小さな例を次に示します。
\documentclass{beamer}
\usetheme{Warsaw}
\begin{document}
\setbeamertemplate{section in toc}{\inserttocsection}
\begin{frame}
\tableofcontents
\end{frame}
\setbeamertemplate{section in toc}[circle]
\begin{frame}
\tableofcontents
\end{frame}
\setbeamertemplate{section in toc}[ball unnumbered]
\begin{frame}
\tableofcontents
\end{frame}
\setbeamertemplate{section in toc}[square]
\begin{frame}
\tableofcontents
\end{frame}
\section{Test Section One}
\frame{test}
\section{Test Section Two}
\frame{test}
\end{document}
もちろん、独自のスタイルを定義することもできます。たとえば、ボールを抑制して数字を維持するには、次のように言うことができます。
\documentclass{beamer}
\usetheme{Warsaw}
\setbeamertemplate{section in toc}{\inserttocsectionnumber.~\inserttocsection}
\begin{document}
\begin{frame}
\tableofcontents
\end{frame}
\section{Test Section One}
\frame{test}
\section{Test Section Two}
\frame{test}
\end{document}
以下は、目次でセクションとサブセクションのエントリを表示する方法を変更する、より複雑な例です。
\documentclass{beamer}
\usetheme{Warsaw}
\setbeamertemplate{section in toc}{%
{\color{orange!70!black}\inserttocsectionnumber.}~\inserttocsection}
\setbeamercolor{subsection in toc}{bg=white,fg=structure}
\setbeamertemplate{subsection in toc}{%
\hspace{1.2em}{\color{orange}\rule[0.3ex]{3pt}{3pt}}~\inserttocsubsection\par}
\begin{document}
\begin{frame}
\tableofcontents
\end{frame}
\section{Test Section One}
\subsection{Test Subsection One One}
\frame{test}
\subsection{Test Subsection One Two}
\frame{test}
\section{Test Section Two}
\subsection{Test Subsection Two One}
\frame{test}
\subsection{Test Subsection Two Two}
\frame{test}
\end{document}