tex >> Change the sections subsections and paragraphs

by Exa » Fri, 31 Mar 2006 20:55:22 GMT

I'd like to change how the \section, \subsection and \paragraph appear
in my document. I'd like to add numbers, and change the fonts.

What package(s) do I need to use to do that ?.
Any howtos out there ?.

/Exa



tex >> Change the sections subsections and paragraphs

by JosCarlos Santos » Fri, 31 Mar 2006 21:17:06 GMT






Sure: the FAQ:

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=secthead

Best regards,

Jose Carlos Santos



tex >> Change the sections subsections and paragraphs

by Roman Sigg » Fri, 31 Mar 2006 22:01:38 GMT

As long as we don't really know what you want, none of us can give you a
concrete information. But you might as well take a look at the
alternative document classes memoir and koma-script. They provide
another document layout and some additional options to change the
appearance of your documents.

Roman


Change the sections subsections and paragraphs

by Exa » Mon, 03 Apr 2006 18:28:18 GMT

Well what I wanna do is get the numbers of \section and \subsection
correct.

When I use \section{mysection} I get something like 0.1
mysection

Same thing when I use \subsection{mysubsection} I get something
like 0.1.1 mysubsection


What I'd like is 1 mysection
and 1.1 mysubsection

/Exa


Roman Sigg a rit :




Change the sections subsections and paragraphs

by Ulrike Fischer » Mon, 03 Apr 2006 20:07:30 GMT

"Exa" < XXXX@XXXXX.COM > schrieb:


Then you shouldn't use a class that has a \chapter command.


--
Ulrike Fischer
e-mail: zuszlich meinen Vornamen vor dem @ einfen.
e-mail: add my first name between the news and the @.


Change the sections subsections and paragraphs

by Exa » Thu, 06 Apr 2006 21:41:00 GMT

Hey thanks that did it, I'm using article now and it works fine !.
Thx !.

/Exa



Similar Threads

1. Altering paragraph margins in sections, subsections and paragraphs

Hi,

I'm currently typesetting a constitution.

I've been able to alter the chapter, sections, subsections etc
definitions to get it looking how we need it (definition pasted
below).

At the moment it's producing clauses as follows:

1.1.1.1 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx
xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xx
xx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx

when I'd love to know how to get it to look like this:

1.1.1.1 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx
        xxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxx x
        xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx

I hope I'm going about this the right way... One of the section
definitions I'm using is as follows:

% Inline
\makeatletter
\def\section{\@ifstar\unnumberedsection\numberedsection}
\def\numberedsection{\@ifnextchar[%]
  \numberedsectionwithtwoarguments\numberedsectionwithoneargument}
\def\unnumberedsection{\@ifnextchar[%]
  \unnumberedsectionwithtwoarguments\unnumberedsectionwithoneargument}
\def\numberedsectionwithoneargument#1{\numberedsectionwithtwoarguments[#1]{#1}}
\def\unnumberedsectionwithoneargument#1{\unnumberedsectionwithtwoarguments[#1]{#1}}
\def\numberedsectionwithtwoarguments[#1]#2{%
  \ifhmode\par\fi
  \removelastskip
  \vskip 3ex\goodbreak
  \refstepcounter{section}%
  \noindent
  \leavevmode
  \begingroup
  \\\large\bfseries
  \thesection\
  \quad #2
  \endgroup
  \addcontentsline{toc}{section}{%
    \protect\numberline{\thesection}%
    #1}%
  }
\def\unnumberedsectionwithtwoarguments[#1]#2{%
  \ifhmode\par\fi
  \removelastskip
  \vskip 3ex\goodbreak
%  \refstepcounter{section}%
  \noindent
  \leavevmode
  \begingroup
  \\\large\bfseries
%  \thesection\
  \quad #2
  \endgroup
  \addcontentsline{toc}{section}{%
%    \protect\numberline{\thesection}%
    #1}%
  }
\makeatletter

Many thanks in advance for your help,

A Carter

2. How to re-define chapter, section, subsection, paragraph?

3. Changing the section and subsection number size

I found that the command
\renewcommand{\thesection}{{\small{\arabic{section}}}}
changes the section number to a small size, but the subsection size
number is
unaffected. How can I change subsection number proportionally?

Salut,

Sergio
 XXXX@XXXXX.COM 

4. How to change color of chapters/section/subsections?

5. changing \section and \subsection

Hi all,

I'd like to ask for your help with this. Is there a package or
technique to change the way \section and \subsection displays? For
example, \section{Set) may display "1   Set" where I would like to
display "Set 1".

Like wise with \subsection.

Thank you for your time.

Evyn

6. [memoir] error with subsections in toc as paragraph (minimal example)

7. [memoir] error with subsections in toc as paragraph

On Wed, 1 Nov 2006, Lars Madsen wrote:
>
> When using examples from various notes, always start by ensuring that the 
> code from the notes actually work, then edit it to fit your needs.

First of all, thanks for looking at my problem, Lars. I did try the 
original first, but perhaps should have stressed that a bit more in my 
post.

> in the addendum, it clearly states that you need
>
> \AtEndDocument{\addtocontents{toc}{\par}
>
> I would assume that this would solve your problem.

It does not. I fail to see how adding a \par at the end of the toc-file 
could solve a problem that occurs before a chapter-contensline. Perhaps I 
need to get a \par in front of chapter contentslines that follow a 
paragraph of subsection entries?

Any help and suggestions appreciated,

Erik

8. Section and subsection numbering