How Do You Format Fractions in LaTeX?

  • Thread starter Thread starter NotMrX
  • Start date Start date
  • Tags Tags
    Numbers Writing
Click For Summary

Homework Help Overview

The discussion revolves around formatting fractions in LaTeX, specifically focusing on the correct syntax and potential issues encountered when using LaTeX commands for mathematical expressions.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss how to properly format fractions using LaTeX commands, with some attempting to understand the differences between forward and backward slashes in commands. There are also inquiries about the impact of formatting on subscripts and overall appearance.

Discussion Status

Some participants have shared specific LaTeX commands and examples, while others are questioning the consistency of the syntax used in tutorials. There is an ongoing exploration of potential errors in command usage and formatting.

Contextual Notes

Participants mention challenges related to the lack of saving capabilities and the confusion arising from different slashes in LaTeX commands. There is also a reference to a tutorial that may have inconsistencies in its examples.

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 [tex]\frac{1}{2}[/tex].
 
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:
[tex]\frac{1}{2}[/tex]
[tex]\int[/tex]
[tex]\intX^2dx[/tex]
[tex]\lambda[/tex]
 
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:
[tex]\int\int\frac{G\lambdaY}{\sqrt[3]{Y^2+(x-r)^2}}dx\lamda\dr[/tex]
 

Similar threads

  • · Replies 64 ·
3
Replies
64
Views
7K
  • · Replies 10 ·
Replies
10
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 6 ·
Replies
6
Views
993
Replies
8
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
14K