Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
    
Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. –  Jubobs Apr 20 at 12:47

2 Answers 2

up vote 12 down vote accepted

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

share|improve this answer

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.