Forgot password?
 Create new account
View 151|Reply 1

[Wikipedia] show LaTeX source

[Copy link]

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

hbghlyj Posted at 2023-3-5 10:17:45 |Read mode
用户偏好-外观-数学 Default setting is SVG.
en.wikipedia.org/w/index.php?title=Special:Pr … erences#ooui-php-109
Screenshot 2023-03-05 at 02-17-05 Preferences - Wikipedia.png
Select "show LaTeX source" 效果:
Screenshot 2023-03-05 at 02-19-53 Laplace's method - Wikipedia.png

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

 Author| hbghlyj Posted at 2023-3-20 02:01:05
Wikipedia开启Show LaTeX source后
添加以下油猴脚本
  1. // ==UserScript==
  2. // @name        Use MathJax on Wikipedia
  3. // @description Inject MathJax script
  4. // @icon        https://www.mathjax.org/favicon.ico
  5. // @match       https://*.wikipedia.org/*
  6. // @license     GPL
  7. // ==/UserScript==
  8. var scr = document.createElement("script");
  9. scr.innerHTML="MathJax={tex:{inlineMath:[['$','$']]}}";
  10. document.head.appendChild(scr);
  11. var mj = document.createElement("script");
  12. mj.src = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js";
  13. document.head.appendChild(mj);
Copy the Code
平时打开这个脚本可以看MathJax渲染的公式.
需要复制源码时在油猴菜单把脚本关闭, 重载页面, 可以看到LaTeX源码.

手机版Mobile version|Leisure Math Forum

2025-4-20 22:09 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list