|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309 |
- %
- % demo.tex
- %
- % A presentation for the “Kenotom presentation theme”
- %
- % note: Requires compilation with XeLaTeX or LuaLaTeX
- %
- % note: You can reduce the pdf file size using something like:
- % $ gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dPDFSETTINGS=/prepress \
- % -dNOPAUSE -dQUIET -dBATCH -sOutputFile=sdemo.pdf demo.pdf
- %
- % author: Christos Choutouridis <c.choutouridis@kenotom.com>
- % date: 2023-03-26
- %
-
- \documentclass[11pt,aspectratio=169]{beamer}
-
- % key-value
- % -----------
- %theme: [light, classic(default), dark]
- %background: [none(default), ribbon]
- %title: [normal(default), small, large]
-
- % options
- % -----------
- %nonavigation: Disables the navigation bar
- %fancy : Creates fancy presentation
- \usetheme[theme=classic, fancy]{Kenotom}
-
- %
- % note: For a presentation “close” to the official use
- %--------------------------------------------------------
- % \documentclass[13pt,aspectratio=169]{beamer}
- % \usetheme[theme=light,fancy,nonavigation]{Kenotom}
-
- % Presentation information
- % =======================================================
- \title{\Large”Kenotom” theme demonstration}
- \subtitle{}
- \author{Christos Choutouridis}
- \institute{Kenotom}
- \date{\today}
-
- \newcommand{\AuthorEmail}{c.choutouridis@kenotom.com}
- \newcommand{\Address}{Eth. Antistasis 16 GR-55133, Thessaloniki - Greece}
- \newcommand{\Telephone}{+30 2310 315470}
-
- % Local command and configurations
- % =======================================================
- \usepackage{listings,hyperref}
- %\usepackage{pgfpages}
- %\setbeameroption{second mode text on second screen=<location>}
- %\setbeameroption{show notes on second screen=<location>}
- %\setbeameroption{previous slide on second screen=<location>}
-
- \newcommand{\bs}{\textbackslash}
-
-
- % Document
- % =======================================================
- \begin{document}
-
- \maketitle
-
- \BeginCountingFrames % Exclude first frames from frame counting
-
- % Uncomment the following lines for an automatically generated outline.
- \OutlineFrame[subsections]{Presentation}{Outline}
-
- \section{Introduction}
-
- % -------------------------------------------------------
- \begin{frame}{Introduction}
- This theme contains:
- \begin{tickmarks}
- \item beamer style configurations to match kenotom presentation styles
- \item extra kenotom environments \texttt{\bs{}tickmarks, \bs{}bullets}
- \item extra kenotom commands like \texttt{\bs{}BeginCountingFrames, \bs{}OutlineFrame, \bs{}BackFrame}
- \end{tickmarks}
-
- \begin{block}{Examples}
- Beside kenotom specific, some basic \LaTeX{} examples of commonly used commands and features are included, to help you get started.
- \end{block}
-
- \end{frame}
-
- \section{Theme options}
-
- % -------------------------------------------------------
- \begin{frame}{theme option}
- There are 3 variation to select.\\
- \begin{itemize}
- \item \texttt{[theme=light]} - the official theme
- \item \texttt{[theme=classic]}\textit{(default)} - A darker font theme, for technical content.
- \item \texttt{[theme=dark]} - A dark background theme.
- \end{itemize}
- Bellow you can see samples of the variations.
- \begin{columns}[onlytextwidth]
- \column{0.33\textwidth}
- \begin{figure}
- \includegraphics[width=\textwidth]{images/theme_light.png}
- \caption{\label{img:theme_light}\texttt{[theme=light]}}
- \end{figure}
-
- \column{0.33\textwidth}
- \begin{figure}
- \includegraphics[width=\textwidth]{images/theme_classic.png}
- \caption{\label{img:theme_classic}\texttt{[theme=classic]}}
- \end{figure}
-
- \column{0.33\textwidth}
- \begin{figure}
- \includegraphics[width=\textwidth]{images/theme_dark.png}
- \caption{\label{img:theme_dark}\texttt{[theme=dark]}}
- \end{figure}
- \end{columns}
- \end{frame}
-
- % -------------------------------------------------------
- \begin{frame}{background option}
- There are 2 variation to select.
- \begin{itemize}
- \item \texttt{[background=none]}\textit{(default)} - the official theme
- \item \texttt{[background=ribbon]} - A fade ribbon as background for all slides
- \end{itemize}
- Bellow you can see samples of the variations.
- \begin{columns}[onlytextwidth]
- \column{0.48\textwidth}
- \begin{figure}
- \includegraphics[width=\textwidth]{images/background_none.png}
- \caption{\label{img:background_none}\texttt{[background=none]}}
- \end{figure}
- \column{0.48\textwidth}
- \begin{figure}
- \includegraphics[width=\textwidth]{images/background_ribbon.png}
- \caption{\label{img:background_ribbon}\texttt{[background=ribbon]}}
- \end{figure}
- \end{columns}
- \end{frame}
-
- % -------------------------------------------------------
- \begin{frame}{Other options}
- \begin{columns}
- \column{0.45\textwidth}
- \begin{enumerate}
- \item There are 3 variation for frame title size:
- \begin{itemize}
- \item \texttt{[title=normal]}\textit{(default)}
- \item \texttt{[title=small]}
- \item \texttt{[title=large]}
- \end{itemize}
- \item \texttt{[nonavigation]} can disable the navigation bar.
- \item \texttt{[fancy]} can enable the extra “fancy” slides.
- \begin{itemize}
- \item Car title frame
- \item Fancier outline frame
- \item Section starting frames
- \end{itemize}
- \textit{\textbf{note}: This can slow down compilation.}
- \end{enumerate}
-
- \column{0.55\textwidth}
- \begin{figure}
- \includegraphics[width=\textwidth]{images/fancy_look.jpg}
- \caption{\label{img:fancy_look}Fancy slides}
- \end{figure}
- \end{columns}
- \end{frame}
-
- \section{Kenotom environments}
-
- % -------------------------------------------------------
- \begin{frame}[fragile]{Environments}
- This theme provides two Kenotom specific commands and environments.\\[2ex]
- \begin{columns}[onlytextwidth]
- % tickmarks
- \column{0.5\textwidth}
- There is the \texttt{\bs{}tickmarks} environment.
- \begin{verbatim}
- \begin{tickmarks}
- \item Item 1
- \item Item 2
- \end{tickmarks}
- \end{verbatim}
- \begin{tickmarks}
- \item Item 1
- \item Item 2
- \end{tickmarks}
-
- % bullets
- \column{0.5\textwidth}
- And the \texttt{\bs{}bullets} environment.
- \begin{verbatim}
- \begin{bullets}
- \item Item 1
- \item Item 2
- \end{bullets}
- \end{verbatim}
- \begin{bullets}
- \item Item 1
- \item Item 2
- \end{bullets}
- \end{columns}
-
- \end{frame}
-
- \section[Some \LaTeX examples]{\LaTeX{} Examples}
-
- \subsection{Mathematics}
- % -------------------------------------------------------
- \begin{frame}{Readable Mathematics}
-
- Let $X_1, X_2, \ldots, X_n$ be a sequence of independent and identically distributed random variables with $\text{E}[X_i] = \mu$ and $\text{Var}[X_i] = \sigma^2 < \infty$, and let
- $$S_n = \frac{X_1 + X_2 + \cdots + X_n}{n}
- = \frac{1}{n}\sum_{i}^{n} X_i$$
- denote their mean. Then as $n$ approaches infinity, the random variables $\sqrt{n}(S_n - \mu)$ converge in distribution to a normal $\mathcal{N}(0, \sigma^2)$.
-
- \end{frame}
-
- \subsection{Code}
- % -------------------------------------------------------
- \begin{frame}[fragile]{Code}
- Inserted code fits naturally to frame. See the \texttt{\bs{}lstlisting}\, example bellow.
- \lstset{
- language=C++,
- basicstyle=\footnotesize\ttfamily,
- keywordstyle=\footnotesize\color{KenotomGreen}\ttfamily,
- morecomment=[l][\color{red!60!black}]{//!}
- }
- \begin{lstlisting}
- #include <concepts>
-
- template<std::integral T>
- T gcd(T a, T b) {
- //! Unchecked precondition: (a != 0 || b != 0)
- while (true) {
- if (b == T(0))
- return a;
- a = remainder(a, b); // Floyd and Knuth remainder
- if (a == T(0))
- return b;
- b = remainder(b, a); // Floyd and Knuth remainder
- }
- }
- \end{lstlisting}
- \end{frame}
-
- \subsection{Tables}
- % -------------------------------------------------------
- \begin{frame}{Tables}
-
- Use \texttt{\bs{}tabular} for basic tables --- see Table~\ref{tab:benford_freq}, for example.
- \begin{table}
- \centering
- \begin{tabular}{r c}
- Leading digit & Frequency \\ \hline
- 1 & 0.301 \\
- 2 & 0.176 \\
- 3 & 0.125 \\
- 4 & 0.097 \\
- 5 & 0.079 \\
- 6 & 0.067 \\
- 7 & 0.058 \\
- 8 & 0.051 \\
- 9 & 0.046 \\
- \end{tabular}
- \caption{\label{tab:benford_freq}Benford's law frequencies.}
- \end{table}
- \end{frame}
-
- \subsection{Figures}
-
- % -------------------------------------------------------
- \begin{frame}
- \frametitle{Figure Example}
- To include figures in your document, use the \texttt{\bs{}includegraphics} command (see the comment below in the source code).
-
- \begin{figure}
- \includegraphics[height=0.55\textheight]{images/SincFunction.png}
- \caption{\label{fig:your-figure}Filter kernel}
- \end{figure}
- \end{frame}
-
- \subsection{Overlays}
- % -------------------------------------------------------
- \begin{frame}{Overlays}
- \begin{block}{}
- Off-course you can use overlays to create multi-slide frames\\ and reveal information on the slides gradually!
- \end{block}
- \begin{tickmarks}
- \item<2-> First point.
- \item<3-> Second point.
- \item<4-> Third point.
- \end{tickmarks}
- \vspace{2ex}
- \only<2>{Now we see the $1^{st}$ point!}
- \only<3>{Now we see the $2^{nd}$ point!}
- \only<4>{Now we see the $3^{rd}$ point!}
- \onslide<5->{
- And so much more. For details see \href{https://www.latex-project.org/}{here}
- }
- \end{frame}
-
-
- % -------------------------------------------------------
- \BackFrame
-
-
- \end{document}
|