Page LayoutDifferent margins for sections and subsections

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
wongearth
Posts: 1
Joined: Fri May 30, 2014 5:12 pm

Different margins for sections and subsections

Post by wongearth »

Dear All,

I have been searching everywhere but have not found any solution. I would like to set different left margins for content in chapters, sections and subsections (see fig.). Just wondering if there is a package that does this automatically. I know that package there is package changepage that uses command \begin{adjustwidth} but I have to do this manually which is not what I keen to do. If you know the package or the code to do it. Please help. Thanks.
Attachments
1.pdf
(117.33 KiB) Downloaded 211 times

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Different margins for sections and subsections

Post by Johannes_B »

From the top of my head, KOMA has the environment addmargin which you can use to define new sectioning commands, or redefine the old ones. I don't have time to setup a test document.
Hint: If you'd have prepared a minimal working example, you probably would have a solution by now.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply