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.

In designing novels, (Document-class Book KOMA SCRIPT) I prefer to use all-small-caps in the running heads. Please find the first example, where both howards end and chapter 29 were all set in lowercase and old style numerals. I achieved this through \nouppercase and literally converted the necessary letters to lowercase, it looks tidy, has the small caps spacing between letters and good proportion with old style numerals.

i.e.

\fancyhead[EC]{\rmfamily \sc \small \nouppercase howards end}

all lowercase with smallcaps

However, in some design, normal title-caps are required for bookmarks and chapter title lettering. For instance, in Back to Methuselah, the chapter name needs to be set as The Things Happens with title caps. Here I cheated by setting them all in CAPs, so it looks tidy.

\fancyhead[OC]{\rmfamily \bf  \small \sc \leftmark }

all uppercase

Of course, setting all uppercase lost the lovely spacing that smallcaps will normally have and also the proportion with the old style numerals.

So here is my question, is there a way to stoutly make sure all the letters in headings are in lowercase even they came in as mix caps?

Here is the minimal example:

I'm using LyX, but the principle and code should be the same:

Load fancyhdr in document class Book KOMA-Script two side document. all other default.

\fancyhead{}
\fancyfoot{}

\fancyhead[OC]{\rmfamily \small \nouppercase \leftmark}

Dummy text with chapter name This is Mixing Caps will produce the following example, but I want them to be this is mixing caps in the header only so that I can apply small caps on. example

share|improve this question
1  
textcase provides \MakeTextLowercase; a counterpart to \MakeUppercase or \MakeTextUppercase. See the UK TeX FAQ entry Case-changing oddities. –  Werner Feb 4 '13 at 20:54
    
Did you try \MakeLowercase{XXXXX}? It works with report, for example. –  Sigur Feb 4 '13 at 20:54
    
@Werner I tried \fancyhead[OC]{\rmfamily \bf \small \nouppercase \MakeTextLowercase{\leftmark}} (with or without \nouppercase) It produced error. citing too many }. I am with KOMA Script, Book Class. textcase loaded. –  Shi Yuan Feb 4 '13 at 21:17
    
@Sigur It produced the same error as above. –  Shi Yuan Feb 4 '13 at 21:19
1  
\nouppercase takes an argument, it's not a declaration. Can you make a complete example with the relevant code you're using? –  egreg Feb 4 '13 at 21:29

1 Answer 1

up vote 4 down vote accepted

Here's a way:

\documentclass{scrbook}
\usepackage[osf]{mathpazo} % a font with old style figures

\usepackage{fancyhdr,textcase}

\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\headrulewidth}{0pt}
\fancyhf{}
\fancyhead[LE,RO]{\footnotesize\scshape\thepage}
\fancyhead[CE]{\scshape\MakeTextLowercase{\leftmark}}
\fancyhead[CO]{\scshape\MakeTextLowercase{\chaptername~\thechapter}}

enter image description here

share|improve this answer
    
brilliant! thanks! –  Shi Yuan Feb 4 '13 at 21:53

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.