I want to make the section name in capital letters, but only partially, cause i need my name and surname in small letters. However reffering to the ToC, the whole section has to be written in small letters.

\section{INTRODUCTION (John Smith)}
  • 2
    You're probably looking for \section[introduction (john smith)]{INTRODUCTION (John Smith)} what about the running heads? – Werner Dec 23 '16 at 19:17
  • Yes, that's it! Thank you very much! I've been looking for the solution for hours, and thought it has to be more complicated, however sometimes the easiest ways are the best. What do you mean by mentioning the running heads? – barnaba Dec 23 '16 at 19:26
  • Depending on the page style (headings, myheadings, ...) section/chapter titles can appear in the header line of a page. – Heiko Oberdiek Dec 23 '16 at 19:30
  • It would be nice, if the headers didn't contain the name and the surname, only the name of the section. – barnaba Dec 23 '16 at 19:44
  • \lhead{Section {\nouppercase{\thesection. \textit{\leftmark}}}} It looks like this right now. – barnaba Dec 23 '16 at 19:48

You can use the optional argument for \section[<ToC>]{<title>} to set something different in the <ToC> and the actual <title>.

enter image description here






\section[introduction (john smith)]{INTRODUCTION (John Smith)}
\sectionmark{John Smith}


If, in addition to different content in the <ToC> and <title>, you also want something different in the headers (when using \pagestyle{headings}, say), you can specify this manually via \sectionmark{<heading>} immediately after \section:

    \markright{\ifnum \c@secnumdepth>\m@ne \thesection \quad \fi #1}}%

% ...

\section[introduction (john smith)]{INTRODUCTION (John Smith)}
\sectionmark{John Smith}

I've added an update to \sectionmark as well, which removes the default \MakeUppercase that is inserted.

enter image description here

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.