2 Bold Math and Spacing

Bold Math

For writing math in bold we use two commands

  1. \mathbf – applies to all letters and numbers
  2. \boldsymbol – applies to all symbols, not just letters and number

Example: 

a) Using /mathbf

[latex]\mathbf{a+2+\alpha+\beta+4}[/latex]

[latex]\mathbf{a+2+\alpha+\beta+4}[/latex]

b) Using \boldsymbol

[latex]\boldsymbol{a+2+\alpha+\beta+4}[/latex]

[latex]\boldsymbol{a+2+\alpha+\beta+4}[/latex]

c) Using \mathbf

[latex]\mathbf{2^{x}} - 1 = 0[/latex]

[latex]\mathbf{2^{x}} - 1 = 0[/latex]

Note: Only 2^{x} is written in bold.

Spacing

To get a space between two symbols, use \; You can use the space commands multiple times: this tends to be the only way you will notice a difference. So,
 [latex]x+\cos\;\;\;\;\;\;\theta[/latex]
gives you [latex]x+\cos\;\;\;\;\;\;\theta[/latex]

There are also other spaces you can use. Here’s a list of types of spaces in increasing size (optional material).

  • \! (backslash-exclamation point, negative thin math space)
  • \, (backslash-comma, thin math space)
  • \: (backslash-colon, medium math space)
  • \; (backslash-semicolon, thick math space)
  • (backslash-space, equivalent of space in normal text)
  • \quad (space equal to the current font size)
  • \qquad (twice of \quad space)
  • \hspace{«length»} if you want to force a specific length

 

 


 

 

License

Icon for the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License

Using Latex in Pressbooks Copyright © 2021 by Sanja Krajisnik and Jelena Loncar is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, except where otherwise noted.

Share This Book