Skip to content

Commit

Permalink
feat: redesign section and subsection pages (#30)
Browse files Browse the repository at this point in the history
Redesign section and subsection pages so that section titles are aligned, which 
helps avoid having titles jump if section and subsection pages are viewed
in sequence. The alignment of subtitles on section pages with
the progressbar layout have also been modified to look better. Finally,
section pages have their content raised slightly in both the progressbar
and simple templates.

---------

Co-authored-by: Johan Larsson <[email protected]>
  • Loading branch information
jpcirrus and jolars authored Nov 22, 2024
1 parent fcfbbe1 commit 5a98c69
Show file tree
Hide file tree
Showing 5 changed files with 2,432 additions and 15 deletions.
20 changes: 11 additions & 9 deletions src/beamerinnerthememoloch.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -288,30 +288,32 @@
\usebeamercolor[fg]{section title}
\usebeamerfont{section title}
\moloch@sectiontitleformat{\insertsectionhead}\par
\ifx\insertsubsectionhead\@empty\else
\usebeamercolor[fg]{subsection title}
\usebeamerfont{subsection title}
\insertsubsectionhead
\usebeamercolor[fg]{subsection title}%
\usebeamerfont{subsection title}%
\strut%
\ifx\insertsubsectionhead\@empty\else%
\insertsubsectionhead%
\fi
\end{center}
\vspace{\baselineskip - 1ex + 0.4pt}
}
\defbeamertemplate{section page}{progressbar}{
\centering
\begin{minipage}{0.7875\linewidth}
\raggedright
\usebeamercolor[fg]{section title}
\usebeamerfont{section title}
\moloch@sectiontitleformat{\insertsectionhead}\\[-1ex]
\moloch@sectiontitleformat{\insertsectionhead}\\[-0.5\baselineskip]
\usebeamertemplate*{progress bar in section page}
\par
\usebeamercolor[fg]{subsection title}%
\usebeamerfont{subsection title}%
\strut%
\ifx\insertsubsectionhead\@empty\else%
\usebeamercolor[fg]{subsection title}%
\usebeamerfont{subsection title}%
\insertsubsectionhead
\insertsubsectionhead%
\fi
\end{minipage}
\par
\vspace{\baselineskip}
}
\newcommand{\moloch@disablesectionpage}{
\AtBeginSection{
Expand Down
1 change: 1 addition & 0 deletions testfiles/sectionpages.lvt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\input{sectionpages}
Loading

0 comments on commit 5a98c69

Please sign in to comment.