# Different versions of \theta

When I try to write \theta, the displayed symbol is different from the usual symbol (as shown in figure). It is not closed, rather looks more like \vartheta. How can I get the closed theta symbol?

The document setup is as follows:

\documentclass{elsarticle}
\usepackage[top=1.5in, bottom=1.5in, left=1in, right=1in]{geometry}
\usepackage{float}
\usepackage{enumitem}
\usepackage{amsmath}

\newlist{abbrv}{itemize}{1}
\setlist[abbrv,1]{label=,labelwidth=1in,align=parleft,itemsep=0.1\baselineskip,leftmargin=!}

\usepackage{mdframed}
\usepackage{tabularx}
\usepackage{multicol}
\usepackage{framed}
\usepackage{subcaption}

\journal{Journal of \LaTeX\ Templates}

\usepackage{bm}
%package for checked box and crossed box
\usepackage{wasysym}
\usepackage[LGRgreek]{mathastext}

• Hello. See my (or @frougon's) edit for a way to format an example. We need an MWE, i.e., please remove the packages and definitions that are not relevant. Please include a document body, illustrating your problem. Using a more common document class, such as article might also help. – Oleg Lobachev Aug 20 at 22:19
• Welcome back to TeX.SE! There is no \theta in your example - please include it (and any other code that is needed, such as \begin{document} and \end{document}) to make the issue reproducible. However, as a guess from the preamble maybe mathastext has something to do with the appearance of the symbols. – Marijn Aug 20 at 22:20
• The problem is mathastext: why are you using it? – egreg Aug 21 at 8:40

The answer by Sebastiano uses the teletype font (lmtt) for the theta. There are some alternatives with other font styles.

Use the basic option for mathastext, which causes the package to only influence digits and Latin letters, resulting in the default math theta (but it limits the functionality of mathastext):

\documentclass{elsarticle}
\usepackage{gensymb}
\usepackage[basic]{mathastext}
\begin{document}
$0\degree \leq\theta\leq 180\degree$
\end{document}


Using the symbolgreek option, which uses the Symbol font for Greek:

\documentclass{elsarticle}
\usepackage{gensymb}
\usepackage[symbolgreek]{mathastext}
\begin{document}
$0\degree \leq\theta\leq 180\degree$
\end{document}


Redefining only \theta according to the default LaTeX definition, resulting in the default (math italic) theta (but it does not limit the functionality of mathastext):

\documentclass{elsarticle}
\usepackage{gensymb}
\usepackage[LGRgreek]{mathastext}
\mathchardef\theta="112
\begin{document}
$0\degree \leq\theta\leq 180\degree$
\end{document}


• Hi! Thanks for filling the details. It works beautifully. – Hamza Khalid Aug 21 at 18:37
• Your answer is the best (IMHO). – Sebastiano Aug 23 at 20:52

Here, I think there is a solution using \MTgreekfont{lmtt}\Mathastext: this code is taken here http://jf.burnol.free.fr/showcase.html (there are many solutions) and I have put also the italic option.

\documentclass{elsarticle}
\usepackage[LGRgreek,italic]{mathastext}
\MTgreekfont{lmtt}\Mathastext
\begin{document}
$0^{\circ}\leq \theta \leq 180^{\circ}$
\end{document}