Hi:
If I type $W_{\mathbb C}$, the subscript is too big.
If I type $W_{\tiny {\C}}$, I get a TEX warning (\tiny is not allowed
in math mode), but the actual page looks exactly as I want.
And if I try to use a macro, say, like that
\newcommand{\lc}{\tiny {\C}}
I even get an error message saying, again, that \tiny is not allowed
in math mode.
How can I ``legally'' get a subscript which looks like a small
$\mathbb C$ (i.e., something like what I get when I type
$W_{\tiny {\C}}$), but without warnings (I need to use this line a lot and
don't want to get hundreds of warning messages when I latex my file).
Thanks,
AB
Math & Science ⇒ subscripts in \mathbb font
subscripts in \mathbb font
You might want to try the \mathsmaller command from the relsize package. E.g.:
Code: Select all
\documentclass{article}
\usepackage{amsfonts}
\usepackage{relsize}
\newcommand{\lc}{\ensuremath{\mathsmaller{\mathbb{C}}}}
\begin{document}
$W_\lc$
\end{document}
- localghost
- Site Moderator
- Posts: 9201
- Joined: Fri Feb 02, 2007 12:06 pm
subscripts in \mathbb font
I would say the final solution depends on whether the subscript is an index variable or a designator (like in the Boltzmann constant).
In both cases the amsmath package helps in formatting the subscript.
Best regards and welcome to the board
Thorsten
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage{amsmath}
\parindent0em
\begin{document}
\[
W_\textbf{C}
\]
\[
W_{\boldsymbol{C}}
\]
\end{document}
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Re: subscripts in \mathbb font
Sasha wants \mathbb not \mathbf, Thorsten.
- localghost
- Site Moderator
- Posts: 9201
- Joined: Fri Feb 02, 2007 12:06 pm
subscripts in \mathbb font
Yes, of course. A small but important detail that I missed. But I can't comprehend the misbehaviour.
The subscript appears as small as usual text. But perhaps this is just a matter of taste.
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
$W_\mathbb{C}$
\[
W_\mathbb{C}
\]
\end{document}
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1