% hangulmath-minimal.tex -- a minimal hangulmath example (English only)
% Compile with XeLaTeX or LuaLaTeX. No Korean font is needed.
% Package: hangulmath v0.7, LPPL 1.3c.
% Copyright (C) 2026 Inkyu Park <icpark00@gmail.com>
\documentclass[11pt]{article}
\usepackage[margin=25mm]{geometry}
\usepackage{amsmath}
\usepackage{hangulmath}
\usepackage{booktabs}
\pagestyle{empty}
\setlength\parindent{0pt}

\begin{document}

\section*{hangulmath in one page}

Each Hangul letter has a short command. Consonants are four letters
that begin and end with the same sound; vowels are spelled as they
sound, with a trailing \texttt{h}.

\medskip
\begin{center}
\begin{tabular}[t]{@{}cl@{\qquad}cl@{}}
  \toprule
  \multicolumn{4}{@{}c@{}}{14 consonants}\\ \midrule
  $\giug$ & \verb|\giug| & $\iung$ & \verb|\iung| \\
  $\niun$ & \verb|\niun| & $\jiuj$ & \verb|\jiuj| \\
  $\diud$ & \verb|\diud| & $\ciuc$ & \verb|\ciuc| \\
  $\liul$ & \verb|\liul| & $\kiuk$ & \verb|\kiuk| \\
  $\mium$ & \verb|\mium| & $\tiut$ & \verb|\tiut| \\
  $\biub$ & \verb|\biub| & $\piup$ & \verb|\piup| \\
  $\sius$ & \verb|\sius| & $\hiuh$ & \verb|\hiuh| \\
  \bottomrule
\end{tabular}
\hspace{3em}
\begin{tabular}[t]{@{}cl@{\qquad}cl@{}}
  \toprule
  \multicolumn{4}{@{}c@{}}{10 vowels}\\ \midrule
  $\ah$ & \verb|\ah| & $\yoh$ & \verb|\yoh| \\
  $\yah$ & \verb|\yah| & $\uh$ & \verb|\uh| \\
  $\eoh$ & \verb|\eoh| & $\yuh$ & \verb|\yuh| \\
  $\yeoh$ & \verb|\yeoh| & $\euh$ & \verb|\euh| \\
  $\oh$ & \verb|\oh| & $\ih$ & \verb|\ih| \\
  \bottomrule
\end{tabular}
\end{center}

% ------------------------------------------------------------------
\subsection*{1. Function names}
% A consonant followed by an argument reads as a function name.
\[
  \giug(x),\ \niun(x),\ \diud(x),\ \liul(x),\ \dots \qquad
  \giug(z) = \frac{1}{\Gamma(z)}
\]
% \mium looks like a box: the d'Alembertian.
\[
  \mium = \nabla^2 - \frac{1}{c^2}\frac{\partial^2}{\partial t^2}, \qquad
  \mium A^\mu = -\mu_0 J^\mu
\]

% ------------------------------------------------------------------
\subsection*{2. Operators}
% \hangulsum, \hangulint and \hangullim turn any symbol into an
% operator like \sum, \int and \lim.
\[
  \hangulsum\tiut_{k=1}^{n} k = \frac{n(n+1)}{2}, \qquad
  \hangulint\diud_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi}, \qquad
  \hangullim\liul_{n\to\infty}\Bigl(1+\frac1n\Bigr)^{n} = e
\]

% ------------------------------------------------------------------
\subsection*{3. Brackets}
% \eoh and \ah are mirror images, like < and >;
% \yeoh and \yah are their double forms.
\[
  \eoh A\ah, \qquad \ah A\eoh, \qquad \yeoh B\yah, \qquad \yah B\yeoh
\]
\[
  \eoh\psi|\phi\ah = \int \psi^*\phi\,dx, \qquad
  \sum_n |n\ah\eoh n| = \mathbf{1}
\]

% ------------------------------------------------------------------
\subsection*{4. Superscript mark}
% \ciuc as a new mark beside the prime, star and dagger.
\[
  A',\ A^*,\ A^\dagger,\ A^{\ciuc}, \qquad
  (AB)^{\ciuc} = B^{\ciuc}A^{\ciuc}, \qquad
  f^{\ciuc}(y) = \sup_x\bigl(xy - f(x)\bigr)
\]

% ------------------------------------------------------------------
\subsection*{5. Arrows}
% \oh, \yoh point up and \uh, \yuh point down, like the usual arrows.
\[
  \oh\ \uparrow \qquad \yoh\ \Uparrow \qquad
  \uh\ \downarrow \qquad \yuh\ \Downarrow
\]
\[
  |\oh\ah,\ |\uh\ah \quad (\text{spin up, down}), \qquad
  x \mathrel{\uh} 0 \quad (x \downarrow 0)
\]

% ------------------------------------------------------------------
\subsection*{6. Chemistry}
% Consonants as element symbols; \uh marks a precipitate.
\[
  {}^{298}_{120}\giug \to {}^{294}_{118}\liul + {}^{4}_{2}\mathrm{He}, \qquad
  2\,\giug_2 + \iung_2 \rightleftharpoons 2\,\giug_2\iung
\]
\[
  2\,\kiuk + \piup_2 \to 2\,\kiuk\piup, \qquad
  \biub\piup_3 + 3\,\kiuk\iung\giug \to \biub(\iung\giug)_3\,\uh + 3\,\kiuk\piup
\]

\vfill
\small The full list of 40 symbols and more examples are in
\texttt{hangulmath-doc.pdf}.

\end{document}
