Page LayoutSubsection Text between horizontal Line

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
KarolisK
Posts: 13
Joined: Sat Jun 18, 2011 3:36 pm

Subsection Text between horizontal Line

Post by KarolisK »

Hi again, I am trying to figure out how to make all the subsections in the document in the format ----Subsection text----(lines have no breaks). Also I will use the opportunity and also ask how can a line under the subsection can be implemented too. Thank you in advance !:)

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

Frits
Posts: 169
Joined: Wed Feb 02, 2011 6:02 pm

Subsection Text between horizontal Line

Post by Frits »

For your second question, maybe this post is helpful.
howtoTeX.com - Your LaTeX resource site (Tips, Tricks, Templates and more!)
Follow howtoTeX on twitter
KarolisK
Posts: 13
Joined: Sat Jun 18, 2011 3:36 pm

Re: Subsection Text between horizontal Line

Post by KarolisK »

Thanks! However, I have already tried that example and I dont quite manage to insert two commands at once. For example:
\subsectionfont{
\centering
\sectionrule{0pt}{0pt}{-5pt}{0.8pt}
}
Does not produce a horizontal rule under the subsection text, it just centers it. Although, the \sectionrule does work separately.
Post Reply