You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Always make the baseline the center, then make Asymptote generate at the center. Pass an optional argument to asy/asypicture environment to specify that you want the baseline to be at point (0, 0) or whatever it is.
Use another auxiliary text file to store the amount of shift needed.
The text was updated successfully, but these errors were encountered:
To elaborate on the rationale: the exact quote from the stackexchange answer is "you can define the baseline of TikZ pictures so you can align them neatly." So the desired behavior would be to put asymptote pictures side-by-side and easily set then to have the same y=0 coordinate, even if one of them extends up and the other extends down. For instance,
TikZ has this thing. https://tikz.dev/tikz-scopes#pgf./tikz/baseline
Can we do the same thing in Asymptote (i.e. in
asypictureB
orasymptote
LaTeX package)?(Rationale: it's listed in https://tex.stackexchange.com/questions/39577/what-are-the-relative-strengths-of-tikz-and-asymptote as one of the arguments against Asymptote.)
I can see an immediate problem: PDF does not provide any way to draw outside the bounding box (is there? I don't know of one).
So you need to pass the parameter of how much to lower the box to the TeX side, then we can simply do https://tex.stackexchange.com/questions/15853/vertical-alignment-of-inline-images .
I can think of two options:
asy
/asypicture
environment to specify that you want the baseline to be at point(0, 0)
or whatever it is.The text was updated successfully, but these errors were encountered: