I am able to display the Greek letter θ (the only one I am interested in) in text mode, thanks to \usepackage[euler]{textgreek}
. I just copy and paste θ into my text, and it looks fine. Now I want it to be in courier font, as I use that font to represent variables from my Python code. In short, I have a Python variable named θ_start and I want it to appear as \texttt{θ\_start}
in Latex. Problem, \texttt has no effect on θ: it leaves it unchanged, in whatever standard font is used in my document. How to fix this? Is there an alternative to \texttt that could handle this?
(and no this is not a joke, I actually have variables in Greek letters in my Python code, and it works without problem and helps the reader makes the link between the code and my research paper; however, in LaTeX, that's where the problem happens)