Math & Sciencesubscripts in \mathbb font

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
sasha
Posts: 1
Joined: Wed Jul 22, 2009 2:53 pm

subscripts in \mathbb font

Post by sasha »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

subscripts in \mathbb font

Post by frabjous »

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}
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

subscripts in \mathbb font

Post by localghost »

I would say the final solution depends on whether the subscript is an index variable or a designator (like in the Boltzmann constant).

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}
In both cases the amsmath package helps in formatting the subscript.


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
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: subscripts in \mathbb font

Post by frabjous »

Sasha wants \mathbb not \mathbf, Thorsten.
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

subscripts in \mathbb font

Post by localghost »

Yes, of course. A small but important detail that I missed. But I can't comprehend the misbehaviour.

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}
The subscript appears as small as usual text. But perhaps this is just a matter of taste.
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
Post Reply