\documentclass{simplesnt}
%% Helpful packages
\usepackage{simplebnf}[2023/11/25]
\usepackage{listings}
\lstset{basicstyle = \small\ttfamily, breaklines}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}
\usepackage{metalogo} % For XeTeX logo
\usepackage{kotex-logo}
\newcommand*{\presentfont}[1]{{\fontspec{#1}#1}}
\ExplSyntaxOn
\bool_if:nF { \sys_if_engine_xetex_p: || \sys_if_engine_luatex_p: }
{ \newcommand*{\fontspec}[1]{} }
\ExplSyntaxOff
\title{\texttt{simpleSnT}}
\subtitle{A simple package to create show and tell slides}
\author{Jay Lee}
\begin{document}
\maketitle
\begin{frame}
\frametitle{목차}
\tableofcontents
\end{frame}
\section{Prerequisites}
\begin{frame}[c]
\frametitle{\TeX\ Engine}
You are expected to use \XeLaTeX{}\footnote{Tectonic is supported as well.} or \LuaLaTeX{} to use this class, but pdf\LaTeX{} can be used as well with some limitations.
\koTeX\ encourages the use of modern \TeX\ engines, and \XeLaTeX\ is considered the de-facto standard for Korean \TeX\ users.\footnote{http://wiki.ktug.org/wiki/wiki.php/ModernLaTeX}
\end{frame}
\begin{frame}[c]
\frametitle{Fonts}
The following Korean fonts are required outside of the fonts included in the \TeX{}Live distribution:
{\footnotesize
\begin{itemize}
\item \presentfont{Noto Serif CJK KR},
\item {\fontspec{KoPubWorldDotum_Pro}KoPubWorldDotum\_Pro}, and
\item \presentfont{D2Coding}.
\end{itemize}
}
If you pass \texttt{no-fonts} option to the class, i.e., \texttt{\textbackslash documentclass[no-fonts]\{simplesnt\}}, the class will not load custom Korean fonts.
\end{frame}
\begin{frame}[c, fragile]
\frametitle{Usage}
Using \XeLaTeX:
\begin{lstlisting}
# Run at least three times to get all the cross references correct
xelatex doc.tex
xelatex doc.tex
xelatex doc.tex
\end{lstlisting}
The above is just an example; You are free to use other build tools based on \texttt{latexmk}, GNU Make, Tectonic, etc.
\end{frame}
\section{(Opinionated) Examples}
\begin{frame}[c, fragile]
\frametitle{Backus-Naur Forms}
Use \texttt{simplebnf}, e.g.,
\begin{lstlisting}
\usepackage{simplebnf}[2023/11/25]
\end{lstlisting}
\begin{center}
\begin{bnf}[rrclr]
$e$ : Expression ::=
$n$ : number
| $x$ : variable
| $e$; $e$ : sequence
| $e \oplus e$ : binary op
| $e\ e$ : application
\end{bnf}
\end{center}
\end{frame}
\begin{frame}[c, fragile]
\frametitle{Tables}
Use \texttt{tabularray}, e.g.,
\begin{lstlisting}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}
\end{lstlisting}
\begin{center}
\begin{tblr}{ccc}
\toprule
A & B & C \\
\midrule
1 & 2 & 3 \\
4 & 5 & 6 \\
\bottomrule
\end{tblr}
\end{center}
\end{frame}
\end{document}

PDF Preview
Create an account to compile and preview