diff options
author | Norbert Preining <norbert@preining.info> | 2020-07-04 03:02:41 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-07-04 03:02:41 +0000 |
commit | ce9d7362aa8813c6cea1e0fe6974561f28a103a5 (patch) | |
tree | ca629fc25eb82851ec99ec6119f47ed425c915c0 /macros/latex/contrib/beamer-contrib/themes | |
parent | 925eebea568c77dab877e87724fe7b001b3b5e7f (diff) |
CTAN sync 202007040302
Diffstat (limited to 'macros/latex/contrib/beamer-contrib/themes')
6 files changed, 328 insertions, 0 deletions
diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerthemenord/README.md b/macros/latex/contrib/beamer-contrib/themes/beamerthemenord/README.md new file mode 100644 index 0000000000..e22c28ec14 --- /dev/null +++ b/macros/latex/contrib/beamer-contrib/themes/beamerthemenord/README.md @@ -0,0 +1,15 @@ +# beamerthemeNord + +A simple beamer theme using [Nord](https://www.nordtheme.com/) color theme. + +## Usage + +See [beamerthemeNord.pdf](./beamerthemeNord.pdf) or [beamerthemeNord.tex](./beamerthemeNord.tex) + +## Maintainer + +Junwei Wang (i.junwei.wang@gmail.com) + +## License + +This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3c of this license or (at your option) any later version. The latest version of this license is in http://www.latex-project.org/lppl.txt .
\ No newline at end of file diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerthemenord/beamercolorthemeNord.sty b/macros/latex/contrib/beamer-contrib/themes/beamerthemenord/beamercolorthemeNord.sty new file mode 100644 index 0000000000..3faf457f72 --- /dev/null +++ b/macros/latex/contrib/beamer-contrib/themes/beamerthemenord/beamercolorthemeNord.sty @@ -0,0 +1,65 @@ +% Copyright 2020 by Junwei Wang <i.junwei.wang@gmail.com> +% +% This file may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3c +% of this license or (at your option) any later version. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt + +\mode<presentation> + +%%%%%%%%%%% Nord color scheme +%% https://www.nordtheme.com + +% Polar Night +\definecolor{NordDarkBlack}{HTML}{2E3440} % nord0 +\definecolor{NordBlack}{HTML}{3B4252} % nord1 +\definecolor{NordMediumBlack}{HTML}{434C5e} % nord2 +\definecolor{NordBrightBlack}{HTML}{4C566A} % nord3 +% Snow Storm +\definecolor{NordWhite}{HTML}{E5E9F0} % nord5 +\definecolor{NordBrightWhite}{HTML}{ECEFF4} % nord6 +% Frost +\definecolor{NordCyan}{HTML}{8FBCBB} % nord7 +\definecolor{NordBrightCyan}{HTML}{88C0D0} % nord8 +\definecolor{NordBlue}{HTML}{81A1C1} % nord9 +\definecolor{NordBrightBlue}{HTML}{5E81AC} % nord10 +% Aurora +\definecolor{NordRed}{HTML}{BF616A} % nord11 +\definecolor{NordOrange}{HTML}{D08770} % nord12 +\definecolor{NordYellow}{HTML}{EBCB8B} % nord13 +\definecolor{NordGreen}{HTML}{A3BE8C} % nord14 +\definecolor{NordMagenta}{HTML}{B48EAD} % nord15 + +\setbeamercolor*{background canvas}{bg=NordBlack} +\setbeamercolor*{normal text}{fg=NordWhite} +\setbeamercolor*{alerted text}{fg=NordRed} +\setbeamercolor*{example text}{fg=NordBrightCyan} +\setbeamercolor*{structure}{fg=NordCyan} + +\setbeamercolor*{title}{fg=NordGreen} +\setbeamercolor*{subtitle}{fg=NordBlue} +\setbeamercolor*{frametitle}{fg=NordGreen} +\setbeamercolor*{framesubtitle}{fg=NordBlue} +\setbeamercolor*{section in toc}{fg=NordGreen} +\setbeamercolor*{subsection in toc}{fg=NordBlue} +\setbeamercolor*{subsection in toc shaded}{fg=NordCyan!20!NordBrightBlack} + +\setbeamercolor*{itemize item}{fg=NordGreen} +\setbeamercolor*{enumerate item}{fg=NordGreen} + +\setbeamercolor*{section in head/foot}{bg=NordBlack, fg=NordCyan} + +\setbeamercolor{block title}{bg=NordBlack!80,fg=NordGreen} +\setbeamercolor{block title example}{bg=NordBlack!80,parent={example text}} +\setbeamercolor{block title alerted}{bg=NordBlack!80,parent={alerted text}} +\setbeamercolor{block body}{bg=NordGreen!50!NordBlack,fg=NordCyan} +\setbeamercolor{block body example}{bg=NordBrightCyan!50!NordBlack,fg=NordWhite} +\setbeamercolor{block body alerted}{bg=NordRed!50!NordBlack,fg=NordWhite} + +\setbeamercolor{caption}{fg=NordBrightBlue} + +\mode +<all> + +\endinput diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerthemenord/beamerfontthemeNord.sty b/macros/latex/contrib/beamer-contrib/themes/beamerthemenord/beamerfontthemeNord.sty new file mode 100644 index 0000000000..6ae75d74e5 --- /dev/null +++ b/macros/latex/contrib/beamer-contrib/themes/beamerthemenord/beamerfontthemeNord.sty @@ -0,0 +1,32 @@ +% Copyright 2020 by Junwei Wang <i.junwei.wang@gmail.com> +% +% This file may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3c +% of this license or (at your option) any later version. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt + +\mode<presentation> + +%%%%%%%%%%%% fonts + +\setbeamerfont{structure}{family=\rmfamily,series=\bfseries} + +\setbeamerfont{title}{size=\Huge,parent=structure} +\setbeamerfont{subtitle}{size=\Large,parent=title} + +\setbeamerfont{section in toc}{size=\Large,parent=structure} +\setbeamerfont{section in head/foot}{size=\tiny,parent=structure} +\setbeamerfont{subsection in toc}{size=\large,parent={section in toc}} + +\setbeamerfont{frametitle}{parent=structure,size=\Large} +\setbeamerfont{framesubtitle}{parent=frametitle,size=\large} + +\setbeamerfont{caption}{size=\footnotesize} + +\setbeamerfont{block title}{size=\normalsize,series=\mdseries,parent={structure,block body}} + +\setbeamerfont{item}{parent=structure,series=\mdseries} + +\mode +<all> diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerthemenord/beamerthemeNord.pdf b/macros/latex/contrib/beamer-contrib/themes/beamerthemenord/beamerthemeNord.pdf Binary files differnew file mode 100644 index 0000000000..ac95702492 --- /dev/null +++ b/macros/latex/contrib/beamer-contrib/themes/beamerthemenord/beamerthemeNord.pdf diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerthemenord/beamerthemeNord.sty b/macros/latex/contrib/beamer-contrib/themes/beamerthemenord/beamerthemeNord.sty new file mode 100644 index 0000000000..40067d2fb8 --- /dev/null +++ b/macros/latex/contrib/beamer-contrib/themes/beamerthemenord/beamerthemeNord.sty @@ -0,0 +1,81 @@ +% Copyright 2020 by Junwei Wang <i.junwei.wang@gmail.com> +% +% This file may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3c +% of this license or (at your option) any later version. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt + +\ProvidesPackage{beamerthemeNord}[2020/07/03 v0.1.0 A simple beamer theme using Nord color scheme] + +\mode<presentation> + +\RequirePackage{ifthen} + +\usecolortheme{Nord} +\usefonttheme{Nord} + +\setbeamertemplate{navigation symbols}{} + +\setbeamersize{text margin left=6mm,text margin right=6mm} + + +\setbeamertemplate{caption}{\insertcaption} + +\setbeamertemplate{itemize item}{$\ast$} +\setbeamertemplate{itemize subitem}{$\ast$} +\setbeamertemplate{itemize subsubitem}{$\ast$} +\setbeamertemplate{frametitle}{ + {\usebeamercolor[fg]{normal text} \mdseries >> }~\boldmath\insertframetitle% + \hfill\ifx\insertframesubtitle\@empty\else{\usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}\insertframesubtitle}\fi +} +\setbeamertemplate{frametitle continuation}[from second][\insertcontinuationtext] +\setbeamertemplate{headline} +{% +\begin{beamercolorbox}{section in head/foot} +\vskip2pt\insertnavigation{\paperwidth}\vskip5pt +\end{beamercolorbox}% +} +\setbeamertemplate{footline}{ + \newbox\nord@tmpbox + \setbox\nord@tmpbox\hbox{[\insertframenumber/\inserttotalframenumber]} + \vspace{5.2mm} + \hspace{2mm}\noindent\hfill\box\nord@tmpbox\hspace{2mm} + \vspace{1.3mm} +} +\setbeamertemplate{title page}{ + \renewcommand\thefootnote{\fnsymbol{footnote}} + \setcounter{footnote}{1} % \dagger + {\usebeamerfont{title}\usebeamercolor[fg]{title}\bfseries\boldmath\inserttitle} + \ifx\insertsubtitle\@empty\else\\[1em] {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle}\fi~\\[2em] + {\structure{by}} \insertauthor\ \ifx\insertinstitute\@empty\else\quad(\insertinstitute)\fi + \\[1pt] + {\structure{on}} \insertdate\\ + \renewcommand\thefootnote{\arabic{footnote}} + \setcounter{footnote}{0} +} + +% table of contents +\setbeamertemplate{section in toc}{ + \inserttocsection\\\smallskip +} +\setbeamertemplate{subsection in toc}{~$\ast$~~\inserttocsubsection\\\smallskip} +\setbeamertemplate{subsection in toc shaded}[default][100] + +% block +\setbeamertemplate{blocks}[rounded][shadow=false] +\addtobeamertemplate{block begin}{% + \setlength{\textwidth}{0.85\textwidth}% +}{} +\addtobeamertemplate{block alerted begin}{% + \setlength{\textwidth}{0.85\textwidth}% +}{} +\addtobeamertemplate{block example begin}{% + \setlength{\textwidth}{0.85\textwidth}% +}{} + + +\mode +<all> + +\endinput diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerthemenord/beamerthemeNord.tex b/macros/latex/contrib/beamer-contrib/themes/beamerthemenord/beamerthemeNord.tex new file mode 100644 index 0000000000..7159333a36 --- /dev/null +++ b/macros/latex/contrib/beamer-contrib/themes/beamerthemenord/beamerthemeNord.tex @@ -0,0 +1,135 @@ +% Copyright 2020 by Junwei Wang <i.junwei.wang@gmail.com> +% +% This file may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3c +% of this license or (at your option) any later version. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt + +\documentclass[compress]{beamer} + +\usepackage[english]{babel} +\usepackage{metalogo} +\usepackage{listings} +\usepackage{fontspec} +\usepackage{tikz} + +\usetheme{Nord} +\setmainfont{Yanone Kaffeesatz} +\setsansfont{Andika New Basic} +\setmonofont{DejaVu Sans Mono} + +\AtBeginSection[] +{ + \begin{frame}[c,noframenumbering,plain] + \tableofcontents[sectionstyle=show/hide,subsectionstyle=show/show/hide] + \end{frame} +} + +\AtBeginSubsection[] +{ + \begin{frame}[c,noframenumbering,plain] + \tableofcontents[sectionstyle=show/hide,subsectionstyle=show/shaded/hide] + \end{frame} +} + +\title{Beamer Theme ``Nord''} +\subtitle{A simple beamer theme that uses ``Nord'' color scheme} +\author{Junwei Wang} +\institute{CryptoExperts} +\date{\today} + +\begin{document} + +\begin{frame}[plain,noframenumbering] + \maketitle +\end{frame} + + +\section{Appearance} + +\subsection{Colors} + +\begin{frame}{Defined Colors}{This is a subtitle} + \begin{description}[Snow Storm] + \item[Polar Night] + \textcolor{NordDarkBlack}{NordDarkBlack} \quad \textcolor{NordBlack}{NordBlack}\\ + \textcolor{NordMediumBlack}{NordMediumBlack} \quad \textcolor{NordBrightBlack}{NordBrightBlack} + \item[Snow Storm] + \textcolor{NordWhite}{NordWhite} \quad \textcolor{NordBrightWhite}{NordBrightWhite} + \item[Forest] + \textcolor{NordCyan}{NordCyan} \quad \textcolor{NordBrightCyan}{NordBrightCyan}\\ + \textcolor{NordBlue}{NordBlue} \quad \textcolor{NordBrightBlue}{NordBrightBlue} + \item[Aurora] + \textcolor{NordRed}{NordRed} \quad \textcolor{NordOrange}{NordOrange} \\ + \textcolor{NordYellow}{NordYellow} \quad \textcolor{NordGreen}{NordGreen} \\ + \textcolor{NordMagenta}{NordMagenta} + \end{description} +\end{frame} + +\subsection{Fonts} + +\begin{frame}[fragile]{Recommended Free Fonts} + \begin{description}[Selected Fonts] + \item[Selected Fonts] recommended for this theme\\ + \begin{lstlisting}[basicstyle = \ttfamily\small] +\setmainfont{Yanone Kaffeesatz} +\setsansfont{Andika New Basic} +\setmonofont{DejaVu Sans Mono} + \end{lstlisting} + \item[Download] {\small \url{https://www.fontsquirrel.com/}} + \item[Install Fonts] {\small \url{https://www.google.com/get/noto/help/install/}} + \item[Compilation] compile with \XeLaTeX~to use system-wide fonts + \end{description} + +\end{frame} + + +\subsection{Blocks} + +\begin{frame} + \frametitle{Blocks} + \begin{block}{This is an Ordinary Block} + \[ + a^2 + b^2 = c^2 + \] + \end{block} + \begin{exampleblock}{This is an Example Block} + \[ + 3^2+4^2 = 5^2 + \] + \end{exampleblock} + \begin{alertblock}{This is an Alert Block} + \[ + 3^2+4^2 \neq 5^2 + \] + \end{alertblock} + + \centering + \begin{minipage}{1.0\linewidth} + \begin{block}{This is an Horizontally-Aligned Ordinary Block} + \[ + a^2 + b^2 = c^2 + \] + \end{block} + \end{minipage} +\end{frame} + +\subsection{Figures} + +\begin{frame}{Figures} + \begin{figure} + \centering + \begin{tikzpicture} + \draw [help lines,NordMagenta] (0,0) grid (5,4); + \end{tikzpicture} + \caption{Credits to Ti\textit{k}Z} + \end{figure} +\end{frame} + +\end{document} + +%%% Local Variables: +%%% mode: latex +%%% TeX-master: t +%%% End: |