LaTeX How can I keep Latex expressions on the same line?

  • Thread starter Thread starter mathman
  • Start date Start date
  • Tags Tags
    Expressions Latex
AI Thread Summary
The discussion centers on issues with LaTeX expressions rendering incorrectly on certain browsers, particularly Safari. Users report that while some equations display properly in Firefox and other browsers, they do not render correctly in Safari, especially on Mac and iPad Pro devices. The recommended solution for keeping expressions on the same line is to use double hash marks (## ##) as delimiters. However, inconsistencies persist, as some users find that certain formulas display correctly while others do not, leading to confusion about whether the problem is browser-specific or device-related. There are mentions of successful rendering in Internet Explorer and Opera under specific conditions, but overall, the need for a consistent rendering solution across all platforms is highlighted.
mathman
Science Advisor
Homework Helper
Messages
8,130
Reaction score
573
When I use Latex, the expression always comes out on a separate line. How do I keep the expression on the same line?
 
Physics news on Phys.org
I'm guessing you mean at PF? In that case, use ## ## as delimiters. For example

The famous relation ##E=mc^2## was derived by Einstein

renders as

The famous relation ##E = mc^2## was derived by Einstein
 
Whoa, there seems to be a bug. I'll move the thread to the feedback forum.

bug.jpeg
 

Attachments

  • bug.jpeg
    bug.jpeg
    7.3 KB · Views: 559
Looks fine in mobile Firefox on Android. Possibly browser specific?
 
@Greg Bernhardt : I've just checked, and the problem is only in Safari. Firefox renders correctly (on Mac OS 10.13.5).

This is a new problem, to add to the previous one with MathJax in Safari.
 
  • Like
Likes Greg Bernhardt
How about using ##y=mx+b## number signs? Testing it

And ##E=m c^2## formula?

Safari on iPad Pro.
 
Last edited:
jedishrfu said:
How about using ##y=mx+b## number signs?
This one comes out ok in Safari.

Edit:
jedishrfu said:
How about using ##y=mx+b## number signs? Testing it

And ##E=m c^2## formula?

Safari on iPad Pro.
Both formulas come out correctly, but the one 1 posted in #2 still displays incorrectly. What is going on?
 
Last edited:
  • Like
Likes jedishrfu
DrClaude said:
I'm guessing you mean at PF? In that case, use ## ## as delimiters. For example

The famous relation ##E=mc^2## was derived by Einstein

renders as

The famous relation ##E = mc^2## was derived by Einstein
The equation in the last line renders just fine for me. I'm using IE 11 on Win 7.
 
It doesn't work on Opera 54 either.
 
  • #10
DrClaude said:
Both formulas come out correctly, but the one 1 posted in #2 still displays incorrectly. What is going on?
As of Safari 11.1.1, it renders correctly.
 
  • #11
I'm using Windows 7 Ultimate, and after post #9, I checked with all 3 (Firefox, Opera & Chrome latest versions), and none of them renders it correctly.
So is it a device specific issue?
 
  • #12
Hey, I just figured that if I use the Opera built-in VPN on Windows 7, the equations render correctly. But really it should render at all times. Can someone tell me what's wrong?
 
  • #13
:cool::cool::cool::oldconfused::oldconfused::oldconfused:
 

Similar threads

Replies
4
Views
2K
Replies
1
Views
1K
Replies
12
Views
3K
Replies
3
Views
3K
Replies
13
Views
3K
Replies
5
Views
3K
Replies
8
Views
3K
Replies
8
Views
3K
Replies
9
Views
2K
Replies
11
Views
3K
Back
Top