ko TeX Live 2013으로 문서를 작성하고 있습니다.
\usepackage[hangul]{dhucs}를 사용했을 때
제 1 장 장제목
과 같이 뜨는 것 보다
1 장제목
과 같이 뜨게 하고 싶어서 문서 앞에 다음 코드를 넣어서 사용하고 있습니다. 코드는 어디선가 가져왔었는데...
\makeatletter
\def\section{\@ifstar\unnumberedsection\numberedsection}
\def\numberedsection{\@ifnextchar[%]
\numberedsectionwithtwoarguments\numberedsectionwithoneargument}
\def\unnumberedsection{\@ifnextchar[%]
\unnumberedsectionwithtwoarguments\unnumberedsectionwithoneargument}
\def\numberedsectionwithoneargument#1{\numberedsectionwithtwoarguments[#1]{#1}}
\def\unnumberedsectionwithoneargument#1{\unnumberedsectionwithtwoarguments[#1]{#1}}
\def\numberedsectionwithtwoarguments[#1]#2{%
\ifhmode\par\fi
\removelastskip
\vskip 3ex\goodbreak
\refstepcounter{section}%
\noindent
\begingroup
\leavevmode\Large\bfseries\raggedright
\thesection\quad
#2
\par
\endgroup
\vskip 2ex\nobreak
\addcontentsline{toc}{section}{%
\protect\numberline{\thesection}%
#1}%
}
\def\unnumberedsectionwithtwoarguments[#1]#2{%
\ifhmode\par\fi
\removelastskip
\vskip 3ex\goodbreak
% \refstepcounter{section}%
\noindent
\begingroup
\leavevmode\Large\bfseries\raggedright
\leavevmode\Large\bfseries\raggedright
% \thesection\quad
#2
\par
\endgroup
\vskip 2ex\nobreak
\addcontentsline{toc}{section}{%
% \protect\numberline{\thesection}%
#1}%
}
\def\@maketitle{
\newpage
\null
\vskip 2em
\begin{flushleft}
\let \footnote \thanks
{\LARGE \@title \par}
\vskip 1.5em
\end{flushleft}
\begin{flushright}
{\large \@author}
\vskip 1em
{\large \@date}
\end{flushright}
\par
\vskip 1.5em
}
\makeatother
그런데 이 코드를 쓰면 \section과 \subssection의 간격이 너무 벌어집니다.
어떻게 하면 저 간격을 조절할 수 있나요? 도움 부탁드립니다.
KTUG 한국 텍 사용자 그룹