7

If i write $t=a$ in LaTex, I get "t = a". If I write $t=?$ I get "t =?" but I want to get "t = ?". The ? shall have the same distance from the equals sign as any other variable or letter. Is there a way to to treat the "?" the same way as any other letter in a formula?

To make clear how $t=a$ and t=? look like, I have added a screenshot.To make clear how <code>$t=a$</code> and <code>t=?</code> look like, I have added a screenshot.

  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – jub0bs Apr 20 '14 at 12:47
12

Use the \mathord command to declare an ordinary mathematical symbol, as in:

t = \mathord{?}

If you're going to be using this repeatedly, I would define something like

\newcommand{\que}{\mathord{?}}

so that you can use it easily (and be true to the semantic ideals of LaTeX, etc. etc.).

\documentclass{article}
\newcommand{\que}{\mathord{?}}    
\begin{document}
$t=\que$
\end{document}

enter image description here

3

?is a punctuation symbol. Try $t={}?$.

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.