1
0
mirror of https://github.com/eddelbuettel/binb synced 2024-12-22 12:39:58 +01:00

style and sample tweaks for presento

This commit is contained in:
Dirk Eddelbuettel 2018-09-24 19:25:16 -05:00
parent 002dd4cc69
commit 7ce49f6cf1
3 changed files with 19 additions and 13 deletions

View File

@ -1,5 +1,8 @@
2018-09-24 Dirk Eddelbuettel <edd@debian.org> 2018-09-24 Dirk Eddelbuettel <edd@debian.org>
* inst/rmarkdown/templates/presento/skeleton/presento.sty: Tweaks
* inst/rmarkdown/templates/presento/skeleton/skeleton.Rmd: Ditto
* inst/presentoDemo/presentoDemo.Rmd: Longer demo * inst/presentoDemo/presentoDemo.Rmd: Longer demo
* inst/presentoDemo/presentoDemo.pdf: Ditto * inst/presentoDemo/presentoDemo.pdf: Ditto

View File

@ -28,10 +28,11 @@
% font families % font families
% DEdd: removed path, set Lato to 'Lato-Light', set Montserrat to Bold % DEdd: removed path, set Lato to 'Lato-Light', set Montserrat to Bold
% also set AlegreyaSansSC font for lato and inconsolate
\newfontfamily{\montserratfont}[BoldFont=Montserrat-Bold]{Montserrat-Bold} \newfontfamily{\montserratfont}[BoldFont=Montserrat-Bold]{Montserrat-Bold}
\newfontfamily{\notosansfont}[BoldFont=NotoSans-Bold,ItalicFont=NotoSans-Italic,BoldItalicFont=NotoSans-BoldItalic,SmallCapsFont=AlegreyaSansSC-Regular]{NotoSans-Regular} \newfontfamily{\notosansfont}[BoldFont=NotoSans-Bold,ItalicFont=NotoSans-Italic,BoldItalicFont=NotoSans-BoldItalic,SmallCapsFont=AlegreyaSansSC-Regular]{NotoSans-Regular}
\newfontfamily{\latolightfont}{Lato-Light} \newfontfamily{\latolightfont}[SmallCapsFont=AlegreyaSansSC-Regular]{Lato-Light}
\newfontfamily{\inconsolatafont}{Inconsolata} \newfontfamily{\inconsolatafont}[SmallCapsFont=AlegreyaSansSC-Regular]{Inconsolata}
% beamer template changes % beamer template changes
\setbeamertemplate{frametitle}{ \setbeamertemplate{frametitle}{

View File

@ -9,18 +9,18 @@ output: binb::presento
## Presento ## Presento
- \begin{center}\largetext{The design is \underline{clean}}\end{center} - \begin{center}\largetext{The design is \underline{clean}}\end{center} \bigskip
- \item \begin{center}\largetext{The rules are \underline{simple}}\end{center} - \begin{center}\largetext{The rules are \underline{simple}}\end{center} \bigskip
- \item \begin{center}\largetext{The code is \underline{extensible}}\end{center} - \item \begin{center}\largetext{The code is \underline{extensible}}\end{center}
## Open Source Fonts ## Open Source Fonts
- \montserratfont This is Montserrat - \montserratfont This is \textsc{Montserrat} \bigskip
- \notosansfont This is Noto Sans - \notosansfont This is \textsc{Noto Sans} \bigskip
- \latolightfont This is Lato (light) - \latolightfont This is Lato (light) \bigskip
- \inconsolatafont This is inconsolata - \inconsolatafont This is inconsolata \bigskip
- \textsc{This is Alegreya Sans small caps} - \textsc{This is Alegreya Sans small caps} \bigskip
## Color Palette ## Color Palette
@ -31,12 +31,14 @@ output: binb::presento
____ ____
\setbeamercolor{background canvas}{bg=\colorgreen} \begin{center}
\centering{\hugetext{BIG BOLD TEXT} \bigskip \tiny but background color does not work} \hugetext{BIG BOLD TEXT}
\medskip
\small but background color does not work
\end{center}
____
----
<!-- maybe this could be wrapped into one latex command -->
\tikz[overlay,remember picture] \node[opacity=0.8, at=(current page.center)]{% \tikz[overlay,remember picture] \node[opacity=0.8, at=(current page.center)]{%
\includegraphics[width=\paperwidth]{images/skeleton}}; \includegraphics[width=\paperwidth]{images/skeleton}};
\begin{textblock}{7}(7,2.5) \begin{textblock}{7}(7,2.5)