Re: Patch to align baseline of latex fragments and surrounding text

2021-12-10 Thread Sébastien Miquel
Matt Huszagh writes: I couldn't get ~org--match-text-baseline-ascent~ to compute the ascent : the ~xml-get-attribute~ call returns  : ("-16.945024" "12.153473" "16.148855" "8.064997") which gives an ascent < -100, and the code then defaults to 'center. I'd need to know more about your setup

Re: Patch to align baseline of latex fragments and surrounding text

2021-12-09 Thread Matt Huszagh
Sébastien Miquel writes: > This looks great indeed but I've failed to reproduce in my > environment. Thanks for testing this Sébastien. > I couldn't get ~org--match-text-baseline-ascent~ to compute the > ascent : the ~xml-get-attribute~ call returns >  : ("-16.945024" "12.153473" "16.148855"

Re: Patch to align baseline of latex fragments and surrounding text

2021-12-09 Thread Sébastien Miquel
Hi, Matt Huszagh writes: I feel that maybe it would be useful to attach screenshots to show the improvement from this patch? Anyway, I've attached two images: one with the correct baseline alignment to surrounding text and the other with the current, incorrect, baseline alignment. I think a

Re: Patch to align baseline of latex fragments and surrounding text

2021-12-02 Thread Matt Huszagh
Timothy, looping you in on this. I feel that maybe it would be useful to attach screenshots to show the improvement from this patch? Anyway, I've attached two images: one with the correct baseline alignment to surrounding text and the other with the current, incorrect, baseline alignment. I

Re: Patch to align baseline of latex fragments and surrounding text

2021-10-10 Thread Matt Huszagh
Matt Huszagh writes: > I've created a patch to align the baseline of latex image fragments to > the surrounding text. The patch consists of several parts. First, it > adds a customizable variable that can be set to a user supplied function > to compute the value of :ascent passed to

Patch to align baseline of latex fragments and surrounding text

2021-10-10 Thread Matt Huszagh
Hello, I've created a patch to align the baseline of latex image fragments to the surrounding text. The patch consists of several parts. First, it adds a customizable variable that can be set to a user supplied function to compute the value of :ascent passed to `overlay-put'. It can also be set