Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Style of section, subsection, subsubsection

630 views
Skip to first unread message

PSN

unread,
Jan 17, 2007, 1:14:02 PM1/17/07
to
Hi all ..
Can someone please put me out of my misery. 3 days straight and
absoluitely no progress !!

I want to have the following styles for my sections, subsections and
subsubsections. The document is an IEEE format article, with 2 columns.
The renewcommand that i am currently using is also given, along with
the usage.

1. 'Section' requirements --> Roman Numbering, Centered, Small caps and
Font size of 10.
I am using: \renewcommand \thesection{\Roman{section}}
Usage: \section{\sc{Introduction}}
Result: I am only able to achieve Roman Numbering with Small caps. But
dont know how to control the font size and place it at the center of
the column.

2. 'SubSection' requirements --> Alphabetical Numbering (Alph), Left
Aligned, Small Caps, Font Size of 10, and Italics.
I am using: \renewcommand \thesubsection{\Alph{subsection}}
Usage: \subsection{\sc{Problem Statement}}
Result: Again, able to achieve only the alphabetical numbering and left
alignment. But none of the others.

3. SubSubSection --> got pretty much what i wanted ..

Well the important thing is that all the 3 section types must be of
font size 10. All i know is that i need to use the correct
renewcommand, but i dont know the correct format and the extensive
documentation on the net only confuses me ..

Thanks for your time ...

Prakash

Joseph Wright

unread,
Jan 17, 2007, 1:54:32 PM1/17/07
to

PSN wrote:

Have you looked at the titlesec package?

Joseph Wright

PSN

unread,
Jan 17, 2007, 4:59:39 PM1/17/07
to
no ..
actually i feel only minor changes need to be done to the renewcommand.
so i was expecting if any of you can help in defining the correct
syntax ...

anyway, thanks for the reply ..

Prakash

Rowland McDonnell

unread,
Jan 17, 2007, 9:16:57 PM1/17/07
to
PSN <praka...@gmail.com> wrote:

> no ..
> actually i feel only minor changes need to be done to the renewcommand.
> so i was expecting if any of you can help in defining the correct
> syntax ...

[snip]

Have a look at the sectsty package - I reckon it'll let you do what you
want fairly easily.

Rowland.

(caveat: I wrote sectsty)

--
Remove the animal for email address: rowland....@dog.physics.org
Sorry - the spam got to me
http://www.mag-uk.org http://www.bmf.co.uk
UK biker? Join MAG and the BMF and stop the Eurocrats banning biking

Maurizio Loreti

unread,
Jan 18, 2007, 1:40:22 AM1/18/07
to
"PSN" <praka...@gmail.com> writes:

> I want to have the following styles for my sections, subsections and
> subsubsections. The document is an IEEE format article, with 2 columns.

IEEE distributes its own LaTeX class file, IIRC. did you try it?

--
Maurizio Loreti ROT13:ybe...@cq.vasa.vg | (@_
Un. of Padova, Dept. of Physics, Padova, Italy | //\
http://www.pd.infn.it/~loreti/mlo.html | V_/_

Robin Fairbairns

unread,
Jan 18, 2007, 7:51:07 AM1/18/07
to
"PSN" <praka...@gmail.com> top posts:

>no ..
>actually i feel only minor changes need to be done to the renewcommand.
>so i was expecting if any of you can help in defining the correct
>syntax ...

dream on.

section headings in latex are complex beasts, with all sorts of
interactions with surrounding text. *far* better to use a package to
deal with them, than to limp along with an "almost right"
redefinition.

sectioning commands are based on:

\@startsection#1#2#3#4#5#6*[#7]#8
typeset section heading.
#1<-section type ("section","subsection",...,"subparagraph")
#2<-section level (1=>section, 2=>subsection, ..., 5=>subparagraph)
#3<-indent of whole heading from left margin
#4<-"beforeskip": absolute value is skip above heading; if value is
negative, the paragraph indentation of text following heading is
suppressed
#5<-"afterskip"; if positive, then skip to leave below heading; if
negative, absolute value is skip after title of run-in heading
#6<-style for typesetting heading
#7<-title for use in running heads, table of contents (default value
is as #8)
#8<-title of section

notes:
1. for #4 and #5, negation applies to all components of a skip --
the negative of
10pt plus 5pt minus 2.5pt
is (slightly surprisingly)
-10pt plus -5pt minus -2.5pt
2. #6 may be modal ("\sffamily\bfseries") or may take an argument
("\textbf"), or may be a combination ("\sffamily\textbf")
3. in ordinary use, a heading is specified as invocation of
\@startsection, followed by the 6 arguments specifying details;
the user's arguments to the command appear as the * and #7 and #8
4. the "*" is optional, ordinarily supplied by user; it separates
the unnumbered \section* (and its parallels) from \section

personally, i would recommend reading the latex source before trying
to play.
--
Robin Fairbairns, Cambridge

PSN

unread,
Jan 18, 2007, 8:10:21 AM1/18/07
to
thank you all for your responses .. i will now try to use the mentioned
packages to fix the problem ..

thanks again,
prakash

Tim X

unread,
Jan 26, 2007, 2:37:45 AM1/26/07
to
"PSN" <praka...@gmail.com> writes:

> Hi all ..
> Can someone please put me out of my misery. 3 days straight and
> absoluitely no progress !!
>
> I want to have the following styles for my sections, subsections and
> subsubsections. The document is an IEEE format article, with 2 columns.
> The renewcommand that i am currently using is also given, along with
> the usage.
>

firstly, I think with this type of style requirement, you will be far far
better off using a specific package - genrally, especially with LaTeX, you are
almost always better off using a package than trying to modify/redefine an
existing command. TeX is a complex beastie and simple things often have
unexpected side effects that need to be taken into consideration.

You don't mention where your article is being published. Although I've only had
a few things published, in all cases, the publisher was able to provide a sty
file that defined the style they wanted. Depending on what field your article
is in, you may find they already have a sty file you can use.

Three days to achieve anything related to something like how section headers
looks is a very strong indication you need to use an existing package.
Depending on what distirbution you are using, there is a very strong chance you
already have one on the system and all you need is a \usepackage directive to
get what you want. Failing that, check out ctan.

Tim

P.S. I only know about the wasted effort of trying to redefine something like
section header appearance because I made exactly that mistake when I was first
trying to write with LaTeX! (along with quite a few others, but once the penny
dropped, I've not looked back and its been over 17 years now since I wrote my
first LaTeX. I've also learnt to trust in the styles and not think I know
better regarding what does and does'nt look good, but maybe thats just a
reflection of my own lack of aesthetic ability!
--
tcross (at) rapttech dot com dot au

0 new messages