Manvi Agarwal wrote:
> Just now I saw, the latex preamble which you have sent is not working
> properly wuth long chapter titles. The long chapter titles are not
> aligned properly, but it working absolutely fine with short chapter
> titles.
\newfont{\scaledfont}{cmr12 scaled 7000}
\renewcommand\thechapter{\arabic{chapter}}
\def\@makechapterhead#1{%
% \vspace*{50\p@}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\par\nobreak
\vskip 20\p@
\fi
\fi
\interlinepenalty\@M
\parbox{0.8\textwidth}{\Huge \bfseries #1}\ %
\hfill\scaledfont\thechapter\par\normalsize%
\rule{\textwidth}{1pt}% <--- the rule
\nobreak
\vskip 40\p@
}%
}
Herbert
--
http://www.lyx.org/help/