I would like to use both \star and \ast in my document, but they produce the same character (*), whether or not \star is in math mode. I am using pdflatex in MikTeX 2.9 with the times package. What package do I need to get the \star character?
Asked
Active
Viewed 2.3k times
5
Torbjørn T.
- 206,688
Mary
- 51
- 1
- 1
- 2
1 Answers
4
Computer modern has a star symbol. Since it is a rather stylistic symbol let's use it:
\documentclass[10pt]{article}
\usepackage{times}
\begin{document}
\newcommand{\mystar}{{\fontfamily{lmr}\selectfont$\star$}}
Foo\mystar bar*
\end{document}

jonalv
- 11,466
-
2Or, much more efficiently,
\renewcommand{\star}{{\usefont{OML}{cmm}{m}{it}\symbol{63}}}– egreg Aug 27 '13 at 15:07
{}) or hit Ctrl+K. – Claudio Fiandrino Aug 27 '13 at 11:48timespackage, what is needed is the mechanism for actually accessing it, and that isn't provided by the linked question. – barbara beeton Aug 27 '13 at 12:35\documentclass{article}\usepackage{times}\begin{document}$\star\ast$\end{document}. Can you show a minimal example? – egreg Aug 27 '13 at 15:12