ozanj / rclass

4 stars 3 forks source link

add section numbering to title pages for each section #1

Closed ozanj closed 6 years ago

ozanj commented 6 years ago

currently, level1 and level2 headings have a blank page with section title. would like to add section number (e.g., 1, 1.1) to these pages with section title @cyouh95 @mpatricia01

cyouh95 commented 6 years ago

Does this look okay?

screen shot 2018-09-26 at 4 19 03 pm

According to here, we could add the following to the header:

\setbeamertemplate{section page}{%
    \begingroup
        \begin{beamercolorbox}[sep=10pt,center,rounded=true,shadow=true]{section title}
        \usebeamerfont{section title}\thesection~\insertsection\par
        \end{beamercolorbox}
    \endgroup
}

\setbeamertemplate{subsection page}{%
    \begingroup
        \begin{beamercolorbox}[sep=6pt,center,rounded=true,shadow=true]{subsection title}
        \usebeamerfont{subsection title}\thesection.\thesubsection~\insertsubsection\par
        \end{beamercolorbox}
    \endgroup
}