"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Typeset/Concat/concat_post.cpp" between
TeXmacs-1.99.8-src.tar.gz and TeXmacs-1.99.9-src.tar.gz

About: GNU TeXmacs is a what-you-see-is-what-you-get scientific text editor, which was both inspired by TeX and GNU Emacs.

concat_post.cpp  (TeXmacs-1.99.8-src):concat_post.cpp  (TeXmacs-1.99.9-src)
skipping to change at line 125 skipping to change at line 125
spc << 0; spc << 0;
a[i]->type= OBSOLETE_ITEM; a[i]->type= OBSOLETE_ITEM;
} }
i++; i++;
} }
return concat_box (b->ip, bs, spc); return concat_box (b->ip, bs, spc);
} }
void void
concater_rep::glue (box b, int ref, int arg) { concater_rep::glue (box b, int ref, int arg) {
if (a[ref]->op_type == OP_BIG && arg >= ref && !a[ref]->limits)
if (env->fn->math_type != MATH_TYPE_NORMAL)
if (a[ref]->spc->def > 0) {
space spc= env->fn->spc;
a[ref]->spc += space (spc->min/3, spc->def/3, spc->def/3);
}
space spc = max (a[ref]->spc, a[arg]->spc); space spc = max (a[ref]->spc, a[arg]->spc);
a[arg] = line_item (OBSOLETE_ITEM, OP_SKIP, a[arg]->b, a[arg]->penalty); a[arg] = line_item (OBSOLETE_ITEM, OP_SKIP, a[arg]->b, a[arg]->penalty);
a[ref] = line_item (arg<ref? GLUE_LEFT_ITEM: GLUE_RIGHT_ITEM, a[ref] = line_item (arg<ref? GLUE_LEFT_ITEM: GLUE_RIGHT_ITEM,
a[ref]->op_type, b, a[ref]->op_type, b,
min (a[ref]->penalty, a[arg]->penalty)); min (a[ref]->penalty, a[arg]->penalty));
a[ref]->spc = spc; a[ref]->spc = spc;
} }
void void
concater_rep::glue (box b, int ref, int arg1, int arg2) { concater_rep::glue (box b, int ref, int arg1, int arg2) {
if (a[ref]->op_type == OP_BIG && !a[ref]->limits)
if (env->fn->math_type != MATH_TYPE_NORMAL)
if (a[ref]->spc->def > 0) {
space spc= env->fn->spc;
a[ref]->spc += space (spc->min/3, spc->def/3, spc->def/3);
}
space spc = max (a[ref]->spc, max (a[arg1]->spc, a[arg2]->spc)); space spc = max (a[ref]->spc, max (a[arg1]->spc, a[arg2]->spc));
int pen = min (a[ref]->penalty, min (a[arg1]->penalty, a[arg2]->penalty)); int pen = min (a[ref]->penalty, min (a[arg1]->penalty, a[arg2]->penalty));
space ref_spc= a[ref]->spc; space ref_spc= a[ref]->spc;
a[arg1]= line_item (OBSOLETE_ITEM, OP_SKIP, a[arg1]->b, a[arg1]->penalty); a[arg1]= line_item (OBSOLETE_ITEM, OP_SKIP, a[arg1]->b, a[arg1]->penalty);
a[arg2]= line_item (OBSOLETE_ITEM, OP_SKIP, a[arg2]->b, a[arg2]->penalty); a[arg2]= line_item (OBSOLETE_ITEM, OP_SKIP, a[arg2]->b, a[arg2]->penalty);
a[ref]= line_item (GLUE_BOTH_ITEM, a[ref]->op_type, b, pen); a[ref]= line_item (GLUE_BOTH_ITEM, a[ref]->op_type, b, pen);
a[ref]->spc = spc; a[ref]->spc = spc;
} }
 End of changes. 2 change blocks. 
0 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)