LaTeX Efficient Fractional Latex Code for Simplifying Equations

AI Thread Summary
The discussion revolves around issues with LaTeX code rendering, specifically regarding the formatting of fractions and the use of the \text{} command. Participants express confusion over why certain LaTeX code, such as \frac{1}{2}, does not appear as expected when rendered. It is clarified that the presence of the \text{} command can affect how text is displayed within mathematical expressions, with "plain roman text" simply referring to regular text within a math environment. The conversation highlights the importance of understanding the distinction between math mode and text mode in LaTeX to achieve the desired formatting. Overall, the thread emphasizes the nuances of LaTeX syntax and rendering issues, particularly in relation to fractions and text integration within mathematical expressions.
mech-eng
Messages
825
Reaction score
13
How can this code be coded by another way?

## \frac {300-270.1}{T-130}## = ## \frac {313.-270.1}{135-130}##

And it is also very strange that the right side O.K but left side is not but everything is the same for left and right.


#,# \frac {300-270.1}{T-130}## = ## \frac {313.-270.1}[135-130}#,#

Thank you.
 
Physics news on Phys.org
I don't see a problem. On the right, you have 313. and on the left you have 300 no dot.

The denominator is centered under the numerator too. It looks pretty good.
 
  • Like
Likes mech-eng
jedishrfu said:
I don't see a problem. On the right, you have 313. and on the left you have 300 no dot.

The denominator is centered under the numerator too. It looks pretty good.

But even though code is written with ## it doesn't seem to be in bold type. What is the problem, it shoud have been in bold type.

Thank you.
 
I would like to ask about this code:

latex frac.png


Above code is from here: https://www.physicsforums.com/help/latexhelp/

I am confused because \frac 1 2 should be seem as ## \frac 1 2##. Why it does not work in the rendered code?

Thank you.
 

Attachments

  • latex frac.png
    latex frac.png
    1.4 KB · Views: 411
mech-eng said:
I would like to ask about this code:

View attachment 200285

Above code is from here: https://www.physicsforums.com/help/latexhelp/

I am confused because \frac 1 2 should be seem as ## \frac 1 2##. Why it does not work in the rendered code?

Thank you.
Not quite sure what you mean. If you write \text{ then anything in those brackets is plain text, whether it is a formula \frac{1}{2} or not }.
Outside this \text{ } command, you get ##\frac 1 2 = \frac{1}{2}## if in formula mode. You even get it inside, as # # ... # # interrupts the \text{ } environment.
 
fresh_42 said:
Not quite sure what you mean. If you write \text{ then anything in those brackets is plain text, whether it is a formula \frac{1}{2} or not }.
Outside this \text{ } command, you get ##\frac 1 2 = \frac{1}{2}## if in formula mode. You even get it inside, as # # ... # # interrupts the \text{ } environment.

This was what exactly I ask. But what does "plain roman text" mean? Would you explain this concept in a most simple way?

Thank you.
 
Last edited:
It just means text. You can have a # # ... # # environment with a \text{} or \textrm{} command in between. E.g. if one writes a long formula, or a formula embedded in $ $ ... $ $, then it is often convenient to insert short text entries like "and" or "such that" without having to leave the math mode, e.g.
$$
\forall x \in X \text{ and } \forall y \in X \; \exists z \in X \textrm{ such that } x + y = z
$$
which is written as
$ $
\forall x \in X \text{ and } \forall y \in X \; \exists z \in X \textrm{ such that } x + y = z
$ $
 

Similar threads

Replies
1
Views
2K
Replies
1
Views
2K
Replies
11
Views
5K
Replies
4
Views
2K
Replies
3
Views
2K
Back
Top