How can I keep Latex expressions on the same line?

  • Context: LaTeX 
  • Thread starter Thread starter mathman
  • Start date Start date
  • Tags Tags
    Expressions Latex
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
12 replies · 3K views
Science Advisor
Homework Helper
Messages
8,130
Reaction score
575
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: 610
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   Reactions: 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.
 
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.
 
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?
 
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?