Direc­tory tex-archive/macros/latex/contrib/scalerel

The package provides four primary commands for vertically scaling and
stretching objects, and a number of derivative commands. Its primary
function is the ability to scale/stretch and shift one object to conform
to the vertical size of a specified second object. This feature can be
useful in both equations and schematic diagrams.
Additionally, the scaling and stretching commands offer constraints on
maximum width and/or minimum aspect ratio, which are often used to
preserve legibility or for the sake of general appearance.
The package will, by default, preserve the current math style in the
arguments to its macros. For the sake of compilation efficiency,
however, this feature may be turned off and on at will by the user.

scalerel – Con­strained scal­ing and stretch­ing of ob­jects

The pack­age pro­vides four com­mands for ver­ti­cally scal­ing
and stretch­ing ob­jects. Its pri­mary func­tion is the abil­ity to
scale/stretch and shift one ob­ject to con­form to the size of a
spec­i­fied sec­ond ob­ject. This fea­ture can be use­ful in both
equa­tions and schematic di­a­grams.

Ad­di­tion­ally, the scal­ing and stretch­ing com­mands of­fer
con­straints on max­i­mum width and/or min­i­mum as­pect ra­tio, which
are of­ten used to pre­serve leg­i­bil­ity or for the sake of gen­eral
ap­pear­ance.