Sharedlatex-tests / hangul.texOpen in CoCalc
\documentclass{article}
\usepackage{amsmath,amssymb}
\usepackage{hyperref}
\usepackage[hangul]{kotex}
\usepackage{kotex-logo}
\usepackage{iftex}
\ifPDFTeX
  \usepackage{dhucs-nanumfont}
  \hypersetup{pdftex,unicode,bookmarks}
  \input glyphtounicode
  \pdfgentounicode=1
\else\ifXeTeX
  \setmainhangulfont[Ligatures=TeX]{HCR Batang LVT}
  \setsanshangulfont[Ligatures=TeX]{HCR Dotum LVT}
\else\ifLuaTeX
  \hypersetup{unicode,bookmarks}
  \setmainhangulfont[Ligatures=TeX]{HCR Batang LVT}
  \setsanshangulfont[Ligatures=TeX]{HCR Dotum LVT}
\fi\fi\fi
\begin{document}
\title{\koTeX-article 릿}
\author{}
\date{}
\maketitle
\section{ }
\subsection{ }
  \koTeX\ .
\end{document}