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

  • Context: LaTeX 
  • Thread starter Thread starter stevendaryl
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the use of LaTeX for rendering mathematical symbols in Insights articles on Physics Forums. Participants share their experiences and methods for formatting equations, addressing issues related to spacing and rendering across different browsers.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • Daryl inquires about the process for rendering LaTeX in Insights articles, noting difficulty in finding an easy method.
  • One participant mentions using a preview button and offers assistance for Daryl's article.
  • Another participant describes their method of using a TeX editor and converting symbols for use in Insights, highlighting challenges with formatting adjustments.
  • Mark points out that inline LaTeX has excessive spacing in Insights articles compared to forum posts, suggesting it may be a Wordpress issue.
  • Another participant speculates that the default alignment of equations may be centered rather than left-justified.
  • Multiple participants report similar spacing issues across different browsers, including Firefox, Edge, Safari, and Brave.
  • One participant notes the release of MathJax 3.1, suggesting it may have introduced the spacing issue and expresses intent to check the change log for potential adjustments.
  • Several participants confirm that the issue has been resolved in final published articles, though some still experience it in preview mode.
  • Mark expresses satisfaction with the final appearance of his article despite lingering issues in preview mode.

Areas of Agreement / Disagreement

Participants generally agree on the existence of spacing issues in LaTeX rendering for Insights articles, but there is no consensus on the cause or whether it can be adjusted. Some participants report that the issue has been resolved in final published articles, while others note it persists in preview mode.

Contextual Notes

Participants mention specific browser versions and their experiences, indicating that the rendering issues may vary depending on the browser used. There are unresolved aspects regarding the default settings of MathJax and how they affect LaTeX formatting.

stevendaryl
Staff Emeritus
Science Advisor
Homework Helper
Insights Author
Messages
8,943
Reaction score
2,955
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   Reactions: 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   Reactions: 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   Reactions: 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   Reactions: 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   Reactions: 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   Reactions: Redbelly98 and Greg Bernhardt

Similar threads

  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K