私が使用しているフォント パッケージでは、mathprint で見栄えが悪い文字が 1 つだけあります。それは文字 $v$ です。私が望んでいるのは、$v$ だけを入力して、mathprint 版ではなく斜体テキスト版の "v" を表示することです (ドキュメントのフォントは変更されません)。
\mathcode v=
v
同じフォントで、mathprint $v$ をきれいな textprint "v" に変更できますが、テキスト "v" は mathprint の他の文字と調和しません。そのため、テキスト "v" の斜体バージョンが求められます。残念ながら、
\mathcode v=
{\it v}
動作しません。フォントを変更せずに、mathprint 内の文字を斜体テキスト バージョンに変更する方法を知っている人はいますか。
これは私が持っているものと欲しいものを示すpngです
これは、上記の画像を PDF にコンパイルする、削除可能な % を含む MWE コードのスニペットです。
\documentclass[12pt,leqno]{article}
\usepackage{libertine}
\usepackage[libertine]{newtxmath}
\usepackage[T1]{fontenc}
% \mathcode`v=`v
% Erase the "%" before \mathcode to see bad v become current v but not good v
\begin{document}
\underline{Packages used:}\vspace{0.1cm}
libertine
[libertine]{newtxmath}
[T1]{fontenc}\vspace{-0.5cm}
\begin{align*}
\text{What I do not like} \leadsto \text{Text: v} \hspace{0.3cm} \& \hspace{0.3cm} \text{Math, bad: } &v\\
\text{Using mathcode`v=`v} \leadsto \text{Text: v} \hspace{0.3cm} \& \hspace{0.3cm} \text{Math, text: } &v \\
\text{What I want} \leadsto \text{Text: v} \hspace{0.3cm} \& \hspace{0.3cm} \text{Math, good: } & {\it v}
\end{align*}