3

I want to set the section font to the specific size and type. But using \titleformat can only give few standard types, like Large, large...

\titleformat*{\section}{\LARGE\headingfont} 
\titleformat*{\subsection}{\Large\headingfont} 
\titleformat*{\subsubsection}{\large\headingfont} 

I wonder is there any way to use

\fontencoding{OT1}\fontfamily{cmr}\fontseries{m}\fontshape{n}\fontsize{11pt}{11}\selectfont

to change the section font size? Thanks a lot!

1 Answer 1

6

You can simply use your commands as arguments for \titleformat*:

\titleformat*{\section}{\fontencoding{OT1}\fontfamily{cmr}\fontseries{m}%
  \fontshape{n}\fontsize{11pt}{11}\selectfont} 
1
  • It works. At the beginning i inserted one white space between \ and fontencoding accidently, so it always generate error. It took me a long time to figure it out. Thank you.
    – Jason Xu
    Commented Jul 21, 2011 at 17:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .