%EC%97%90%20%ED%91%9C%EC%8B%9C%EB%90%98%EC%A7%80%20%EC%95%8A%EC%8A%B5%EB%8B%88%EB%8B%A4..png)
LaTeX의 비머 모드를 사용하여 프레젠테이션을 준비하려고 합니다. 어떤 이유로 지난 섹션의 하위 섹션이 목차에 표시되지 않습니다.
다음은 내 MWE입니다(사용 중인 모든 패키지 포함).
\documentclass[a4paper,11pt,fleqn,compress]{beamer}
\usepackage[english,ngerman]{babel} % language listed last is default setting
\usepackage[utf8x]{inputenc}
\usepackage{amsmath, amsthm, amssymb, amsbsy}
\usepackage{nccmath} % includes {fleqn} environment
\usepackage{bbm} % includes \mathbbm{} symbols
\usepackage{braket} % Bra-Ket notation in quantum mechanics
\usepackage{helvet} % font set to "helvetica"
\usepackage[normalem]{ulem}
\usepackage{microtype}
\parindent=0mm % indent to indicate new paragraph prohibited
\makeatletter
\@addtoreset{section}{chapter}
\makeatother % section count set to 0 when new chapter begins
\usepackage{listliketab}
\usepackage{tabto}
\usepackage{isotope}
\usepackage{extarrows}
\usepackage{graphicx}
\usepackage{grffile} % changes the algorithm to check for known file extensions instead of using the first dot "." to find the file extension as conducted by "graphicx" and also "graphcis"
\DeclareMathSizes{12}{9}{7}{5}
\usepackage{caption}
\usepackage{subfigure}
\let\origitem\item
\renewcommand{\item}{\normalfont\origitem}
\newcommand{\bolditem}{\normalfont\bfseries\origitem}
\newcommand{\eqqcolon}{\mathrel{=\!\!\mathop:}}
\newcommand{\coloneqq}{\mathrel{\mathop:\!\!=}}
\usepackage{pdfpages}
% following content recommended for LaTeX beamer mode
\title{\textbf{Title}}
\subtitle{Subtitle}
\author{Author}
\institute{Institute}
\date{\scriptsize{Date}}
\setbeamertemplate{navigation symbols}{} % default navigation symbols hidden
\usetheme{Berlin}
\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[subsections numbered]
\setbeamertemplate{section in head/foot} {\hfill\insertsectionheadnumber.~\insertsectionhead}
\setbeamertemplate{section in head/foot shaded}{\color{structure!50}\hfill\insertsectionheadnumber.~\insertsectionhead}
\setbeamertemplate{section in toc}{\inserttocsectionnumber.~\inserttocsection}
\AtBeginSection[]
{
\begin{frame}
\frametitle{Table of Contents}
\small \tableofcontents[currentsection,hideothersubsections]
\end{frame}
} % display table of contents with current section higlighted automatically
\begin{document}
{ % to delimit a block (changes apply for this block only)
\makeatletter % to change template
\setbeamertemplate{headline}[default]
\def\beamer@entrycode{\vspace*{-\headheight}}
\setbeamertemplate{footline}[default]
\def\beamer@entrycode{\vspace*{-\footheight}}
\makeatother
\frame{\titlepage}
}
{ % to delimit a block (changes apply for this block only)
\makeatletter % to change template
\setbeamertemplate{headline}[default]
\def\beamer@entrycode{\vspace*{-\headheight}}
\makeatother
\begin{frame}
\frametitle{Table of Contents} \small \tableofcontents
\end{frame}
}
\section{Section 1}
\subsection{Subsection 1.1}
\subsection{Subsection 1.2}
\subsection{Subsection 1.3}
\subsection{Subsection 1.4}
\section{Section 2}
\subsection{Subsection 2.1}
\subsection{Subsection 2.2}
\section{Section 3}
\subsection{Subsection 3.1}
\subsection{Subsection 3.2}
\subsection{Subsection 3.3}
\subsection{Subsection 3.4}
\section{Section 4}
\section{Section 5}
\subsection{Subsection 5.1}
\subsection{Subsection 5.2}
\end{document}
내 실수를 찾을 수없는 것 같습니다. 도움을 주셔서 감사합니다.
답변1
목차에 섹션을 표시하려면 해당 섹션을 파일에 추가해야 합니다 .toc
. 이런 일이 발생하려면 해당 섹션 명령 뒤에 뭔가를 조판해야 할 것 같습니다. \section
으로 설정되어 있기 때문에조판하다목차 버전은 \section
항상 목차에 섹션을 추가합니다. 단, 의 경우에는 \subsection
그렇지 않으므로 이를 추가하려면 해당 명령 뒤에 명시적으로 무언가를 추가해야 합니다. Torbjørn T.가 지적했듯이 이는 콘텐츠를 포함하는 프레임일 수 있습니다. 하지만 다른 \section
명령 일 수도 있습니다 .
\documentclass[a4paper,11pt,fleqn,compress]{beamer}
% following content recommended for LaTeX beamer mode
\title{\textbf{Title}}
\subtitle{Subtitle}
\author{Author}
\institute{Institute}
\date{\scriptsize{Date}}
\setbeamertemplate{navigation symbols}{} % default navigation symbols hidden
\usetheme{Berlin}
\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[subsections numbered]
\setbeamertemplate{section in head/foot} {\hfill\insertsectionheadnumber.~\insertsectionhead}
\setbeamertemplate{section in head/foot shaded}{\color{structure!50}\hfill\insertsectionheadnumber.~\insertsectionhead}
\setbeamertemplate{section in toc}{\inserttocsectionnumber.~\inserttocsection}
\AtBeginSection[]
{
\begin{frame}
\frametitle{Table of Contents}
\small \tableofcontents[currentsection,hideothersubsections]
\end{frame}
} % display table of contents with current section higlighted automatically
\begin{document}
\frame[plain]{\titlepage}
{ % to delimit a block (changes apply for this block only)
\makeatletter % to change template
\setbeamertemplate{headline}[default]
\def\beamer@entrycode{\vspace*{-\headheight}}
\makeatother
\begin{frame}
\frametitle{Table of Contents} \small \tableofcontents
\end{frame}
}
\section{Section 1}
\subsection{Subsection 1.1}
\subsection{Subsection 1.2}
\subsection{Subsection 1.3}
\subsection{Subsection 1.4}
\section{Section 2}
\subsection{Subsection 2.1}
\subsection{Subsection 2.2}
\section{Section 3}
\subsection{Subsection 3.1}
\subsection{Subsection 3.2}
\subsection{Subsection 3.3}
\subsection{Subsection 3.4}
\section{Section 4}
\section{Section 5}
\subsection{Subsection 5.1}
\subsection{Subsection 5.2}
\section{Section 6}
\end{document}