Forgot password?
 Register account
View 295|Reply 4

Desmos教师网站 文字+公式 编辑器

[Copy link]

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

hbghlyj Posted 2024-9-7 12:16 |Read mode
teacher.desmos.com/demo/prosemirror
使用自定义$\leftarrow\ \rightarrow$键处理程序,公式与其他文本之间的边界感觉非常自然

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

 Author| hbghlyj Posted 2024-9-7 12:21
要从数学节点移动到 prosemirror,我们监听 selection transaction 和 view.focus
要从另一个方向移动,我们需要知道是从左侧还是右侧进入节点。在每个数学节点中,我们监听光标选择变化(通过插件),并记住在最后一个 transaction 中光标是在节点前面还是后面。然后我们在 selectNode 回调中使用该信息。

682

Threads

110K

Posts

910K

Credits

Credits
90973
QQ

Show all posts

kuing Posted 2024-9-7 16:51
怎样输入 `x^{a+b}`?怎么输到 + 时就自动退出上标了呢?只会变成 `x^a+b`

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

 Author| hbghlyj Posted 2024-9-7 16:54
Last edited by hbghlyj 2024-9-10 07:16
kuing 发表于 2024-9-7 08:51
输到 + 时就自动退出上标
是的,这是 MathQuill 设置的选项 charsThatBreakOutOfSupSub
如果不需要,我们只需在 MathQuill 配置中将其关闭

MathQuill 配置docs.mathquill.com/en/latest/Config/#charsthatbreakoutofsupsub
Screenshot 2024-09-07 165305.png

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

 Author| hbghlyj Posted 2024-9-10 15:14
kuing 发表于 2024-9-7 08:51
输到 + 时就自动退出上标
该选项可能专为习惯使用键控计算器的用户保留。
我记得在键控计算器中我们输入 2^5+1 然后它会解释为 $2^5+1$.
Screenshot 2024-09-10 151452.png

毕竟,如果我们不喜欢它,我们只需关闭此选项即可😃

Mobile version|Discuz Math Forum

2025-6-5 01:39 GMT+8

Powered by Discuz!

× Quick Reply To Top Edit