| 1 |
% Copyright 2020 by Junwei Wang <[email protected]> |
| 2 |
% |
| 3 |
% This file may be distributed and/or modified under the |
| 4 |
% conditions of the LaTeX Project Public License, either version 1.3c |
| 5 |
% of this license or (at your option) any later version. |
| 6 |
% The latest version of this license is in |
| 7 |
% http://www.latex-project.org/lppl.txt |
| 8 |
|
| 9 |
\documentclass[compress]{beamer} |
| 10 |
|
| 11 |
\usepackage[english]{babel} |
| 12 |
\usepackage{metalogo} |
| 13 |
\usepackage{listings} |
| 14 |
\usepackage{fontspec} |
| 15 |
\usepackage{tikz} |
| 16 |
|
| 17 |
\usetheme{Nord} |
| 18 |
% \usetheme[style=light]{Nord} |
| 19 |
|
| 20 |
\setmainfont{Yanone Kaffeesatz} |
| 21 |
\setsansfont{Andika New Basic} |
| 22 |
\setmonofont{DejaVu Sans Mono} |
| 23 |
|
| 24 |
\AtBeginSection[] |
| 25 |
{ |
| 26 |
\begin{frame}[c,noframenumbering,plain] |
| 27 |
\tableofcontents[sectionstyle=show/hide,subsectionstyle=show/show/hide] |
| 28 |
\end{frame} |
| 29 |
} |
| 30 |
|
| 31 |
\AtBeginSubsection[] |
| 32 |
{ |
| 33 |
\begin{frame}[c,noframenumbering,plain] |
| 34 |
\tableofcontents[sectionstyle=show/hide,subsectionstyle=show/shaded/hide] |
| 35 |
\end{frame} |
| 36 |
} |
| 37 |
|
| 38 |
\title{Beamer Theme ``Nord''} |
| 39 |
\subtitle{A simple beamer theme that uses ``Nord'' color scheme} |
| 40 |
\author{Junwei Wang} |
| 41 |
\institute{CryptoExperts} |
| 42 |
\date{\today} |
| 43 |
|
| 44 |
\begin{document} |
| 45 |
|
| 46 |
\begin{frame}[plain,noframenumbering] |
| 47 |
\maketitle |
| 48 |
\end{frame} |
| 49 |
|
| 50 |
|
| 51 |
\section{Appearance} |
| 52 |
|
| 53 |
|
| 54 |
\begin{frame}[fragile] |
| 55 |
\frametitle{Usage} |
| 56 |
Simply include the following code in your preamble: |
| 57 |
|
| 58 |
\begin{lstlisting}[basicstyle = \ttfamily\small] |
| 59 |
\usetheme{Nord} |
| 60 |
\end{lstlisting} |
| 61 |
|
| 62 |
\bigskip |
| 63 |
|
| 64 |
By default, the appearance is in dark theme, however you can actively choose a either a light or a |
| 65 |
dark theme. |
| 66 |
|
| 67 |
\begin{lstlisting}[basicstyle = \ttfamily\small] |
| 68 |
\usetheme[style=light]{Nord} |
| 69 |
\usetheme[style=dark]{Nord} |
| 70 |
\end{lstlisting} |
| 71 |
|
| 72 |
\end{frame} |
| 73 |
|
| 74 |
\subsection{Colors} |
| 75 |
|
| 76 |
\begin{frame}{Defined Colors}{This is a subtitle} |
| 77 |
\begin{description}[Snow Storm] |
| 78 |
\item[Polar Night] |
| 79 |
\textcolor{NordDarkBlack}{NordDarkBlack} \quad \textcolor{NordBlack}{NordBlack}\\ |
| 80 |
\textcolor{NordMediumBlack}{NordMediumBlack} \quad \textcolor{NordBrightBlack}{NordBrightBlack} |
| 81 |
\item[Snow Storm] |
| 82 |
\textcolor{NordWhite}{NordWhite} \quad \textcolor{NordBrighterWhite}{NordBrightestWhite}\\ |
| 83 |
\textcolor{NordBrightestWhite}{NordBrightestWhite} |
| 84 |
\item[Forest] |
| 85 |
\textcolor{NordCyan}{NordCyan} \quad \textcolor{NordBrightCyan}{NordBrightCyan}\\ |
| 86 |
\textcolor{NordBlue}{NordBlue} \quad \textcolor{NordBrightBlue}{NordBrightBlue} |
| 87 |
\item[Aurora] |
| 88 |
\textcolor{NordRed}{NordRed} \quad \textcolor{NordOrange}{NordOrange} \\ |
| 89 |
\textcolor{NordYellow}{NordYellow} \quad \textcolor{NordGreen}{NordGreen} \\ |
| 90 |
\textcolor{NordMagenta}{NordMagenta} |
| 91 |
\end{description} |
| 92 |
\end{frame} |
| 93 |
|
| 94 |
\subsection{Fonts} |
| 95 |
|
| 96 |
\begin{frame}[fragile]{Recommended Free Fonts} |
| 97 |
\begin{description}[Selected Fonts] |
| 98 |
\item[Selected Fonts] recommended for this theme\\ |
| 99 |
\begin{lstlisting}[basicstyle = \ttfamily\small] |
| 100 |
\setmainfont{Yanone Kaffeesatz} |
| 101 |
\setsansfont{Andika New Basic} |
| 102 |
\setmonofont{DejaVu Sans Mono} |
| 103 |
\end{lstlisting} |
| 104 |
\item[Download] {\small \url{https://www.fontsquirrel.com/}} |
| 105 |
\item[Install Fonts] {\small \url{https://www.google.com/get/noto/help/install/}} |
| 106 |
\item[Compilation] compile with \XeLaTeX~to use system-wide fonts |
| 107 |
\end{description} |
| 108 |
|
| 109 |
\end{frame} |
| 110 |
|
| 111 |
|
| 112 |
\subsection{Blocks} |
| 113 |
|
| 114 |
\begin{frame} |
| 115 |
\frametitle{Blocks} |
| 116 |
\begin{block}{This is a Block} |
| 117 |
\[ |
| 118 |
a^2 + b^2 = c^2 |
| 119 |
\] |
| 120 |
\end{block} |
| 121 |
\begin{exampleblock}{This is an Example Block} |
| 122 |
\[ |
| 123 |
E = m \cdot c^{2} |
| 124 |
\] |
| 125 |
\end{exampleblock} |
| 126 |
\begin{alertblock}{This is an Alert Block} |
| 127 |
\[ |
| 128 |
e^{i\pi} + 1 = 0 |
| 129 |
\] |
| 130 |
\end{alertblock} |
| 131 |
|
| 132 |
\centering |
| 133 |
\begin{minipage}{1.0\linewidth} |
| 134 |
\begin{block}{Horizontally-Aligned Block} |
| 135 |
\[ |
| 136 |
\log xy = \log x + \log y |
| 137 |
\] |
| 138 |
\end{block} |
| 139 |
\end{minipage} |
| 140 |
\end{frame} |
| 141 |
|
| 142 |
\subsection{Items} |
| 143 |
|
| 144 |
\begin{frame}{Items} |
| 145 |
Itemize |
| 146 |
\begin{itemize} |
| 147 |
\item item 1 |
| 148 |
\item item 2 |
| 149 |
\end{itemize} |
| 150 |
|
| 151 |
\bigskip |
| 152 |
|
| 153 |
Enumerate |
| 154 |
\begin{enumerate} |
| 155 |
\item item 1 |
| 156 |
\item item 2 |
| 157 |
\end{enumerate} |
| 158 |
\end{frame} |
| 159 |
|
| 160 |
\subsection{Figures} |
| 161 |
|
| 162 |
\begin{frame}{Figures} |
| 163 |
\begin{figure} |
| 164 |
\centering |
| 165 |
\begin{tikzpicture} |
| 166 |
\draw [help lines,NordMagenta,very thick] (0,0) grid (5,4); |
| 167 |
\end{tikzpicture} |
| 168 |
\caption{Credits to Ti\textit{k}Z} |
| 169 |
\end{figure} |
| 170 |
\end{frame} |
| 171 |
|
| 172 |
\end{document} |
| 173 |
|
| 174 |
%%% Local Variables: |
| 175 |
%%% mode: latex |
| 176 |
%%% TeX-master: t |
| 177 |
%%% TeX-engine: xetex |
| 178 |
%%% End: |