Skip to content

script and script-script math sizes are not configurable #129

@cao-

Description

@cao-

We have as default the scale factors of .7 for math script size, and of .5 for math script script size.
We can see it in

\_def \_mathfontsize #1{\_if$#1$\_else
 \_tmpdim=#1\_ptunit
 \_edef\_sizemtext{\_ea\_ignorept \_the\_tmpdim \_ptmunit}%
 \_tmpdim=0.7\_tmpdim
 \_edef\_sizemscript{\_ea\_ignorept \_the\_tmpdim \_ptmunit}%
 \_tmpdim=#1\_ptunit \_tmpdim=0.5\_tmpdim
 \_edef\_sizemsscript{\_ea\_ignorept \_the\_tmpdim \_ptmunit}%
 \_fi
 }

and in

\_def\_mathbox#1{{\_mathstyles{\_hbox{%
 \_ifnum\_stylenum<2 \_everymath{\_currstyle}%
 \_else
 \_ifnum\_stylenum=2 \_def\_textmff{ssty=1;}\_fi
 \_ifnum\_stylenum=3 \_def\_textmff{ssty=2;}\_def\_scriptmff{ssty=2;}\_fi
 \_typoscale[\_dobystyle{}{}{700}{500}/]\_fi #1}}}%
}

Could we consider to make those scale factors configurable? We could have for instance two new dimens, called \scalemscript and \scalemsscript, that have defaults of 500 and 700 respectively, and use them both in the definition of \mathfontsize and \mathbox.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions