找回密码
 快速注册
搜索
查看: 44|回复: 1

[Wikipedia] show LaTeX source

[复制链接]

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

hbghlyj 发表于 2023-3-5 10:17 |阅读模式
用户偏好-外观-数学 Default setting is SVG.
en.wikipedia.org/w/index.php?title=Special:Preferences#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

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2023-3-20 02:01
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);
复制代码
平时打开这个脚本可以看MathJax渲染的公式.
需要复制源码时在油猴菜单把脚本关闭, 重载页面, 可以看到LaTeX源码.

手机版|悠闲数学娱乐论坛(第3版)

GMT+8, 2025-3-4 15:49

Powered by Discuz!

× 快速回复 返回顶部 返回列表