How Do You Format Fractions in LaTeX?

  • Thread starter Thread starter NotMrX
  • Start date Start date
  • Tags Tags
    Numbers Writing
AI Thread Summary
To format fractions in LaTeX, use the command \frac{numerator}{denominator} without spaces. The discussion highlights confusion over the use of forward and backward slashes in LaTeX commands, emphasizing that only the backward slash is correct for commands. Users are encouraged to avoid copy-pasting fractions, as this can lead to formatting issues, particularly with subscripts. The original poster is experimenting with complex equations but is encountering errors due to incorrect command syntax. Proper understanding of LaTeX formatting is essential for achieving the desired mathematical presentation.
NotMrX
Messages
97
Reaction score
0
Hello,

How do you all make your numbers look so nice with a horizonatal line between the fraction? I tried inserting some from copy and paste and it lost all the subscripts. Is there a way to do this on a computer without saving capabilities?
 
Physics news on Phys.org
If you want to format a fraction, type in [ tex ]\frac{1}{2}[ /tex ], without the spaces, of course.

This ends up looking like \frac{1}{2}.
 
I was looking at the tutorial and it seemed that sometimes next to the tex it used forward slash and sometimes it used back slash. Does it make a difference?

I am just trying some stuff here:
\frac{1}{2}
\int
\intX^2dx
\lambda
 
I wrote the following without the space
[ tex]\int\int\frac{G\lambdaY}{\sqrt[3]{Y^2+(x-r)^2}}dx\lamda\dr[/tex]

this was the command I typed in trying to get if I is the integral sign
I I [G*(m/L)*Y/(Y^2+(x-r)^2)^(3/2)*dx*m/L*dr

I guess that is a long math sentence to start with but I don't see the error but the commands (backward slashes \) within themselves seem to mess up. I don't if it is possible to change the tutorial but it use both the forward and backward slash in [ /tex] and there seems to be an extra slash in the fraction command.

Here is what was produced from my latex entry:
\int\int\frac{G\lambdaY}{\sqrt[3]{Y^2+(x-r)^2}}dx\lamda\dr
 
Kindly see the attached pdf. My attempt to solve it, is in it. I'm wondering if my solution is right. My idea is this: At any point of time, the ball may be assumed to be at an incline which is at an angle of θ(kindly see both the pics in the pdf file). The value of θ will continuously change and so will the value of friction. I'm not able to figure out, why my solution is wrong, if it is wrong .
Thread 'Correct statement about a reservoir with an outlet pipe'
The answer to this question is statements (ii) and (iv) are correct. (i) This is FALSE because the speed of water in the tap is greater than speed at the water surface (ii) I don't even understand this statement. What does the "seal" part have to do with water flowing out? Won't the water still flow out through the tap until the tank is empty whether the reservoir is sealed or not? (iii) In my opinion, this statement would be correct. Increasing the gravitational potential energy of the...
Thread 'A bead-mass oscillatory system problem'
I can't figure out how to find the velocity of the particle at 37 degrees. Basically the bead moves with velocity towards right let's call it v1. The particle moves with some velocity v2. In frame of the bead, the particle is performing circular motion. So v of particle wrt bead would be perpendicular to the string. But how would I find the velocity of particle in ground frame? I tried using vectors to figure it out and the angle is coming out to be extremely long. One equation is by work...
Back
Top