Text FormattingRule above Section Heading

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
nifty
Posts: 16
Joined: Sat Oct 09, 2010 4:24 pm

Rule above Section Heading

Post by nifty »

I have text that is 32pc (1pc=12pt) wide. I'd like to place a 3pt rule above the section headings. Is there an easy way to do this? I've tried modifying the class file but run into problems when the section number changes from 1.9 to 1.10.


Thanks

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

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

Rule above Section Heading

Post by localghost »

Try a packages like sectsty or titlesec (much more flexible). As far as I know with both you can only get rules across the whole text width. Modifications to a class file are not advisable.


Thorsten
Post Reply