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.

I'm just learning how to use Asymptote. I've rendered a somewhat complex diagram including several paths and circles, simply using commands like draw((1,2)..(3,4)), but now I'd like to repeat that diagram several times at different centerpoints. So either I need to assign the list of commands to a subroutine, or somehow assign them to a variable which I can call the draw method on. The documentation is inexplicably mute on this question.

share|improve this question

closed as unclear what you're asking by Joseph Wright Jul 7 '13 at 7:57

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

    
This is one of the problems of using a pacakge that generates the tikz macro calls. Packages like this are only useful for one-of diagrams (and only if they are really complicated). You would need to go thru the output, and change the coordinates such that they are relative to an origin. Then you could easily repeat the figure, and customize it on a per use. Unless your diagram is extremely complicated you are better off doing it in tikz directly. I would need to have an idea of what the diagram looks like to offer more specific advice. –  Peter Grill Oct 17 '12 at 0:29
    
I'm really not sure what is wanted here as an answer, so I've closed. Please edit and request reopening. –  Joseph Wright Jul 7 '13 at 7:58

Browse other questions tagged or ask your own question.