I wanted to make a class that would center my sections in all uppercase (among other things). My class contains:
Code: Select all
\titleformat{\section}{\normalfont\Large\centering\bfseries}{\thesection}{1em}{\uppercase\centering}
Code: Select all
\titleformat{\section}{\normalfont\Large\centering\bfseries}{\thesection}{1em}{\uppercase\centering}
NEW: TikZ book now 40% off at Amazon.com for a short time.
Replace \centering with \filcenter. Also, replace \uppercase\centering with \MakeUppercase (you don't need to say \filcenter again, but if you did, put it before \MakeUppercase).isharp2 wrote:Hi,
I wanted to make a class that would center my sections in all uppercase (among other things). My class contains:However, this does not center the section title. It still appears left-justified. Any ideas?Code: Select all
\titleformat{\section}{\normalfont\Large\centering\bfseries}{\thesection}{1em}{\uppercase\centering}
NEW: TikZ book now 40% off at Amazon.com for a short time.