Skip to content

Commit 6f3234d

Browse files
committed
Adjust #sum and #int height and vertical alignment
1 parent 74b611d commit 6f3234d

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

scripts/JSRoot.latex.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,12 +1142,9 @@ JSROOT.define(['d3', 'painter'], (d3, jsrp) => {
11421142
if (found.special) {
11431143
// this is sum and integral, now make fix height, later can adjust to right-content size
11441144

1145-
let subs = extractLowUp(found.low_up);
1146-
if (!subs) return false;
1147-
1148-
let gg = createGG();
1149-
1150-
let path = createPath(gg), h = Math.round(curr.fsize*2), w = Math.round(curr.fsize), r = Math.round(h*0.1), x_up, x_low;
1145+
let subs = extractLowUp(found.low_up) || {},
1146+
gg = createGG(), path = createPath(gg),
1147+
h = Math.round(curr.fsize*1.7), w = Math.round(curr.fsize), r = Math.round(h*0.1), x_up, x_low;
11511148

11521149
if (found.name == "#sum") {
11531150
x_up = x_low = w/2;
@@ -1158,7 +1155,7 @@ JSROOT.define(['d3', 'painter'], (d3, jsrp) => {
11581155
// path.attr('transform','skewX(-3)'); could use skewX for italic-like style
11591156
}
11601157

1161-
extendPosition(curr.x, curr.y - 0.75*h, curr.x + w, curr.y + 0.25*h);
1158+
extendPosition(curr.x, curr.y - 0.6*h, curr.x + w, curr.y + 0.4*h);
11621159

11631160
if (subs.low) {
11641161
let subpos1 = createSubPos(0.6);

0 commit comments

Comments
 (0)