|
From: | Gennady Uraltsev |
Subject: | bug#25309: 11.89.8; multi-level script fontification stacks incorrectly |
Date: | Sun, 1 Jan 2017 18:48:34 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 |
Dear Tassilo, Actually no, the bug appears in all three versions: 24.3 24.4 and 25.1 (current). In the identical manner. You can see the results from the attached screenshots and the exmaple tex file. Let me try to explain what I understood of the problem: The relevant variables with apropriate values are: font-latex-fontify-script multi-level font-latex-scipt-display ((raise -0.3) raise 0.3) and the two faces Font Latex Superscript Face ((t (:height 0.8))) Font Latex Subscript Face: ((t (:height 0.8))) What happens is that the font faces always get applied and the compound (you see the font getting smaller progressively) this is because for font specifications, specifying a fractional value means taking the parent font and modifying it by that factor (for hight). A different behavior happens for font-latex-scipt-display ((raise -0.3) raise 0.3). According to manual the first part is relative to subscripts and the second to superscripts. Immagine an expression like base^{u2^{u3_{d1}}}_{d2_{d3^{u4_{d4^{u5}}}}}} the raising gets applied only if the first consecutive sub or super script of a series. That means that ^{x} appears raised unless the containing expression is also a superscript. Similarly lowering a subscript gets applied only if the containing expression is NOT another subscript. In the above example the raising gets applied to u2 u4 u5 and not u3 Lowering (negative raising) gets applied to d1 d2 d4 but not d3 Notice also that the raising gets calculated with respect to the base line and not the containing level. Finally the "apparent" going down of the stack 1^{2^{3^{4}}} is due simply to the fact that the font gets smaller Cheers, Gena On 01/01/17 18:28, Tassilo Horn wrote: > Uwe Brauer <address@hidden> writes: > > Hi Uwe & Gennady, > > sadly I'm unable to build emacs 24.3 or 24.4 from the sources and my > distro doesn't provide binary builds of any emacs version except for the > current one. :-( > >> > Some care should be taken! After customizing the variable >> > font-latex-fontify-script to value multi-level one should be >> > careful to restart fontification (or emacs proper). Otherwise the >> > changes doesn't manifest itself. >> >> I set it to invisible and confirm what you found out. > > So to be clear: do you say that the feature works for you both with > emacs 24.3 with the slight complication that you have to toggle > `font-lock-mode' after setting `font-latex-fontify-script' to > multi-level or invisible? If not, what are you doing exactly to get it > working? > > Bye, > Tassilo >
Screenshot-Leap42_2-emacs24_3_1.png
Description: PNG image
Screenshot-Leap42_2-emacs25_1.png
Description: PNG image
Screenshot-Ubuntu16_10-emacs24_5.png
Description: PNG image
scripts.tex
Description: Text Data
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] | Current Thread | [Next in Thread] |