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.

Is there an easy way to produce stealth style arrows in normal math mode? By "stealth" I'm thinking of TikZ stealth arrowhead. Something like \rightarrowstealth?

The question originates from a limit I'm writing. I find the arrowhead of \rightarrow (and the rest of the arrows, honestly) being somewhat less esthetic compared to the TikZ stealth arrowhead. I checked @Qrrbrbirlbel's comment, and I don't believe the arrowhead I'm looking for is listed.

enter image description here

Stevens comment fixes my problem, though! mathabx's \rightarrow arrowhead is indeed close enough to TikZ's stealth arrowheads for my purposes.

share|improve this question
1  
Could you clarify what you mean with stealth. There are many arrows available in math-mode. Have you checked the arrow section in symbols-a4.pdf? –  Qrrbrbirlbel May 9 '13 at 14:26
2  
The mathabx package has some stealth-like arrow designs, designated as \rightarrow, \leftarrow, and many others... –  Steven B. Segletes May 9 '13 at 14:59
    
Close enough, @StevenB.Segletes ! Post as answer, and you'll get the credz! –  Holene May 9 '13 at 16:32
add comment

2 Answers 2

up vote 4 down vote accepted

With the mathabx package, a number of stealth-like arrows are available, including these:

\documentclass{article}
\usepackage{mathabx}
\begin{document}
\[x \rightarrow y\]
\[y \leftarrow y\]
\end{document}

enter image description here

FOLLOW UP: In response to egreg's comment about many symbols being replaced with the mathabx package, and stealing code from Alan Munn at Importing a Single Symbol From a Different Font, one can import just the two arrow symbols, if one wishes to not change other symbols to mathabx.

\documentclass{article}
% Setup the matha font (from mathabx.sty)
\DeclareFontFamily{U}{matha}{\hyphenchar\font45}
\DeclareFontShape{U}{matha}{m}{n}{
      <5> <6> <7> <8> <9> <10> gen * matha
      <10.95> matha10 <12> <14.4> <17.28> <20.74> <24.88> matha12
      }{}
\DeclareSymbolFont{matha}{U}{matha}{m}{n}

% Define a subset character from that font (from mathabx.dcl)
% to completely replace the \subset character, you can replace
% \varsubset with \subset

\DeclareMathSymbol{\varleftarrow}{3}{matha}{"D0}
\DeclareMathSymbol{\varrightarrow}{3}{matha}{"D1}
\begin{document}

Computer Modern subset
\[
A \rightarrow B
\]

\texttt{mathabx} subset

\[
A \varrightarrow B
\]
\[
B \varleftarrow A
\]

\end{document}

enter image description here

share|improve this answer
    
This has the obvious issue that many symbols change their shape. –  egreg May 9 '13 at 18:16
    
@egreg Fixed. Thanks for pushing me to look for a fix. –  Steven B. Segletes May 9 '13 at 19:35
add comment

If you mean the stealth as in the arrow head style of Tikz, the package tikz-cd provides such an interface:

\documentclass{amsart}
\usepackage{tikz-cd}
\usetikzlibrary{arrows} 
\tikzset{
  commutative diagrams/.cd, 
  arrow style=tikz, 
  diagrams={>=stealth}
}
\begin{document}
  \begin{tikzcd} 
     A \arrow{r} &B
  \end{tikzcd} 
\end{document}

Here is the output I get:

tikzarrows.png

Note that this is as versatile as the mathmode in that, you can have the tikz-cd environment both inline [default] and as display. Further, this is highly customisable: you can decrease the distance between the rows, between the columns, and so on.

I'd suggest that, you read tikz-cd documentation, which is very well-written.

share|improve this answer
add comment

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.