4

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?

8

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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