Q&A 마당에서 pythontex에 대한 언급이 있어서 해봤습니다.
\documentclass{article}
\usepackage{kotex}
\usepackage{xcolor}
\usepackage{tabto}
\usepackage{pythontex}
\newcommand\codetail[1]{\textcolor{blue}{#1}}
\newcommand\bytehead[1]{\textcolor{red}{#1}}
\newcommand\bytetail[1]{\textcolor{brown}{#1}}
\TabPositions{0pt, .15\linewidth, .5\linewidth}
\begin{document}
\begin{pyblock}
import sys
sys.path.append('c:\\home\\bin')
from wordutil import UTFanalyzer
utf = UTFanalyzer( chars="aA가①⑴⒜ⓐⅰⅠㄱ㉠㉮㈀㈎", \
upper=True, tex=True)
utf.show()
\end{pyblock}
\small \texttt{\printpythontex}
\end{document}
재밌네요.
KTUG 한국 텍 사용자 그룹