Search code examples
mathjax

Display Size/Width Adjustment


I was wandering if there is a way to adjust width of the math mathjax renders. Some math expression I have are longer and won't fit in a box I have created. Is there a way to squeeze it and make it fit maybe by changing the size or width? I have tried using line breaks but that isn't what I want. An example would be a mathjax like this:

2x+3+4 - /intcos(x) dx   


234567897+sin(2x)+34567890987654. 

Displaying the last line would be a problem because it won't fit in the box. It overflows


Solution

  • Well, you could use \small or \scriptsize or \Tiny (non-standard) or \tiny within the mathematics to make it appear in a smaller size.

    Alternatively, you could put a <span style="font-size:70%">...</span> around the mathematics to get the math to be scaled to whatever size you need. E.g.,

    <span style="font-size:70%">\(234567897+sin(2x)+34567890987654\)</span>
    

    Note that the math delimiters must be inside the <span>.