24

How do I make a math-mode asterisk that works like sum or product operator? (To represent the convolution.)

18

The simplest would be to use \Asterisk from the mathabx package, and also the \coAsterisk (not sure what the differences are as they look identical to me).

Alternatively, you could use \scalebox from the graphicx package to re-size the standard \ast to suit. Here is a comparison of these three (\Conv is the custom version) showing the behavior in inline and display mode with indices:

enter image description here

\documentclass[fleqn]{article}
\usepackage{mathabx}
\usepackage{graphicx}

\newcommand{\Conv}{\mathop{\scalebox{1.5}{\raisebox{-0.2ex}{$\ast$}}}}%
\begin{document}
{\small\verb|\Asterisk| \verb|\coAsterisk | \verb| \Conv|}

\hspace{0.35cm}% to simply comparrison
$
    f \Asterisk^{a}_{b}   g \qquad 
    f \coAsterisk^{a}_{b} g \qquad 
    f \Conv^{a}_{b}       g
$

\[
    f \Asterisk^{a}_{b}   g \qquad 
    f \coAsterisk^{a}_{b} g \qquad 
    f \Conv^{a}_{b}       g
\]
\end{document}
  • Thanks. Will it work like a "sum" operator that puts the indicies below and above the symbol? – Neil G Jan 15 '12 at 21:39
  • In that case you can use \mathop. How do you want this to be shown in display mode and inline mode? – Peter Grill Jan 15 '12 at 21:48
  • 1
    @GrzegorzWierzowiecki: Nope, I am not that much of a genius. I used \hspace{0.35cm}' to get the inline math to align with the display math, and the \qquad` is just about the right size to align them. So it just looks almost like a table. – Peter Grill Feb 4 '12 at 22:45
  • 1
    @GrzegorzWierzowiecki: Thanks for the complement. I think I originally thought about doing a table, but then when I saw that the output looked reasonable enough as is, I decided not to. You're definitely at the right place to learn -- I've learned almost everything I know about TeX from this site. BTW, I still consider myself at the advanced beginner level, even though my rep may make you believe otherwise, so feel free to ask more questions. I certainly wish I had asked more when I started making my choices on how to do things as it would have saved a lot of grief later. – Peter Grill Feb 4 '12 at 23:48
  • 1
    The difference: the coasterisk is rotated by 30 degrees. – Egbert Nov 30 '16 at 19:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.