7

I use ClassicThesis with the eulermath option. I redefined the standard command for vectors as

\renewcommand{\vec}{\mathbf}

The problem is that that the letter written whit mathbf is completely different to the letter written in eulermath. How can I fix this problem?

This is a MWS:

\documentclass[%
    10pt,%
    a4paper,%
    onside,%
    headinclude,%
    footinclude,%
    BCOR5mm,%
    captions=tableheading]%
        {scrartcl}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage[french]{babel}

\usepackage{amsmath}

\renewcommand{\vec}{\mathbf}

\usepackage[%
    nochapters,%
    beramono,%
    eulermath,%
    pdfspacing,%
    listings]%
        {classicthesis}

\author{Author}
\title{Test}
\date{}

\begin{document}

\maketitle

As you can see, there is a big difference:
\[
   a \neq \vec{a}
\]

\end{document}
  • 1
    You get bold Euler with \mathbold: Section 4.1.3 in the documentation of eulervm. – egreg Oct 4 '12 at 21:55
8

The eulermath option loads the eulervm package, which distinguishes the standard \mathbf command from its own command \mathbold which uses Euler Bold.

So the answer is

\renewcommand{\vec}{\mathbold}

If you want a redefinition that's independent of the eulermath option, you can say

\ifthenelse{\boolean{@eulermath}}
  {\renewcommand{\vec}{\mathbold}}
  {\renewcommand{\vec}{\mathbf}}

enter image description here

Sorry for the non spaced colon, but I can't stand it. :)

  • Thank you! =). (The spaced colon is obtained with french option in babel package... ;) ). – user17895 Oct 5 '12 at 6:00
2

enter image description here

\mathbf is the math access for the text bold font.

If you load bm package after the euler fonts are set up you can use \bm as shown above .

\documentclass[%
    10pt,%
    a4paper,%
    onside,%
    headinclude,%
    footinclude,%
    BCOR5mm,%
    captions=tableheading]%
        {scrartcl}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage[french]{babel}


\usepackage{amsmath}

\renewcommand{\vec}{\mathbf}

\usepackage[%
    nochapters,%
    beramono,%
    eulermath,%
    pdfspacing,%
    listings]%
        {classicthesis}

\usepackage{bm}
\author{Author}
\title{Test}
\date{}

\begin{document}

\maketitle



As you can see, there is a big difference:
\[
   a \neq \vec{a} \bm{a}
\]

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy