Forgot password?
 Create new account
View 129|Reply 4

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

[Copy link]

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

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

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

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

701

Threads

110K

Posts

910K

Credits

Credits
94177
QQ

Show all posts

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

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

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

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

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

 Author| hbghlyj Posted at 2024-9-10 15:14:00
kuing 发表于 2024-9-7 08:51
输到 + 时就自动退出上标

该选项可能专为习惯使用键控计算器的用户保留。
我记得在键控计算器中我们输入 2^5+1 然后它会解释为 $2^5+1$.
Screenshot 2024-09-10 151452.png

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

手机版Mobile version|Leisure Math Forum

2025-4-20 22:20 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list