4

I am trying to write notations like degree, micro etc in a table with math mode on. To form the table, i am using -

\usepackage{booktabs}
\usepackage{array}

But in my table when i type

$^\circ$

it gives out the same ($^\circ$) as a result, where its supposed to give me a degree notation. Can anyone please tell me how to solve this?

Thanks

  • 1
    Please add a minimal working example (MWE) that illustrates your problem. – user11232 May 18 '12 at 2:17
  • 2
    To type units, I suggest using siunitx which also offers a tabular with S column. You have to use \degreeCelsius there. – user11232 May 18 '12 at 2:19
10

The array environment is in math mode, so you need to use {}^\circ. In tabular you need to use ${}^\circ$.

\documentclass{article}
\usepackage{amsmath}
\usepackage{array}
\begin{document}
    \begin{tabular}{c}
        ${}^\circ$
    \end{tabular}

    $\begin{array}{c}
        {}^\circ
    \end{array}$
\end{document}

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.