Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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!

share|improve this question

1 Answer 1

up vote 3 down vote accepted

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

\titleformat*{\section}{\fontencoding{OT1}\fontfamily{cmr}\fontseries{m}%
  \fontshape{n}\fontsize{11pt}{11}\selectfont} 
share|improve this answer
    
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 Jul 21 '11 at 17:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.