掌上百科 - PDAWIKI

 找回密码
 免费注册

QQ登录

只需一步,快速开始

查看: 196|回复: 5

[求助] Offline MathJax in MDX/MDD for SEP

[复制链接]
  • TA的每日心情
    奋斗
    2 小时前
  • 签到天数: 322 天

    [LV.8]以坛为家I

    发表于 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.
    5 M6 |; v6 F& B9 x3 J# R
    + |: ~# P/ J8 U! Y' F0 i1 ~4 {
    + F5 B! g5 m& ^
    Is there anyone who can help me?
    , |4 @* f3 e. b

    最佳答案

    查看完整内容

    download the links to locale, and place .js file in the same directory of mdx call the .js file locally.
  • TA的每日心情
    奋斗
    昨天 08:18
  • 签到天数: 225 天

    [LV.7]常住居民III

    发表于 2020-1-5 01:35:27 | 显示全部楼层
    nhb42 发表于 2020-1-5 10:33. s( a; @. D. T1 ~# @
    looks like it's online. is there a way to make it offline?
    ( L9 r- d! T/ J) F  f
    download the links to locale, and place .js file in the same directory of mdx
    1 T4 Q9 c& Y* T: R  p8 o% O7 Q/ Ecall the .js file locally.8 o1 ?- q0 F8 j# a+ V2 p
  • TA的每日心情
    奋斗
    昨天 08:18
  • 签到天数: 225 天

    [LV.7]常住居民III

    发表于 2020-1-5 09:48:37 | 显示全部楼层
    试试把下面的.js改为本地的
    ( F8 H7 |! y& ?, }http://cdn.mathjax.org/mathjax/latest/MathJax.js" M& q$ s+ P+ g, {  X
    : V+ _& l0 n9 t2 M+ x/ S
    <!DOCTYPE html>
    7 x. H' e1 i* I5 F  T<html>( u& _& s( c2 s( o# G# L" [
    <head>
    2 i* w& Y/ w7 F3 }2 Y0 E<meta charset="utf-8">4 h  c2 u& s4 S; Z" V& O
    <title>MathJax AsciiMath Test Page</title>
    # }) h$ c% \) `  y<script type="text/javascript"& {# J& d) _* j
    src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
    : R7 v' v7 @  f4 Q& z( O5 R$ o</script>
    9 v! ]6 G, E. B! p* j% ]) j/ Z<script type="text/x-mathjax-config">
    5 k+ X2 p, J8 I7 F8 C9 d; K6 x6 wMathJax.Hub.Config({1 f4 K) _& r  {5 Z( u
    tex2jax: {inlineMath: [['$','$'], ['\(','\)']]}, e7 w9 i7 `9 \, C! ~
    });/ F$ L+ @. M+ s$ b8 y
    </script>$ M% t8 D+ {" F! ^
    </head>
    6 {8 y! n' i* T7 V5 w$ w<body>. l; G, L& u8 Z
    <div id="pop">
    6 g7 g& s& N" m* w, Q* I5 I$$\frac{1}{2}$$
    ' s# _- A6 w3 x' m</div>
    0 x8 E* c) r  k. f+ I  J
    $ e* F" L6 t- q</body>
    . K7 K9 Y: Z6 m) w5 D$ d! x</html>
    $ R( C0 v& v* ^; i& l
    4 k( Q$ T) H" B# q1 c<script type="text/javascript"
    + B5 F; Y8 y8 g6 }2 {src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
    6 n% u$ z  K" q: i, T- z4 I</script>- T4 M2 V$ X0 N0 r3 p5 {, l  {
    <script type="text/x-mathjax-config">
    0 \) V& O: ?7 |; K9 OMathJax.Hub.Config({
    # U. U1 X' t* D" _5 F" Otex2jax: {inlineMath: [['$','$'], ['\(','\)']]}, z% ]' i: g7 C' C) |
    });+ L$ z# ~+ D; o7 B0 f7 m* a6 Q
    </script>
    5 }4 j7 j& o+ q9 o7 m5 @6 w2 f0 q+ o* Z; @2 C$ [( g$ q8 \
    这两段代码放到body底部就可以了。
  • TA的每日心情
    奋斗
    2 小时前
  • 签到天数: 322 天

    [LV.8]以坛为家I

     楼主| 发表于 2020-1-5 10:33:33 | 显示全部楼层
    dictionaryfan 发表于 2020-1-5 09:486 h( Z6 R& _* D8 U
    试试把下面的.js改为本地的
    ) J* b( F" @6 A8 P( y: Mhttp://cdn.mathjax.org/mathjax/latest/MathJax.js

    + `4 K1 K; J; r% K9 p6 Plooks like it's online. is there a way to make it offline?
  • TA的每日心情
    奋斗
    2 小时前
  • 签到天数: 322 天

    [LV.8]以坛为家I

     楼主| 发表于 2020-1-11 15:39:05 | 显示全部楼层
    dictionaryfan 发表于 2020-1-5 09:48& P+ M; ^& g" d5 f
    试试把下面的.js改为本地的
      W' H6 E5 a1 E4 c! H* m/ Xhttp://cdn.mathjax.org/mathjax/latest/MathJax.js

    0 v: u' U8 E( d9 q% Wnone of the methods worked with SEP. thanks anyway...
  • TA的每日心情
    奋斗
    昨天 08:18
  • 签到天数: 225 天

    [LV.7]常住居民III

    发表于 2020-1-11 19:43:49 | 显示全部楼层
    本帖最后由 dictionaryfan 于 2020-1-11 19:58 编辑 7 c: ^, f- B. E& m
    nhb42 发表于 2020-1-11 15:39. j3 C  {2 @7 a' `$ q" t  f
    none of the methods worked with SEP. thanks anyway...
    ' L6 X/ t( M# c. i
    then try this link mathjax.js:) W2 ?9 |% O; R3 V
    https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js
    ( y: Q9 M9 Q4 Q2 v- w/ U6 I9 xfile size:63048
    - B, n8 y2 I1 c+ ~8 K2 Fthis is the link inside previous one
    / O7 i! W2 `7 J" k$ J4 G& a4 U
    您需要登录后才可以回帖 登录 | 免费注册

    本版积分规则

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

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

    GMT+8, 2020-1-20 04:14 , Processed in 0.131491 second(s), 6 queries , MemCache On.

    Powered by Discuz! X3.4

    © 2001-2017 Comsenz Inc.

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