掌上百科 - PDAWIKI

 找回密码
 免费注册

QQ登录

只需一步,快速开始

查看: 309|回复: 5

[悬赏] Offline MathJax in MDX/MDD for SEP

[复制链接]
  • TA的每日心情

    昨天 16:56
  • 签到天数: 506 天

    [LV.9]以坛为家II

    发表于 2020-1-5 01:35:26 | 显示全部楼层 |阅读模式
    222
    Previously I made Stanford Encyclopedia of Philosophy in mdx/mdd format but the mathematical notations were not shown properly. Then I saw this post: [教程] 在Mdx中【离线】使用MathJax来渲染数学公式. I paid there but there were nothing but a dead link. I have fixed many bugs from previously published Stanford Encyclopedia of Philosophy.and wish to publish a new version from Winter 2019 Edition with working MathJax. I've already grabbed the data and processed in mdx/mdd format, just waiting to fix the MathJax. " Q! C$ {: I/ L4 w  I

    1 M% ~! d" a, ?# F6 J! @; z

    , Y9 P& T5 R( ]' eIs there anyone who can help me?2 [- p7 N% V* B# T

    最佳答案

    查看完整内容

    download the links to locale, and place .js file in the same directory of mdx call the .js file locally.
  • TA的每日心情
    慵懒
    昨天 07:36
  • 签到天数: 389 天

    [LV.9]以坛为家II

    发表于 2020-1-5 01:35:27 | 显示全部楼层
    nhb42 发表于 2020-1-5 10:33
    & F+ ?$ ]$ i, O" o" Q0 Ulooks like it's online. is there a way to make it offline?

    ; p( ~, M7 ]" x0 w3 E  ?download the links to locale, and place .js file in the same directory of mdx
    / H) |& G. k# _) Ycall the .js file locally.- D/ I  N1 w5 w
  • TA的每日心情
    慵懒
    昨天 07:36
  • 签到天数: 389 天

    [LV.9]以坛为家II

    发表于 2020-1-5 09:48:37 | 显示全部楼层
    试试把下面的.js改为本地的
    3 h& h9 R0 W1 z  N* Fhttp://cdn.mathjax.org/mathjax/latest/MathJax.js( u( R: y6 y  H! S; W& B( @/ F

    / A: {* y" z- `" q7 j9 u0 G2 Y<!DOCTYPE html>3 z: l/ t2 w- h& T5 i0 R3 t
    <html>  i0 E2 x( O% H4 p" }
    <head>
    * [9 g1 s4 {+ x0 U. Z<meta charset="utf-8">
    / @% c; }/ v+ `( i; R4 _4 e: \<title>MathJax AsciiMath Test Page</title>
    6 t5 G( f6 K2 O% \5 Y9 E! u' @<script type="text/javascript"$ q$ ?: d' g9 ?$ o4 g1 T, _
    src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">+ x! a6 C! M. \- O, W3 k7 J
    </script>
    # J- s' X+ D( d, @<script type="text/x-mathjax-config">
    3 }! k; w2 ?- l9 j- X* I3 NMathJax.Hub.Config({: f4 M6 z9 R+ u0 i8 Q: R
    tex2jax: {inlineMath: [['$','$'], ['\(','\)']]}
    / E/ T+ E" l  s) b: m+ k});/ v+ A, {- _* w& k2 x
    </script>
    / ?, r! v" |! D- G</head>
    8 o3 A5 N; z9 E9 C" m% f5 _  r<body>1 y6 k6 y- |4 Z7 T! J
    <div id="pop">
    ; {4 F! v& L" o1 i6 j+ A$$\frac{1}{2}$$7 `  q& e( E4 ]5 G
    </div>, J/ ?# Y) w3 P2 k

    2 R: ?: s0 T' T: [</body>
    * ?$ c* U/ Z$ q1 n</html>
    ( V% V1 ^: X* k
    $ E7 l4 b- L9 @9 \4 U<script type="text/javascript"
    / c: ~5 c/ L/ B  wsrc="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">" g# {0 u$ S4 [6 N: o) c
    </script>
    : t+ {& k4 W; A7 D- @' D; [4 h<script type="text/x-mathjax-config">
    3 Y, S3 L! X0 W6 N" V4 S! v7 m' u$ c: RMathJax.Hub.Config({: p- i! G# X) H0 e1 i2 h( k$ l
    tex2jax: {inlineMath: [['$','$'], ['\(','\)']]}7 Y/ |) F3 F; x3 B5 Z
    });, Z- a: p) B4 s, |- S# ]5 W' c% r
    </script>
    ; b! F/ _! M3 f/ d' n
    & Z$ C; z/ C. c" V; Y这两段代码放到body底部就可以了。
  • TA的每日心情

    昨天 16:56
  • 签到天数: 506 天

    [LV.9]以坛为家II

     楼主| 发表于 2020-1-5 10:33:33 | 显示全部楼层
    dictionaryfan 发表于 2020-1-5 09:48
    - d. m) Y* \8 m9 g" Q$ N试试把下面的.js改为本地的
    2 F' \/ f/ X& n' p: D7 z  Qhttp://cdn.mathjax.org/mathjax/latest/MathJax.js
    2 @* I) d% k( T2 {+ b
    looks like it's online. is there a way to make it offline?
  • TA的每日心情

    昨天 16:56
  • 签到天数: 506 天

    [LV.9]以坛为家II

     楼主| 发表于 2020-1-11 15:39:05 | 显示全部楼层
    dictionaryfan 发表于 2020-1-5 09:48
    ( `0 T* j1 s2 J试试把下面的.js改为本地的
    . D$ V: l. P; S2 h9 j8 Vhttp://cdn.mathjax.org/mathjax/latest/MathJax.js
    : m& k  Q3 x0 N3 n! t
    none of the methods worked with SEP. thanks anyway...
  • TA的每日心情
    慵懒
    昨天 07:36
  • 签到天数: 389 天

    [LV.9]以坛为家II

    发表于 2020-1-11 19:43:49 | 显示全部楼层
    本帖最后由 dictionaryfan 于 2020-1-11 19:58 编辑 ( U1 i2 @) z: C
    nhb42 发表于 2020-1-11 15:39
    7 E/ o' |( d; Xnone of the methods worked with SEP. thanks anyway...

    4 p* l. |( [5 {, xthen try this link mathjax.js:
    ( f& o- S% f$ N: e0 zhttps://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js
    5 [2 C' ?$ d9 Z. z. \* c& e0 J/ Jfile size:63048
    6 ?0 @0 Z  K3 Sthis is the link inside previous one# w6 B2 W) ]+ ]; _+ W$ t
    您需要登录后才可以回帖 登录 | 免费注册

    本版积分规则

    顶部qrcode底部
    关注公众号送论坛充值码
    关注微信公众平台
    关注微信公众号 pdawiki,获取邀请码,看文抢积分,抽奖得浮云! Follow our Wechat official account "pdawiki", get invitation codes, and play the lottery to earn points (积分)!

    小黑屋|手机版|Archiver|PDAWIKI |网站地图

    GMT+8, 2020-8-8 05:52 , Processed in 0.364979 second(s), 7 queries , MemCache On.

    Powered by Discuz! X3.4

    © 2001-2017 Comsenz Inc.

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