diff options
author | Karl Berry <karl@freefriends.org> | 2020-07-03 20:55:50 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-07-03 20:55:50 +0000 |
commit | b87bab3b7b1174e534173f17150dfcd4ce837dd8 (patch) | |
tree | b025c855b347db1aebea411f7d58ad96f97088e8 /Master/texmf-dist | |
parent | 62959e7b001ff4af0605b0055c637c5219b46c82 (diff) |
beamerthemenord (3jul20)
git-svn-id: svn://tug.org/texlive/trunk@55743 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
6 files changed, 328 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/beamerthemenord/README.md b/Master/texmf-dist/doc/latex/beamerthemenord/README.md new file mode 100644 index 00000000000..e22c28ec14f --- /dev/null +++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/beamerthemenord/beamerthemeNord.pdf b/Master/texmf-dist/doc/latex/beamerthemenord/beamerthemeNord.pdf Binary files differnew file mode 100644 index 00000000000..ac957024929 --- /dev/null +++ b/Master/texmf-dist/doc/latex/beamerthemenord/beamerthemeNord.pdf diff --git a/Master/texmf-dist/doc/latex/beamerthemenord/beamerthemeNord.tex b/Master/texmf-dist/doc/latex/beamerthemenord/beamerthemeNord.tex new file mode 100644 index 00000000000..7159333a36d --- /dev/null +++ b/Master/texmf-dist/doc/latex/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: diff --git a/Master/texmf-dist/tex/latex/beamerthemenord/beamercolorthemeNord.sty b/Master/texmf-dist/tex/latex/beamerthemenord/beamercolorthemeNord.sty new file mode 100644 index 00000000000..3faf457f729 --- /dev/null +++ b/Master/texmf-dist/tex/latex/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/Master/texmf-dist/tex/latex/beamerthemenord/beamerfontthemeNord.sty b/Master/texmf-dist/tex/latex/beamerthemenord/beamerfontthemeNord.sty new file mode 100644 index 00000000000..6ae75d74e5b --- /dev/null +++ b/Master/texmf-dist/tex/latex/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/Master/texmf-dist/tex/latex/beamerthemenord/beamerthemeNord.sty b/Master/texmf-dist/tex/latex/beamerthemenord/beamerthemeNord.sty new file mode 100644 index 00000000000..40067d2fb8b --- /dev/null +++ b/Master/texmf-dist/tex/latex/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 |