Displaying LaTeX used on Forum
#1
I'm seeing a great deal of uncompiled on this site. I've just spent a couple of fruitless hours trying to find a way to display the code here. Currently, if I am interested in something on the Forum, I import it into OverLeaf and do search and replaces until I have compilable LaTeX. Does anyone have a slick fix for reading the LaTeX on this site, or does everyone just read the raw uncompiled LaTeX?
Daniel
Reply
#2
I'm sorry Daniel, idk what is the source of your problem. I do read compiled latex without problems.

Anyways some other sites gave me problems sometimes and I used this trick.

Take this link

Code:
javascript:(function(){if(window.MathJax===undefined){var%20script%20=%20document.createElement(%22script%22);script.type%20=%20%22text/javascript%22;script.src%20=%20%22https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS_HTML%22;var%20config%20=%20%27MathJax.Hub.Config({%27%20+%20%27extensions:%20[%22tex2jax.js%22],%27%20+%20%27tex2jax:%20{%20inlineMath:%20[[%22$%22,%22$%22],[%22\\\\\\\\\\\\(%22,%22\\\\\\\\\\\\)%22]],%20displayMath:%20[[%22$$%22,%22$$%22],[%22\\\\[%22,%22\\\\]%22]],%20processEscapes:%20true%20},%27%20+%20%27jax:%20[%22input/TeX%22,%22output/HTML-CSS%22]%27%20+%20%27});%27%20+%20%27MathJax.Hub.Startup.onload();%27;if%20(window.opera)%20{script.innerHTML%20=%20config}%20else%20{script.text%20=%20config}%20document.getElementsByTagName(%22head%22)[0].appendChild(script);(doChatJax=function(){window.setTimeout(doChatJax,1000);MathJax.Hub.Queue([%22Typeset%22,MathJax.Hub]);})();}else{MathJax.Hub.Queue([%22Typeset%22,MathJax.Hub]);}})();


and odd it to you bookmarks bar


Whenever in some site, mathjax does not render, hit the bookmark you've created. It should fix the problem

Source: I originally got this link in the MathStackExchange chat help section many years ago. Maybe it will fix your problems.

MSE MphLee
Mother Law \((\sigma+1)0=\sigma (\sigma+1)\)
S Law \(\bigcirc_f^{\lambda}\square_f^{\lambda^+}(g)=\square_g^{\lambda}\bigcirc_g^{\lambda^+}(f)\)
Reply
#3
(07/12/2022, 08:27 AM)MphLee Wrote: I'm sorry Daniel, idk what is the source of your problem. I do read compiled latex without problems.

Anyways some other sites gave me problems sometimes and I used this trick.
...

Source: I originally got this link in the MathStackExchange chat help section many years ago. Maybe it will fix your problems.

OMG - thank you so much!!! Fixed me up! I added support for \( and \) in the script following.
Code:
javascript:(function(){if(window.MathJax===undefined){var script = document.createElement("script");script.type = "text/javascript";script.src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS_HTML";var config = %27MathJax.Hub.Config({%27 + %27extensions: ["tex2jax.js"],%27 + %27tex2jax: { inlineMath: [["$","$"],["\\\\\\\\\\\\(","\\\\\\\\\\\\)"]], displayMath: [["\\\\(","\\\\)"],["$$","$$"],["\\\\[","\\\\]"]], processEscapes: true },%27 + %27jax: ["input/TeX","output/HTML-CSS"]%27 + %27});%27 + %27MathJax.Hub.Startup.onload();%27;if (window.opera) {script.innerHTML = config} else {script.text = config} document.getElementsByTagName("head")[0].appendChild(script);(doChatJax=function(){window.setTimeout(doChatJax,1000);MathJax.Hub.Queue(["Typeset",MathJax.Hub]);})();}else{MathJax.Hub.Queue(["Typeset",MathJax.Hub]);}})();
Daniel
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Forum updated to newest mybb bo198214 9 13,693 01/10/2023, 04:57 AM
Last Post: JmsNxn
Question Multiple Tabs Open With the Tetration Forum on Them, and Who's Online Catullus 1 505 07/17/2022, 10:31 AM
Last Post: bo198214
  The forum needs a different font marraco 3 9,241 07/03/2022, 05:45 AM
Last Post: Catullus
  \Ueta Should be Added to This Forum's LaTeX. Catullus 3 1,082 06/30/2022, 10:05 PM
Last Post: MphLee
  Browsers supporting Latex Daniel 7 1,104 06/30/2022, 05:48 AM
Last Post: JmsNxn
Question Tetration Forum Posts on Smart Phones Catullus 1 636 06/25/2022, 07:24 PM
Last Post: tommy1729
  [Poll] Add a new subsection to the forum MphLee 17 1,907 06/15/2022, 10:41 PM
Last Post: MphLee
  Forum is now finally on https /eom bo198214 2 3,899 06/15/2022, 10:35 PM
Last Post: MphLee
  Stop using Mimetex and replace it with a more modern Latex solution Ember Edison 11 4,840 01/07/2022, 01:37 PM
Last Post: Gottfried
  Equation Mode / LaTeX support bo198214 4 13,323 01/19/2021, 03:27 AM
Last Post: JmsNxn



Users browsing this thread: 1 Guest(s)