%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% LINEHEAD.TEX -- Underlined Headings
% Copyright by Songyong Sim (C) 1995
% Usage :
% include this file in preamble by
% \input linehead
% and \pagestyle{linehead}  after begin{documnet}
% RESULRTS : 
% The right page headings are the Chapter titles and
% the left page titles are section titles 
% It doesnot depend on whether it is a twoside
% License : NO WARRANTY EXPLICIT NOR IMPLICIT. everyone is free to make
% copy, modify, and distribute this LEINEHEAD.TEX whenever he/she doesnot
% not make any charge for it  
% NOTE : This is for KOREAN characters. If your using English
% use comment out'ed line and comment out the line containing \hA
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
\@twosidetrue
\def\ps@linehead{\let\@mkboth\markboth
\def\@evenhead{\protect\makebox[0pt][l]{\protect\underline
             {\protect\makebox[\textwidth][l]{\rm\thepage\hfill\sl\leftmark}}}}
\def\@oddhead{\protect\makebox[0pt][l]{\protect\underline
              {\protect\makebox[\textwidth][l]
              {\sl\rightmark\hfill\rm\thepage}}}}
\def\chaptermark##1{\markboth{\uppercase{
    {\hA\hC58\hC76} \thechapter \space {\hB\hC26\hC34\hC201} \  ##1}}{}}
% \@chapapp\ \thechapter \  ##1}}{}}
\def\@evenfoot{}
\def\@oddfoot{}
\def\sectionmark##1{\markright {\uppercase{ \thesection \ ##1}}}
\def\subsectionmark##1{}}
\makeatother
