2

I am writing a thesis in Charter font for both normal and math mode, however I do not like the font that is applied for the arrows.

The following code

\documentclass{article}
\usepackage{charter}
\usepackage[charter]{mathdesign}
\usepackage{amsmath}
\begin{document}
\begin{align*}
\mathscr{O}_X:\beta & \longrightarrow \mathfrak{Rings}\\
               D(f) & \longmapsto     A_f
\end{align*}
\end{document}

should look like this:

Charter style arrows

Is it possible to use Charter in mathmode but keeping the "normal" arrows such as:

enter image description here

I am quite new in messing with fonts, so please forgive me if I am missing something trivial.

Thank you in advance.

1

1 Answer 1

2

You can load the Computer Modern math symbol font for the arrows; one also has to change \relbar to use the Computer Modern minus sign.

\documentclass{article}
\usepackage{charter}
\usepackage[charter]{mathdesign}
\usepackage{amsmath}

\DeclareSymbolFont{cmarrows}{OMS}{cmsy}{m}{n}
\SetSymbolFont{cmarrows}{bold}{OMS}{cmsy}{b}{n}

\DeclareMathSymbol{\cmminus}{\mathbin}{cmarrows}{"00}
\DeclareRobustCommand\relbar{\mathrel{\smash\cmminus}}

\DeclareMathSymbol{\leftrightarrow}{\mathrel}{cmarrows}{"24}
\DeclareMathSymbol{\leftarrow}{\mathrel}{cmarrows}{"20}
   \let\gets=\leftarrow
\DeclareMathSymbol{\rightarrow}{\mathrel}{cmarrows}{"21}
   \let\to=\rightarrow
\DeclareMathSymbol{\mapstochar}{\mathrel}{cmarrows}{"37}
   \def\mapsto{\mapstochar\rightarrow}


\begin{document}
\begin{align*}
\mathscr{O}_X:\beta & \longrightarrow \mathfrak{Rings}\\
               D(f) & \longmapsto     A_f
\end{align*}
\end{document}

enter image description here

An alternative could be loading old-arrows (with less prominent arrow tips):

\documentclass{article}
\usepackage{charter}
\usepackage[charter]{mathdesign}
\usepackage{amsmath}
\usepackage{old-arrows}

\begin{document}
\begin{align*}
\mathscr{O}_X:\beta & \longrightarrow \mathfrak{Rings}\\
               D(f) & \longmapsto     A_f
\end{align*}
\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .