How do I make "E" in this equation a small cap?
$x^E$
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityTo switch fonts in math mode you often use a command like \mathit
(for italic) or \mathrm
(for roman). But there's no \mathsc
command. So just use \textsc
.
$x^{\textsc{e}}$
Note that \textsc{E}
will give a capital E that is roughly the same height as the normal shape capital E. In general, if you want a small capital E, use \textsc{e}
.
$x^{\textsc{e}}$
?
Mar 9, 2011 at 12:48
\textsc
would require LR mode. I've edited to reflect your simplification.
Mar 9, 2011 at 12:54
\mbox{\footnotesize{\textit{E}}}
Nov 12, 2018 at 17:13
\mbox
ensures some nice spacing around the symbol. Try ${\E}^x$
with and without the \mbox
, where \E
is the symbold defined as above. But I'm no expert - more information here.
Nov 19, 2018 at 20:28
The above mentioned $x^{\textsc{e}}$
works in basic situations, but it has the drawback that the font used will depend on the current text font in the environment. For example, \texttt{ ... $x^{\textsc{e}}$ ... }
typesets the small capital E in the typewriter font. This is usually undesirable for a mathematical symbol. The problem is most prominent when the surrounding text is bold (such as in a heading): there are no bold extended small caps fonts in the standard Computer Modern font collection, hence the e in \section{ ... $x^{\textsc{e}}$ ... }
will come out as bold lower case. So, if you want a general-purpose macro, it is better to use
$x^{\normalfont\textsc{e}}$
You can define
\newcommand{\mathsc}[1]{{\normalfont\textsc{#1}}}
amsmath
a better way would be \text{\normalfont\scshape#1}
(assuming, by way of contradiction, that the OP really has a problem, which it isn't).
\normalfont\textsc{e}
does not work but \textrm{\textsc{e}}
does.
\textnormal{\textsc{e}}
... See: tex.stackexchange.com/questions/70632/…
My chosen solution which works fine is
\newcommand{\xE}{\ensuremath{ x^{\mbox{\tiny{E}}} }}
$x^E$
just good enough? It typesetsE
in the smaller script style.$x^E$
is still far too big and aggressive for me.