I need to define a new command to create a squiggle arrow with some text on it. Something similar to what \xrightarrow command produces but with wiggly arrows as in \rightsquigarrow. The length of the arrow should automatically be adjusted to fit the text above it and I do not know how to handle this part in TikZ. Any ideas would be much appreciated.
Tell me more
×
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.
|
|
|||
|
As percusse mentions in his comment, you can use a node and a decorated arrow; something like this:
The following code contains a new version of
This definition does not cover the case in which the arrow is to be used in super/sub-scripts. |
|||||||||||||||
|


(nodename.south west)to(nodename.south east)with a little extra adjustment (Check the manual page 49) but why do you need TikZ for this? Is there any disadvantage of the ones you mentioned? – percusse Jun 18 '12 at 1:17\xrightsquigarrow. – Caramdir Jun 18 '12 at 1:59