Text FormattingHow to have Italic AND bold, in math mode ?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

How to have Italic AND bold, in math mode ?

Post by Cham »

I need to write some math symbols in italics AND bold. Currently, I can't have both styles at the same time. Is there a way ?

EDIT : I've found a solution, but I'm not sure it's a "proper" one :

I added this macro to my preambule :

Code: Select all

\newcommand{\qvec}[1]{\textbf{\textit{#1}}}
Then when I type \qvec{F} for example, I get a bold with italics F.

Is there a better way to do this ?
Last edited by Cham on Fri Jun 17, 2011 5:33 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: How to have Italic AND bold, in math mode ?

Post by Stefan Kottwitz »

Yes, you could load the amsmath package and use the command \boldsymbol{...}.

Stefan
LaTeX.org admin
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

How to have Italic AND bold, in math mode ?

Post by Cham »

Stefan_K wrote:Yes, you could load the amsmath package and use the command \boldsymbol{...}.
Ahaa ! Thanks ! This one gives a better output. So I'll modify my macro. Thanks again.
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Re: How to have Italic AND bold, in math mode ?

Post by Cham »

A stupid question :

Do you think the scalar product of vectors should be in bold ? I mean, should we use \cdot, or \boldsymbol \cdot instead ? (or something like \sdot defined as a macro)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

How to have Italic AND bold, in math mode ?

Post by Stefan Kottwitz »

I've seen the normal \cdot. Check

http://www.google.com/search?q=scalar+product+\cdot+\mathbf

to see the common use, the dot is usually not bold.

Stefan
LaTeX.org admin
Post Reply