Badly scaling closing SQRT symbol with large font sizes
Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
I prefer the SQRT symbol with the closing downward tick, and have been using this answer to achieve the desired effect. However, when I hugely increase the font size and use fixcmex to achieve some nicely scaling symbols (required for a nice fix to matplotlib plotting) the SQRT downward tick no longer scales nicely.
Compare
Normal font size
Massive font size (50pt)
MWE
documentclassarticle
usepackagelmodern,amsmath,amssymb,bm,physics,letltxmacro,fixcmex
% Gives the nice SQRT symbol.
makeatletter
letoldr@@tr@@t
defr@@t#1#2%
setbox0=hbox$oldr@@t#1#2,$dimen0=ht0
advancedimen0-0.2ht0
setbox2=hboxvrule heightht0 depth -dimen0%
box0lower0.4ptbox2
LetLtxMacrooldsqrtsqrt
renewcommand*sqrt[2][ ]oldsqrt[#1]#2
makeatother
usepackage[papersize=12in,12in,body=10in,10in,margin=1in,1in]geometry
pagestyleempty
begindocument
fontsize50.00000062.500000rmfamily % Comment out for normal
$sqrtD_3 ,textrmRMSE(X, Y)$
% Comment out for normal
enddocument
PS - I would like to keep using the physics
package.
math-mode fontsize sqrt
add a comment |Â
up vote
3
down vote
favorite
I prefer the SQRT symbol with the closing downward tick, and have been using this answer to achieve the desired effect. However, when I hugely increase the font size and use fixcmex to achieve some nicely scaling symbols (required for a nice fix to matplotlib plotting) the SQRT downward tick no longer scales nicely.
Compare
Normal font size
Massive font size (50pt)
MWE
documentclassarticle
usepackagelmodern,amsmath,amssymb,bm,physics,letltxmacro,fixcmex
% Gives the nice SQRT symbol.
makeatletter
letoldr@@tr@@t
defr@@t#1#2%
setbox0=hbox$oldr@@t#1#2,$dimen0=ht0
advancedimen0-0.2ht0
setbox2=hboxvrule heightht0 depth -dimen0%
box0lower0.4ptbox2
LetLtxMacrooldsqrtsqrt
renewcommand*sqrt[2][ ]oldsqrt[#1]#2
makeatother
usepackage[papersize=12in,12in,body=10in,10in,margin=1in,1in]geometry
pagestyleempty
begindocument
fontsize50.00000062.500000rmfamily % Comment out for normal
$sqrtD_3 ,textrmRMSE(X, Y)$
% Comment out for normal
enddocument
PS - I would like to keep using the physics
package.
math-mode fontsize sqrt
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I prefer the SQRT symbol with the closing downward tick, and have been using this answer to achieve the desired effect. However, when I hugely increase the font size and use fixcmex to achieve some nicely scaling symbols (required for a nice fix to matplotlib plotting) the SQRT downward tick no longer scales nicely.
Compare
Normal font size
Massive font size (50pt)
MWE
documentclassarticle
usepackagelmodern,amsmath,amssymb,bm,physics,letltxmacro,fixcmex
% Gives the nice SQRT symbol.
makeatletter
letoldr@@tr@@t
defr@@t#1#2%
setbox0=hbox$oldr@@t#1#2,$dimen0=ht0
advancedimen0-0.2ht0
setbox2=hboxvrule heightht0 depth -dimen0%
box0lower0.4ptbox2
LetLtxMacrooldsqrtsqrt
renewcommand*sqrt[2][ ]oldsqrt[#1]#2
makeatother
usepackage[papersize=12in,12in,body=10in,10in,margin=1in,1in]geometry
pagestyleempty
begindocument
fontsize50.00000062.500000rmfamily % Comment out for normal
$sqrtD_3 ,textrmRMSE(X, Y)$
% Comment out for normal
enddocument
PS - I would like to keep using the physics
package.
math-mode fontsize sqrt
I prefer the SQRT symbol with the closing downward tick, and have been using this answer to achieve the desired effect. However, when I hugely increase the font size and use fixcmex to achieve some nicely scaling symbols (required for a nice fix to matplotlib plotting) the SQRT downward tick no longer scales nicely.
Compare
Normal font size
Massive font size (50pt)
MWE
documentclassarticle
usepackagelmodern,amsmath,amssymb,bm,physics,letltxmacro,fixcmex
% Gives the nice SQRT symbol.
makeatletter
letoldr@@tr@@t
defr@@t#1#2%
setbox0=hbox$oldr@@t#1#2,$dimen0=ht0
advancedimen0-0.2ht0
setbox2=hboxvrule heightht0 depth -dimen0%
box0lower0.4ptbox2
LetLtxMacrooldsqrtsqrt
renewcommand*sqrt[2][ ]oldsqrt[#1]#2
makeatother
usepackage[papersize=12in,12in,body=10in,10in,margin=1in,1in]geometry
pagestyleempty
begindocument
fontsize50.00000062.500000rmfamily % Comment out for normal
$sqrtD_3 ,textrmRMSE(X, Y)$
% Comment out for normal
enddocument
PS - I would like to keep using the physics
package.
math-mode fontsize sqrt
asked Sep 4 at 11:14


oliversm
33129
33129
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
5
down vote
accepted
As you can see in the macros definitions, the width of the added rule is omitted (assumed 0.4pt), and also the downward shift is fixed to 0.4pt which doesn't match large font sizes. You can use relative sizes (ex
or em
) as itn the following modification of the code:
documentclassarticle
usepackagelmodern,amsmath,amssymb,bm,physics,letltxmacro,fixcmex
% Gives the nice SQRT symbol.
makeatletter
letoldr@@tr@@t
defr@@t#1#2%
setbox0=hbox$oldr@@t#1#2,$dimen0=ht0
advancedimen0-0.2ht0
setbox2=hboxvrule width 0.035em heightht0 depth -dimen0%
box0lower0.095exbox2
LetLtxMacrooldsqrtsqrt
renewcommand*sqrt[2][ ]oldsqrt[#1]#2
makeatother
usepackage[papersize=12in,12in,body=10in,10in,margin=1in,1in]geometry
pagestyleempty
begindocument
$sqrtD_3 ,textrmRMSE(X, Y)$
fontsize2024rmfamily
$sqrtD_3 ,textrmRMSE(X, Y)$
fontsize3036rmfamily
$sqrtD_3 ,textrmRMSE(X, Y)$
fontsize4048rmfamily
$sqrtD_3 ,textrmRMSE(X, Y)$
fontsize5060rmfamily
$sqrtD_3 ,textrmRMSE(X, Y)$
enddocument
The result is:
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
accepted
As you can see in the macros definitions, the width of the added rule is omitted (assumed 0.4pt), and also the downward shift is fixed to 0.4pt which doesn't match large font sizes. You can use relative sizes (ex
or em
) as itn the following modification of the code:
documentclassarticle
usepackagelmodern,amsmath,amssymb,bm,physics,letltxmacro,fixcmex
% Gives the nice SQRT symbol.
makeatletter
letoldr@@tr@@t
defr@@t#1#2%
setbox0=hbox$oldr@@t#1#2,$dimen0=ht0
advancedimen0-0.2ht0
setbox2=hboxvrule width 0.035em heightht0 depth -dimen0%
box0lower0.095exbox2
LetLtxMacrooldsqrtsqrt
renewcommand*sqrt[2][ ]oldsqrt[#1]#2
makeatother
usepackage[papersize=12in,12in,body=10in,10in,margin=1in,1in]geometry
pagestyleempty
begindocument
$sqrtD_3 ,textrmRMSE(X, Y)$
fontsize2024rmfamily
$sqrtD_3 ,textrmRMSE(X, Y)$
fontsize3036rmfamily
$sqrtD_3 ,textrmRMSE(X, Y)$
fontsize4048rmfamily
$sqrtD_3 ,textrmRMSE(X, Y)$
fontsize5060rmfamily
$sqrtD_3 ,textrmRMSE(X, Y)$
enddocument
The result is:
add a comment |Â
up vote
5
down vote
accepted
As you can see in the macros definitions, the width of the added rule is omitted (assumed 0.4pt), and also the downward shift is fixed to 0.4pt which doesn't match large font sizes. You can use relative sizes (ex
or em
) as itn the following modification of the code:
documentclassarticle
usepackagelmodern,amsmath,amssymb,bm,physics,letltxmacro,fixcmex
% Gives the nice SQRT symbol.
makeatletter
letoldr@@tr@@t
defr@@t#1#2%
setbox0=hbox$oldr@@t#1#2,$dimen0=ht0
advancedimen0-0.2ht0
setbox2=hboxvrule width 0.035em heightht0 depth -dimen0%
box0lower0.095exbox2
LetLtxMacrooldsqrtsqrt
renewcommand*sqrt[2][ ]oldsqrt[#1]#2
makeatother
usepackage[papersize=12in,12in,body=10in,10in,margin=1in,1in]geometry
pagestyleempty
begindocument
$sqrtD_3 ,textrmRMSE(X, Y)$
fontsize2024rmfamily
$sqrtD_3 ,textrmRMSE(X, Y)$
fontsize3036rmfamily
$sqrtD_3 ,textrmRMSE(X, Y)$
fontsize4048rmfamily
$sqrtD_3 ,textrmRMSE(X, Y)$
fontsize5060rmfamily
$sqrtD_3 ,textrmRMSE(X, Y)$
enddocument
The result is:
add a comment |Â
up vote
5
down vote
accepted
up vote
5
down vote
accepted
As you can see in the macros definitions, the width of the added rule is omitted (assumed 0.4pt), and also the downward shift is fixed to 0.4pt which doesn't match large font sizes. You can use relative sizes (ex
or em
) as itn the following modification of the code:
documentclassarticle
usepackagelmodern,amsmath,amssymb,bm,physics,letltxmacro,fixcmex
% Gives the nice SQRT symbol.
makeatletter
letoldr@@tr@@t
defr@@t#1#2%
setbox0=hbox$oldr@@t#1#2,$dimen0=ht0
advancedimen0-0.2ht0
setbox2=hboxvrule width 0.035em heightht0 depth -dimen0%
box0lower0.095exbox2
LetLtxMacrooldsqrtsqrt
renewcommand*sqrt[2][ ]oldsqrt[#1]#2
makeatother
usepackage[papersize=12in,12in,body=10in,10in,margin=1in,1in]geometry
pagestyleempty
begindocument
$sqrtD_3 ,textrmRMSE(X, Y)$
fontsize2024rmfamily
$sqrtD_3 ,textrmRMSE(X, Y)$
fontsize3036rmfamily
$sqrtD_3 ,textrmRMSE(X, Y)$
fontsize4048rmfamily
$sqrtD_3 ,textrmRMSE(X, Y)$
fontsize5060rmfamily
$sqrtD_3 ,textrmRMSE(X, Y)$
enddocument
The result is:
As you can see in the macros definitions, the width of the added rule is omitted (assumed 0.4pt), and also the downward shift is fixed to 0.4pt which doesn't match large font sizes. You can use relative sizes (ex
or em
) as itn the following modification of the code:
documentclassarticle
usepackagelmodern,amsmath,amssymb,bm,physics,letltxmacro,fixcmex
% Gives the nice SQRT symbol.
makeatletter
letoldr@@tr@@t
defr@@t#1#2%
setbox0=hbox$oldr@@t#1#2,$dimen0=ht0
advancedimen0-0.2ht0
setbox2=hboxvrule width 0.035em heightht0 depth -dimen0%
box0lower0.095exbox2
LetLtxMacrooldsqrtsqrt
renewcommand*sqrt[2][ ]oldsqrt[#1]#2
makeatother
usepackage[papersize=12in,12in,body=10in,10in,margin=1in,1in]geometry
pagestyleempty
begindocument
$sqrtD_3 ,textrmRMSE(X, Y)$
fontsize2024rmfamily
$sqrtD_3 ,textrmRMSE(X, Y)$
fontsize3036rmfamily
$sqrtD_3 ,textrmRMSE(X, Y)$
fontsize4048rmfamily
$sqrtD_3 ,textrmRMSE(X, Y)$
fontsize5060rmfamily
$sqrtD_3 ,textrmRMSE(X, Y)$
enddocument
The result is:
answered Sep 4 at 11:49
Sergei Golovan
3,6701413
3,6701413
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f449248%2fbadly-scaling-closing-sqrt-symbol-with-large-font-sizes%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password