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):
Is this even possible without converting my whole diagram into a Tikz drawing?
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}
Answered by campa on November 10, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP