gpt4 book ai didi

wolfram-mathematica - 有没有办法在 Mathematica 中使用 [[ 和 ]] 作为 Part 吗?

转载 作者:行者123 更新时间:2023-12-03 13:28:32 25 4
gpt4 key购买 nike

有没有办法避免必须做 ⋮[[⋮Part 获得那些漂亮的括号?

enter image description here

运行函数或定义后,有没有办法自动完成?

最佳答案

我在 /Applications/Mathematica.app/SystemFiles/FrontEnd/TextResources/Macintosh/KeyEventTranslations.tr 中添加了以下内容这让我可以用组合键输入双括号。您可以通过修改文件(在您的操作系统上的任何位置)来执行相同的操作。我最初是从 Szabolcs's 得知这一点的网站 here .他那里有其他与数学相关的东西,可能对你有帮助。

添加的命令是:

  • 使用 Ctrl+[
  • 使用 Ctrl+]
  • 〚〛使用 Ctrl+Alt+]

  • KeyEventTranslations.tr 文件中列出的等效项是:

    Modifiers can be "Shift", "Control", "Command", "Option"

    For Macintosh: "Command" = Command Key, "Option" = Option Key

    For X11: "Command" = Mod1, "Option" = Mod2

    For Windows: "Command" = Alt, "Option" = Alt



    EventTranslations[{ 之后插入以下内容在上面的文件中。
    (* Custom keyboard shortcuts *)
    Item[KeyEvent["[", Modifiers -> {Control}],
    FrontEndExecute[{
    FrontEnd`NotebookWrite[FrontEnd`InputNotebook[],
    "\[LeftDoubleBracket]", After]
    }]],
    Item[KeyEvent["]", Modifiers -> {Control}],
    FrontEndExecute[{
    FrontEnd`NotebookWrite[FrontEnd`InputNotebook[],
    "\[RightDoubleBracket]", After]
    }]],
    Item[KeyEvent["]", Modifiers -> {Control, Command}],
    FrontEndExecute[{
    FrontEnd`NotebookWrite[FrontEnd`InputNotebook[],
    "\[LeftDoubleBracket]", After],
    FrontEnd`NotebookWrite[FrontEnd`InputNotebook[],
    "\[RightDoubleBracket]", Before]
    }]],

    你不是唯一一个被它激怒的人。 Here's我试图通过将 Caps 锁定映射到 Esc 来避免不得不拉伸(stretch)以击中 Esc。巫师先生也有一个 couplequestions[[ 的转换有关至 .

    关于wolfram-mathematica - 有没有办法在 Mathematica 中使用 [[ 和 ]] 作为 Part 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7327411/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com