3

I need to add superscript asterisks to the left side of different symbols like +,\cdot,\leq,\mathbb{R}.

I read several different solutions to similar questions, which recommended either \prescript, which is ugly, since there is a huge space between the asterisk and \leq or \sideset from amsmath, which refuses to work on symbols like +.

Does anyone know some universal pretty solution, which puts the asterisk neatly before this symbols?

1

1 Answer 1

7

This is not simply using a "presuperscript"; what we need is to add the asterisk and keeping the meaning of the symbols; moreover, the asterisk seems needing to be nearer the symbol.

\documentclass{article}

\usepackage{amssymb}

\newcommand{\hplus}{\mathbin{^*\!+}}
\newcommand{\hcdot}{\mathbin{^*\!\cdot}}
\newcommand{\hleq}{\mathrel{^*\!}\leq}
\newcommand{\hR}{{}^*\mathbb{R}}

\begin{document}
$a\hcdot b \hplus c \hleq d \in \hR$
\end{document}

(The "h" is for "hyper", as I suspect this is for nonstandard analysis.)

enter image description here

1
  • Thank you, I did not know about mathbin and mathrel before. And yes, this is indeed for non-standard analysis.
    – Tomas
    Jan 29, 2013 at 17:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .