I tried that before I cried for help :-) but it didn't work. let me paste the preamble in here: -------- \usepackage{sectsty} \chapterfont{\mdseries\centering} \sectionfont{\mdseries\centering} \subsectionfont{\mdseries\textit} \subsubsectionfont{\mdseries\textit} \paragraphfont{\mdseries\textit} \renewcommand{\theequation}{\thesection.\arabic{equation}} \renewcommand{\@seccntformat}[1]{} \usepackage{amssymb} \usepackage{algorithm} \usepackage{float} \usepackage{ntheorem} \usepackage{accents} \usepackage{lscape} \usepackage{tocloft} \usepackage{setspace} \newcommand{\rightBow}[1]{\accentset{\curvearrowright}{#1}} \newcommand{\leftBow}[1]{\accentset{\curvearrowleft}{#1}} \usepackage{dsfont} \usepackage[nice]{nicefrac} \AtBeginDocument{\renewcommand\chaptername{}} \def\@makechapterhead#1{% \vspace*{50\p@}% {\parindent \z@ \raggedright \normalfont \ifnum \c@secnumdepth >\m@ne \huge\bfseries\centering \@chapapp\space %\thechapter \par\nobreak \vskip 20\p@ \fi \interlinepenalty\@M \Huge \bfseries #1\par\nobreak \vskip 40\p@ }}
\def\need#1{\par \penalty-100 \begingroup % preserve \dimen@ \dimen@\pagegoal \advance\dimen@-\pagetotal % space left \ifdim #1>\dimen@ % not enough space left \ifdim\dimen@>\z@ \vfil\fi % only do \vfil if some space left on page \eject \fi \endgroup} \renewcommand{\contentsname}{CONTENTS} \renewcommand{\cfttoctitlefont}{\hfill\rmfamily\mdseries\scshape} \renewcommand{\cftaftertoctitle}{\hfill} \renewcommand{\cftloftitlefont}{\hfill\rmfamily\mdseries\scshape} \renewcommand{\cftafterloftitle}{\hfill} \renewcommand{\cftlottitlefont}{\hfill\rmfamily\mdseries\scshape} \renewcommand{\cftafterlottitle}{\hfill} \hyphenpenalty=10000 \clubpenalty = 10000 \widowpenalty = 10000 \displaywidowpenalty = 10000 \newcounter{parentfigure} \newenvironment{subfigures}{% \refstepcounter{figure}% \protected@edef\theparentfigure{\thefigure}% \setcounter{parentfigure}{\value{figure}}% \setcounter{figure}{0}% \def\thefigure{\theparentfigure\alph{figure}}% \ignorespaces }{% \setcounter{figure}{\value{parentfigure}}% \ignorespacesafterend } \usepackage[breaklines]{listings} \renewcommand\lstlistingname{Program}% default is Listing \renewcommand\lstlistlistingname{List of Programs}% default is Listings \renewcommand\thelstlisting{\thechapter .\arabic{lstlisting}}% captionstyle \newcommand{\lst}[2]{% \noindent\rule[-1ex]{\textwidth}{0.3mm}\vspace{-1ex} \lstinputlisting[caption={#2},label={#1},stringspaces=false,frame={tb},lineskip=-1pt,extendedchars=true,% basicstyle=\footnotesize\tt,labelstep=1,labelstyle=\tiny,indent=2em,language=Matlab,breaklines]{#1} \vspace{1ex}% } On Saturday 01 June 2002 14:49, Herbert Voss wrote: > Remzi Seker wrote: > > I was using koma-script and had the latex preamble so that chapters would > > not come out with the word "chapter". Since I upgraded to lyx 1.2 i have > > the word "chapter" appearing. How can I get rid of it (I tried the hint > > on Herb's site given for koma classes, didn't work)? > > Layout->Document->Extra Options->nochapterprefix > > Herbert