Guest User

Untitled

a guest
Nov 8th, 2016
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.83 KB | None | 0 0
  1. \documentclass{beamer}
  2.  
  3. \usepackage{lmodern}
  4. \renewcommand{\thesection}{\alph{section}}
  5. \renewcommand{\thesubsection}{\alph{subsection}}
  6.  
  7. \makeatletter
  8. \AtBeginSubsection{%
  9.   \immediate\write\@auxout%
  10.     {\string\def\csname Section\Alph{section}subsection\Alph{subsection}\endcsname{%
  11.         \string\tableofcontents[currentsubsection,hideothersubsections,sectionstyle=hide/hide,subsectionstyle=show/hide]}}
  12. }
  13. \makeatother
  14.  
  15. \begin{document}
  16.  
  17. \begin{frame}
  18.  \frametitle{contents of all subsections}
  19.  
  20.   % The commands below shall be defined
  21.   \csname SectionAsubsectionA\endcsname
  22.   \csname SectionAsubsectionB\endcsname
  23.   \csname SectionBsubsectionA\endcsname
  24. \end{frame}
  25.  
  26. \section{section 1}
  27.  
  28. \subsection{subsection 1.1}
  29.  
  30. \subsection{subsection 1.2}
  31.  
  32. \section{section 2}
  33.  
  34. \subsection{subsection 2.1}
  35.  
  36. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment