각 부품의 크기 개수가 포함된 TOC

각 부품의 크기 개수가 포함된 TOC

내 후속 조치로이전 질문각 하위 섹션의 목차 생성 주제에 대해 다음과 같은 과제를 제기하고 싶습니다.

문서 조직 단위(섹션, 하위 섹션, 하위 섹션)를 표시하는 줄에 해당 항목의 총 단락 수가 표시되도록 로컬 및 글로벌 목차를 생성합니다.

감사드리며 버그수정을 요청합니다

많은 감사jfbu그의 상세하고 기발한 대답에. 그의 대답에 있는 수수께끼 같은 이름 문제는 많은 시간이 걸렸지만 프레임을 하위 문단으로 내릴 수 있었습니다(문서에 프레임이 아닌 문단이 포함될 수 있으므로 그렇게 하는 데는 그럴 만한 이유가 있습니다). 그러나 제가 원하는 대로 전체 TOC를 제작할 수는 없었습니다.

TOC 중 일부가 비어 있는 경우로 사용 시 문제를 좁혔습니다.

다음은 jfbu를 모델로 한 MWE입니다.jfbu일하다.

\documentclass{article}
\usepackage{beamerarticle}
\usepackage{etoc}

\사용패키지{etoc}

% Override action when frame title is encountered:
\setbeamertemplate{frametitle}{\relax
  % Similar to \hrule but above the base line
  \def\Hrulefill{\leavevmode\leaders\hrule height 0.8ex depth -0.6ex\hfill\kern0pt}
  \def\frameTitle{\relax
    \itshape
    \small
    \bfseries
    \protect\(\cdot\protect\)\insertframenumber.~\insertframetitle
    \space
    \footnotesize \mdseries
    \insertframesubtitle
  }%
  \typeout{after defs}\relax
  \Hrulefill
  \typeout{after hrule}\relax
  \fbox{\begin{minipage}{0.7\linewidth}\frameTitle\end{minipage}}%\relax
  \typeout{after title}\relax
  \addcontentsline{toc}{subparagraph}{\frameTitle}\relax
   \Hrulefill
  \typeout{after hrulefill}\relax
  \par\noindent
  \typeout{after par no indent}\relax
}
\newcounter{parinsection}
    \newcounter{parinsubsection}
    \newcounter{parinsubsubsection}


    \makeatletter % cf etoc manual "another compatibility mode"
      \let\orig@lsection\l@section
      \let\orig@lsubsection\l@subsection
      \let\orig@lsubsubsection\l@subsubsection
    %
    \etocsetstyle{section}
     {}
     {\typeout{prefix in section}}
     {\typeout{item is section}\orig@lsection {\numberline{\etocnumber}\etocname{} 
               (\Yossi frames)}{\etocpage}}
     {}

    \etocsetstyle{subsection}
    {\typeout{begin of SUBSECTION}}
     {\typeout{prefix in subsection}}
     {\typeout{item in susection}\orig@lsubsection {\numberline{\etocnumber}\etocname{} 
     \typeout{before frames count}(\Yossi frames)}{\etocpage}}
               {\typeout{end of SUBSECTION}}

    \etocsetstyle{subsubsection}
    {\typeout{Begin SUBSUBSECTION}}
    {\typeout{prefix sub sub section}}
     {\relax
       \typeout{item in sub sub section}\relax
       \orig@lsubsubsection 
       {\etocname{} (\Yossi frames)}{\etocpage}
     }
     {\typeout{End SUBSUBSECTION}}

    \etocsetstyle {subparagraph}
    {\typeout{BEGIN SUBPARAGRAPH}}
     {}
     {\stepcounter{parinsection}%
      \stepcounter{parinsubsection}%
      \stepcounter{parinsubsubsection}}
      {\typeout{END SUBPARAGRAPH}\xdef\yossic{\yossic{\arabic{parinsubsubsection}}}}

    \newcommand\yossia {}
    \newcommand\yossib {}
    \newcommand\yossic {}
    \newcommand\Yossi {\expandafter\Yossi@ \yossia\@nil}
    \def\Yossi@ #1#2\@nil {\gdef\yossia{#2}#1 }

    \makeatother

    \newcommand{\CountFramesFor}[1]{%
        \begingroup % first pass
            \etocsetstyle {section}
                          {}
                          {}%
                          {\setcounter{parinsection}{0}}
                          {}%
            \etocsetstyle {subsection}
                     {\xdef\yossib{}}
                          {}
                          {\setcounter{parinsubsection}{0}}
                     {\xdef\yossia{\yossia{\arabic{parinsection}}\yossib}}%
            \etocsetstyle {subsubsection}
                     {\xdef\yossic{}}
                          {}
                          {\setcounter{parinsubsubsection}{0}}
                     {\xdef\yossib{\yossib{\arabic{parinsubsection}}\yossic}}%
            \gdef\yossia{}\gdef\yossib{}\gdef\yossic{}%
            \etocsettocstyle {}{}%
            \etocsetnexttocdepth {subparagraph}%
            #1%
        \endgroup
    }%

    \newcommand{\GlobalTOC}{%
      \typeout{before counting}\relax
         \CountFramesFor\tableofcontents
         \typeout{after counting}\relax
        \etocsetnexttocdepth{subsubsection}%
        \typeout{after set next toc depth}\relax
        \tableofcontents
        \typeout{after toc}\relax
    }

    \newcommand{\SectionTOC}{% 
         \CountFramesFor\localtableofcontents
         \let\yossia\yossib
    \begingroup
        \etocsetstyle{subsubsection}{}{}{\setbox0\hbox{\Yossi}}{}%
        \etocsetnexttocdepth{subsubsection}%
        \etocsettocstyle {\noindent Contents:\par}{}%
        \localtableofcontents
    \endgroup
    }

    \newcommand{\SubSectionTOC}{% 
         \CountFramesFor\localtableofcontents
         \let\yossia\yossic
        \etocsetnexttocdepth{subsubsection}%
        \etocsettocstyle {\noindent Contents:\par}{}%
        \localtableofcontents
    }

    \newcommand{\listOfFramesInSubSubSection}{%
      \begingroup
           \etocsetlevel {subparagraph}{2}%
           \etocsetlevel {subsubsection}{1}%
           \etocsetlevel {subsection}{6}%
           \etocsetlevel {section}{6}%
           \etocsetlevel {paragraph}{6}%
           \etocsettocstyle {\noindent\emph{Frames:}}{}%
           \etocsetnexttocdepth {subparagraph}%
           \etocdefaultlines
                \etocsetstyle{subsection}
                     {\begingroup}
                     {\footnotesize}
                     {\etocname~\space}%
                     {\endgroup}
           \localtableofcontents
      \endgroup
    }


            \newcommand{\listOfFramesInSubSection}{%
              \begingroup
                   \etocsetlevel {subparagraph}{3}%
                   \etocsetlevel {subsubsection}{2}%
                   \etocsetlevel {subsection}{1}%
                   \etocsetlevel {subsection}{6}%
                   \etocsetlevel {section}{6}%
                   \etocsetlevel {paragraph}{6}%
                   \etocsettocstyle {\noindent\emph{Frames:}\par}{}%
                   \etocsetnexttocdepth {subparagraph}%
                   \etocdefaultlines
           \localtableofcontents
              \endgroup
            }



\begin{document}

\etocsettocdepth {subparagraph}
\GlobalTOC
\section{My First Section}\SectionTOC
    \begin{frame}{My First Frame} has a bit of contents \end{frame}
    \subsection{Subsection [A] in My First Section}
\SubSectionTOC
      \listOfFramesInSubSection
       \begin{frame}{My 2nd Frame} has another bit of contents  \end{frame}
    \subsection{Sububsection [I] in subsection [A] in My First Section}      
 \listOfFramesInSubSubSection
            \begin{frame}{My THIRD Frame} has one bit and another bit of contents   in it      \end{frame}


\end{document}

답변1

업데이트

하위 섹션에는 프레임이 없을 수 있고, 하위 섹션에는 하위 섹션이 없을 수 있으며, 섹션에는 하위 섹션이 없을 수 있다는 것이 명확해졌으므로 이러한 사항을 처리할 수 있는 재검토된 코드(하단 참조)를 제공합니다. 하지만 우리는 하위 섹션을 개입시키지 않고 섹션에 하위 섹션을 원하지 않는다는 점에 유의하세요.



다음은연결된 질문에 대한 답변, 단락 수를 추가합니다. 이것은 단품으로 이루어집니다에톡즉, 보이지 않는 목차를 사용하여 작업을 수행합니다.

의도한 내용을 더 정확하게 설명하는 의견에 따라 업데이트합니다. 섹션과 하위 섹션 사이에는 항상 하위 섹션이 있거나 하위 섹션과 단락 사이에는 하위 하위 섹션이 있다고 가정합니다. 여기서 프레임 환경은 단락을 생성하며, 다른 단락은 없습니다.

초기 답변은 하단에 남아 있습니다. 업데이트용 코드 샘플은 4개의 페이지를 제공하며 여기에는 처음 2개만 표시됩니다.

카운트와 함께 목차 카운트가 있는 목차 2페이지

\documentclass{article}
\usepackage{beamerarticle}
\usepackage{etoc}

% Override action when frame title is encountered: (Code by Yossi Gil)
\setbeamertemplate{frametitle}{%
   \paragraph{\insertframenumber.~\insertframetitle}\\
   \noindent\emph{\insertframesubtitle}\par
} 

\newcounter{parinsection}
\newcounter{parinsubsection}
\newcounter{parinsubsubsection}


\makeatletter % cf etoc manual "another compatibility mode"
  \let\orig@lsection\l@section
  \let\orig@lsubsection\l@subsection
  \let\orig@lsubsubsection\l@subsubsection
%
\etocsetstyle{section}
 {}
 {}
 {\orig@lsection {\numberline{\etocnumber}\etocname{} 
           (\Yossi frames)}{\etocpage}}
 {}

\etocsetstyle{subsection}
 {}
 {}
 {\orig@lsubsection {\numberline{\etocnumber}\etocname{} 
           (\Yossi frames)}{\etocpage}}
 {}

\etocsetstyle{subsubsection}
 {}
 {}
 {\orig@lsubsubsection {\numberline{\etocnumber}\etocname{} 
           (\Yossi frames)}{\etocpage}}
 {}

\etocsetstyle {paragraph}
 {}
 {}
 {\stepcounter{parinsection}%
  \stepcounter{parinsubsection}%
  \stepcounter{parinsubsubsection}}
 {\xdef\yossic{\yossic{\arabic{parinsubsubsection}}}}

\newcommand\yossia {}
\newcommand\yossib {}
\newcommand\yossic {}
\newcommand\Yossi {\expandafter\Yossi@ \yossia\@nil}
\def\Yossi@ #1#2\@nil {\gdef\yossia{#2}#1 }

\makeatother

\newcommand{\CountFramesFor}[1]{%
    \begingroup % first pass
        \etocsetstyle {section}
                      {}
                      {}%
                      {\setcounter{parinsection}{0}}
                      {}%
        \etocsetstyle {subsection}
                 {\xdef\yossib{}}
                      {}
                      {\setcounter{parinsubsection}{0}}
                 {\xdef\yossia{\yossia{\arabic{parinsection}}\yossib}}%
        \etocsetstyle {subsubsection}
                 {\xdef\yossic{}}
                      {}
                      {\setcounter{parinsubsubsection}{0}}
                 {\xdef\yossib{\yossib{\arabic{parinsubsection}}\yossic}}%
        \gdef\yossia{}\gdef\yossib{}\gdef\yossic{}%
        \etocsettocstyle {}{}%
        \etocsetnexttocdepth {paragraph}%
        #1%
    \endgroup
}%

\newcommand{\GlobalToc}{%
     \CountFramesFor\tableofcontents
% to suppress subsubsections:
%\begingroup
%    \etocsetstyle{subsubsection}{}{}{\setbox0\hbox{\Yossi}}{}%
% to also suppress subsections 
%    \etocsetstyle{subsection}{}{}{\setbox0\hbox{\Yossi}}{}%
    \etocsetnexttocdepth{subsubsection}%
    \tableofcontents
%\endgroup
}

\newcommand{\SectionToc}{% 
     \CountFramesFor\localtableofcontents
     \let\yossia\yossib
% to suppress subsubsections:
\begingroup
    \etocsetstyle{subsubsection}{}{}{\setbox0\hbox{\Yossi}}{}%
    \etocsetnexttocdepth{subsubsection}%
    \etocsettocstyle {\noindent Contents:\par}{}%
    \localtableofcontents
\endgroup
}

\newcommand{\SubsectionToc}{% 
     \CountFramesFor\localtableofcontents
     \let\yossia\yossic
    \etocsetnexttocdepth{subsubsection}%
    \etocsettocstyle {\noindent Contents:\par}{}%
    \localtableofcontents
}

\newcommand{\Listofframes}{%
  \begingroup
       \etocsetlevel {paragraph}{2}%
       \etocsetlevel {subsubsection}{1}%
       \etocsetlevel {subsection}{6}%
       \etocsetlevel {section}{6}%
       \etocsettocstyle {\noindent List of frames in this subsubsection\par}{}%
       %\etocsetnexttocdepth {paragraph}%
       \etocdefaultlines
       \localtableofcontents
  \endgroup
}


\begin{document}

\etocsettocdepth {paragraph}
\GlobalToc

\section{Some frames}
\SectionToc

\subsection {first subsection}
\SubsectionToc

\subsubsection{first subsubsection}
\Listofframes

\begin{frame}\frametitle{AHK}
  Ah Ah 
\end{frame}

\begin{frame}\frametitle{AHJ}
  Oh Oh
\end{frame}

\begin{frame}\frametitle{AHM}
  Ah Ah 
\end{frame}

\subsubsection{second subsubsection}
\Listofframes

\begin{frame}\frametitle{AHN}
  Oh Oh
\end{frame}

\subsection {second subsection}
\SubsectionToc

\subsubsection {subsubsection}
\Listofframes

\begin{frame}\frametitle{HBZ}
  Ah Ah 
\end{frame}

\subsubsection {subsubsection}
\Listofframes

\begin{frame}\frametitle{HBW}
  Oh Oh
\end{frame}

\begin{frame}\frametitle{HBT}
  Oh Oh
\end{frame}

\begin{frame}\frametitle{HBR}
  Oh Oh
\end{frame}

  \section{More frames}
\SectionToc

\subsection {third subsection}
\SubsectionToc

\subsubsection {subsubsection}
\Listofframes

\begin{frame}\frametitle{BHK}
  Ah Ah 
\end{frame}

\begin{frame}\frametitle{BHJ}
  Oh Oh
\end{frame}

\begin{frame}\frametitle{BBZ}
  Ah Ah 
\end{frame}

\subsubsection {subsubsection}
\Listofframes

\begin{frame}\frametitle{BBW}
  Oh Oh
\end{frame}

\begin{frame}\frametitle{BBU}
  Oh Oh
\end{frame}

\subsection {fourth subsection}
\SubsectionToc

\subsubsection {subsubsection}
\Listofframes

\begin{frame}\frametitle{YHK}
  Ah Ah 
\end{frame}

\subsubsection {subsubsection}
\Listofframes

\begin{frame}\frametitle{YHJ}
  Oh Oh
\end{frame}

\begin{frame}\frametitle{YYZ}
  Ah Ah 
\end{frame}

\begin{frame}\frametitle{YYW}
  Oh Oh
\end{frame}

\end{document}

초기 답변:

로컬 TOC에서 프레임 계산 프레임 계산, 속편

\documentclass{article}
\usepackage{beamerarticle}
\usepackage{etoc}
% section=1, subsection=2, subsubsection=3
\etocsettocdepth {all}

%Override action when frame title is encountered: (Code by Yossi Gil)
\setbeamertemplate{frametitle}{%
   \paragraph{\insertframenumber.~\insertframetitle}\\
   \noindent\emph{\insertframesubtitle}\par
} 

\newcounter {mycountofframes}

\newcommand {\listofsubsectionswithframecount}{\begingroup
%%%%% count frames by executing an invisible table of contents
  \setcounter {mycountofframes}{0}%
  \etocsetnexttocdepth {paragraph}%
  \etocsetstyle {subsection}{}{}{}{}%
  \etocsetstyle {paragraph}{}{\stepcounter{mycountofframes}}{}{}%
  \etocsettocstyle {}{}%
  \localtableofcontents % invisible, just to count paragraphs (=frames)
%%%%%
%%%%% now list subsections 
  \etocsettocstyle 
   {\noindent Dear reader, there are in total \arabic{mycountofframes} 
                    frames in this section.\par\medskip }
   {}%
  \etocsetnexttocdepth {subsection}%
  \etocstandardlines % undoes the \etocsetstyle above, 
                     % switches to class default for TOC lines
  \localtableofcontents % Print the table of contents
\endgroup
}

\newcommand {\listofframesinthissubsection}{\begingroup
%%%%% count frames by executing an invisible table of contents
    \setcounter {mycountofframes}{0}%
    \etocsetnexttocdepth {paragraph}%
    \etocsetstyle {paragraph}{}{\stepcounter{mycountofframes}}{}{}%
    \etocnopar % says not to do \par, but doesn't matter here
    \etocsettocstyle {}{}%
    \localtableofcontents % just to count paragraphs (=frames)
%%%%%
%%%%% now list the paragraphs 
    \etocsetlevel {subsection}{1}% artificially pretending subsections are
                                % sections  one up the level
    \etocsetlevel {paragraph}{2}% pretending paragraphs are subsections
    \etocdefaultlines % undoes the \etocsetstyle above, switches to package
                      % default for the TOC lines
    \etocsettocstyle {\noindent The \arabic{mycountofframes} 
                      frames in this subsection:\par\smallskip}{}%
    \etocsetnexttocdepth {paragraph}%
    \localtableofcontents
\endgroup % undo all our mess
}

\begin{document}

\etocsetnexttocdepth {subsection}
\tableofcontents

  \section{Some frames}
\listofsubsectionswithframecount


\subsection {first subsection}
\listofframesinthissubsection

\begin{frame}\frametitle{AHK}
  Ah Ah 
\end{frame}

\begin{frame}\frametitle{AHJ}
  Oh Oh
\end{frame}

\begin{frame}\frametitle{AHM}
  Ah Ah 
\end{frame}

\begin{frame}\frametitle{AHN}
  Oh Oh
\end{frame}

\subsection {second subsection}
\listofframesinthissubsection

\begin{frame}\frametitle{HBZ}
  Ah Ah 
\end{frame}

\begin{frame}\frametitle{HBW}
  Oh Oh
\end{frame}

\begin{frame}\frametitle{HBT}
  Oh Oh
\end{frame}

  \section{More frames}
\listofsubsectionswithframecount

\subsection {third subsection}
\listofframesinthissubsection

\begin{frame}\frametitle{BHK}
  Ah Ah 
\end{frame}

\begin{frame}\frametitle{BHJ}
  Oh Oh
\end{frame}

\subsection {fourth subsection}
\listofframesinthissubsection


\begin{frame}\frametitle{BBZ}
  Ah Ah 
\end{frame}

\begin{frame}\frametitle{BBW}
  Oh Oh
\end{frame}

\begin{frame}\frametitle{BBU}
  Oh Oh
\end{frame}

\end{document}


누락된 프레임을 처리하도록 코드가 업데이트되었습니다.

\documentclass{article}
\usepackage{beamerarticle}
\usepackage{etoc}

% % Override action when frame title is encountered: (Code by Yossi Gil)

\def\Hrulefill
   {\leavevmode\leaders\hrule height 0.8ex depth -0.6ex\hfill\kern0pt }

\def\frameTitle{%
    \itshape
    \small
    \bfseries
    $\cdot$\insertframenumber.~\insertframetitle
    \space
    \footnotesize \mdseries
    \insertframesubtitle
  }%

\setbeamertemplate{frametitle}{\relax
  % Similar to \hrule but above the base line
  \noindent\Hrulefill
  \addcontentsline{toc}{paragraph}{\frameTitle}%
  \fbox{\begin{minipage}{0.7\linewidth}\frameTitle\end{minipage}}%
  \Hrulefill\par
}

\newcounter{parinsection}
\newcounter{parinsubsection}
\newcounter{parinsubsubsection}

\makeatletter % cf etoc manual "another compatibility mode"
 \let\orig@lsection\l@section
 \let\orig@lsubsection\l@subsection
 \let\orig@lsubsubsection\l@subsubsection
%
\etocsetstyle{section}
 {}
 {}
 {\orig@lsection {\numberline{\etocnumber}\etocname{} 
           (\Yossi)}{\etocpage}}
 {}

\etocsetstyle{subsection}
 {}
 {}
 {\orig@lsubsection {\numberline{\etocnumber}\etocname{} 
           (\Yossi)}{\etocpage}}
 {}

\etocsetstyle{subsubsection}
 {}
 {}
 {\orig@lsubsubsection {\numberline{\etocnumber}\etocname{} 
           (\Yossi)}{\etocpage}}
 {}

\etocsetstyle {paragraph}
 {}
 {}
 {\stepcounter{parinsection}%
  \stepcounter{parinsubsection}%
  \stepcounter{parinsubsubsection}}
 {}

\newcommand\yossia {}
\newcommand\yossib {}
\newcommand\yossic {}
\newcommand\Yossi {\expandafter\Yossi@ \yossia\@nil}
\def\Yossi@ #1#2\@nil {\gdef\yossia{#2}\begingroup\color{blue}%
    \ifcase #1 
      no frame%
    \or
      1 frame%
    \else #1 frames%
    \fi\endgroup}% 


\makeatother

\newcommand{\CountFramesFor}[1]{%
    \begingroup % first pass
        \etocsetstyle {section}
                      {\def\yossia{}\def\yossib{}%
                       \setcounter{parinsection}{0}%
                       \etocskipfirstprefix 
                      }
                      {\edef\yossia{\yossia% earlier sec, sub and subsub 
                                    \arabic{parinsection}% add previous
                                      % section 
                                    \yossib % and all sub and subsub therein
                                    }%
                      }
                      {\setcounter{parinsection}{0}\def\yossib{}}
                      {\edef\yossia{\yossia% earlier sec, sub and subsub 
                                    \arabic{parinsection}% add last
                                      % section 
                                    \yossib % and all sub and subsub therein
                                    }%
                      }%
 %
        \etocsetstyle {subsection}
                      {\def\yossib{}\def\yossic{}%
                       \setcounter{parinsubsection}{0}%
                       \etocskipfirstprefix 
                      }
                      {\edef\yossib{\yossib% previous sub and subsub 
                                    \arabic{parinsubsection}% add previous
                                      % subsection 
                                    \yossic % and all subsub therein
                                    }%
                      }
                      {\setcounter{parinsubsection}{0}\def\yossic{}}
                      {\edef\yossib{\yossib% previous sub and subsub 
                                    \arabic{parinsubsection}% add last
                                      % subsection 
                                    \yossic % and all subsub therein
                                    }%
                      }%
%
       \etocsetstyle {subsubsection}
                      {\def\yossic{}%
                       \setcounter{parinsubsubsection}{0}%
                       \etocskipfirstprefix 
                      }
                      {\edef\yossic{\yossic\arabic{parinsubsubsection}}}%
                      {\setcounter{parinsubsubsection}{0}}
                      {\edef\yossic{\yossic\arabic{parinsubsubsection}}}%
%
        \etocsettocstyle {}{\global\let\yossia\yossia 
                            \global\let\yossib\yossib
                            \global\let\yossic\yossic}%
        \etocsetnexttocdepth {paragraph}%
        #1%
    \endgroup
}%

\newcommand{\GlobalToc}{%
     \CountFramesFor\tableofcontents
% to suppress subsubsections:
%\begingroup
%    \etocsetstyle{subsubsection}{}{}{\setbox0\hbox{\Yossi}}{}%
% to also suppress subsections 
%    \etocsetstyle{subsection}{}{}{\setbox0\hbox{\Yossi}}{}%
    \etocsetnexttocdepth{subsubsection}%
    \tableofcontents
%\endgroup
}

\newcommand{\SectionToc}{% 
     \CountFramesFor\localtableofcontents
     \let\yossia\yossib
% this is to suppress listing subsubsections in the Section TOC:
\begingroup
    \etocsetstyle{subsubsection}{}{}{\setbox0\hbox{\Yossi}}{}%
    \etocsetnexttocdepth{subsubsection}%
    \etocsettocstyle {\noindent Contents:\par}{}%
    \localtableofcontents
\endgroup
}

\newcommand{\SubsectionToc}{% 
     \CountFramesFor\localtableofcontents
     \let\yossia\yossic
    \etocsetnexttocdepth{subsubsection}%
    \etocsettocstyle {\noindent Contents:\par}{}%
    \localtableofcontents
}

\newcommand{\Listofframes}{%
  \begingroup
       \etocsetlevel {paragraph}{2}%
       \etocsetlevel {subsubsection}{1}%
       \etocsetlevel {subsection}{6}%
       \etocsetlevel {section}{6}%
       \etocsettocstyle {\noindent List of frames in this subsubsection\par}{}%
       \etocdefaultlines
       \localtableofcontents
  \endgroup
}


\begin{document}

\etocsettocdepth {paragraph}
\GlobalToc

\section{Section A}
\SectionToc

\subsection {subsection}
\SubsectionToc

\subsubsection{subsubsection}
% \Listofframes % don't use \listofframes in a subsubsection 

No frames here.

\subsubsection{subsubsection}
\Listofframes

\begin{frame}\frametitle{AHN}
  Oh Oh
\end{frame}

\begin{frame}\frametitle{BHN}
  Oh Oh
\end{frame}

\subsection {subsection with no subsubsection}

There are no subsubsections here.

\section{Section B}
\SectionToc

\subsection {subsection}
\SubsectionToc

\subsubsection {subsubsection}
\Listofframes

\begin{frame}\frametitle{BHK}
  Ah Ah 
\end{frame}

\begin{frame}\frametitle{BHJ}
  Oh Oh
\end{frame}

\begin{frame}\frametitle{BBZ}
  Ah Ah 
\end{frame}

\subsubsection {subsubsection}
\Listofframes

\begin{frame}\frametitle{BBW}
  Oh Oh
\end{frame}

\begin{frame}\frametitle{BBU}
  Oh Oh
\end{frame}

\subsubsection {subsubsection}

No frames here.

\subsection {subsection with no subsubsection}

Nothing here.

\subsection {subsection}
\SubsectionToc

\subsubsection {subsubsection}
\Listofframes

\begin{frame}\frametitle{YHK}
  Ah Ah 
\end{frame}

\subsubsection {subsubsection}

No frames here.

\subsubsection {subsubsection}
\Listofframes

\begin{frame}\frametitle{YHJ}
  Oh Oh
\end{frame}

\begin{frame}\frametitle{YYZ}
  Ah Ah 
\end{frame}

\begin{frame}\frametitle{YYW}
  Oh Oh
\end{frame}

\subsection {subsection}
\SubsectionToc

\subsubsection {subsubsection }

No frame.

\subsubsection {subsubsection }

No frame.

\end{document}

프레임 수를 포함한 목차 프레임 수를 포함한 목차 프레임 수를 포함한 목차 프레임 수를 포함한 목차

관련 정보