12.07.2015 Views

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3. TEXT AND FONTSAs you can see, perfect automatic widow/orphan control is problematic though typographersare typically more concerned about widows than orphans — a single line of aparagraph somehow looks worse at the top of a page than at the bottom. If all else fails,the solution is either to live with the odd line or to reword the text.3.6 TEXT CASE<strong>The</strong> standard kernel \MakeUppercase{〈text〉} and \MakeLowercase{〈text〉} basicallyupper or lower case everything it can get its hands on. This is not particularly nice ifthe 〈text〉 contain, say, math.In order to help with this we provide the \MakeTextUppercase and\MakeTextLowercase macros from the textcase package ([Car04]) by David Carlisle.<strong>The</strong> following is DCs own documentation of the provided code changed to match thetypography we use.\MakeTextUppercase{〈text〉}\MakeTextLowercase{〈text〉}\MakeTextUppercase and \MakeTextLowercase are versions of the standard\MakeUppercase and \MakeLowercase that do not change the case of any math sectionsin their arguments.\MakeTextUppercase{abc\ae\ \( a = b \) and $\alpha \neq a$or even \ensuremath{x=y} and $\ensuremath{x=y}$}Should produce:ABCÆ a = b AND α ≠ a OR EVEN x = y AND x = yWe incorporates some changes suggested by Donald Arseneau so that as well as mathmode, the arguments of \cite, \label and \ref are also prevented from being uppercased.So you can now go\MakeTextUppercase{%Text in section~\ref{sec:text-case}, about \cite[pp 2--4]{textcase}}which producesTEXT IN SECTION 3.6, ABOUT [Car04, PP 2–4]If, instead, the standard \MakeUppercase were used here, the keys ‘sec:text-case’and ‘textcase’ would be uppercased and generate errors about undefined references toSEC:TEXT-CASE and TEXTCASE.\NoCaseChange{〈text〉}Sometimes there may be a special section of text that should not be uppercased. This canbe marked with \NoCaseChange, as follows.\MakeTextUppercase{%Text \NoCaseChange{More Text} yet more text}which producesTEXT More Text YET MORE TEXT52

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!