Hi,

I need to have my chapter, section, subsection titles formatted together with 
their numbers. I have the titles formatted with the help of Dekel and 
Herbert, however the numbers are not really as I want. Such that
1.1 THIS IS A SECTION
the number "1.1" is bold and larger than the title itself... 

I am attaching an example file. Thanks alot in advance.

Remzi
#LyX 1.2 created this file. For more info see http://www.lyx.org/
\lyxformat 220
\textclass scrbook
\begin_preamble
\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{multirow}
\usepackage{rotating}
\usepackage{setspace}
\newcommand{\rightBow}[1]{\accentset{\curvearrowright}{#1}}
\newcommand{\leftBow}[1]{\accentset{\curvearrowleft}{#1}}
\usepackage{dsfont}
\usepackage[nice]{nicefrac}

%%\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}
%\renewcommand\thechapter{}

\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}%
}

\def\ss#1{{\scriptstyle #1}}

%usepackage{hyperref}
\usepackage[refpage]{nomencl}
\makeglossary
\makeindex

\RequirePackage{ifthen}
\renewcommand{\nomgroup}[1]{% 
\ifthenelse{\equal{#1}{A}}{\item[\rmfamily\mdseries{Chapter 1}]}{%
\ifthenelse{\equal{#1}{B}}{\item[\rmfamily\mdseries{Chapter 2}]}{}}
\ifthenelse{\equal{#1}{C}}{\item[\rmfamily\mdseries{Chapter 3}]}{
\ifthenelse{\equal{#1}{D}}{\item[\rmfamily\mdseries{Chapter 4}]}{}}
\ifthenelse{\equal{#1}{E}}{\item[\rmfamily\mdseries{Chapter 5}]}{
\ifthenelse{\equal{#1}{F}}{\item[\rmfamily\mdseries{Chapter 6}]}{}}}
\end_preamble
\options nochapterprefix
\language american
\inputencoding auto
\fontscheme pslatex
\graphics default
\float_placement !h
\paperfontsize 12
\spacing double 
\papersize letterpaper
\paperpackage a4
\use_geometry 1
\use_amsmath 1
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\leftmargin 3.81cm
\topmargin 2.54cm
\rightmargin 2.54cm
\bottommargin 2.54cm
\secnumdepth 3
\tocdepth 4
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle plain

\layout Chapter


\family roman 
\series medium 
\size normal 
CHAPTER III: CUBIC FLOWGRAPHS
\layout Section


\family roman 
\series medium 
\size normal 
INTRODUCTION
\layout Subsection


\family roman 
\series medium 
\size normal 
Control Flowgraphs
\layout Standard

An alogorithm is usually represented by a diagram called flowchart, and
 then with the help of flowchart, the program can be built.
 Because of the logical flow, every program can be represented by a flowchart
 
\the_end

Reply via email to