[Tugindia] Line break between section number and section title

Dr C. K. Raju dr_c_k_raju at hotmail.com
Wed Jul 26 12:09:27 CEST 2006


Hi Ragu,

Thanks a lot!  I must admit to having nil knowledge of TeX or LaTeX 
programming, so please bear with me. I am using LaTeX and the meomoir.cls, 
where the indicated piece of code looks as follows:

\def\M at sect#1#2#3#4#5#6[#7][#8]#9{%
  \ifheadnameref\M at gettitle{#8}\else\M at gettitle{#7}\fi
  \ifnum #2>\c at secnumdepth
    \let\@svsec\@empty
  \else
    \refstepcounter{#1}%
    \protected at edef\@svsec{\@seccntformat{#1}\relax}%
  \fi
  \@tempskipa #5\relax
  \ifdim \@tempskipa>\z@
    \begingroup
      #6{%
      \@hangfrom{\hskip #3\relax\@svsec}%
        %\interlinepenalty \@M #9\@@par}%original line
        \interlinepenalty \@M \par #9\@@par}%changed line
    \endgroup
    \csname #1mark\endcsname{#8}%
    \addcontentsline{toc}{#1}{%
      \ifnum #2>\c at secnumdepth \else
        \protect\numberline{\csname the#1\endcsname}%
      \fi
      #7}%
  \else
    \def\@svsechd{%
      #6{\hskip #3\relax
     \@svsec #9}%
     \csname #1mark\endcsname{#8}%
     \addcontentsline{toc}{#1}{%
       \ifnum #2>\c at secnumdepth \else
        \protect\numberline{\csname the#1\endcsname}%
       \fi
       #7}}%
  \fi
  \@xsect{#5}}

If I have understood you correctly, then I should have changed the line 
somewhat as indicated above. However, any such change causes the section 
number to disappear altogether!

What am I doing wrong?

Thanks again, in advance,

CKR



>From: "Ragu" <ragu.solaiappan at integra-india.com>
>Reply-To: TUGIndia Mailing List <tugindia at tug.org>
>To: "TUGIndia Mailing List" <tugindia at tug.org>
>Subject: Re: [Tugindia] Line break between section number and section title
>Date: Wed, 26 Jul 2006 12:11:01 +0530
>
>Dear Dr. Raju,
>
>Please check the changes to your book.cls
>
>\def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c at secnumdepth
>      \let\@svsec\@empty\else
>      \refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname\hskip 1em}\fi
>      \@tempskipa #5\relax
>       \ifdim \@tempskipa>\z@
>         \begingroup #6\relax
>           \@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty
>\@M\par\noindent#8\par}% Changes to your book.cls
>         \endgroup
>        \csname #1mark\endcsname{#8}\addcontentsline
>          {toc}{#1}{\ifnum #2>\c at secnumdepth \else
>                       \protect\numberline{\csname the#1\endcsname}\fi
>                     #7}\else
>         \def\@svsechd{#6\hskip #3\relax
>                    \@svsec #8\csname #1mark\endcsname
>                         {#7}\addcontentsline
>                            {toc}{#1}{\ifnum #2>\c at secnumdepth \else
>                              \protect\numberline{\csname 
>the#1\endcsname}\fi
>                        #7}}\fi
>      \@xsect{#5}}
>
>Regards
>Ragu
>
>
>
>-----Original Message-----
>From: tugindia-bounces at tug.org [mailto:tugindia-bounces at tug.org]On
>Behalf Of Dr C. K. Raju
>Sent: Wednesday, July 26, 2006 10:36 AM
>To: tugindia at tug.org
>Subject: [Tugindia] Line break between section number and section title
>
>
>Hi,
>
>Does anyone know how to put in a line or paragraph break between the 
>section
>number and the section title?
>
>CKR
>
>
>_______________________________________________
>Home:        http://www.tug.org.in/
>TeX FAQ:     http://www.tex.ac.uk/faq
>unsubscribe: http://tug.org/mailman/listinfo/tugindia
>
>_______________________________________________
>Home:        http://www.tug.org.in/
>TeX FAQ:     http://www.tex.ac.uk/faq
>unsubscribe: http://tug.org/mailman/listinfo/tugindia




More information about the tugindia mailing list