How can I get bold math symbols?Why can't I get a bold Greek letter?How to bold math-mode characters?Can I...
Is it a Cyclops number? "Nobody" knows!
Can a space-faring robot still function over a billion years?
Iron deposits mined from under the city
newcommand: Using one parameter as the default for the other
How do we objectively assess if a dialogue sounds unnatural or cringy?
Short story about an infectious indestructible metal bar?
Help! My Character is too much for her story!
Is "cogitate" an appropriate word for this?
The (Easy) Road to Code
How to make sure I'm assertive enough in contact with subordinates?
Having the player face themselves after the mid-game
Vector-transposing function
Professor forcing me to attend a conference, I can't afford even with 50% funding
Paper published similar to PhD thesis
Other authors are notified except me, good or bad sign?
Ten year passports
Should I apply for my boss's promotion?
I am the light that shines in the dark
Short story about cities being connected by a conveyor belt
Why aren't there more Gauls like Obelix?
Should I use HTTPS on a domain that will only be used for redirection?
What do I miss if I buy Monster Hunter: World late?
Deal the cards to the players
What can I do if someone tampers with my SSH public key?
How can I get bold math symbols?
Why can't I get a bold Greek letter?How to bold math-mode characters?Can I make a greek letter extra-bold in math mode?How to write a greek letter as bold and not italic?How can you make the $<$, and $leq$ signs bold?How can I get an lower-case “L” with a hooked tailBold symbols for Greek lettersHow to make everything bold in math mode?Bold greek alphabets in mathmode in classicthesismathbf not bolding mathematical characterHow do I get XeLaTeX to use the bold Minion Pro typeface for Greek characters?Mixing some math fontsHat accent on bold greek letters in math modeCommon bold command for Latin and Greek lettersSans-serif bold math with newtxmathHow to make @ turn math symbols boldUpright bold Greek fonts with SVMult classMontserrat as math sans serif font?How to tell XeLaTeX to use one font for italic math and another font for bold math?Which LuaLaTeX math fonts have complete symbol set?
To make Latin-letter variables bold I can use e.g. mathbf{a}
, but while putting Greek letters or symbols such as nabla
inside mathbf
doesn't cause any errors or warnings, it also doesn't do anything else.
What is the best way to make bold math symbols, in particular Greek letters and nabla
?
fonts math-mode symbols bold
add a comment |
To make Latin-letter variables bold I can use e.g. mathbf{a}
, but while putting Greek letters or symbols such as nabla
inside mathbf
doesn't cause any errors or warnings, it also doesn't do anything else.
What is the best way to make bold math symbols, in particular Greek letters and nabla
?
fonts math-mode symbols bold
13
warning: if the default computer modern fonts are used, the weight of bold lowercase greek will not appear as bold as that of bold lowercase roman, and it isn't. default bold math (mathbf
} with computer modern fonts uses the fontcmbx*
which is an extended font.boldsymbol
orbm
use the onlycm
font that is usually available in bold,cmmib10
, which is not an extended font. thus the bold greek letters are indeed not as "bold" as the roman.
– barbara beeton
Aug 26 '12 at 21:45
add a comment |
To make Latin-letter variables bold I can use e.g. mathbf{a}
, but while putting Greek letters or symbols such as nabla
inside mathbf
doesn't cause any errors or warnings, it also doesn't do anything else.
What is the best way to make bold math symbols, in particular Greek letters and nabla
?
fonts math-mode symbols bold
To make Latin-letter variables bold I can use e.g. mathbf{a}
, but while putting Greek letters or symbols such as nabla
inside mathbf
doesn't cause any errors or warnings, it also doesn't do anything else.
What is the best way to make bold math symbols, in particular Greek letters and nabla
?
fonts math-mode symbols bold
fonts math-mode symbols bold
edited Nov 25 '12 at 1:27
doncherry
35.2k23136208
35.2k23136208
asked Jul 29 '10 at 17:37
Michael UnderwoodMichael Underwood
10.6k104440
10.6k104440
13
warning: if the default computer modern fonts are used, the weight of bold lowercase greek will not appear as bold as that of bold lowercase roman, and it isn't. default bold math (mathbf
} with computer modern fonts uses the fontcmbx*
which is an extended font.boldsymbol
orbm
use the onlycm
font that is usually available in bold,cmmib10
, which is not an extended font. thus the bold greek letters are indeed not as "bold" as the roman.
– barbara beeton
Aug 26 '12 at 21:45
add a comment |
13
warning: if the default computer modern fonts are used, the weight of bold lowercase greek will not appear as bold as that of bold lowercase roman, and it isn't. default bold math (mathbf
} with computer modern fonts uses the fontcmbx*
which is an extended font.boldsymbol
orbm
use the onlycm
font that is usually available in bold,cmmib10
, which is not an extended font. thus the bold greek letters are indeed not as "bold" as the roman.
– barbara beeton
Aug 26 '12 at 21:45
13
13
warning: if the default computer modern fonts are used, the weight of bold lowercase greek will not appear as bold as that of bold lowercase roman, and it isn't. default bold math (
mathbf
} with computer modern fonts uses the font cmbx*
which is an extended font. boldsymbol
or bm
use the only cm
font that is usually available in bold, cmmib10
, which is not an extended font. thus the bold greek letters are indeed not as "bold" as the roman.– barbara beeton
Aug 26 '12 at 21:45
warning: if the default computer modern fonts are used, the weight of bold lowercase greek will not appear as bold as that of bold lowercase roman, and it isn't. default bold math (
mathbf
} with computer modern fonts uses the font cmbx*
which is an extended font. boldsymbol
or bm
use the only cm
font that is usually available in bold, cmmib10
, which is not an extended font. thus the bold greek letters are indeed not as "bold" as the roman.– barbara beeton
Aug 26 '12 at 21:45
add a comment |
13 Answers
13
active
oldest
votes
The AMS Short Math Guide recommends the boldsymbol
and pmb
commands (and suggests that you use the bm
package for the former to get a more powerful version than provided by amsmath
).
15
I would vote for thebm
package surely!
– yo'
Aug 26 '12 at 11:11
19
It looks like thatboldsymbol
(fromamsbsy
) is obsolete andbm
(packagebm
) should be used (ref).
– Atcold
Jul 26 '16 at 19:13
Maybe it's just me, and maybe it's just temporary, but the AMS Short Math Guide link is not working for me.
– TMM
Dec 6 '16 at 17:13
3
"It looks like thatboldsymbol
(from amsbsy) is obsolete andbm
(package bm) should be used" — Though the poor souls that are using Mathjax e.g., in a Jupyter notebook, that implements all of AMS math and none ofbm
will find that they have no alternatives toboldsymbol
– gboffi
Sep 1 '17 at 8:19
2
Please add a short summary of the link you provide, eg how to use bm ? This prevents the answer from being useless when the link is dead (and it is now)
– MappaM
Feb 5 at 15:03
|
show 4 more comments
In my experience, there is no single best way. Therefore Table 327 on page 225 of the Comprehensive LaTeX Symbol List comes in really handy.
Visited March 8, 2019: Table 528 on page 225 of the Comprehensive LaTeX Symbol List comes in really handy.
2
ehmbm
ehm. Can you underline "experience" with facts about problems ofbm
?
– yo'
Feb 21 '13 at 17:32
3
@tohecz No, unfortunately not. I don't have the particular example anymore. I just happened to stumble on this old question and I thought I'd add this list since I did encounter tricky cases where it was helpful to be able to try different approaches.bm
should surely be the first package to try though. I will add examples where it doesn't work when it ever happens again.
– Christian
Feb 21 '13 at 17:48
1
You can always use boldsymbol{}, but this will only work if there exists a bold version of the symbol in the current font.
– sinner
Jan 15 '15 at 4:44
In my personal experience, pmb (the faked bold) is the most universal
– Dr_Zaszuś
May 11 '15 at 16:57
5
@Szczypawka Most universal ... probably. But also a measure of last resort.
– Christian
May 11 '15 at 18:06
add a comment |
With unicode-math
you can use symbf{<characters>}
which works for both Greek and Latin letters. (In versions of unicode-math
older than 0.8 the symXXX
macros didn't exist, but you could mathbf{<characters>}
directly.)
Compile with xelatex
or lualatex
.
documentclass{article}
usepackage{unicode-math}
setmathfont{xits-math.otf}
begin{document}
( AaBb∇αβγ ) par
( symbf{AaBb∇αβγ} ) par
( symrm{AaBb∇αβγ} )
end{document}
Does not work for me. Bold latin symbols appear OK, but greek ones (from nabla onwards) don't show. I have XITS Math font correctly installed on my system (linux), and I compiled this MWE with bothxelatex
andlualatex
, with no luck. What am I doing wrong?
– Orestes Mas
May 31 '16 at 16:44
1
Update to my previous comment: I managed to make it work doing the following. 1) Specify math font as setmathfont{XITS Math} (I'm on a linux system and that is the name of the font my system reports) and 2) Adding usepackage{bm} AFTER setting the math font. Without step 2), greek bold characters don't show up and latin bold appears to be typeset in Latin Modern Bold
– Orestes Mas
May 31 '16 at 17:07
4
@OrestesMas There were some updates tounicode-math
recently, usesymbf
instead ofmathbf
.
– Torbjørn T.
May 31 '16 at 18:25
add a comment |
Another possibility is boldmath
, though I would prefer boldsymbol
of amsmath
as well. unboldmath
switches back to the normal math font.
6
Why isboldsymbol
preferred overboldmath
?
– drs
May 18 '13 at 1:18
5
@drsboldsymbol
is included in the packageamsmath
, which is ubiquitous, whileboldmath
is not.
– glarrain
Jan 9 '14 at 19:24
2
I don't know why but$boldmath{phi}$
does not work for me, yet$boldsymbol{phi}$
does.
– displayname
Apr 12 '17 at 15:26
@displaynameboldmath
is a declaration, so you want to use it like this:{boldmath $phi$}
. Also(phi)
is recommended. See tex.stackexchange.com/questions/510/…
– L. F.
Feb 26 at 12:45
add a comment |
If you use the package bm
you can do $bm{a}=bm{alpha}$
etc.
add a comment |
While bm
and boldmath
are some good options in LaTeX, modern packages for XeLaTex can give a lot more control over the fonts from the very beginning, without the need to use commands different from the standard mathbf
that every one expects naively to work the first time one tries to write bold italic characters.
In XeLaTeX (part of TeXLive), the package fontspec
gives a lot of freedom when dealing with fonts. If you want even more flexibility for mathematical input, you can try using the package unicode-math
(that is built on fontspec
). Nevertheless you will find the bm and boldsymbol traditional commands don't work. You can nonetheless specify how you want it to deal with your bold math symbols using an option while loading the unicode-math
package. usepackage[bold-style=ISO]{unicode-math}
will give the recommended italic bold math symbols for both greek and latin characters, while usepackage[bold-style=TeX]{unicode-math}
will give upright latin characters. This is explained in the unicode-math documentation .
This minimal working example:
%run this with XeLaTeX!!
documentclass{article}
usepackage[bold-style=ISO]{unicode-math}
%usepackage[bold-style=TeX]{unicode-math}
setmainfont{XITS}
setmathfont{XITS Math}
begin{document}
This is common math $O(log n)+O(lambda,,epsilon)$
This is bold and italic $mathbf{O(log n)}+mathbf{O(lambda,,epsilon)}$ where it must :)
end{document}
gives
Welcome to TeX.SX.
– Claudio Fiandrino
Mar 27 '13 at 10:55
1
Welcome to TeX.sx! Rather than posting identical answers to different questions, you should post your answer at the most appropriate place (here: tex.stackexchange.com/a/104524/510) and (as soon as you have 50 rep) add comments with links at other places.
– lockstep
Mar 27 '13 at 10:55
add a comment |
In order to have just one command for both bold text and bold math, one can use the solution suggested on LaTeX Community (/forum/viewtopic.php?t=10866&f=44#p42084, link not allowed). Editing this solution slightly in order to incorporate the bm
package, one could use the following.
usepackage{bm}
newcommand*{B}[1]{ifmmodebm{#1}elsetextbf{#1}fi}
add a comment |
My solution (the one that I use) is the mathversion{bold}
and mathversion{normal}
commands.
This piece of code is not a MWE —however, it shows how to use them:
mathversion{bold}
section{Behavior of $f$ as a function of $lambda$}label{sec:1}
mathversion{normal}
And now, imagine that mathversion{bold}textbf{we want to put some
text in bold, and that this text contains some inline equation such as
$sum_{j=0}^{t-1}{{p_mathrm{y}(lambda=2)}^j}$.}mathversion{normal}
Hope it helps.
1
Very good option if you want to enable bold math globally.
– koalo
Jan 31 '18 at 19:20
add a comment |
Another option:
documentclass{article}
newcommand{boldm}[1] {mathversion{bold}#1mathversion{normal}}
begin{document}
There is a normal symbol, $p_1$. Now, a bold symbol: {boldm $p_2$}. It works!
end{document}
Output:
$boldsymbol{x_0}$ was not working for me in either chapter{title} or section{title} (but did in subsection{title}, go figure) but your {boldm $x_{0}$} saved my day. And no need for any additional package. Totally amazing.
– schremmer
Nov 11 '18 at 4:44
Just one bit of trouble: $x_{0}$ is now bold in the toc. Oh well.
– schremmer
Nov 11 '18 at 4:55
These cant’t be nested. Perhaps wrap in ambox
?
– Davislor
Jan 24 at 22:33
add a comment |
Use the command boldsymbol{YOUR_SYMBOL}
add a comment |
You can use physics
package and write any math symbol in boldface by using command vb{}
inside mathmode, e.g. $vb{Psi}$
will yield Ψ.
add a comment |
The unicode-math
package supports several commands for bold symbols beyond what have been mentioned in previous answers, including mathbf
, symbf
, symbfup
, symbfit
, boldmath
and mathversion{bold}
. If you load amsmath
or mathtools
first, it will also redefine boldsymbol
.
If you load a math font that has a bold version, unicode-math
will load it as version=bold
. The ones that ship with TeX Live 2018 are Khaled Hosny’s XITS Math Bold and Libertinus Math Bold, and there is a Minion Math Bold as well. It is also possible to load any math font with setmathfont[version=bold]
.
Here’s a brief MWE that uses boldmath
, symbf
and boldsymbol
. Note that mathbf
will use the bold weight of the main text font, symbf
will use the mathematical bold letters and numerals defined in the Unicode Mathematical Alphenumeric Characters block, and boldmath
, mathversion{bold}
and boldsymbol
will use the bold math font (if there is one).
documentclass[varwidth = 10cm, preview]{standalone}
usepackage{mathtools}
usepackage[math-style=ISO]{unicode-math}
usepackage{microtype}
defaultfontfeatures{ Scale = MatchUppercase }
setmainfont{Libertinus Serif}[Scale = 1.0, Ligatures = Common]
setsansfont{Libertinus Sans}
setmonofont{Libertinus Mono}
setmathfont{Libertinus Math}
begin{document}
section*{boldmath Reasoning from (symbf{A} vee symbf{B})}
If we have (symbf{A} vee symbf{B}) and (symbf{A}), disjunctive syllogism
(classically known as textbf{textit{modus ponendo tollens}}, and also known
as textbf{disjunction elimination} or {boldmath (vee E)}) is the rule
that lets us conclude (boldsymboltherefore symbf{B}).
end{document}
There are several ways to tweak this behavior. By default, mathbf
renders bold capital letters upright and bold lowercase letters italic, but [math-style=ISO]
makes italic the default for everything, including regular-weight uppercase Greek. You can change only the behavior of bold uppercase letters with bold-style=ISO]
or [bold-style=upright]
. You can also specify symbfup
for bold upright or symbfit
for bold italic.
add a comment |
Observe how ugly pmb
is in the following example, compared to bm
:
documentclass{article}
usepackage{amsmath, bm}
begin{document}
$$Psi_n pmb{Psi_n} bm{Psi_n} boldsymbol{Psi_n} Psi_n$$
end{document}
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f595%2fhow-can-i-get-bold-math-symbols%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
13 Answers
13
active
oldest
votes
13 Answers
13
active
oldest
votes
active
oldest
votes
active
oldest
votes
The AMS Short Math Guide recommends the boldsymbol
and pmb
commands (and suggests that you use the bm
package for the former to get a more powerful version than provided by amsmath
).
15
I would vote for thebm
package surely!
– yo'
Aug 26 '12 at 11:11
19
It looks like thatboldsymbol
(fromamsbsy
) is obsolete andbm
(packagebm
) should be used (ref).
– Atcold
Jul 26 '16 at 19:13
Maybe it's just me, and maybe it's just temporary, but the AMS Short Math Guide link is not working for me.
– TMM
Dec 6 '16 at 17:13
3
"It looks like thatboldsymbol
(from amsbsy) is obsolete andbm
(package bm) should be used" — Though the poor souls that are using Mathjax e.g., in a Jupyter notebook, that implements all of AMS math and none ofbm
will find that they have no alternatives toboldsymbol
– gboffi
Sep 1 '17 at 8:19
2
Please add a short summary of the link you provide, eg how to use bm ? This prevents the answer from being useless when the link is dead (and it is now)
– MappaM
Feb 5 at 15:03
|
show 4 more comments
The AMS Short Math Guide recommends the boldsymbol
and pmb
commands (and suggests that you use the bm
package for the former to get a more powerful version than provided by amsmath
).
15
I would vote for thebm
package surely!
– yo'
Aug 26 '12 at 11:11
19
It looks like thatboldsymbol
(fromamsbsy
) is obsolete andbm
(packagebm
) should be used (ref).
– Atcold
Jul 26 '16 at 19:13
Maybe it's just me, and maybe it's just temporary, but the AMS Short Math Guide link is not working for me.
– TMM
Dec 6 '16 at 17:13
3
"It looks like thatboldsymbol
(from amsbsy) is obsolete andbm
(package bm) should be used" — Though the poor souls that are using Mathjax e.g., in a Jupyter notebook, that implements all of AMS math and none ofbm
will find that they have no alternatives toboldsymbol
– gboffi
Sep 1 '17 at 8:19
2
Please add a short summary of the link you provide, eg how to use bm ? This prevents the answer from being useless when the link is dead (and it is now)
– MappaM
Feb 5 at 15:03
|
show 4 more comments
The AMS Short Math Guide recommends the boldsymbol
and pmb
commands (and suggests that you use the bm
package for the former to get a more powerful version than provided by amsmath
).
The AMS Short Math Guide recommends the boldsymbol
and pmb
commands (and suggests that you use the bm
package for the former to get a more powerful version than provided by amsmath
).
edited Nov 25 '12 at 1:30
doncherry
35.2k23136208
35.2k23136208
answered Jul 29 '10 at 17:43
Mark MeckesMark Meckes
7,80193028
7,80193028
15
I would vote for thebm
package surely!
– yo'
Aug 26 '12 at 11:11
19
It looks like thatboldsymbol
(fromamsbsy
) is obsolete andbm
(packagebm
) should be used (ref).
– Atcold
Jul 26 '16 at 19:13
Maybe it's just me, and maybe it's just temporary, but the AMS Short Math Guide link is not working for me.
– TMM
Dec 6 '16 at 17:13
3
"It looks like thatboldsymbol
(from amsbsy) is obsolete andbm
(package bm) should be used" — Though the poor souls that are using Mathjax e.g., in a Jupyter notebook, that implements all of AMS math and none ofbm
will find that they have no alternatives toboldsymbol
– gboffi
Sep 1 '17 at 8:19
2
Please add a short summary of the link you provide, eg how to use bm ? This prevents the answer from being useless when the link is dead (and it is now)
– MappaM
Feb 5 at 15:03
|
show 4 more comments
15
I would vote for thebm
package surely!
– yo'
Aug 26 '12 at 11:11
19
It looks like thatboldsymbol
(fromamsbsy
) is obsolete andbm
(packagebm
) should be used (ref).
– Atcold
Jul 26 '16 at 19:13
Maybe it's just me, and maybe it's just temporary, but the AMS Short Math Guide link is not working for me.
– TMM
Dec 6 '16 at 17:13
3
"It looks like thatboldsymbol
(from amsbsy) is obsolete andbm
(package bm) should be used" — Though the poor souls that are using Mathjax e.g., in a Jupyter notebook, that implements all of AMS math and none ofbm
will find that they have no alternatives toboldsymbol
– gboffi
Sep 1 '17 at 8:19
2
Please add a short summary of the link you provide, eg how to use bm ? This prevents the answer from being useless when the link is dead (and it is now)
– MappaM
Feb 5 at 15:03
15
15
I would vote for the
bm
package surely!– yo'
Aug 26 '12 at 11:11
I would vote for the
bm
package surely!– yo'
Aug 26 '12 at 11:11
19
19
It looks like that
boldsymbol
(from amsbsy
) is obsolete and bm
(package bm
) should be used (ref).– Atcold
Jul 26 '16 at 19:13
It looks like that
boldsymbol
(from amsbsy
) is obsolete and bm
(package bm
) should be used (ref).– Atcold
Jul 26 '16 at 19:13
Maybe it's just me, and maybe it's just temporary, but the AMS Short Math Guide link is not working for me.
– TMM
Dec 6 '16 at 17:13
Maybe it's just me, and maybe it's just temporary, but the AMS Short Math Guide link is not working for me.
– TMM
Dec 6 '16 at 17:13
3
3
"It looks like that
boldsymbol
(from amsbsy) is obsolete and bm
(package bm) should be used" — Though the poor souls that are using Mathjax e.g., in a Jupyter notebook, that implements all of AMS math and none of bm
will find that they have no alternatives to boldsymbol
– gboffi
Sep 1 '17 at 8:19
"It looks like that
boldsymbol
(from amsbsy) is obsolete and bm
(package bm) should be used" — Though the poor souls that are using Mathjax e.g., in a Jupyter notebook, that implements all of AMS math and none of bm
will find that they have no alternatives to boldsymbol
– gboffi
Sep 1 '17 at 8:19
2
2
Please add a short summary of the link you provide, eg how to use bm ? This prevents the answer from being useless when the link is dead (and it is now)
– MappaM
Feb 5 at 15:03
Please add a short summary of the link you provide, eg how to use bm ? This prevents the answer from being useless when the link is dead (and it is now)
– MappaM
Feb 5 at 15:03
|
show 4 more comments
In my experience, there is no single best way. Therefore Table 327 on page 225 of the Comprehensive LaTeX Symbol List comes in really handy.
Visited March 8, 2019: Table 528 on page 225 of the Comprehensive LaTeX Symbol List comes in really handy.
2
ehmbm
ehm. Can you underline "experience" with facts about problems ofbm
?
– yo'
Feb 21 '13 at 17:32
3
@tohecz No, unfortunately not. I don't have the particular example anymore. I just happened to stumble on this old question and I thought I'd add this list since I did encounter tricky cases where it was helpful to be able to try different approaches.bm
should surely be the first package to try though. I will add examples where it doesn't work when it ever happens again.
– Christian
Feb 21 '13 at 17:48
1
You can always use boldsymbol{}, but this will only work if there exists a bold version of the symbol in the current font.
– sinner
Jan 15 '15 at 4:44
In my personal experience, pmb (the faked bold) is the most universal
– Dr_Zaszuś
May 11 '15 at 16:57
5
@Szczypawka Most universal ... probably. But also a measure of last resort.
– Christian
May 11 '15 at 18:06
add a comment |
In my experience, there is no single best way. Therefore Table 327 on page 225 of the Comprehensive LaTeX Symbol List comes in really handy.
Visited March 8, 2019: Table 528 on page 225 of the Comprehensive LaTeX Symbol List comes in really handy.
2
ehmbm
ehm. Can you underline "experience" with facts about problems ofbm
?
– yo'
Feb 21 '13 at 17:32
3
@tohecz No, unfortunately not. I don't have the particular example anymore. I just happened to stumble on this old question and I thought I'd add this list since I did encounter tricky cases where it was helpful to be able to try different approaches.bm
should surely be the first package to try though. I will add examples where it doesn't work when it ever happens again.
– Christian
Feb 21 '13 at 17:48
1
You can always use boldsymbol{}, but this will only work if there exists a bold version of the symbol in the current font.
– sinner
Jan 15 '15 at 4:44
In my personal experience, pmb (the faked bold) is the most universal
– Dr_Zaszuś
May 11 '15 at 16:57
5
@Szczypawka Most universal ... probably. But also a measure of last resort.
– Christian
May 11 '15 at 18:06
add a comment |
In my experience, there is no single best way. Therefore Table 327 on page 225 of the Comprehensive LaTeX Symbol List comes in really handy.
Visited March 8, 2019: Table 528 on page 225 of the Comprehensive LaTeX Symbol List comes in really handy.
In my experience, there is no single best way. Therefore Table 327 on page 225 of the Comprehensive LaTeX Symbol List comes in really handy.
Visited March 8, 2019: Table 528 on page 225 of the Comprehensive LaTeX Symbol List comes in really handy.
edited 10 mins ago
![](https://i.stack.imgur.com/GBA9h.png?s=32&g=1)
![](https://i.stack.imgur.com/GBA9h.png?s=32&g=1)
Kurt
38.8k849163
38.8k849163
answered Feb 21 '13 at 17:29
ChristianChristian
11.4k64088
11.4k64088
2
ehmbm
ehm. Can you underline "experience" with facts about problems ofbm
?
– yo'
Feb 21 '13 at 17:32
3
@tohecz No, unfortunately not. I don't have the particular example anymore. I just happened to stumble on this old question and I thought I'd add this list since I did encounter tricky cases where it was helpful to be able to try different approaches.bm
should surely be the first package to try though. I will add examples where it doesn't work when it ever happens again.
– Christian
Feb 21 '13 at 17:48
1
You can always use boldsymbol{}, but this will only work if there exists a bold version of the symbol in the current font.
– sinner
Jan 15 '15 at 4:44
In my personal experience, pmb (the faked bold) is the most universal
– Dr_Zaszuś
May 11 '15 at 16:57
5
@Szczypawka Most universal ... probably. But also a measure of last resort.
– Christian
May 11 '15 at 18:06
add a comment |
2
ehmbm
ehm. Can you underline "experience" with facts about problems ofbm
?
– yo'
Feb 21 '13 at 17:32
3
@tohecz No, unfortunately not. I don't have the particular example anymore. I just happened to stumble on this old question and I thought I'd add this list since I did encounter tricky cases where it was helpful to be able to try different approaches.bm
should surely be the first package to try though. I will add examples where it doesn't work when it ever happens again.
– Christian
Feb 21 '13 at 17:48
1
You can always use boldsymbol{}, but this will only work if there exists a bold version of the symbol in the current font.
– sinner
Jan 15 '15 at 4:44
In my personal experience, pmb (the faked bold) is the most universal
– Dr_Zaszuś
May 11 '15 at 16:57
5
@Szczypawka Most universal ... probably. But also a measure of last resort.
– Christian
May 11 '15 at 18:06
2
2
ehm
bm
ehm. Can you underline "experience" with facts about problems of bm
?– yo'
Feb 21 '13 at 17:32
ehm
bm
ehm. Can you underline "experience" with facts about problems of bm
?– yo'
Feb 21 '13 at 17:32
3
3
@tohecz No, unfortunately not. I don't have the particular example anymore. I just happened to stumble on this old question and I thought I'd add this list since I did encounter tricky cases where it was helpful to be able to try different approaches.
bm
should surely be the first package to try though. I will add examples where it doesn't work when it ever happens again.– Christian
Feb 21 '13 at 17:48
@tohecz No, unfortunately not. I don't have the particular example anymore. I just happened to stumble on this old question and I thought I'd add this list since I did encounter tricky cases where it was helpful to be able to try different approaches.
bm
should surely be the first package to try though. I will add examples where it doesn't work when it ever happens again.– Christian
Feb 21 '13 at 17:48
1
1
You can always use boldsymbol{}, but this will only work if there exists a bold version of the symbol in the current font.
– sinner
Jan 15 '15 at 4:44
You can always use boldsymbol{}, but this will only work if there exists a bold version of the symbol in the current font.
– sinner
Jan 15 '15 at 4:44
In my personal experience, pmb (the faked bold) is the most universal
– Dr_Zaszuś
May 11 '15 at 16:57
In my personal experience, pmb (the faked bold) is the most universal
– Dr_Zaszuś
May 11 '15 at 16:57
5
5
@Szczypawka Most universal ... probably. But also a measure of last resort.
– Christian
May 11 '15 at 18:06
@Szczypawka Most universal ... probably. But also a measure of last resort.
– Christian
May 11 '15 at 18:06
add a comment |
With unicode-math
you can use symbf{<characters>}
which works for both Greek and Latin letters. (In versions of unicode-math
older than 0.8 the symXXX
macros didn't exist, but you could mathbf{<characters>}
directly.)
Compile with xelatex
or lualatex
.
documentclass{article}
usepackage{unicode-math}
setmathfont{xits-math.otf}
begin{document}
( AaBb∇αβγ ) par
( symbf{AaBb∇αβγ} ) par
( symrm{AaBb∇αβγ} )
end{document}
Does not work for me. Bold latin symbols appear OK, but greek ones (from nabla onwards) don't show. I have XITS Math font correctly installed on my system (linux), and I compiled this MWE with bothxelatex
andlualatex
, with no luck. What am I doing wrong?
– Orestes Mas
May 31 '16 at 16:44
1
Update to my previous comment: I managed to make it work doing the following. 1) Specify math font as setmathfont{XITS Math} (I'm on a linux system and that is the name of the font my system reports) and 2) Adding usepackage{bm} AFTER setting the math font. Without step 2), greek bold characters don't show up and latin bold appears to be typeset in Latin Modern Bold
– Orestes Mas
May 31 '16 at 17:07
4
@OrestesMas There were some updates tounicode-math
recently, usesymbf
instead ofmathbf
.
– Torbjørn T.
May 31 '16 at 18:25
add a comment |
With unicode-math
you can use symbf{<characters>}
which works for both Greek and Latin letters. (In versions of unicode-math
older than 0.8 the symXXX
macros didn't exist, but you could mathbf{<characters>}
directly.)
Compile with xelatex
or lualatex
.
documentclass{article}
usepackage{unicode-math}
setmathfont{xits-math.otf}
begin{document}
( AaBb∇αβγ ) par
( symbf{AaBb∇αβγ} ) par
( symrm{AaBb∇αβγ} )
end{document}
Does not work for me. Bold latin symbols appear OK, but greek ones (from nabla onwards) don't show. I have XITS Math font correctly installed on my system (linux), and I compiled this MWE with bothxelatex
andlualatex
, with no luck. What am I doing wrong?
– Orestes Mas
May 31 '16 at 16:44
1
Update to my previous comment: I managed to make it work doing the following. 1) Specify math font as setmathfont{XITS Math} (I'm on a linux system and that is the name of the font my system reports) and 2) Adding usepackage{bm} AFTER setting the math font. Without step 2), greek bold characters don't show up and latin bold appears to be typeset in Latin Modern Bold
– Orestes Mas
May 31 '16 at 17:07
4
@OrestesMas There were some updates tounicode-math
recently, usesymbf
instead ofmathbf
.
– Torbjørn T.
May 31 '16 at 18:25
add a comment |
With unicode-math
you can use symbf{<characters>}
which works for both Greek and Latin letters. (In versions of unicode-math
older than 0.8 the symXXX
macros didn't exist, but you could mathbf{<characters>}
directly.)
Compile with xelatex
or lualatex
.
documentclass{article}
usepackage{unicode-math}
setmathfont{xits-math.otf}
begin{document}
( AaBb∇αβγ ) par
( symbf{AaBb∇αβγ} ) par
( symrm{AaBb∇αβγ} )
end{document}
With unicode-math
you can use symbf{<characters>}
which works for both Greek and Latin letters. (In versions of unicode-math
older than 0.8 the symXXX
macros didn't exist, but you could mathbf{<characters>}
directly.)
Compile with xelatex
or lualatex
.
documentclass{article}
usepackage{unicode-math}
setmathfont{xits-math.otf}
begin{document}
( AaBb∇αβγ ) par
( symbf{AaBb∇αβγ} ) par
( symrm{AaBb∇αβγ} )
end{document}
edited May 31 '16 at 18:25
answered Dec 17 '11 at 20:54
Torbjørn T.Torbjørn T.
158k13254443
158k13254443
Does not work for me. Bold latin symbols appear OK, but greek ones (from nabla onwards) don't show. I have XITS Math font correctly installed on my system (linux), and I compiled this MWE with bothxelatex
andlualatex
, with no luck. What am I doing wrong?
– Orestes Mas
May 31 '16 at 16:44
1
Update to my previous comment: I managed to make it work doing the following. 1) Specify math font as setmathfont{XITS Math} (I'm on a linux system and that is the name of the font my system reports) and 2) Adding usepackage{bm} AFTER setting the math font. Without step 2), greek bold characters don't show up and latin bold appears to be typeset in Latin Modern Bold
– Orestes Mas
May 31 '16 at 17:07
4
@OrestesMas There were some updates tounicode-math
recently, usesymbf
instead ofmathbf
.
– Torbjørn T.
May 31 '16 at 18:25
add a comment |
Does not work for me. Bold latin symbols appear OK, but greek ones (from nabla onwards) don't show. I have XITS Math font correctly installed on my system (linux), and I compiled this MWE with bothxelatex
andlualatex
, with no luck. What am I doing wrong?
– Orestes Mas
May 31 '16 at 16:44
1
Update to my previous comment: I managed to make it work doing the following. 1) Specify math font as setmathfont{XITS Math} (I'm on a linux system and that is the name of the font my system reports) and 2) Adding usepackage{bm} AFTER setting the math font. Without step 2), greek bold characters don't show up and latin bold appears to be typeset in Latin Modern Bold
– Orestes Mas
May 31 '16 at 17:07
4
@OrestesMas There were some updates tounicode-math
recently, usesymbf
instead ofmathbf
.
– Torbjørn T.
May 31 '16 at 18:25
Does not work for me. Bold latin symbols appear OK, but greek ones (from nabla onwards) don't show. I have XITS Math font correctly installed on my system (linux), and I compiled this MWE with both
xelatex
and lualatex
, with no luck. What am I doing wrong?– Orestes Mas
May 31 '16 at 16:44
Does not work for me. Bold latin symbols appear OK, but greek ones (from nabla onwards) don't show. I have XITS Math font correctly installed on my system (linux), and I compiled this MWE with both
xelatex
and lualatex
, with no luck. What am I doing wrong?– Orestes Mas
May 31 '16 at 16:44
1
1
Update to my previous comment: I managed to make it work doing the following. 1) Specify math font as setmathfont{XITS Math} (I'm on a linux system and that is the name of the font my system reports) and 2) Adding usepackage{bm} AFTER setting the math font. Without step 2), greek bold characters don't show up and latin bold appears to be typeset in Latin Modern Bold
– Orestes Mas
May 31 '16 at 17:07
Update to my previous comment: I managed to make it work doing the following. 1) Specify math font as setmathfont{XITS Math} (I'm on a linux system and that is the name of the font my system reports) and 2) Adding usepackage{bm} AFTER setting the math font. Without step 2), greek bold characters don't show up and latin bold appears to be typeset in Latin Modern Bold
– Orestes Mas
May 31 '16 at 17:07
4
4
@OrestesMas There were some updates to
unicode-math
recently, use symbf
instead of mathbf
.– Torbjørn T.
May 31 '16 at 18:25
@OrestesMas There were some updates to
unicode-math
recently, use symbf
instead of mathbf
.– Torbjørn T.
May 31 '16 at 18:25
add a comment |
Another possibility is boldmath
, though I would prefer boldsymbol
of amsmath
as well. unboldmath
switches back to the normal math font.
6
Why isboldsymbol
preferred overboldmath
?
– drs
May 18 '13 at 1:18
5
@drsboldsymbol
is included in the packageamsmath
, which is ubiquitous, whileboldmath
is not.
– glarrain
Jan 9 '14 at 19:24
2
I don't know why but$boldmath{phi}$
does not work for me, yet$boldsymbol{phi}$
does.
– displayname
Apr 12 '17 at 15:26
@displaynameboldmath
is a declaration, so you want to use it like this:{boldmath $phi$}
. Also(phi)
is recommended. See tex.stackexchange.com/questions/510/…
– L. F.
Feb 26 at 12:45
add a comment |
Another possibility is boldmath
, though I would prefer boldsymbol
of amsmath
as well. unboldmath
switches back to the normal math font.
6
Why isboldsymbol
preferred overboldmath
?
– drs
May 18 '13 at 1:18
5
@drsboldsymbol
is included in the packageamsmath
, which is ubiquitous, whileboldmath
is not.
– glarrain
Jan 9 '14 at 19:24
2
I don't know why but$boldmath{phi}$
does not work for me, yet$boldsymbol{phi}$
does.
– displayname
Apr 12 '17 at 15:26
@displaynameboldmath
is a declaration, so you want to use it like this:{boldmath $phi$}
. Also(phi)
is recommended. See tex.stackexchange.com/questions/510/…
– L. F.
Feb 26 at 12:45
add a comment |
Another possibility is boldmath
, though I would prefer boldsymbol
of amsmath
as well. unboldmath
switches back to the normal math font.
Another possibility is boldmath
, though I would prefer boldsymbol
of amsmath
as well. unboldmath
switches back to the normal math font.
edited Nov 25 '12 at 1:30
doncherry
35.2k23136208
35.2k23136208
answered Jul 30 '10 at 10:29
Stefan Kottwitz♦Stefan Kottwitz
178k65572761
178k65572761
6
Why isboldsymbol
preferred overboldmath
?
– drs
May 18 '13 at 1:18
5
@drsboldsymbol
is included in the packageamsmath
, which is ubiquitous, whileboldmath
is not.
– glarrain
Jan 9 '14 at 19:24
2
I don't know why but$boldmath{phi}$
does not work for me, yet$boldsymbol{phi}$
does.
– displayname
Apr 12 '17 at 15:26
@displaynameboldmath
is a declaration, so you want to use it like this:{boldmath $phi$}
. Also(phi)
is recommended. See tex.stackexchange.com/questions/510/…
– L. F.
Feb 26 at 12:45
add a comment |
6
Why isboldsymbol
preferred overboldmath
?
– drs
May 18 '13 at 1:18
5
@drsboldsymbol
is included in the packageamsmath
, which is ubiquitous, whileboldmath
is not.
– glarrain
Jan 9 '14 at 19:24
2
I don't know why but$boldmath{phi}$
does not work for me, yet$boldsymbol{phi}$
does.
– displayname
Apr 12 '17 at 15:26
@displaynameboldmath
is a declaration, so you want to use it like this:{boldmath $phi$}
. Also(phi)
is recommended. See tex.stackexchange.com/questions/510/…
– L. F.
Feb 26 at 12:45
6
6
Why is
boldsymbol
preferred over boldmath
?– drs
May 18 '13 at 1:18
Why is
boldsymbol
preferred over boldmath
?– drs
May 18 '13 at 1:18
5
5
@drs
boldsymbol
is included in the package amsmath
, which is ubiquitous, while boldmath
is not.– glarrain
Jan 9 '14 at 19:24
@drs
boldsymbol
is included in the package amsmath
, which is ubiquitous, while boldmath
is not.– glarrain
Jan 9 '14 at 19:24
2
2
I don't know why but
$boldmath{phi}$
does not work for me, yet $boldsymbol{phi}$
does.– displayname
Apr 12 '17 at 15:26
I don't know why but
$boldmath{phi}$
does not work for me, yet $boldsymbol{phi}$
does.– displayname
Apr 12 '17 at 15:26
@displayname
boldmath
is a declaration, so you want to use it like this: {boldmath $phi$}
. Also (phi)
is recommended. See tex.stackexchange.com/questions/510/…– L. F.
Feb 26 at 12:45
@displayname
boldmath
is a declaration, so you want to use it like this: {boldmath $phi$}
. Also (phi)
is recommended. See tex.stackexchange.com/questions/510/…– L. F.
Feb 26 at 12:45
add a comment |
If you use the package bm
you can do $bm{a}=bm{alpha}$
etc.
add a comment |
If you use the package bm
you can do $bm{a}=bm{alpha}$
etc.
add a comment |
If you use the package bm
you can do $bm{a}=bm{alpha}$
etc.
If you use the package bm
you can do $bm{a}=bm{alpha}$
etc.
edited Nov 25 '12 at 1:31
doncherry
35.2k23136208
35.2k23136208
answered Sep 27 '10 at 18:48
Konrad SwanepoelKonrad Swanepoel
708512
708512
add a comment |
add a comment |
While bm
and boldmath
are some good options in LaTeX, modern packages for XeLaTex can give a lot more control over the fonts from the very beginning, without the need to use commands different from the standard mathbf
that every one expects naively to work the first time one tries to write bold italic characters.
In XeLaTeX (part of TeXLive), the package fontspec
gives a lot of freedom when dealing with fonts. If you want even more flexibility for mathematical input, you can try using the package unicode-math
(that is built on fontspec
). Nevertheless you will find the bm and boldsymbol traditional commands don't work. You can nonetheless specify how you want it to deal with your bold math symbols using an option while loading the unicode-math
package. usepackage[bold-style=ISO]{unicode-math}
will give the recommended italic bold math symbols for both greek and latin characters, while usepackage[bold-style=TeX]{unicode-math}
will give upright latin characters. This is explained in the unicode-math documentation .
This minimal working example:
%run this with XeLaTeX!!
documentclass{article}
usepackage[bold-style=ISO]{unicode-math}
%usepackage[bold-style=TeX]{unicode-math}
setmainfont{XITS}
setmathfont{XITS Math}
begin{document}
This is common math $O(log n)+O(lambda,,epsilon)$
This is bold and italic $mathbf{O(log n)}+mathbf{O(lambda,,epsilon)}$ where it must :)
end{document}
gives
Welcome to TeX.SX.
– Claudio Fiandrino
Mar 27 '13 at 10:55
1
Welcome to TeX.sx! Rather than posting identical answers to different questions, you should post your answer at the most appropriate place (here: tex.stackexchange.com/a/104524/510) and (as soon as you have 50 rep) add comments with links at other places.
– lockstep
Mar 27 '13 at 10:55
add a comment |
While bm
and boldmath
are some good options in LaTeX, modern packages for XeLaTex can give a lot more control over the fonts from the very beginning, without the need to use commands different from the standard mathbf
that every one expects naively to work the first time one tries to write bold italic characters.
In XeLaTeX (part of TeXLive), the package fontspec
gives a lot of freedom when dealing with fonts. If you want even more flexibility for mathematical input, you can try using the package unicode-math
(that is built on fontspec
). Nevertheless you will find the bm and boldsymbol traditional commands don't work. You can nonetheless specify how you want it to deal with your bold math symbols using an option while loading the unicode-math
package. usepackage[bold-style=ISO]{unicode-math}
will give the recommended italic bold math symbols for both greek and latin characters, while usepackage[bold-style=TeX]{unicode-math}
will give upright latin characters. This is explained in the unicode-math documentation .
This minimal working example:
%run this with XeLaTeX!!
documentclass{article}
usepackage[bold-style=ISO]{unicode-math}
%usepackage[bold-style=TeX]{unicode-math}
setmainfont{XITS}
setmathfont{XITS Math}
begin{document}
This is common math $O(log n)+O(lambda,,epsilon)$
This is bold and italic $mathbf{O(log n)}+mathbf{O(lambda,,epsilon)}$ where it must :)
end{document}
gives
Welcome to TeX.SX.
– Claudio Fiandrino
Mar 27 '13 at 10:55
1
Welcome to TeX.sx! Rather than posting identical answers to different questions, you should post your answer at the most appropriate place (here: tex.stackexchange.com/a/104524/510) and (as soon as you have 50 rep) add comments with links at other places.
– lockstep
Mar 27 '13 at 10:55
add a comment |
While bm
and boldmath
are some good options in LaTeX, modern packages for XeLaTex can give a lot more control over the fonts from the very beginning, without the need to use commands different from the standard mathbf
that every one expects naively to work the first time one tries to write bold italic characters.
In XeLaTeX (part of TeXLive), the package fontspec
gives a lot of freedom when dealing with fonts. If you want even more flexibility for mathematical input, you can try using the package unicode-math
(that is built on fontspec
). Nevertheless you will find the bm and boldsymbol traditional commands don't work. You can nonetheless specify how you want it to deal with your bold math symbols using an option while loading the unicode-math
package. usepackage[bold-style=ISO]{unicode-math}
will give the recommended italic bold math symbols for both greek and latin characters, while usepackage[bold-style=TeX]{unicode-math}
will give upright latin characters. This is explained in the unicode-math documentation .
This minimal working example:
%run this with XeLaTeX!!
documentclass{article}
usepackage[bold-style=ISO]{unicode-math}
%usepackage[bold-style=TeX]{unicode-math}
setmainfont{XITS}
setmathfont{XITS Math}
begin{document}
This is common math $O(log n)+O(lambda,,epsilon)$
This is bold and italic $mathbf{O(log n)}+mathbf{O(lambda,,epsilon)}$ where it must :)
end{document}
gives
While bm
and boldmath
are some good options in LaTeX, modern packages for XeLaTex can give a lot more control over the fonts from the very beginning, without the need to use commands different from the standard mathbf
that every one expects naively to work the first time one tries to write bold italic characters.
In XeLaTeX (part of TeXLive), the package fontspec
gives a lot of freedom when dealing with fonts. If you want even more flexibility for mathematical input, you can try using the package unicode-math
(that is built on fontspec
). Nevertheless you will find the bm and boldsymbol traditional commands don't work. You can nonetheless specify how you want it to deal with your bold math symbols using an option while loading the unicode-math
package. usepackage[bold-style=ISO]{unicode-math}
will give the recommended italic bold math symbols for both greek and latin characters, while usepackage[bold-style=TeX]{unicode-math}
will give upright latin characters. This is explained in the unicode-math documentation .
This minimal working example:
%run this with XeLaTeX!!
documentclass{article}
usepackage[bold-style=ISO]{unicode-math}
%usepackage[bold-style=TeX]{unicode-math}
setmainfont{XITS}
setmathfont{XITS Math}
begin{document}
This is common math $O(log n)+O(lambda,,epsilon)$
This is bold and italic $mathbf{O(log n)}+mathbf{O(lambda,,epsilon)}$ where it must :)
end{document}
gives
edited Aug 26 '15 at 13:42
darthbith
5,49831949
5,49831949
answered Mar 27 '13 at 10:30
Javier E. CuchíJavier E. Cuchí
43837
43837
Welcome to TeX.SX.
– Claudio Fiandrino
Mar 27 '13 at 10:55
1
Welcome to TeX.sx! Rather than posting identical answers to different questions, you should post your answer at the most appropriate place (here: tex.stackexchange.com/a/104524/510) and (as soon as you have 50 rep) add comments with links at other places.
– lockstep
Mar 27 '13 at 10:55
add a comment |
Welcome to TeX.SX.
– Claudio Fiandrino
Mar 27 '13 at 10:55
1
Welcome to TeX.sx! Rather than posting identical answers to different questions, you should post your answer at the most appropriate place (here: tex.stackexchange.com/a/104524/510) and (as soon as you have 50 rep) add comments with links at other places.
– lockstep
Mar 27 '13 at 10:55
Welcome to TeX.SX.
– Claudio Fiandrino
Mar 27 '13 at 10:55
Welcome to TeX.SX.
– Claudio Fiandrino
Mar 27 '13 at 10:55
1
1
Welcome to TeX.sx! Rather than posting identical answers to different questions, you should post your answer at the most appropriate place (here: tex.stackexchange.com/a/104524/510) and (as soon as you have 50 rep) add comments with links at other places.
– lockstep
Mar 27 '13 at 10:55
Welcome to TeX.sx! Rather than posting identical answers to different questions, you should post your answer at the most appropriate place (here: tex.stackexchange.com/a/104524/510) and (as soon as you have 50 rep) add comments with links at other places.
– lockstep
Mar 27 '13 at 10:55
add a comment |
In order to have just one command for both bold text and bold math, one can use the solution suggested on LaTeX Community (/forum/viewtopic.php?t=10866&f=44#p42084, link not allowed). Editing this solution slightly in order to incorporate the bm
package, one could use the following.
usepackage{bm}
newcommand*{B}[1]{ifmmodebm{#1}elsetextbf{#1}fi}
add a comment |
In order to have just one command for both bold text and bold math, one can use the solution suggested on LaTeX Community (/forum/viewtopic.php?t=10866&f=44#p42084, link not allowed). Editing this solution slightly in order to incorporate the bm
package, one could use the following.
usepackage{bm}
newcommand*{B}[1]{ifmmodebm{#1}elsetextbf{#1}fi}
add a comment |
In order to have just one command for both bold text and bold math, one can use the solution suggested on LaTeX Community (/forum/viewtopic.php?t=10866&f=44#p42084, link not allowed). Editing this solution slightly in order to incorporate the bm
package, one could use the following.
usepackage{bm}
newcommand*{B}[1]{ifmmodebm{#1}elsetextbf{#1}fi}
In order to have just one command for both bold text and bold math, one can use the solution suggested on LaTeX Community (/forum/viewtopic.php?t=10866&f=44#p42084, link not allowed). Editing this solution slightly in order to incorporate the bm
package, one could use the following.
usepackage{bm}
newcommand*{B}[1]{ifmmodebm{#1}elsetextbf{#1}fi}
answered Jan 12 '15 at 13:42
BetohakuBetohaku
1,032920
1,032920
add a comment |
add a comment |
My solution (the one that I use) is the mathversion{bold}
and mathversion{normal}
commands.
This piece of code is not a MWE —however, it shows how to use them:
mathversion{bold}
section{Behavior of $f$ as a function of $lambda$}label{sec:1}
mathversion{normal}
And now, imagine that mathversion{bold}textbf{we want to put some
text in bold, and that this text contains some inline equation such as
$sum_{j=0}^{t-1}{{p_mathrm{y}(lambda=2)}^j}$.}mathversion{normal}
Hope it helps.
1
Very good option if you want to enable bold math globally.
– koalo
Jan 31 '18 at 19:20
add a comment |
My solution (the one that I use) is the mathversion{bold}
and mathversion{normal}
commands.
This piece of code is not a MWE —however, it shows how to use them:
mathversion{bold}
section{Behavior of $f$ as a function of $lambda$}label{sec:1}
mathversion{normal}
And now, imagine that mathversion{bold}textbf{we want to put some
text in bold, and that this text contains some inline equation such as
$sum_{j=0}^{t-1}{{p_mathrm{y}(lambda=2)}^j}$.}mathversion{normal}
Hope it helps.
1
Very good option if you want to enable bold math globally.
– koalo
Jan 31 '18 at 19:20
add a comment |
My solution (the one that I use) is the mathversion{bold}
and mathversion{normal}
commands.
This piece of code is not a MWE —however, it shows how to use them:
mathversion{bold}
section{Behavior of $f$ as a function of $lambda$}label{sec:1}
mathversion{normal}
And now, imagine that mathversion{bold}textbf{we want to put some
text in bold, and that this text contains some inline equation such as
$sum_{j=0}^{t-1}{{p_mathrm{y}(lambda=2)}^j}$.}mathversion{normal}
Hope it helps.
My solution (the one that I use) is the mathversion{bold}
and mathversion{normal}
commands.
This piece of code is not a MWE —however, it shows how to use them:
mathversion{bold}
section{Behavior of $f$ as a function of $lambda$}label{sec:1}
mathversion{normal}
And now, imagine that mathversion{bold}textbf{we want to put some
text in bold, and that this text contains some inline equation such as
$sum_{j=0}^{t-1}{{p_mathrm{y}(lambda=2)}^j}$.}mathversion{normal}
Hope it helps.
answered Sep 23 '15 at 16:10
![](https://i.stack.imgur.com/VIUMb.jpg?s=32&g=1)
![](https://i.stack.imgur.com/VIUMb.jpg?s=32&g=1)
VicentVicent
85821021
85821021
1
Very good option if you want to enable bold math globally.
– koalo
Jan 31 '18 at 19:20
add a comment |
1
Very good option if you want to enable bold math globally.
– koalo
Jan 31 '18 at 19:20
1
1
Very good option if you want to enable bold math globally.
– koalo
Jan 31 '18 at 19:20
Very good option if you want to enable bold math globally.
– koalo
Jan 31 '18 at 19:20
add a comment |
Another option:
documentclass{article}
newcommand{boldm}[1] {mathversion{bold}#1mathversion{normal}}
begin{document}
There is a normal symbol, $p_1$. Now, a bold symbol: {boldm $p_2$}. It works!
end{document}
Output:
$boldsymbol{x_0}$ was not working for me in either chapter{title} or section{title} (but did in subsection{title}, go figure) but your {boldm $x_{0}$} saved my day. And no need for any additional package. Totally amazing.
– schremmer
Nov 11 '18 at 4:44
Just one bit of trouble: $x_{0}$ is now bold in the toc. Oh well.
– schremmer
Nov 11 '18 at 4:55
These cant’t be nested. Perhaps wrap in ambox
?
– Davislor
Jan 24 at 22:33
add a comment |
Another option:
documentclass{article}
newcommand{boldm}[1] {mathversion{bold}#1mathversion{normal}}
begin{document}
There is a normal symbol, $p_1$. Now, a bold symbol: {boldm $p_2$}. It works!
end{document}
Output:
$boldsymbol{x_0}$ was not working for me in either chapter{title} or section{title} (but did in subsection{title}, go figure) but your {boldm $x_{0}$} saved my day. And no need for any additional package. Totally amazing.
– schremmer
Nov 11 '18 at 4:44
Just one bit of trouble: $x_{0}$ is now bold in the toc. Oh well.
– schremmer
Nov 11 '18 at 4:55
These cant’t be nested. Perhaps wrap in ambox
?
– Davislor
Jan 24 at 22:33
add a comment |
Another option:
documentclass{article}
newcommand{boldm}[1] {mathversion{bold}#1mathversion{normal}}
begin{document}
There is a normal symbol, $p_1$. Now, a bold symbol: {boldm $p_2$}. It works!
end{document}
Output:
Another option:
documentclass{article}
newcommand{boldm}[1] {mathversion{bold}#1mathversion{normal}}
begin{document}
There is a normal symbol, $p_1$. Now, a bold symbol: {boldm $p_2$}. It works!
end{document}
Output:
edited Feb 3 '16 at 12:54
answered Feb 3 '16 at 12:03
![](https://i.stack.imgur.com/eTspy.png?s=32&g=1)
![](https://i.stack.imgur.com/eTspy.png?s=32&g=1)
hvescovihvescovi
312
312
$boldsymbol{x_0}$ was not working for me in either chapter{title} or section{title} (but did in subsection{title}, go figure) but your {boldm $x_{0}$} saved my day. And no need for any additional package. Totally amazing.
– schremmer
Nov 11 '18 at 4:44
Just one bit of trouble: $x_{0}$ is now bold in the toc. Oh well.
– schremmer
Nov 11 '18 at 4:55
These cant’t be nested. Perhaps wrap in ambox
?
– Davislor
Jan 24 at 22:33
add a comment |
$boldsymbol{x_0}$ was not working for me in either chapter{title} or section{title} (but did in subsection{title}, go figure) but your {boldm $x_{0}$} saved my day. And no need for any additional package. Totally amazing.
– schremmer
Nov 11 '18 at 4:44
Just one bit of trouble: $x_{0}$ is now bold in the toc. Oh well.
– schremmer
Nov 11 '18 at 4:55
These cant’t be nested. Perhaps wrap in ambox
?
– Davislor
Jan 24 at 22:33
$boldsymbol{x_0}$ was not working for me in either chapter{title} or section{title} (but did in subsection{title}, go figure) but your {boldm $x_{0}$} saved my day. And no need for any additional package. Totally amazing.
– schremmer
Nov 11 '18 at 4:44
$boldsymbol{x_0}$ was not working for me in either chapter{title} or section{title} (but did in subsection{title}, go figure) but your {boldm $x_{0}$} saved my day. And no need for any additional package. Totally amazing.
– schremmer
Nov 11 '18 at 4:44
Just one bit of trouble: $x_{0}$ is now bold in the toc. Oh well.
– schremmer
Nov 11 '18 at 4:55
Just one bit of trouble: $x_{0}$ is now bold in the toc. Oh well.
– schremmer
Nov 11 '18 at 4:55
These cant’t be nested. Perhaps wrap in a
mbox
?– Davislor
Jan 24 at 22:33
These cant’t be nested. Perhaps wrap in a
mbox
?– Davislor
Jan 24 at 22:33
add a comment |
Use the command boldsymbol{YOUR_SYMBOL}
add a comment |
Use the command boldsymbol{YOUR_SYMBOL}
add a comment |
Use the command boldsymbol{YOUR_SYMBOL}
Use the command boldsymbol{YOUR_SYMBOL}
edited Apr 6 '16 at 4:24
Stefan Pinnow
20.1k83276
20.1k83276
answered Apr 6 '16 at 1:15
MehdiMehdi
311
311
add a comment |
add a comment |
You can use physics
package and write any math symbol in boldface by using command vb{}
inside mathmode, e.g. $vb{Psi}$
will yield Ψ.
add a comment |
You can use physics
package and write any math symbol in boldface by using command vb{}
inside mathmode, e.g. $vb{Psi}$
will yield Ψ.
add a comment |
You can use physics
package and write any math symbol in boldface by using command vb{}
inside mathmode, e.g. $vb{Psi}$
will yield Ψ.
You can use physics
package and write any math symbol in boldface by using command vb{}
inside mathmode, e.g. $vb{Psi}$
will yield Ψ.
edited Jan 14 '18 at 15:24
![](https://i.stack.imgur.com/hg4Ng.png?s=32&g=1)
![](https://i.stack.imgur.com/hg4Ng.png?s=32&g=1)
Cragfelt
2,92431028
2,92431028
answered Jan 14 '18 at 14:58
Bilal AzamBilal Azam
311
311
add a comment |
add a comment |
The unicode-math
package supports several commands for bold symbols beyond what have been mentioned in previous answers, including mathbf
, symbf
, symbfup
, symbfit
, boldmath
and mathversion{bold}
. If you load amsmath
or mathtools
first, it will also redefine boldsymbol
.
If you load a math font that has a bold version, unicode-math
will load it as version=bold
. The ones that ship with TeX Live 2018 are Khaled Hosny’s XITS Math Bold and Libertinus Math Bold, and there is a Minion Math Bold as well. It is also possible to load any math font with setmathfont[version=bold]
.
Here’s a brief MWE that uses boldmath
, symbf
and boldsymbol
. Note that mathbf
will use the bold weight of the main text font, symbf
will use the mathematical bold letters and numerals defined in the Unicode Mathematical Alphenumeric Characters block, and boldmath
, mathversion{bold}
and boldsymbol
will use the bold math font (if there is one).
documentclass[varwidth = 10cm, preview]{standalone}
usepackage{mathtools}
usepackage[math-style=ISO]{unicode-math}
usepackage{microtype}
defaultfontfeatures{ Scale = MatchUppercase }
setmainfont{Libertinus Serif}[Scale = 1.0, Ligatures = Common]
setsansfont{Libertinus Sans}
setmonofont{Libertinus Mono}
setmathfont{Libertinus Math}
begin{document}
section*{boldmath Reasoning from (symbf{A} vee symbf{B})}
If we have (symbf{A} vee symbf{B}) and (symbf{A}), disjunctive syllogism
(classically known as textbf{textit{modus ponendo tollens}}, and also known
as textbf{disjunction elimination} or {boldmath (vee E)}) is the rule
that lets us conclude (boldsymboltherefore symbf{B}).
end{document}
There are several ways to tweak this behavior. By default, mathbf
renders bold capital letters upright and bold lowercase letters italic, but [math-style=ISO]
makes italic the default for everything, including regular-weight uppercase Greek. You can change only the behavior of bold uppercase letters with bold-style=ISO]
or [bold-style=upright]
. You can also specify symbfup
for bold upright or symbfit
for bold italic.
add a comment |
The unicode-math
package supports several commands for bold symbols beyond what have been mentioned in previous answers, including mathbf
, symbf
, symbfup
, symbfit
, boldmath
and mathversion{bold}
. If you load amsmath
or mathtools
first, it will also redefine boldsymbol
.
If you load a math font that has a bold version, unicode-math
will load it as version=bold
. The ones that ship with TeX Live 2018 are Khaled Hosny’s XITS Math Bold and Libertinus Math Bold, and there is a Minion Math Bold as well. It is also possible to load any math font with setmathfont[version=bold]
.
Here’s a brief MWE that uses boldmath
, symbf
and boldsymbol
. Note that mathbf
will use the bold weight of the main text font, symbf
will use the mathematical bold letters and numerals defined in the Unicode Mathematical Alphenumeric Characters block, and boldmath
, mathversion{bold}
and boldsymbol
will use the bold math font (if there is one).
documentclass[varwidth = 10cm, preview]{standalone}
usepackage{mathtools}
usepackage[math-style=ISO]{unicode-math}
usepackage{microtype}
defaultfontfeatures{ Scale = MatchUppercase }
setmainfont{Libertinus Serif}[Scale = 1.0, Ligatures = Common]
setsansfont{Libertinus Sans}
setmonofont{Libertinus Mono}
setmathfont{Libertinus Math}
begin{document}
section*{boldmath Reasoning from (symbf{A} vee symbf{B})}
If we have (symbf{A} vee symbf{B}) and (symbf{A}), disjunctive syllogism
(classically known as textbf{textit{modus ponendo tollens}}, and also known
as textbf{disjunction elimination} or {boldmath (vee E)}) is the rule
that lets us conclude (boldsymboltherefore symbf{B}).
end{document}
There are several ways to tweak this behavior. By default, mathbf
renders bold capital letters upright and bold lowercase letters italic, but [math-style=ISO]
makes italic the default for everything, including regular-weight uppercase Greek. You can change only the behavior of bold uppercase letters with bold-style=ISO]
or [bold-style=upright]
. You can also specify symbfup
for bold upright or symbfit
for bold italic.
add a comment |
The unicode-math
package supports several commands for bold symbols beyond what have been mentioned in previous answers, including mathbf
, symbf
, symbfup
, symbfit
, boldmath
and mathversion{bold}
. If you load amsmath
or mathtools
first, it will also redefine boldsymbol
.
If you load a math font that has a bold version, unicode-math
will load it as version=bold
. The ones that ship with TeX Live 2018 are Khaled Hosny’s XITS Math Bold and Libertinus Math Bold, and there is a Minion Math Bold as well. It is also possible to load any math font with setmathfont[version=bold]
.
Here’s a brief MWE that uses boldmath
, symbf
and boldsymbol
. Note that mathbf
will use the bold weight of the main text font, symbf
will use the mathematical bold letters and numerals defined in the Unicode Mathematical Alphenumeric Characters block, and boldmath
, mathversion{bold}
and boldsymbol
will use the bold math font (if there is one).
documentclass[varwidth = 10cm, preview]{standalone}
usepackage{mathtools}
usepackage[math-style=ISO]{unicode-math}
usepackage{microtype}
defaultfontfeatures{ Scale = MatchUppercase }
setmainfont{Libertinus Serif}[Scale = 1.0, Ligatures = Common]
setsansfont{Libertinus Sans}
setmonofont{Libertinus Mono}
setmathfont{Libertinus Math}
begin{document}
section*{boldmath Reasoning from (symbf{A} vee symbf{B})}
If we have (symbf{A} vee symbf{B}) and (symbf{A}), disjunctive syllogism
(classically known as textbf{textit{modus ponendo tollens}}, and also known
as textbf{disjunction elimination} or {boldmath (vee E)}) is the rule
that lets us conclude (boldsymboltherefore symbf{B}).
end{document}
There are several ways to tweak this behavior. By default, mathbf
renders bold capital letters upright and bold lowercase letters italic, but [math-style=ISO]
makes italic the default for everything, including regular-weight uppercase Greek. You can change only the behavior of bold uppercase letters with bold-style=ISO]
or [bold-style=upright]
. You can also specify symbfup
for bold upright or symbfit
for bold italic.
The unicode-math
package supports several commands for bold symbols beyond what have been mentioned in previous answers, including mathbf
, symbf
, symbfup
, symbfit
, boldmath
and mathversion{bold}
. If you load amsmath
or mathtools
first, it will also redefine boldsymbol
.
If you load a math font that has a bold version, unicode-math
will load it as version=bold
. The ones that ship with TeX Live 2018 are Khaled Hosny’s XITS Math Bold and Libertinus Math Bold, and there is a Minion Math Bold as well. It is also possible to load any math font with setmathfont[version=bold]
.
Here’s a brief MWE that uses boldmath
, symbf
and boldsymbol
. Note that mathbf
will use the bold weight of the main text font, symbf
will use the mathematical bold letters and numerals defined in the Unicode Mathematical Alphenumeric Characters block, and boldmath
, mathversion{bold}
and boldsymbol
will use the bold math font (if there is one).
documentclass[varwidth = 10cm, preview]{standalone}
usepackage{mathtools}
usepackage[math-style=ISO]{unicode-math}
usepackage{microtype}
defaultfontfeatures{ Scale = MatchUppercase }
setmainfont{Libertinus Serif}[Scale = 1.0, Ligatures = Common]
setsansfont{Libertinus Sans}
setmonofont{Libertinus Mono}
setmathfont{Libertinus Math}
begin{document}
section*{boldmath Reasoning from (symbf{A} vee symbf{B})}
If we have (symbf{A} vee symbf{B}) and (symbf{A}), disjunctive syllogism
(classically known as textbf{textit{modus ponendo tollens}}, and also known
as textbf{disjunction elimination} or {boldmath (vee E)}) is the rule
that lets us conclude (boldsymboltherefore symbf{B}).
end{document}
There are several ways to tweak this behavior. By default, mathbf
renders bold capital letters upright and bold lowercase letters italic, but [math-style=ISO]
makes italic the default for everything, including regular-weight uppercase Greek. You can change only the behavior of bold uppercase letters with bold-style=ISO]
or [bold-style=upright]
. You can also specify symbfup
for bold upright or symbfit
for bold italic.
edited Jan 24 at 22:44
answered Jan 24 at 22:32
DavislorDavislor
6,5421329
6,5421329
add a comment |
add a comment |
Observe how ugly pmb
is in the following example, compared to bm
:
documentclass{article}
usepackage{amsmath, bm}
begin{document}
$$Psi_n pmb{Psi_n} bm{Psi_n} boldsymbol{Psi_n} Psi_n$$
end{document}
add a comment |
Observe how ugly pmb
is in the following example, compared to bm
:
documentclass{article}
usepackage{amsmath, bm}
begin{document}
$$Psi_n pmb{Psi_n} bm{Psi_n} boldsymbol{Psi_n} Psi_n$$
end{document}
add a comment |
Observe how ugly pmb
is in the following example, compared to bm
:
documentclass{article}
usepackage{amsmath, bm}
begin{document}
$$Psi_n pmb{Psi_n} bm{Psi_n} boldsymbol{Psi_n} Psi_n$$
end{document}
Observe how ugly pmb
is in the following example, compared to bm
:
documentclass{article}
usepackage{amsmath, bm}
begin{document}
$$Psi_n pmb{Psi_n} bm{Psi_n} boldsymbol{Psi_n} Psi_n$$
end{document}
answered Feb 25 at 18:04
![](https://i.stack.imgur.com/QSL8v.gif?s=32&g=1)
![](https://i.stack.imgur.com/QSL8v.gif?s=32&g=1)
ahornahorn
299215
299215
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f595%2fhow-can-i-get-bold-math-symbols%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
13
warning: if the default computer modern fonts are used, the weight of bold lowercase greek will not appear as bold as that of bold lowercase roman, and it isn't. default bold math (
mathbf
} with computer modern fonts uses the fontcmbx*
which is an extended font.boldsymbol
orbm
use the onlycm
font that is usually available in bold,cmmib10
, which is not an extended font. thus the bold greek letters are indeed not as "bold" as the roman.– barbara beeton
Aug 26 '12 at 21:45