Graphics, Figures & Tablestitlerule placement

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
workerbee
Posts: 43
Joined: Sat Nov 22, 2008 1:53 am

titlerule placement

Post by workerbee »

I've noticed that in all the examples using "titlerule" the line appears above the section heading text. When I place a specific measurement to go beneath a text it works only if the section heading spans one line. The problem I'm facing is when I'm not entirely sure how many lines that heading will span and it interrupts the flow of text. Is there a way to make the titlerule appear after the section heading text?

Below is an attached screen capture of what I have right now.

And this is the code I put in the preamble:
\titleformat{\section}[block]
{\normalfont\LARGE\rmfamily}
{\thesection}{.5em}{\titlerule\\[-3.8ex]\bfseries}

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply