Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Another LaTeX formatting question

  1. Sep 13, 2012 #1

    Borek

    User Avatar

    Staff: Mentor

    So I was answering in a thread here and what I got was ugly:

    [tex]k_1 = e^{\frac {E_a} {RT_1}}[/tex]

    What I don't like is that the exponential part is so small it is barely readable (checked in Opera, Firefox, IE and Chrome). I can write it as

    [tex]k_1 = exp\left({\frac {E_a} {RT_1}}\right)[/tex]

    and it definitely looks better, but sometimes I feel like writing ex instead of exp(x) makes the equation easier to follow - at least for me it is easier to see and group exponents when they are all in superscript position.

    Is there a way of making the exponential part larger?

    For example OpenOffice formats it as

    attachment.php?attachmentid=50754&stc=1&d=1347533407.png

    Still not perfect, but closer to what I am thinking about.

    Any ideas?
     

    Attached Files:

  2. jcsd
  3. Sep 13, 2012 #2

    trollcast

    User Avatar
    Gold Member

    [tex]\large k_1 = e^{\frac {E_a} {RT_1}}[/tex]

    [tex]\LARGE k_1 = e^{\frac {E_a} {RT_1}}[/tex]

    Increasing the size helps sometimes although it probably isn't too practical.


    EDIT:

    This here doesn't look too bad [tex]k_1 = e^{\LARGE\frac {E_a} {RT_1}}[/tex]
     
  4. Sep 13, 2012 #3

    D H

    User Avatar
    Staff Emeritus
    Science Advisor

    [tex]x^{x}[/tex]
    Note how the superscript x is in a smaller font, that dictated by \scriptstyle.

    [tex]a^{a^a}[/tex]
    Now note how the font sizes get progressively smaller. The font size goes from that dictated by \displaystyle to \scriptstyle to \scriptscriptsyle (which is where things stop).

    [tex]e^{\frac{E_a}{RT_1}}[/tex]
    That "getting progressively smaller" is what is happening here. Both the superscript and \frac act to reduce the font by one level. The end result is that Ea and RT1 are in that tiny \scriptscriptsyle font.

    One way to overcome this is to force the numerator and denominator to be in the size dictated by \scriptstyle:
    [tex]e^{\frac{\scriptstyle E_a}{\scriptstyle RT_1}}[/tex]

    Alternatively, just don't use the fractional form:
    [tex]e^{E_a/(RT_1)}[/tex]

    With some abuse of notation,
    [tex]e^{E_a/RT_1}[/tex]
     
  5. Sep 13, 2012 #4

    Borek

    User Avatar

    Staff: Mentor

    Thanks :smile:

    No idea which one I will use, but it is nice to have some options to select from.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Another LaTeX formatting question
  1. Latex funky formatting (Replies: 4)

Loading...