Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I would like to use Palatino for running text and some matching fonts for math, so I use the package mathpazo. Is there a way to get the \textleftarrow?

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{mathpazo}

\begin{document}
abc\textleftarrow
\end{document}
share|improve this question

2 Answers 2

up vote 3 down vote accepted

Just redeclare the default command:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{mathpazo}

\makeatletter
\DeclareTextCommandDefault{\textleftarrow}{\mbox{$\m@th\leftarrow$}}
\makeatother

You can refine the definition as you prefer.

share|improve this answer

\ensuremath{\leftarrow} will do the job, surely?

share|improve this answer
    
Yes it does, but somehow I would like to try to use the code above and not make textcomp fail if a command is unknown. –  topskip Jun 8 '12 at 8:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.