mathsf 中 \ln 的“L”

mathsf 中 \ln 的“L”

我重新定義了\ln無襯線字體,但我擔心學生將“ln”誤讀為“In”。

你知道我是否可以使用另一種無襯線字體(也許僅適用於“ln”的“L”)?我對所有其他信件都很滿意。

\documentclass{standalone}
\usepackage{amsmath}

\let\ln\relax
\DeclareMathOperator{\ln}{\mathsf{ln}}

\begin{document}
$\ln(x)$
\end{document}

在此輸入影像描述

答案1

正如薩姆卡特所建議的那樣她的評論為操作員使用完全不同的字體會更容易。我想說,適當縮放的坎塔雷爾可能會起到作用。代碼來自:-)我現在找不到的答案(可能是 egreg )...

在我看來,結果是可怕的。

\documentclass{article}

\makeatletter
\newcommand*{\cantarell@scale}{.9467}
\DeclareSymbolFont{sansops}{OT1}{cantarell-LF}{m}{n}
\SetSymbolFont{sansops}{bold}{OT1}{cantarell-LF}{b}{n}
\renewcommand*{\operator@font}{\mathgroup\symsansops}
\makeatother

\begin{document}

\textsf{ln}$\ln$
\textsf{sin}$\sin$
\textsf{exp}$\exp$
$\ln(x)$

\end{document}

在此輸入影像描述

相關內容