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



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.







math-mode fontsize






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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 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: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
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















Required, but never shown

























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

702k8618703144




702k8618703144











  • 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
















































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.




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















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







Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Edmonton

Crossroads (UK TV series)