How do you type an asterisk(*) in LaTeX?

The Asterisk symbol is denoted by the command \ast. The same symbol is on your keyboard, but it has two different uses.

Symbol Asterisk
Type of symbol Mathematics
Package No
Argument No
Latex command \ast
Example \ast → *
\documentclass{article}
\begin{document}
   $$ C\ast de $$
   $$ C*de $$
   $$ G\ast\ast d $$
   $$ G**d $$
\end{document}

Output :

Use of asterisk symbol in text mode output.

At the same time, we use two asterisk symbols in pairs in different words. If you look at the output above you will understand that there is a space-related problem. Which is shown in the following code.

\documentclass{article}
\usepackage{MnSymbol}
\begin{document}
   $ G\ast\ast\; d $\\[6pt]
   G $\ast\;\ast$ d \\[6pt]
   G $*\;*$ d \\[6pt]
   B $*\;*$ k
\end{document}

Output :

Use of asterisk symbol in better way output.

Big asterisk symbol in LaTeX

\bigast command is not the default. For this, you need to take the help of mathabx package.

\documentclass{article}
\usepackage{mathabx}
\begin{document}
   $$ f(\bigast)g $$
   $$ f\bigast_b^a g $$
\end{document}

Output :

Use of big asterisk symbol output.

Use asterisk symbol in Superscript in LaTeX

If you use this symbol from the keyboard in direct text mode, the asterisk symbol will act as a superscript, and you will need to manually complete the same task using the command.

\documentclass{article}
\usepackage{amsfonts}
\begin{document}
   $ q=b_1b_2\; \epsilon\; \mathbb{Z}^\ast $ \\[6pt]
   $q=b_1b_2\; \epsilon\; \mathbb{Z}$* \\[6pt]
   2+5*10+9*7
   A * * D
\end{document}

Output :

Use of asterisk in superscript output.

Asterisk symbols of different styles

Below are a variety of styled asterisk symbols represented in a latex document using the bbding and pifont packages.

\documentclass{article}
\usepackage{bbding,pifont}
\begin{document}
   % Use bbding package
   \SixFlowerOpenCenter, \SixFlowerPetalRemoved, \Asterisk\\[6pt]
   \AsteriskBold, \AsteriskCenterOpen, \AsteriskRoundedEnds \\[6pt]
   \AsteriskThin, \AsteriskThinCenterOpen, \SixFlowerRemovedOpenPetal\\[6pt]
   % Use pifont package
   \ding{81}, \ding{82}, \ding{83}\\[6pt]
   \ding{91}, \ding{92}, \ding{93}\\[6pt]
\end{document}

Output :

Many type of asterisk symbol output.

One request!

Don't forget to share if I have added any value to your education life. See you again in another tutorial. thank you!

Facebook iconTwitter iconWhatsapp iconPinterest icon

Leave a Comment

Your email address will not be published. Required fields are marked *