I am trying to get a slanted version of the more "typical" lambda symbol:
Following this post was very helpful to substitute only this particular symbol. My only issue is having it slanted...
I am trying to get a slanted version of the more "typical" lambda symbol:
Following this post was very helpful to substitute only this particular symbol. My only issue is having it slanted...
The glyph in the TX fonts is essentially the same as in Adobe Symbol. In TeX Live (but I believe also in MiKTeX), the slanted version is available as psyro. All it takes is to find the right slot, which turns out to be "6C.
I added also the upright version for comparison.
\documentclass{article}
\usepackage{pifont}
\makeatletter
\newcommand\Pimathsymbol[3][\mathord]{%
#1{@Pimathsymbol{#2}{#3}}}
\def@Pimathsymbol#1#2{\mathchoice
{@Pim@thsymbol{#1}{#2}\tf@size}
{@Pim@thsymbol{#1}{#2}\tf@size}
{@Pim@thsymbol{#1}{#2}\sf@size}
{@Pim@thsymbol{#1}{#2}\ssf@size}}
\def@Pim@thsymbol#1#2#3{%
\mbox{\fontsize{#3}{#3}\Pisymbol{#1}{#2}}}
\makeatother
% the upright lambda
\DeclareFontFamily{U}{psyr}{}
\DeclareFontShape{U}{psyr}{m}{n}{<-> psyr }{}
\newcommand{\pilambdaup}{\Pimathsymbol[\mathord]{psyr}{"6C}}
% the slanted lambda
\DeclareFontFamily{U}{psyro}{}
\DeclareFontShape{U}{psyro}{m}{n}{<-> psyro }{}
\newcommand{\pilambdait}{\Pimathsymbol[\mathord]{psyro}{"6C}}
\begin{document}
$\pilambdaup\ne\pilambdait$
\end{document}
On the other hand, I do not find the glyph particularly attractive, nor “more typical”: any “lambda” glyph will convey the same idea.
Code from https://tex.stackexchange.com/a/290171/4427 and https://tex.stackexchange.com/a/14406/4427
In the modern toolchain, with unicode-math, you can substitute this glyph from a different font.
\documentclass{article}
\usepackage{unicode-math}
\setmainfont{TeX Gyre Termes}
\setmathfont{TeX Gyre Termes Math}
\setmathfont{XITS Math}[range=\mitlambda,Scale=MatchLowercase]
\pagestyle{empty}
\begin{document}
[ \lambda ]
\end{document}