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 thought I had a simple answer to Automatically getting “V” as the capital letter for “u” when typesetting latin by writing something like

\documentclass{article}

\newcommand{\mytextsc}[1]{%%"
  \begingroup
  \uccode`\u=`\V
  \textsc{#1}%%'
  \endgroup}

\newcommand{\mytextuc}[1]{%%"
  \begingroup
  \uccode`\u=`\V
  \uppercase{#1}%%'
  \endgroup}

\begin{document}

\mytextsc{Lurem} non-upper case text

\mytextuc{Lurem} non-upper case text

\end{document}

But my use of \uccode has no effect in the definition of \mytextsc. Could someone explain why?

share|improve this question

1 Answer 1

up vote 10 down vote accepted

\uccode sets up the map that is used by \uppercase to map tokens such as v to V.

\scshape does not involve uppercaseing or changing tokens at all, it is just a font design choice like sans serif or italic etc, a font in which the lower case letter slots are filled with glyphs that are traditionally used for capital letters.

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.