Text Formattingoutdenting section headings (or indenting the whole text)

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
alicehs
Posts: 18
Joined: Sun Jan 25, 2009 3:53 pm

outdenting section headings (or indenting the whole text)

Post by alicehs »

I would like to format my section, subsection, subsubsection and paragraph headings similar to this example:

http://svnbook.red-bean.com/en/1.5/svn-book.pdf

i.e. the title 'outdented' slightly to the left (or alternatively, the whole of the rest of the text indented slightly). Any ideas?

Have tried \renewcommand{\section}etc and the titlesec usepackage, but neither seem to offer what I would like. I also have \section* commands in my document which cause problems with manipulating the actual title. Are there lengths governing the position of the text and/or title that can be manipulated?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

outdenting section headings (or indenting the whole text)

Post by localghost »

Of course the titlesec package offers what you want. Have a careful look at its manual.


Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
alicehs
Posts: 18
Joined: Sun Jan 25, 2009 3:53 pm

Re: outdenting section headings (or indenting the whole text)

Post by alicehs »

Did have another look, but still couldn't find exactly what I was after (I do find it quite difficult when a manual doesn't provide many examples). But I have found something that will suffice as a substitute.

Thanks.
Post Reply