%%% example-by-verbatim 
\usepackage{listings}
\lstset{%
        basicstyle=\ttfamily\small,
        keywordstyle=\color{blue}\bfseries,
        numbers=left,
        numberstyle=\tiny,
        tabsize=4,
}

\makeatletter
\let\RES@verbatim=\verbatim
\let\endRES@verbatim=\endverbatim
\let\verbatim=\relax
\let\endverbatim=\relax 
\ExplSyntaxOn 

\iow_new:N \this_iow
\int_new:N \tmpcnt_int 

\NewDocumentEnvironment { verbatim } { }
{
  \int_gincr:N \tmpcnt_int 
  \iow_open:Nn \this_iow { \jobname-exam-\int_use:N \tmpcnt_int.tex }
  \iow_now:Nn \this_iow
  {
    \documentclass{standalone}
    \usepackage{libertineRoman}
    \usepackage{istgame}
    \usepackage{istgamesample-defxcol}
    \begin{document}
    \input
  }
  \iow_now:Nx \this_iow
  {
     \jobname-exam-\int_use:N \tmpcnt_int-cont.tex
  }
  \iow_now:Nn \this_iow
  {
    \end{document}
  }
  \iow_close:N \this_iow
  \begingroup
  \verbatimoutput {\jobname-exam-\int_use:N \tmpcnt_int-cont.tex}
}
{
  \endverbatimoutput
  \endgroup 
  \immediate\write18 {texfot~pdflatex~\jobname-exam-\int_use:N \tmpcnt_int.tex }
  \includegraphics[scale=1]{\jobname-exam-\int_use:N \tmpcnt_int.pdf }
  \par
  \boxedverbatiminput{\jobname-exam-\int_use:N \tmpcnt_int-cont.tex}
}

\ExplSyntaxOff

\makeatother 

\begin{document}

\firmlists

\ifx\mytitle\undefined \def\mytitle{타이틀}\fi
\ifx\myauthor\undefined \def\myauthor{저자명}\fi

\title{\mytitle}
\author{\myauthor}
%\date{\today}
\ifx\mydate\undefined
 \date{\today}
\else
 \date{\mydate}
\fi

\maketitle

\endinput 