Fontsize not affecting some math symbols.
Clash Royale CLAN TAG#URR8PPP
up vote
5
down vote
favorite
When I use fontsizefoobarbaz
to increase the font size, not all the maths symbols increase accordingly. For example, the int
, sqrt
(display style) and lines when drawing fractions don't increase accordingly.
e.g.
documentclassarticle
usepackageamsmath,amssymb,bm,fontenc,physics,lmodern,nicefrac
begindocument
fontsize5062.500000rmfamily $displaystyleint_mathbbR^ sqrtdfrac1sqrt2pisigma exp(-dfracx^22sigma^2) ddx = 1 $
enddocument
produces
whereas without the fontsize command everything looks as it should:
Is there a package I can add or a small fix to sort this out?
What I've tried so far
I thought adding DeclareMathSizes50453525
to the preamble would sort this out but it appears not.
Why the massive font?
This is actually output from using Python's matplotlib package, ultimately stemming from this issue Matplotlib some LaTeX symbols not scaling with increased figure sizes which based on this answer, is a result of what LaTeX is producing. Hence if I can figure out how to get LaTeX to produce the right out put then I can look at modifying matplotlib's behaviour. Hence a very minimal modification would be preferred.
math-mode fontsize
add a comment |Â
up vote
5
down vote
favorite
When I use fontsizefoobarbaz
to increase the font size, not all the maths symbols increase accordingly. For example, the int
, sqrt
(display style) and lines when drawing fractions don't increase accordingly.
e.g.
documentclassarticle
usepackageamsmath,amssymb,bm,fontenc,physics,lmodern,nicefrac
begindocument
fontsize5062.500000rmfamily $displaystyleint_mathbbR^ sqrtdfrac1sqrt2pisigma exp(-dfracx^22sigma^2) ddx = 1 $
enddocument
produces
whereas without the fontsize command everything looks as it should:
Is there a package I can add or a small fix to sort this out?
What I've tried so far
I thought adding DeclareMathSizes50453525
to the preamble would sort this out but it appears not.
Why the massive font?
This is actually output from using Python's matplotlib package, ultimately stemming from this issue Matplotlib some LaTeX symbols not scaling with increased figure sizes which based on this answer, is a result of what LaTeX is producing. Hence if I can figure out how to get LaTeX to produce the right out put then I can look at modifying matplotlib's behaviour. Hence a very minimal modification would be preferred.
math-mode fontsize
3
This is the same problem as in tex.stackexchange.com/questions/375823 and the cure is to usecmex
as in my answer.
â egreg
Aug 23 at 10:18
add a comment |Â
up vote
5
down vote
favorite
up vote
5
down vote
favorite
When I use fontsizefoobarbaz
to increase the font size, not all the maths symbols increase accordingly. For example, the int
, sqrt
(display style) and lines when drawing fractions don't increase accordingly.
e.g.
documentclassarticle
usepackageamsmath,amssymb,bm,fontenc,physics,lmodern,nicefrac
begindocument
fontsize5062.500000rmfamily $displaystyleint_mathbbR^ sqrtdfrac1sqrt2pisigma exp(-dfracx^22sigma^2) ddx = 1 $
enddocument
produces
whereas without the fontsize command everything looks as it should:
Is there a package I can add or a small fix to sort this out?
What I've tried so far
I thought adding DeclareMathSizes50453525
to the preamble would sort this out but it appears not.
Why the massive font?
This is actually output from using Python's matplotlib package, ultimately stemming from this issue Matplotlib some LaTeX symbols not scaling with increased figure sizes which based on this answer, is a result of what LaTeX is producing. Hence if I can figure out how to get LaTeX to produce the right out put then I can look at modifying matplotlib's behaviour. Hence a very minimal modification would be preferred.
math-mode fontsize
When I use fontsizefoobarbaz
to increase the font size, not all the maths symbols increase accordingly. For example, the int
, sqrt
(display style) and lines when drawing fractions don't increase accordingly.
e.g.
documentclassarticle
usepackageamsmath,amssymb,bm,fontenc,physics,lmodern,nicefrac
begindocument
fontsize5062.500000rmfamily $displaystyleint_mathbbR^ sqrtdfrac1sqrt2pisigma exp(-dfracx^22sigma^2) ddx = 1 $
enddocument
produces
whereas without the fontsize command everything looks as it should:
Is there a package I can add or a small fix to sort this out?
What I've tried so far
I thought adding DeclareMathSizes50453525
to the preamble would sort this out but it appears not.
Why the massive font?
This is actually output from using Python's matplotlib package, ultimately stemming from this issue Matplotlib some LaTeX symbols not scaling with increased figure sizes which based on this answer, is a result of what LaTeX is producing. Hence if I can figure out how to get LaTeX to produce the right out put then I can look at modifying matplotlib's behaviour. Hence a very minimal modification would be preferred.
math-mode fontsize
asked Aug 23 at 10:12
oliversm
33129
33129
3
This is the same problem as in tex.stackexchange.com/questions/375823 and the cure is to usecmex
as in my answer.
â egreg
Aug 23 at 10:18
add a comment |Â
3
This is the same problem as in tex.stackexchange.com/questions/375823 and the cure is to usecmex
as in my answer.
â egreg
Aug 23 at 10:18
3
3
This is the same problem as in tex.stackexchange.com/questions/375823 and the cure is to use
cmex
as in my answer.â egreg
Aug 23 at 10:18
This is the same problem as in tex.stackexchange.com/questions/375823 and the cure is to use
cmex
as in my answer.â egreg
Aug 23 at 10:18
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
8
down vote
accepted
This is the same problem as in Ugly alignment (size of square root symbol) with Latin Modern at 12pt
A minimal cure is to load fixcmex
. Also, lmodern
should be loaded earlier.
I wouldn't use neither physics
nor nicefrac
. Also it doesn't make much sense to load fontenc
with no option.
documentclass[border=10]standalone
usepackagelmodern,amsmath,amssymb,bm,physics,nicefrac,fixcmex
begindocument
fontsize5062.500000rmfamily
$displaystyleint_mathbbR^ sqrtdfrac1sqrt2pisigma
exp(-dfracx^22sigma^2) ddx = 1 $
enddocument
I believe loadingfontenc
without option is rather useless, isn't it?
â campa
Aug 23 at 10:29
@campa Yes, I forgot to mention it.
â egreg
Aug 23 at 10:33
Just what I needed, Thanks. Also, I forgot about fontenc. Also, is there a justification for erring away from physics and nicefrac? Nicefrac I occasionally use, but physics I use heavily.
â oliversm
Aug 23 at 10:39
2
@oliversmphysics
is, in my opinion, a collection of badly written macros. Also, the fractions ofnicefrac
are good for recipe books, not for mathematics.
â egreg
Aug 23 at 10:42
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
8
down vote
accepted
This is the same problem as in Ugly alignment (size of square root symbol) with Latin Modern at 12pt
A minimal cure is to load fixcmex
. Also, lmodern
should be loaded earlier.
I wouldn't use neither physics
nor nicefrac
. Also it doesn't make much sense to load fontenc
with no option.
documentclass[border=10]standalone
usepackagelmodern,amsmath,amssymb,bm,physics,nicefrac,fixcmex
begindocument
fontsize5062.500000rmfamily
$displaystyleint_mathbbR^ sqrtdfrac1sqrt2pisigma
exp(-dfracx^22sigma^2) ddx = 1 $
enddocument
I believe loadingfontenc
without option is rather useless, isn't it?
â campa
Aug 23 at 10:29
@campa Yes, I forgot to mention it.
â egreg
Aug 23 at 10:33
Just what I needed, Thanks. Also, I forgot about fontenc. Also, is there a justification for erring away from physics and nicefrac? Nicefrac I occasionally use, but physics I use heavily.
â oliversm
Aug 23 at 10:39
2
@oliversmphysics
is, in my opinion, a collection of badly written macros. Also, the fractions ofnicefrac
are good for recipe books, not for mathematics.
â egreg
Aug 23 at 10:42
add a comment |Â
up vote
8
down vote
accepted
This is the same problem as in Ugly alignment (size of square root symbol) with Latin Modern at 12pt
A minimal cure is to load fixcmex
. Also, lmodern
should be loaded earlier.
I wouldn't use neither physics
nor nicefrac
. Also it doesn't make much sense to load fontenc
with no option.
documentclass[border=10]standalone
usepackagelmodern,amsmath,amssymb,bm,physics,nicefrac,fixcmex
begindocument
fontsize5062.500000rmfamily
$displaystyleint_mathbbR^ sqrtdfrac1sqrt2pisigma
exp(-dfracx^22sigma^2) ddx = 1 $
enddocument
I believe loadingfontenc
without option is rather useless, isn't it?
â campa
Aug 23 at 10:29
@campa Yes, I forgot to mention it.
â egreg
Aug 23 at 10:33
Just what I needed, Thanks. Also, I forgot about fontenc. Also, is there a justification for erring away from physics and nicefrac? Nicefrac I occasionally use, but physics I use heavily.
â oliversm
Aug 23 at 10:39
2
@oliversmphysics
is, in my opinion, a collection of badly written macros. Also, the fractions ofnicefrac
are good for recipe books, not for mathematics.
â egreg
Aug 23 at 10:42
add a comment |Â
up vote
8
down vote
accepted
up vote
8
down vote
accepted
This is the same problem as in Ugly alignment (size of square root symbol) with Latin Modern at 12pt
A minimal cure is to load fixcmex
. Also, lmodern
should be loaded earlier.
I wouldn't use neither physics
nor nicefrac
. Also it doesn't make much sense to load fontenc
with no option.
documentclass[border=10]standalone
usepackagelmodern,amsmath,amssymb,bm,physics,nicefrac,fixcmex
begindocument
fontsize5062.500000rmfamily
$displaystyleint_mathbbR^ sqrtdfrac1sqrt2pisigma
exp(-dfracx^22sigma^2) ddx = 1 $
enddocument
This is the same problem as in Ugly alignment (size of square root symbol) with Latin Modern at 12pt
A minimal cure is to load fixcmex
. Also, lmodern
should be loaded earlier.
I wouldn't use neither physics
nor nicefrac
. Also it doesn't make much sense to load fontenc
with no option.
documentclass[border=10]standalone
usepackagelmodern,amsmath,amssymb,bm,physics,nicefrac,fixcmex
begindocument
fontsize5062.500000rmfamily
$displaystyleint_mathbbR^ sqrtdfrac1sqrt2pisigma
exp(-dfracx^22sigma^2) ddx = 1 $
enddocument
edited Aug 23 at 10:34
answered Aug 23 at 10:26
egreg
680k8318073054
680k8318073054
I believe loadingfontenc
without option is rather useless, isn't it?
â campa
Aug 23 at 10:29
@campa Yes, I forgot to mention it.
â egreg
Aug 23 at 10:33
Just what I needed, Thanks. Also, I forgot about fontenc. Also, is there a justification for erring away from physics and nicefrac? Nicefrac I occasionally use, but physics I use heavily.
â oliversm
Aug 23 at 10:39
2
@oliversmphysics
is, in my opinion, a collection of badly written macros. Also, the fractions ofnicefrac
are good for recipe books, not for mathematics.
â egreg
Aug 23 at 10:42
add a comment |Â
I believe loadingfontenc
without option is rather useless, isn't it?
â campa
Aug 23 at 10:29
@campa Yes, I forgot to mention it.
â egreg
Aug 23 at 10:33
Just what I needed, Thanks. Also, I forgot about fontenc. Also, is there a justification for erring away from physics and nicefrac? Nicefrac I occasionally use, but physics I use heavily.
â oliversm
Aug 23 at 10:39
2
@oliversmphysics
is, in my opinion, a collection of badly written macros. Also, the fractions ofnicefrac
are good for recipe books, not for mathematics.
â egreg
Aug 23 at 10:42
I believe loading
fontenc
without option is rather useless, isn't it?â campa
Aug 23 at 10:29
I believe loading
fontenc
without option is rather useless, isn't it?â campa
Aug 23 at 10:29
@campa Yes, I forgot to mention it.
â egreg
Aug 23 at 10:33
@campa Yes, I forgot to mention it.
â egreg
Aug 23 at 10:33
Just what I needed, Thanks. Also, I forgot about fontenc. Also, is there a justification for erring away from physics and nicefrac? Nicefrac I occasionally use, but physics I use heavily.
â oliversm
Aug 23 at 10:39
Just what I needed, Thanks. Also, I forgot about fontenc. Also, is there a justification for erring away from physics and nicefrac? Nicefrac I occasionally use, but physics I use heavily.
â oliversm
Aug 23 at 10:39
2
2
@oliversm
physics
is, in my opinion, a collection of badly written macros. Also, the fractions of nicefrac
are good for recipe books, not for mathematics.â egreg
Aug 23 at 10:42
@oliversm
physics
is, in my opinion, a collection of badly written macros. Also, the fractions of nicefrac
are good for recipe books, not for mathematics.â egreg
Aug 23 at 10:42
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%2f447302%2ffontsize-not-affecting-some-math-symbols%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
3
This is the same problem as in tex.stackexchange.com/questions/375823 and the cure is to use
cmex
as in my answer.â egreg
Aug 23 at 10:18