Math & ScienceAlternate bold "a"

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Alternate bold "a"

Post by Cham »

Currently, the default bold "a" in mathmode is like the one from this compilable code :

Code: Select all

\documentclass[12pt,letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
% A macro to change the default vectors :
\let\oldhat\hat
\renewcommand{\vec}[1]{\mathbf{#1}}
\renewcommand{\hat}[1]{\oldhat{\mathbf{#1}}}

\begin{document}
A vector :
	\begin{equation}
		\vec{a}
	\end{equation}
\end{document}
It has the same shape as "a" (see the small "arm" above the letter). I would like to change it to the one without this "arm" : a letter which looks like a round shape, the same "a" as shown in the code snippet above (hard to describe, since I don't know its name). How can I do that ?
Last edited by Cham on Wed Mar 28, 2012 8:08 pm, edited 1 time 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.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Alternate "a"

Post by localghost »

At the moment I only obtain a bold faced "a" from your code example. Hence I can't follow you. Furthermore I don't understand what you mean with this "arm".


Thorsten
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Alternate bold "a"

Post by Cham »

I mean I would like to have another "a", the one which is rounder. See the difference between "a" and this one :

Code: Select all

a
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Alternate "a"

Post by localghost »

???

A sans serif font perhaps?
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Re: Alternate "a"

Post by Cham »

No, is the same font family, but without the small extension ("arm") on top. LOL, it's hard to describe. I know this thing exists, since I saw it elsewhere (can't remember where, though).
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Alternate bold "a"

Post by localghost »

Cham wrote:No, is the same font family, but without the small extension ("arm") on top. […]
Again, what in your understanding is this "arm"?
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Alternate bold "a"

Post by Cham »

Sorry if I'm dense. English isn't my primary language...

The "a" I'm looking is of the same shape as the one you get without the boldface :

Code: Select all

\documentclass[12pt,letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}

\let\oldhat\hat
\renewcommand{\vec}[1]{\mathbf{#1}}
\renewcommand{\hat}[1]{\oldhat{\mathbf{#1}}}

\begin{document}
A vector :
	\begin{equation}
		\vec{a}
	\end{equation}
	\begin{equation}
		a
	\end{equation}
\end{document}
However, I want it to be in bold...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Alternate bold "a"

Post by localghost »

Cham wrote:[…] English isn't my primary language […]
Neither mine. So what?
Cham wrote:[…] The "a" I'm looking is of the same shape as the one you get without the boldface […] However, I want it to be in bold...
There we go! You want a small, italicized and boldfaced "a" like it is typeset in math mode (just to outline the problem).

There are two possible approaches for math mode.
  • The \boldsymbol command from amsmath
  • The \bm command from bm (bold math)
The respective manuals have more information. Outside math mode this can be done with \textbf{\emph{a}}.
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Alternate bold "a"

Post by Cham »

Ahaa ! Now it works !

I'm using \boldsymbol{a}.

Don't you think it's a better way to present Newton's equation ?

Code: Select all

\documentclass[12pt,letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage{amsmath}
\let\oldhat\hat
\renewcommand{\vec}[1]{\mathbf{#1}}
\renewcommand{\hat}[1]{\oldhat{\mathbf{#1}}}

\begin{document}
Newton's equation :
	\begin{equation}
		\vec{F} = m \, \vec{a}
	\end{equation}
	
	\begin{equation}
		\vec{F} = m \, \boldsymbol{a}
	\end{equation}
\end{document}
Which one is the correct presentation ?
Attachments
newton.jpg
newton.jpg (4.38 KiB) Viewed 5334 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Alternate bold "a"

Post by localghost »

Cham wrote:[…] Which one is the correct presentation ?
The second one is certainly not since it uses two different depictions of vectorial quantities (force and acceleration).

By the way, there is a simpler method to change the depiction of vectorial quantities. If, like in your case, it's about having vectors depicted as upright boldfaced letter instead of italicized letter with an arrow above, a single line in the preamble will do.

Code: Select all

\let\vec\mathbf
Post Reply