2

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!

andreshp
  • 163
  • https://tex.stackexchange.com/questions/38834/custom-switches-such-as-for-underlining – Torbjørn T. Apr 16 '17 at 11:03
  • 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
  • 5
    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
  • Not really. I want to use pgfplotstable like in this question but with underline instead of bold. – andreshp Apr 16 '17 at 18:20
  • Well, that's almost the same thing, only there the cell is identified automatically. Anyways, probably wouldn't have hurt to mention the context in the question as well, though I can't say if it would increase the chance of an answer. Well, @egreg sort of answered already. (Note also that I wasn't notified of your latest comment because you didn't write @TorbjørnT. in it, see https://meta.stackexchange.com/questions/43019) – Torbjørn T. Apr 17 '17 at 18:55

0 Answers0