TransWikia.com

How to write numbers in boldface type using LaTeX Beamer

TeX - LaTeX Asked by Userabc on February 8, 2021

I want to write a vector $1_n$ in bold face where all its entries are one. I have tried all of the following, but it will not work. I even included userpackage{bm}. But not working. Any help, please?

$bm{1}_n$
$boldsymbol{1}_n$
$mathbf{1}_n$
$textbf{1}_n$

2 Answers

I used package usepackage{amsbsy} and I wrote it as pmb{1}_n. It works fine for me now.

Answered by Userabc on February 8, 2021

It is unclear, what is your problem. More certain we can be, if you would provide an MWE (Minimal Working Example), a small but complete document. As example of it with your code fragment is:

documentclass{beamer}
usepackage{bm}

begin{document}
begin{frame}[fragile]
frametitle{Comparison of normal and boldface math variables}
verb+bm+:qquad          $1_n, bm{1}_n$
verb+boldsymbol+:qquad  $1_n, boldsymbol{1}_n$
verb+mathbf+:qquad      $1_n, mathbf{1}_n$
%$textbf{1}_n$ this should not be used 
end{frame}
end{document}

which gives expected result:

enter image description here

Answered by Zarko on February 8, 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