Fontsize not affecting some math symbols.

The name of the pictureThe name of the pictureThe name of the pictureClash 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



enter image description here



whereas without the fontsize command everything looks as it should:



enter image description here



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.







share|improve this question
















  • 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














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



enter image description here



whereas without the fontsize command everything looks as it should:



enter image description here



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.







share|improve this question
















  • 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












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



enter image description here



whereas without the fontsize command everything looks as it should:



enter image description here



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.







share|improve this question












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



enter image description here



whereas without the fontsize command everything looks as it should:



enter image description here



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.









share|improve this question











share|improve this question




share|improve this question










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 use cmex as in my answer.
    – egreg
    Aug 23 at 10:18












  • 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







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










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


enter image description here






share|improve this answer






















  • 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










  • 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




    @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











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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






























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


enter image description here






share|improve this answer






















  • 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










  • 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




    @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















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


enter image description here






share|improve this answer






















  • 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










  • 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




    @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













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


enter image description here






share|improve this answer














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


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Aug 23 at 10:34

























answered Aug 23 at 10:26









egreg

680k8318073054




680k8318073054











  • 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










  • 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




    @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

















  • 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










  • 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




    @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
















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


















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Comments

Popular posts from this blog

What does second last employer means? [closed]

Installing NextGIS Connect into QGIS 3?

One-line joke