Skip to content
Snippets Groups Projects
Commit 1f890d88 authored by Pedro's avatar Pedro
Browse files

- Added slides numbers

parent 8ec60f3f
Branches master
No related tags found
No related merge requests found
......@@ -62,6 +62,29 @@ Ru.
Detailed information on using Ru can be found in the [manual][2].
### Other commands
You can use a few commands to control some settings of the theme itself, here are a few examples:
Removes the slides numbers.
```latex
\usetheme[noslidenumbers]{ru}
```
The slide counter also shows the total number of slides.
```latex
\usetheme[usetotalslideindicator]{ru}
```
The slide counter has the total number of slides and is in the middle.
```latex
\usetheme[usetotalslideindicator,slidenumbermiddle]{ru}
```
The slide counter has the total number of slides and is in the left corner.
```latex
\usetheme[usetotalslideindicator,slidenumberleft]{ru}
```
## License
......
......@@ -41,7 +41,7 @@
% \subsubsection{Options}
%
% \begin{macro}{numbering}
% Adds slide numbers to the bottom right of each slide.
% Adds slide numbers to the bottom of each slide.
% \begin{macrocode}
\pgfkeys{
/ru/outer/numbering/.cd,
......@@ -53,6 +53,20 @@
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{numberpos}
% Adds slides numbers in the bottom right, middle or left.
% \begin{macrocode}
\pgfkeys{
/ru/outer/numberpos/.cd,
.is choice,
none/.code=\setbeamertemplate{footline}[plain],
right/.code=\setbeamertemplate{footline}[right],
left/.code=\setbeamertemplate{footline}[left],
middle/.code=\setbeamertemplate{footline}[middle],
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{progressbar}
% Adds a progress bar to the top, bottom, or frametitle of each slide.
% \begin{macrocode}
......@@ -62,7 +76,6 @@
none/.code={%
\setbeamertemplate{headline}[plain]
\setbeamertemplate{frametitle}[plain]
\setbeamertemplate{footline}[plain]
},
head/.code={\pgfkeys{/ru/outer/progressbar=none}
\addtobeamertemplate{headline}{}{%
......@@ -90,6 +103,7 @@
\pgfkeys{/ru/outer/.cd,
numbering=counter,
progressbar=frametitle,
numberpos=right,
}
}
% \end{macrocode}%
......@@ -134,6 +148,31 @@
\usebeamertemplate*{frame numbering}
\end{beamercolorbox}%
}
\defbeamertemplate{footline}{right}{%
\begin{beamercolorbox}[wd=\textwidth, sep=1ex]{footline}%
\usebeamerfont{page number in head/foot}%
\usebeamertemplate*{frame footer}
\hspace*{\fill}%
\usebeamertemplate*{frame numbering}
\end{beamercolorbox}%
}
\defbeamertemplate{footline}{middle}{%
\begin{beamercolorbox}[wd=\textwidth, sep=1ex]{footline}%
\usebeamerfont{page number in head/foot}%
\usebeamertemplate*{frame footer}
\hspace*{\fill}%
\usebeamertemplate*{frame numbering}
\hspace*{\fill}%
\end{beamercolorbox}%
}
\defbeamertemplate{footline}{left}{%
\begin{beamercolorbox}[wd=\textwidth, sep=1ex]{footline}%
\usebeamerfont{page number in head/foot}%
\usebeamertemplate*{frame footer}
\usebeamertemplate*{frame numbering}
\hspace*{\fill}%
\end{beamercolorbox}%
}
% \end{macrocode}
% \end{macro}
% \end{macro}
......
......@@ -111,6 +111,8 @@
noslidenumbers/.code=\pgfkeysalso{outer/numbering=none},
usetotalslideindicator/.code=\pgfkeysalso{outer/numbering=fraction},
nosectionslide/.code=\pgfkeysalso{inner/sectionpage=none},
slidenumbermiddle/.code=\pgfkeysalso{outer/numberpos=middle},
slidenumberleft/.code=\pgfkeysalso{outer/numberpos=left},
darkcolors/.code=\pgfkeysalso{color/background=dark},
blockbg/.code=\pgfkeysalso{color/block=fill, inner/block=fill},
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment