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 use the term ^*\mathbb{R} in my thesis, and this works fine. However if i have something like x\in^*\mathbb{R}, the asterisk moves to the left, like it belongs to the \in sign. How do I prevent this from happening and make it stick to the \mathbb{R}?

Thanks

share|improve this question
add comment

2 Answers 2

up vote 5 down vote accepted

A “prescript” should be set as a superscript to an empty formula, unless the symbol this should be attached to has a big size, when something else must be devised; for instance, you could say

\usepackage{mathtools}

and then use

\prescript{*}{}{\mathbb{R}}

but it would be probably too much, in this case. However, you should define macros for this:

\newcommand{\numberset}[1]{\mathbb{#1}}
\newcommand{\hypernumberset}[1]{{}^{*}\numberset{#1}}
%% or, with mathtools,
% \newcommand{\hypernumberset}[1]{\prescript{*}{}{\numberset{#1}}}

\newcommand{\R}{\numberset{R}}
\newcommand{\HR}{\hypernumberset{R}}
\newcommand{\N}{\numberset{N}}
\newcommand{\HN}{\hypernumberset{N}}

Not only typing

$x\in\HR$

is simpler than $x\in{}^{*}\mathbb{R}$, but this also allows much more flexibility. In case you eventually decide that blackboard bold is not the best and that normal boldface is to be used, you just need to change one definition, namely that of \numberset.

share|improve this answer
    
if the prescript is attached to a large operator (e.g. sum or product), then \sideset from amsmath is suggested. (since you mentioned "big size") –  barbara beeton Jun 16 at 13:43
add comment

The superscript is added to the symbol before. Thus \in^* puts the asterisk to the symbol \in. A trick is using an empty subformula: \in {}^*, then the superscript is set to the subformula:

\documentclass{article}
\usepackage{amssymb}
\begin{document}
\[
  x\in{}^*\mathbb{R}
\]
\end{document}

Result

share|improve this answer
add comment

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.