TransWikia.com

curved lower arrow?

TeX - LaTeX Asked on November 10, 2020

I need to use curved arrows instead of linear ones. So instead of

$$Astackrel{x}longrightarrow B stackrel{y}longrightarrow C$$

I might want to input something like

$$Amyarrow{x} B myarrow{y}C$$

to produce something roughly similar to this (hand-drawn in inkscape):
enter image description here

Is this even possible without converting my whole diagram into a Tikz drawing?

2 Answers

If you don't mind wasting a symbol font you can import the symbol from mathabx

documentclass[12pt]{article}

% lines taken from mathabx.sty
DeclareFontFamily{U}{mathb}{hyphencharfont45}
DeclareFontShape{U}{mathb}{m}{n}{
      <5> <6> <7> <8> <9> <10> gen * mathb
      <10.95> mathb10 <12> <14.4> <17.28> <20.74> <24.88> mathb12
      }{}
DeclareSymbolFont{mathb}{U}{mathb}{m}{n}
DeclareMathSymbol{curvearrowbotright}{3}{mathb}{"F4}

newcommand*{smallerstyle}[1]{%
   ifx#1scriptscriptstylescriptscriptstyle
   elseifx#1scriptstylescriptscriptstyle
   elsescriptstylefifi}

makeatletter
newcommand*{myarrow}[1][]{mathrel{mathpalette@myarrow{#1}}}
newcommand*{@myarrow}[2]{%
   setbox0=vtop{%
            offinterlineskip
            halign{hfil$##$hfilcr
            #1curvearrowbotrightcr
            smallerstyle#1#2cr}}%
   lowerht0box0 
}
makeatother

begin{document}

$displaystyle      Amyarrow B myarrow[x] C$parbigskip
$textstyle         Amyarrow B myarrow[x] C$parbigskip
$scriptstyle       Amyarrow B myarrow[x] C$parbigskip
$scriptscriptstyle Amyarrow B myarrow[x] C$

end{document}

enter image description here

Answered by campa on November 10, 2020

Try this command: Add this to your document preamble: newcommand{myarrow}[1]{raisebox{-12pt}{$stackrel{tikz[baseline]{draw[->] (0, 0) arc (220:320:10pt);}}{#1}$}}

and use it as $Amyarrow{x}B$ and $Amyarrow{x}Bmyarrow{y}C$.

Output:

enter image description here

Answered by user108724 on November 10, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP