Le 21/11/2016 à 17:33, Jean-Marc Lasgouttes a écrit :
It is nice to give some love to \frac (it was somewhere on my to do list). I have not tried it yet, but I have questions: * why not use FontMetrics::lineWidth for the witdth of the line? You do not want to use the same width for a fraction in textstyle or in scriptstyle.
First because TeX itself always uses the same thin line whatever the font size. Also, following your suggestion I tried, and you can get 1px lines next to 2px lines, so the result is not very nice.
* did you try to look at what TeX does and see what can be picked from there? The relevant rules are 15(a-e). It is not funny reading, but last time I looked I conlcuded that part of that could be implemented.
Thanks for the reference. I used to have a TeXbook, but books made of paper are not easy to move around, so it ended up being given away before it could be of any use. Do you have another source for this algorithm?
