Commits

Joseph Wright committed 5ed0f40

Show subsections for current section in TOC (fixes issue #220)

The behaviour in use did not match the docs, which say that the text
here should be shown and not faded. There is an argument for the older
behaviour, but as this is explicitly mentioned in the docs should be right!

  • Participants
  • Parent commits 3048019

Comments (0)

Files changed (2)

File base/beamerbasetoc.sty

 \define@key{beamertoc}{pausesections}[true]{\beamer@pausesectionstrue}
 \define@key{beamertoc}{pausesubsections}[true]{\beamer@pausesubsectionstrue}
 
-\define@key{beamertoc}{currentsection}[]{\beamer@toc@sectionstyle{show/shaded}\beamer@toc@subsectionstyle{show/shaded}\beamer@toc@subsubsectionstyle{show/shaded}}
+\define@key{beamertoc}{currentsection}[]{\beamer@toc@sectionstyle{show/shaded}\beamer@toc@subsectionstyle{show/show/shaded}\beamer@toc@subsubsectionstyle{show/show/shaded}}
 \define@key{beamertoc}{currentsubsection}[]{\beamer@toc@subsectionstyle{show/shaded}\beamer@toc@subsubsectionstyle{show/shaded}}
 \define@key{beamertoc}{hideallsubsections}[]{\beamer@toc@subsectionstyle{hide}\beamer@toc@subsubsectionstyle{hide}}
 \define@key{beamertoc}{hideothersubsections}[]{\beamer@toc@subsectionstyle{show/show/hide}\beamer@toc@subsubsectionstyle{show/shaded/hide}}

File base/themes/outer/beamerouterthemedefault.sty

 
 % Mini frames
 
-\defbeamertemplateparent{mini frames}{mini frame,mini frame in current subsection}
+\defbeamertemplateparent{mini frames}
+  {mini frame,mini frame in current section,mini frame in current subsection}
 {}
 
 \defbeamertemplate*{mini frame}{default}
   \setbeamersize{mini frame size=.14cm,mini frame offset=.03cm}
 }
 
+\defbeamertemplate*{mini frame in current section}{default}
+{%
+  \begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
+    \pgfpathcircle{\pgfpoint{0.05cm}{0.05cm}}{0.05cm}
+    \pgfusepath{stroke}
+  \end{pgfpicture}%
+}
+
 \defbeamertemplate*{mini frame in current subsection}{default}
 {%
   \begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
   \end{pgfpicture}%
 }
 
+\defbeamertemplate*{mini frame in other section}{default}[1][50]
+{\color{fg!#1!bg}\usebeamertemplate{mini frame in current section}}
 \defbeamertemplate*{mini frame in other subsection}{default}[1][50]
 {\color{fg!#1!bg}\usebeamertemplate{mini frame in current subsection}}