Doing fractional superscripts in latex

  • Context: LaTeX 
  • Thread starter Thread starter NotaPhysicist
  • Start date Start date
  • Tags Tags
    fractional Latex
Click For Summary

Discussion Overview

The discussion revolves around issues related to using LaTeX for typesetting mathematical expressions, specifically focusing on fractional superscripts. Participants share their experiences and challenges with rendering LaTeX in different web browsers.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant expresses frustration with LaTeX rendering issues in Chrome on Vista, specifically with the expression t_n = ar^{n-1}.
  • Another participant provides examples of how to correctly format fractional exponents in LaTeX, suggesting both e^{x/2} and e^{\frac{x}{2}}.
  • A participant explains that using curly braces { and } is necessary to group terms in LaTeX, and provides guidance on escaping these characters when needed.
  • One user identifies a problem with browser caching affecting the preview of LaTeX markup, noting that refreshing the page is necessary to see updates.
  • Another participant confirms experiencing similar issues with editing LaTeX code in Mozilla on Windows XP, stating that they often have to retype their code due to these problems.
  • A later reply attributes the issue to the PF server's caching behavior, suggesting that it complicates the editing process and offers a workaround for Firefox users.

Areas of Agreement / Disagreement

Participants generally agree that there are issues with LaTeX rendering and editing across different browsers, but there is no consensus on a single solution or the extent of the problem.

Contextual Notes

Limitations include potential browser-specific issues, caching behavior of the PF server, and the need for users to refresh pages to see updated LaTeX markup.

NotaPhysicist
Messages
24
Reaction score
0

Homework Statement



I know this is the wrong place. I tired to post in Science materials but it wouldn't let me.

Trying to do this in latex

t_n = ar^(n-1)

t_n=ar^{n-1}Getting weird results. I'm using Chrome on Vista. Its driving me nuts. I'm trying to post questions. Can someone sort me out?
 
Physics news on Phys.org
I've edited your post. Click on the equation to see the required input.
 
Assuming that you are interested in fractional exponents, here are a couple of ways of doing them. Click on either to see the underlying LaTeX code.

e^{x/2}
e^{\frac{x}{2}}
 
Thank you for doing that.
 
In other words use { and } to group things you want all in the same superscript (or subscript or numerator or ...). If you actually want a "{" or "}" as, for example, in designating sets, use \{ and \}.
 
The problem had turned out to be the browser. Once I write some latex markup and click "preview", I get my first look at the result. Subsequently if I want to see revisions after clicking "preview" again, I have to refresh the page. Otherwise I see the old markup in the newly reviewed page. It will even show the markup from the last post if I don't refresh. So whatever edits I was doing to the markup, it wasn't showing up in my browser until I refreshed the page.

Using Chrome on Vista. Probably a cache problem. Does anyone else have this problem?
 
Yes, the same problem. I use Mozilla and windows XP. Nothing helps. When I post it, the Latex code is usually correct. But it is impossible to edit. I have to remove and type in again.

ehild
 
I think everyone has this problem. It's really the PF server's fault, since the server sends HTTP headers directing browsers to cache all images in a post preview for a week, and then it reuses the same URLs even if the LaTeX code changes. So there's no way to get around it without disabling the cache, or refreshing the page. (In Firefox, you can right click on an image, control-click "View Image" which will open it in a new tab, and then refresh that without having to refresh the whole page)
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 13 ·
Replies
13
Views
736