Latex Execution on this Site: No Bold Fonts?

  • LaTeX
  • Thread starter ehrenfest
  • Start date
  • Tags
    Latex
In summary,This website doesn't like bold math in TeX. A workaround is to use something like \mbox{\boldmath${\pi}$} if in a math environment.
  • #1
ehrenfest
2,020
1
[tex] \mathbf{\mu}[/tex]

What is used to execute latex on this website? When I type that into TeXnic center and compile it without MikTex, it is not bold on my computer.
 
Physics news on Phys.org
  • #2
For some reason, latex doesn't really like making greek letters bold. A workaround I found (which is a little annoying, but at least it works) is to use something like \mbox{\boldmath${\pi}$} if in a math environment.

I don't know what is used on the website.
 
  • #3
Use \mathbf in math mode.

\mu versus \mathbf\mu [tex]\mu\;\mathbf\mu[/tex]One drawback of mathbf: Its not in italics.

a versus \mathbf a [tex]a\;\mathbf a[/tex]If you have the AMS math package (\usepackage{amssymb,amsmath}), \boldsymbol puts things in bold italics.

\mu versus \mathbf\mu versus \boldsymbol\mu [tex]\mu\;\mathbf\mu\;\boldsymbol\mu[/tex]
a versus \mathbf a versus \boldsymbol a [tex]a\;\mathbf a\;\boldsymbol a[/tex]
 
Last edited:
  • #4
D H said:
Use \mathbf in math mode.

\mu versus \mathbf\mu [tex]\mu\;\mathbf\mu[/tex]
Whilst that seems to work on the forum, it doesn't work for me (or, it seems, for the OP) hence why I had to find a workaround. The method you list below works fine!

If you have the AMS math package (\usepackage{amssymb,amsmath}), \boldsymbol puts things in bold italics.

\mu versus \mathbf\mu versus \boldsymbol\mu [tex]\mu\;\mathbf\mu\;\boldsymbol\mu[/tex]
a versus \mathbf a versus \boldsymbol a [tex]a\;\boldsymbol a\;\boldsymbol a[/tex]
 
  • #5
I generally use \boldsymbol. Hmm, actually, I don't, at least not directly. I generally use macros for matrices and vectors, and those in turn use \boldsymbol. That way if someone tells me to use arrows for vectors I just have to change my vector macro.
 
  • #6
you have to use the package{bm}. Then inside math environment type Greek letters as {\bm \alpha}, {\bm \beta}, etc...

usepackege{bm}

then,

$ {\bm beta} = {\bm \ alpha} {\bf \gamma} $
 
  • #7
thanks...DH post was very useful!
 

FAQ: Latex Execution on this Site: No Bold Fonts?

What is Latex Execution?

Latex Execution is a feature on this site that allows users to use Latex commands to format text, equations, and symbols.

How do I use Latex Execution on this site?

To use Latex Execution, simply enclose your desired text or equation within dollar signs ($) in the text editor. For example, writing $x^2$ will display as x².

Why can't I see bold fonts when using Latex Execution?

Unfortunately, bold fonts are not currently supported in Latex Execution on this site. However, you can use Latex commands to make text appear bold, such as \textbf{bold text}.

Are there any other limitations to Latex Execution on this site?

Yes, there are a few other limitations to Latex Execution on this site. It does not support color or font size changes, and some advanced Latex commands may not be recognized.

Can I use Latex Execution on mobile devices?

Yes, Latex Execution is supported on mobile devices, but the text editor may look slightly different. It is recommended to use a desktop or laptop for more precise formatting.

Similar threads

Replies
4
Views
839
Replies
8
Views
2K
Replies
23
Views
2K
Replies
3
Views
2K
Replies
3
Views
5K
Replies
3
Views
2K
Replies
9
Views
2K
Back
Top