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

  • Thread starter Thread starter stevendaryl
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on using LaTeX for rendering mathematical symbols in Insights articles. Users identified the inline symbols as ##A## and $$A$$, with a preference for using a TeX editor for formatting. Issues with spacing and alignment in different browsers, particularly Firefox 80.0 and Edge 85.0.564.41, were noted, but these have been resolved in preview mode. MathJax 3.1 was mentioned as a contributing factor to the rendering behavior.

PREREQUISITES
  • Familiarity with LaTeX syntax for mathematical expressions
  • Understanding of Insights article formatting
  • Basic knowledge of browser behavior regarding HTML rendering
  • Experience with MathJax for displaying LaTeX in web environments
NEXT STEPS
  • Explore the latest features of MathJax 3.1 and its impact on rendering
  • Learn how to adjust LaTeX spacing in Insights articles
  • Investigate browser-specific rendering issues for LaTeX
  • Review best practices for formatting Insights articles with mathematical content
USEFUL FOR

Content creators, technical writers, and educators who need to incorporate mathematical symbols in their articles using LaTeX.

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 ·
Replies
12
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K