LaTeX Mathematical Symbols in Insights: How to Use LaTeX for Beautiful Equations

  • Thread starter Thread starter stevendaryl
  • Start date Start date
AI Thread Summary
The discussion revolves around the challenges of rendering LaTeX in Insights articles on a specific platform. Users share methods for incorporating mathematical symbols, highlighting the use of inline symbols like ##A## and $$A$$. One participant mentions using a TeX editor for formatting and then adjusting the output through a text editor, noting issues with carriage returns and section formatting. The "Preview" button is emphasized as a tool for checking rendered HTML, with concerns raised about excessive spacing around math expressions, which seems to be a result of the recent MathJax update. Participants confirm that the spacing issue appears across multiple browsers but is resolved in the final published articles. The conversation concludes with one user successfully submitting their Insights article, expressing satisfaction with its appearance.
stevendaryl
Staff Emeritus
Science Advisor
Homework Helper
Insights Author
Messages
8,943
Reaction score
2,954
I was thinking about writing an Insights article, but when I went to the Dashboard, I didn't find an easy way to render LaTex. How do people typically do mathematics symbols in Insights?

Thanks,
Daryl
 
  • Like
Likes scottdave and Greg Bernhardt
Physics news on Phys.org
There is a preview button on the right side bar. Excited for your Insight, let me know if you need more help!
 
The inline symbols are ##A## and the separated $$ A $$. I normally use a TeX editor (with $A$ and $$A$$) and then apply global search and substitute commands of a text editor to switch them ($ to ## followed by #### to $$). What is a bit annoying are the carriage returns which behave differently and some begin-end sections as itemize, which have to be manually adjusted. Also the sections and subsections have to be changed into headline sizes. I still like my method, as I'll have a pdf at the end, not only the Insight on PF.

To check formats, use the "Preview" button, which generates a rendered html version in a different tab of the browser.
 
  • Like
Likes vanhees71 and Greg Bernhardt
For Insights articles, I'm seeing that inline Latex has quite a lot of spacing before and after each math expression -- I guess this is a Wordpress thing, since normal forum posts do not seem to have this issue. Here is an example of what I mean:
1598810400223.png

Are we pretty much resigned to this is the way it is, or is there something that can be done?

(I'm using Firefox 80.0, in case that is at all relevant.)

Thanks for any advice,

Mark
 
  • Like
Likes Ibix
It looks like the default may be centered rather than left justified.
 
Redbelly98 said:
(I'm using Firefox 80.0, in case that is at all relevant.)
Anyone noticing this with another browser?
 
Greg Bernhardt said:
Anyone noticing this with another browser?
Same thing in Edge, ver. 85.0.564.41
 
Greg Bernhardt said:
Anyone noticing this with another browser?
I see the same thing in Safari and Brave.
 
  • #11
Greg Bernhardt said:
This issue has been resolved
Looks good on Firefox - thanks.
 
  • #12
Greg Bernhardt said:
This issue has been resolved
Thanks Greg!

Not a huge deal, but the issue still appears when doing a preview of an Insights article I am currently editing. But as long as it looks okay in final published articles, and I see that it does, that should be okay.

Thanks again,

Mark

p.s. I'm using Firefox
 
  • Like
Likes vanhees71 and Greg Bernhardt
  • #13
Redbelly98 said:
Not a huge deal, but the issue still appears when doing a preview of an Insights article I am currently editing.
.
.
.
p.s. I'm using Firefox
FYI, the inline-Latex issue is now fixed for preview mode as well.

(And I just submitted that Insights article I promised you, Greg.) :-)
 
  • Love
Likes Greg Bernhardt
  • #14
Redbelly98 said:
And I just submitted that Insights article I promised you, Greg.
I just read through your Insight and it not only reads great, it looks beautiful.

Thanks @Redbelly98 and @Greg Bernhardt.
 
  • Like
Likes Redbelly98 and Greg Bernhardt

Similar threads

Replies
12
Views
3K
Replies
5
Views
3K
Replies
1
Views
2K
Replies
5
Views
3K
Replies
8
Views
2K
Back
Top