|
发表于 2016-3-9 23:56:54
|
显示全部楼层
本帖最后由 Oeasy 于 2016-3-9 23:59 编辑
( u! h" d# u+ [. s3 Q4 D/ Z/ H3 ^) x- { X: z1 U' J' i3 ^: N
C4 H4 ?4 s n4 F6 f
. @5 Q& f! Q: d4 x5 o# p! HMDict PC 版,升级了系统内核的版本,是支持 MathJax 的。" Z5 f W- m: W! r% [- E$ s" A
升级办法 https://www.pdawiki.com/forum/fo ... &fromuid=147948
: L7 Q4 Y, z) G% M/ B# D) n1 w如附件 test-src.txt ,build 为 mdx 后,用升级了内核的 MDict PC 版打开,效果如图:2 L6 v# D! F- y0 s
尴尬的是,MathJax.js得联网获取(src="http://cdn.bootcss.com/mathjax/2.4.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"),打包到 mdd 或者单纯和 mdx 放在一个目录下,实测没效果,GoldenDict 至少我目前用的版本,各种方式,MathJax.js 都不起作用。1 p A2 j- c+ R2 B7 b1 w# ?
/ u, g' h6 h# {7 V% a7 @0 B6 T1 l2 Q# q
test-src.txt 内容:
" z) c- G8 L [- test0 o# q5 f# d0 B* [# H2 P4 i4 m
- <!DOCTYPE html>! o) m+ W1 K/ b& L
- <html>; x) `. Q" e, d: U9 e/ y: r
- <head>, P3 I: X4 S4 s6 s( [. O
- <title>MathJax TeX Test Page</title>% l; t8 {! L+ ^+ W
- <!-- Copyright (c) 2010-2015 The MathJax Consortium -->
% [& K5 p( y: t& P6 \! C - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />, U$ n; v) \9 }: D/ ?$ @
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
( }) C! S" s" m2 B - <meta name="viewport" content="width=device-width, initial-scale=1">
5 s& ]0 O7 {3 s% h
( U3 U% G# \! e5 G7 G- <script type="text/x-mathjax-config">/ {6 E8 e6 L7 R8 m- |
- MathJax.Hub.Config({
9 ^( A" d6 m* K - tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
. X% V' h$ } ?2 `9 X, @ - });( F- F, }% A- j
- </script>
) Y" t: s: D4 T i# a - <script type="text/javascript" src="http://cdn.bootcss.com/mathjax/2.4.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>2 g+ z. j* X& s
7 [$ C ~% l" G# a0 R7 T8 t- </head>
! ?2 Y- m% Q9 }9 i - <body>
9 m: s( p2 N( e0 ?& e/ `! V - 7 x* J$ e6 ], `
- <p>8 d+ P+ C% D8 n; F' c! J: C
- When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are5 {& B1 @% p J# h
- $x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$" m M2 f) |. Q6 u7 `
- </p>7 Q; m$ d i) g
- }, U4 a9 _ `( r, m9 C
- </body>$ ~9 ^+ z: \# `0 d
- </html>
复制代码 3 V, C0 ~5 R2 q# p7 a& n! |: h
* q. r: O7 z. Y
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?免费注册
x
|