Page LayoutDistance between Numbering and Section Title

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
dlopes7
Posts: 4
Joined: Sat Mar 06, 2010 10:12 am

Distance between Numbering and Section Title

Post by dlopes7 »

Hey guys.

How do I change my Section layout like shown?
section.jpg
section.jpg (13.3 KiB) Viewed 2007 times
Edit - If the image is no longer available, I wanted to increase the distance between the section number and the section label and use underline only on the section label, not the number. from "1.1◊Introduction" to "1.1‹‹‹‹◊◊◊◊◊◊◊◊◊Introduction" (Where "◊" is a space unit)

The Chapter Title is fine but I can't change the distance between "1.1" and "Motivação", besides I would like to make "Motivação" underlined but not "1.1"

I am using the following code now in my class:

Code: Select all

\renewcommand{\section}{%
  \suppressfloats[t]%
  \@startsection{section}{1}{0mm}{2\baselsinpe}{2\baselsinpe}
     {\normalfont\normalsize\underline}}
But I get the result shown on the left on the image.
I searched on the forums but didn't find the answer.

Thanks.
Last edited by dlopes7 on Sat Mar 06, 2010 12:27 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Distance between Numbering and Section Title

Post by localghost »

Attachments are uploaded to the forum server. External links can get lost with time a and later make a problem incomprehensible.

Use the titlesec package. Examples can be found in the manual.


Best regards and welcome to the board
Thorsten
dlopes7
Posts: 4
Joined: Sat Mar 06, 2010 10:12 am

Distance between Numbering and Section Title

Post by dlopes7 »

Thank you very much.

It works like a charm.

Changed all the code for

Code: Select all

\titleformat{\section}{}{\thesection}{5em}{\underline}
Post Reply