The answers in this question give a way to draw an underbrace in Tikz. But I'd like to know if it is possible to draw underbrace using asymptote? Because there is no package in asymptote seems to be able to do this.

  • 1
    I guess you get more feedback if you provide an MWE. You can access LaTeX macros in asymptote, i.e. put an $\underbrace{\hspace*{xcm}}_{\dots}$ somewhere and rotate it if everything else fails. – marmot Mar 27 '18 at 16:01

In fact a brace routine is available. It was created by Charles Staats, and it is in the documentation (see Paths and Guides subsection). The syntax is path brace(pair a, pair b, real amplitude=bracedefaultratio*length(b-a))

The following code

  path p=brace((0,0), (1,1),.1); // real amplitude=bracedefaultratio*length(b-a));
  path q=brace((1,1), (0,0),.2);

produces this picture

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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