TransWikia.com

Textbf not working for subscript

TeX - LaTeX Asked on July 23, 2021

textbf{C$_{global_binary}$}

The above is the code I use, the generate text is
enter image description here

I want to make "global_binary" subscript also in bold, how could I do this?

2 Answers

Since the material doesn't appear to be math-y, I would recommend using textsubscript rather than TeX's math mode.

enter image description here

documentclass{article}
begin{document}
textbf{Ctextsubscript{global_binary}}

Ctextsubscript{global_binary}
end{document}

Correct answer by Mico on July 23, 2021

The problem here is that textbf, as the name implies, applies to text (as opposed to math. Using mathbf (inside math mode) gives you

$mathbf{C_{global_binary}}$

as your input and

boldface C with global_binary as subscript

as your output

Answered by Don Hosek on July 23, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP