Fontsize not affecting some math symbols.
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
math-mode fontsize
asked Aug 23 at 10:12
oliversm
357210
357210
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
702k8618703144
702k8618703144
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 |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
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