<div>Hello everyone,</div>
<div>&nbsp;</div>
<div>I need some help from you guys.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>I need change section title to be centered, and underlined (including section #), so I tried to modifty the style file:</div>
<div>Before change it is centered and not underlined:</div>
<div>\def\section{\@startsection {section}{1}{\z@}{12pt }{ 12pt }{\centering\large\bfseries\TitleHyphenation}}</div>
<div>I did this:</div>
<div>\def\section{\@startsection {section}{1}{\z@}{12pt }{ 12pt }{\centering\large\bfseries\TitleHyphenation\underline}}</div>
<div>After change, it is underlined, but not centered any more. It seems \centering doesn't work well with \underline. How to get this work?</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>I also have another similar problem with subsection. It requires left-aligned and underlined.</div>
<div>Before change, it is left-aligned and not underlined:</div>
<div>\def\subsection{\@startsection{subsection}{2}{\z@}{12pt}{12pt }{\large\bfseries\TitleHyphenation}}</div>
<div>I did this:</div>
<div>\def\subsection{\@startsection{subsection}{2}{\z@}{12pt}{12pt }{\large\bfseries\TitleHyphenation\underline}}</div>
<div>After change, it is underlined, but has some indent which I don't want. How to fix this?</div>
<div>&nbsp;</div>
<div>Thanks,</div>
<div>Libo</div>
<div>&nbsp;</div>
<div>&nbsp;</div>