I am currently using the following index:

\documentclass[a4paper,11pt,twoside, openleft]{book}

\definecolor{DarkDarkPurple}{RGB}{63, 22, 59}






How am I able to have index every word starting with an uppercase letter, while holding a lowercase in the text?

  • So you want that all those entries are treated as if they were “Test” and so indexed?
    – egreg
    Jul 8 at 10:11
  • @egreg I would like it to have it in my index as: Test, TEst, TeSt, TesT
    – superHenry
    Jul 8 at 10:12

Please, make compilable examples: the definition for DarkPurple is missing and the openleft option does not exist for book.



  \index{\char_titlecase:N #1}

\colorlet{DarkPurple}{purple} % ???





enter image description here

Of course this will not work if the first letter is a composite character.

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.