# Is there an equivalent of \bf for \underline{}?

We can use $\bf 10$ for obtaining a bold 10. Of course, this is equivalent to $\mathbf{10}$. Is there an equivalent of \bf in math environment for \underline{}?

I would need something like $\ul 10$ for a code where I can not use brackets. Concretely, I want to use the code of this answer with underline instead of bold. Thanks!

• Thanks for editing the question. I have tried that answer but it does not work inside a math environment ( $\ulined 10$ prints nothing). – andreshp Apr 16 '17 at 11:42
• Ah, right, didn't consider that, sorry. – Torbjørn T. Apr 16 '17 at 11:43
• No, underlining requires braces. On the other hand, \bf has been obsolete and deprecated for more than twenty (!) years; the correct markup is $\mathbf{10}$. – egreg Apr 16 '17 at 15:18
• Given your comment on the (now-deleted) answer, is your actual question "how can I make a cell in a table generated by pgfplotstable underlined?" – Torbjørn T. Apr 16 '17 at 17:59