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'm trying to put the whole cftchapfont as uppercase.

\renewcommand\cftchapfont{\MakeUppercase}

does not work at all (it actually messes up everything), nor does:

\renewcommand\cftchappresnum{\MakeUppercase\chaptertitlename\;}

which only capitalizes \chaptertitlename, nor does:

\renewcommand\cftchappresnum{\MakeUppercase\chaptertitlename\;\MakeUppercase}

which only capitalizes the first letter of SNUM (and I've got words such as "premier" for the first chapter).

How can I make sure the whole thing is uppercase?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

You have to patch the \@chapter command, which is responsible for writing the entries in the auxiliary files. The lines

\addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}#1}

and

\addcontentsline{toc}{chapter}{#1}

should read with \MakeUppercase{#1} instead of #1.

share|improve this answer

I actually ideally wanted small caps, but the font didn't have any. What I did was:

  • edit the TTF in fontforge;
  • add small caps from fontforge;
  • save new font as OTF;
  • load font with Letters=SmallCap in fontspec.

and it did what I wanted.

share|improve this answer

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.