Efficient Fractional Latex Code for Simplifying Equations

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
6 replies · 2K views
mech-eng
Messages
826
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   Reactions: 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: 449
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
$ $