# How do I get a nicer Lambda?

In computer science, the use of

as the letter lambda is quite recognisable as a symbol. How can I get this in LaTeX without changing the entire font of the document/math mode? I only want to change my lambdas.

• Possible duplicate of How to look up a symbol or identify a math symbol or character? Jan 30, 2016 at 4:13
• Use txfonts package \lambdaup. See also Importing a Single Symbol From a Different Font for using just this symbol. Jan 30, 2016 at 4:13
• @AlanMunn It is not really a duplicate of that. It is a duplicate of that in combination with that other question about using a single symbol. But I don't know you can mark as duplicate of a combination....
– cfr
Jan 30, 2016 at 4:19
• @AlanMunn I see you edited while I wrote that... Indeed. ;)
– cfr
Jan 30, 2016 at 4:20
• @cfr I also retracted my close vote for that reason. :) Jan 30, 2016 at 4:23

Combining Alan Munn's comment with egreg's answer:

\documentclass{article}
% ref.: egreg at https://tex.stackexchange.com/a/14406/
\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 next two lines are needed to avoid LaTeX substituting upright from another font
\input{utxmia.fd}
\DeclareFontShape{U}{txmia}{m}{n}{<->ssub * txmia/m/it}{}
% you may also want
\DeclareFontShape{U}{txmia}{bx}{n}{<->ssub * txmia/bx/it}{}
% just in case
%\DeclareFontShape{U}{txmia}{l}{n}{<->ssub * txmia/l/it}{}
%\DeclareFontShape{U}{txmia}{b}{n}{<->ssub * txmia/b/it}{}
% plus info from Alan Munn at https://tex.stackexchange.com/questions/290165/how-do-i-get-a-nicer-lambda?noredirect=1#comment702120_290165
\newcommand{\pilambdaup}{\Pimathsymbol[\mathord]{txmia}{21}}
\begin{document}
$\pilambdaup$
\end{document}