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 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?

share|improve this question
    
add comment

1 Answer

up vote 6 down vote accepted

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

share|improve this answer
    
Thank you, I did not know about mathbin and mathrel before. And yes, this is indeed for non-standard analysis. –  Tomas Jan 29 '13 at 17:37
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.