Suppose you have plenty of equations written down in LaTeX.
and the client asks you to bold each and every one of them. Since there are plenty manual editing is out of the question. So, how can I write a macro to bold every one of them without affecting the number appearing on the right?
Text Formatting ⇒ Automatically bold each equation
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Automatically bold each equation
That isn't just about the visuals, it destroys the math. Ships will sink, planes will fall from the sky, bridges will collapse.
There is a difference in maths between a roman A, an itallic A, a bold A, an A with an Asterisk or an A in Fraktur or calligraphy. Bolding everything will make the equations absolutely worthless.
There is a difference in maths between a roman A, an itallic A, a bold A, an A with an Asterisk or an A in Fraktur or calligraphy. Bolding everything will make the equations absolutely worthless.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Automatically bold each equation
So you recommend not bold them. So did I tell him but he insists on it!

Johannes_B wrote:That isn't just about the visuals, it destroys the math. Ships will sink, planes will fall from the sky, bridges will collapse.


- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Automatically bold each equation
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Automatically bold each equation
Hi Tolaso!
You can switch to bold font in mathematics by
Test, or click on "Open in Overleaf" to see the result online.
At least this command is useful to show your client how it would look like, without much effort. Maybe that's why it was introduced, as it's useful for this.
By the way, there are the commands
Stefan
You can switch to bold font in mathematics by
\boldmath
, and switch back to normal font weight by \unboldmath
.Code: Select all
Code, edit and compile here:
\documentclass{article}\begin{document}\begin{equation}x^2 + \beta y^2 = 1\end{equation}\boldmath\begin{equation}x^2 + \beta y^2 = 1\end{equation}Inline math: $x^2 + \beta y^2 = 1$.\unboldmath\begin{equation}x^2 + \beta y^2 = 1\end{equation}\end{document}
At least this command is useful to show your client how it would look like, without much effort. Maybe that's why it was introduced, as it's useful for this.

By the way, there are the commands
\everymath
and \everydisplay
to insert any commands before math, but I consider this more as hacks.Stefan
LaTeX.org admin