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 would like to make a section title UpperCase+textbf, however, while trying to define it like this

\makeatletter
\renewcommand{\section}{
    \@startsection
        {section}{1}{0mm}
    {\baselineskip}%
    {\baselineskip} 
    {\fontsize{14}{14}\centering\textbf\MakeUppercase}      
   }%
   \makeatother 

an error is produced.

If I use only one of these two properties (\textbf or \MakeUppercase), everything works fine, so what's the problem?

share|improve this question
    
Welcome to TeX.sx! A tip: You can use backticks ` to mark your inline code as I did in my edit. –  Torbjørn T. Mar 21 '12 at 18:58
add comment

1 Answer

\textbf takes an argument (and so just gets \MakeUppercase as its argument here). Use the declaration form, \bfseries instead.

share|improve this answer
add comment

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.