| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
I followed the developer guide for image comparisons, ref, and I pass the tests locally. Is there something I missed, since previous PRs related to mathtext do have svgs in them? For example, #8151. |
Sorry, something went wrong.
|
Hey @QuLogic, could you take a look at this too? Thanks :D |
Sorry, something went wrong.
|
Removed the extra commits |
Sorry, something went wrong.
|
Doc build failure seems due to #19163. @aitikgupta could you please rebase on master to pick up that change, so that docs build cleanly? @anntzer I'd like to have your review as our "master of fonts" 😄. Feel free to turn the request down if you don't have time. |
Sorry, something went wrong.
|
I didn't really follow @QuLogic's discussion about alignments, but right now looking at rcParams["text.latex.preamble"] = r"\usepackage{amsmath}"
s = r"$\overset{a}{a}\overset{p}{a}\overset{a}{b}\overset{p}{b}\underset{a}{a}\underset{b}{a}\underset{a}{p}\underset{b}{p}$"
figtext(.5, .6, s, usetex=True)
figtext(.5, .4, s)we get |
Sorry, something went wrong.
|
Looks like what @QuLogic said about underset being a bit lower than overset is in TeX backend too: usetex=Trueusetex=FalseWith the latest commit, alignment looks like this: |
Sorry, something went wrong.
|
I would think it would be better if the p's baselines could also be aligned? |
Sorry, something went wrong.
@anntzer Something like this? |
Sorry, something went wrong.
|
Yes (unless someone wants to argue in favor of the previous behavior...). |
Sorry, something went wrong.
|
But thT is still not the same? |
Sorry, something went wrong.
@jklymak I'm not sure I understand, do you mean the baselines do not match? Maybe this will help: |
Sorry, something went wrong.
|
The overset and underset baselines are not aligned |
Sorry, something went wrong.
|
They are not aligned in TeX either, but the spread here is a bit larger than in TeX. Personally, I don't find that too bad. |
Sorry, something went wrong.
|
The spread is a bit larger even for a normal text: We could reduce the gap in the final hlist theoretically, it will look something like this (have not pushed): Just for reference, here is the current version (which is currently in the PR): Should I update the PR to remove the gap? |
Sorry, something went wrong.
|
@aitikgupta I meant the spread of the baselines of the sub/supersets between a and p. Personally I'm ok with both variants in both cases, but I'm not the most critical one here. |
Sorry, something went wrong.
There was a problem hiding this comment.
Great work, and thanks for your patience handling the reviews :) I'll give it a day in case anyone else wants to comment but other than that, anyone can merge.
(Also, you can consider adding a whatsnew entry.)
Sorry, something went wrong.
|
@timhoffm Given your comment at #19186 (comment), do you want to comment wrt. baseline images? (Everything else looks great to me.) |
Sorry, something went wrong.
|
@anntzer TL;DR For the sake of simplicity, you can just merge with the new baseline images. Here it's "only" a little over 40kB of baseline images and the positioning here is much more complex. I think this should be tested and adding the baseline images is okish. (The alternative would be splitting the tests into a separte PR and keep that open until we have less data heavy ways of doing the test - either with separated baseline images or by only using a subset; probably we don't need all combinations of fonts and output formats?). Btw. what's the status with separating baseline images from the code repo? |
Sorry, something went wrong.
|
I agree positioning matters here much more than for the sqrt PR (for which I agree we could do without the test images...).
Some day I'll have time to get back to it. But that day is not particularly close :( |
Sorry, something went wrong.
|
@aitikgupta Actually let's see whether we can resolve #19186 (comment) first to save a lot of disk space on the baseline images problem. However I don't want you to believe that I'm needlessly temporizing on this so regardless of whether the proposal at #19186 (comment) gets implemented I will make sure this is merged before 3.4 is released (hence the self-assignment). |
Sorry, something went wrong.
There was a problem hiding this comment.
For whenever we figure out test images.
Sorry, something went wrong.
There was a problem hiding this comment.
@aitikgupta this needs to be rebased to use the new (cheaper) baseline images mechanism. (I can do the rebase if you prefer, just let me know.)
Sorry, something went wrong.
No that's fine, I'll do it |
Sorry, something went wrong.
|
I think just rebasing wouldn't work, I'd need to generate the baseline images too? |
Sorry, something went wrong.
|
Yes, sorry I forgot to mention that. |
Sorry, something went wrong.
|
Is it fine the way it is now? |
Sorry, something went wrong.
There was a problem hiding this comment.
Let's still stick to a single test, it's also useful to be able to compare the alignment behaviors of over and underset easily.
Sorry, something went wrong.
|
Thanks for the PR :) |
Sorry, something went wrong.
|
Uh, while rebasing the last time to add the new baseline images, one of my commits vanished: the whatsnew entry. Now this is merged, but without the whatsnew entry. |
Sorry, something went wrong.
|
Open a separate PR. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
This PR addresses #18241, adds \overset and its variant \underset LaTeX symbol, which looks like this:
Also see: http://tex.wikidot.com/snippets:overset-and-underset
PR Checklist