Displaying LaTeX used on Forum
#1
I'm seeing a great deal of uncompiled \( \LaTeX \) 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 upgrade bo198214 1 298 10/04/2024, 09:20 PM
Last Post: MphLee
  Forum moves to a new provider bo198214 1 190 09/10/2024, 07:01 PM
Last Post: bo198214
  Forum will be resurrected bo198214 0 430 05/07/2024, 07:56 PM
Last Post: bo198214
  Making the Tetration Forum read only Daniel 15 5,085 01/17/2024, 07:56 PM
Last Post: Gottfried
  \(\LaTeX\) test suite Daniel 1 1,070 05/27/2023, 08:32 PM
Last Post: Daniel
  Forum now at tetrationforum.org bo198214 7 2,492 05/05/2023, 08:13 PM
Last Post: bo198214
  [Poll] Add a new subsection to the forum MphLee 22 11,273 02/21/2023, 06:29 AM
Last Post: JmsNxn
  Forum updated to newest mybb bo198214 9 18,071 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 1,530 07/17/2022, 10:31 AM
Last Post: bo198214
  The forum needs a different font marraco 3 11,314 07/03/2022, 05:45 AM
Last Post: Catullus



Users browsing this thread: 1 Guest(s)