Efficient Fractional Latex Code for Simplifying Equations

Click For Summary

Discussion Overview

The discussion revolves around the coding of LaTeX equations, specifically focusing on the use of the \frac command for fractions and issues related to rendering in a forum context. Participants explore different ways to write LaTeX code and express confusion over formatting and output discrepancies.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant questions the coding of a specific LaTeX equation and notes that while the right side renders correctly, the left side does not, despite appearing similar.
  • Another participant asserts that the formatting looks good and points out a difference in the presence of a decimal point between the two sides of the equation.
  • Concerns are raised about the bold formatting of the LaTeX code, with participants noting that it does not appear bold as expected.
  • Several participants express confusion regarding the rendering of the \frac command and its expected output in the forum's LaTeX environment.
  • One participant seeks clarification on the term "plain roman text" and its implications within the LaTeX context, asking for a simpler explanation.
  • Another participant explains that "plain roman text" refers to regular text that can be included within mathematical expressions using specific commands, providing an example of its application.

Areas of Agreement / Disagreement

Participants express differing views on the rendering issues and the interpretation of LaTeX commands. There is no consensus on the best approach to resolve the formatting problems discussed.

Contextual Notes

Participants highlight limitations in understanding the LaTeX rendering process and the specific commands used, indicating a need for clarity on how different environments affect output.

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: 438
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 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 11 ·
Replies
11
Views
9K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K