3211
7832
52
Show all posts
kuing 发表于 2024-9-15 09:25 好像不行呀,是我代码写错了吗?
kuing 发表于 2024-9-15 09:38 将 <!--{if !empty($_GET['highlight'])}--> <script> MathJax = { startup: { typeset: false } } </script> <!--{/if}--> 写在头部吗?
window.MathJax = {
673
110K
218
hbghlyj 发表于 2024-9-15 17:42 刚才想建议将此项 startup: {typeset: false} 合并到现有配置,这样 MathJax 配置就只需要一个 <script> ...
kuing 发表于 2024-9-15 09:46 问题是这样是否影响了其他网页的 mathjax
hbghlyj 发表于 2024-9-15 17:49 对于没有“highlight=”的页面,该行将不会出现在 MathJax 配置中,因为它被 if 条件处理为不包含在内 ...
kuing 发表于 2024-9-15 09:56 我那段代码是在论坛后台的“其他头部信息”那里加的
kuing 发表于 2024-9-15 09:56 我那段代码是在论坛后台的“其他头部信息”那里加的,那里的 <!--{if !empty($_GET['highlight'])}--> 好像没用……
hbghlyj 发表于 2024-9-15 18:13 建议将其移至 /template/default/common/header_common.htm,它将变得更容易控制。 如果将来需要更复杂 ...
kuing 发表于 2024-9-15 10:22 我看了下,\template\default\touch\common\header.htm 也引用了 $_G['setting']['seohead'] 这个变量, ...
hbghlyj 发表于 2024-9-15 18:26 我们可以将其复制到引用变量 $_G['setting']['seohead'] 的任何位置,这样一切都会按预期正常工作 ...
kuing 发表于 2024-9-15 10:31 那将来有改动岂不相当麻烦?
hbghlyj 发表于 2024-9-15 18:38 我有一个想法:将那段 MathJax 配置代码移动到模板 mathjax.htm 中,然后包含该模板。 由于 if 条件将在模 ...
kuing 发表于 2024-9-15 10:46 具体如何操作?
<!--{subtemplate common/header}-->
<!--{template common/header}-->
hbghlyj 发表于 2024-9-15 18:56 我想我们应该用以下代码替换所有的 $_ G['setting']['seohead'] <!--{template common/mathjax}--> ...
kuing 发表于 2024-9-15 20:37 ... 你的意思,是不是现在要将 mathjax 的部分写在一个 mathjax.htm 里,然后放入 /template/default/common/ 里面,再在需要的地方加 <!--{template common/mathjax}-->? ...
Discuz! System Error Time: 2024-09-15 21:00:06 +0800 IP: 218.19.138.21 BackTraceID: d2e69c87aee5e25649f8e154938d0b99 Undefined constant "d" PHP Debug No. File Line Code 1 forum.php 71 require(%s) 2 source/module/forum/forum_viewthread.php 1030 include(%s) 3 data/template/1_diy_forum_viewthread.tpl.php 10 include(%s) 4 data/template/1_1_common_header_forum_viewthread.tpl.php 15 include() 5 data/template/1_1_common_mathjax.tpl.php 18 break()
kuing 发表于 2024-9-15 13:01 刚才试了一下,结果就报错了,搞模板是真不会😔
$\LaTeX$ formula tutorial Reply post To last page
Mobile version
2025-7-20 05:49 GMT+8
Powered by Discuz!
Processed in 0.016693 seconds, 28 queries