sum of my PGF, SVG, XY patches#2505
Conversation
Allow PGF and TikZ to set \pgf@relevantforpicturesizefalse, which is how pictures can override their own bounding box (see 'use as bounding box').
|
Wow! Thanks! ! This is really very helpful to collect the (somewhat scary) batch of patches together to try out. I applied it to my collection of tikz & xy tests with interesting results! It's really gratifying that you were able to recover the viewport, without reintroducing the bad text positioning which was what drove me to disable it. In fact, in most cases, the text positioning is much improved! I wonder if this eventually could lead to clearing up the point vs pixel schizo that I introduced for the same (or similar) reason? (seems we should be able to generate XML with a single consistent unit; possibly rem?) |
rem would be great, especially if paired with adjusting NOMINAL_SIZE based on 10/11/12pt.
Vertical alignment is still not quite perfect. There are two issues that I can formulate clearly:
Then there's still something off with Alignment and depths and XY which I just don't get at the moment, and I am sure tons of other situations I haven't considered... |
|
@xworld21 Where do we stand with this? You've marked this as a Draft, suggesting you had more in mind? I have, I guess, three concerns:
Since I've sadly allowed quite a backlog of tikz patches to accumulate, till it's hard to even know where to start, I'm inclined to accept this PR as it is, and then work on fixing the above issues, as well as looking into the other PRs. To my eye, the improvements here outweigh the regressions. (of course, some may be disturbed by that last point above) OR, would it be better for me to view this PR as motivation, and simply work through the PRs you've listed above and (presumably) merge each? |
Yes, that was my intention – this PR is just mashing together the other ones to show the end result. I think the PRs that do not touch foreignObject are fairly small and should be easy to review and merge as they are. If you can get viewBox in, then the orcidlinks binding should be good to go as well, by the way. But foreignObject is still not quite fully baked. Replying to your comments:
I'll look at this during the weekend. I guess if I can adjust Oh, and let's not forget that part of the issue is that foreignObject should somehow know the desired anchor, e.g. whether it's baseline or centre. But that's definitely something that can be improved later since it should be just a handful of pixels. PS: and there's the new CSS text-trim stuff that will change all of this, again! Something for 2027 though. |
|
This PR has served as a wonderful attention focus and motivator, and is greatly appreciated! I believe that all (or most?) of the issues & sub-PRs have been addressed, and hopefully closed as appropriate. If so, can we close this meta-PR as well? Or if there still remain outstanding issues, can we either close and open a new, hopefully smaller, issue/PR, or alternatively rebase this one to reveal what remains to be done? |
Yes! Massive thanks for all the work you have done to act on all of this. 0.8.9 will be an exciting release. |
This includes #2502 (better horizontal alignment, mostly for XY), #2488 (better overall alignment of foreignObject, with TikZ matrix improvements), #2477 (PGF baseline), #2401 #2490 (respect PGF bounding boxes), #2397 #2396 (add SVG viewBox in both PGF and XY).
I didn't add
\pgfmathparsebecause, ahem, it fails badly.Edit: the document I have been using as reference