r/LaTeX•
ripread

Special Case one \command modified by `titleformat`?

Unanswered

I've got a titleformat that left-aligns the title: `\titleformat{\section}{ \raggedright }`. This is good. I want most of my section titles to be left-aligned. I want two of them to be centered. How do I special case these two?

I'm already using subsection, paragraph, etc throughout the document. Is there a way to create a custom keyword? Something like `\titleformat{\c-section}{ \centering }`?

Posted Oct 3, 2019, 9:48 PM UTC

21
JimH10•

My understanding is that the titlesec package expects you to use the \titleclass command for that sort of thing. But, could be wrong.

2