GNU TeXmacsUser manualReferenceAboutEnglish·中文

键盘配置

TeXmacs键盘的行为模式由编辑\(\rightarrow\)首选项中的一些用户选项指定:

下面要讨论的是在不同系统上的键盘配置问题。

关于快捷键在文档中的显示,请阅读惯例。另外,键盘快捷键的相关细节,请参考精通键盘这一节。

一致的标准键位

TeXmacs已经尽量使快捷键和其它平台一致。然而为了方便用户,TeXmacs保留一些通用的键盘快捷键:

潜在的冲突

TeXmacs专用的快捷键基本不会和惯例冲突。然而,在表格 ?中,我们还是可以列出一些标准的快捷键。这些快捷键在其他应用程序中可以工作,但是在TeXmacs中不奏效。(注:表格中列出的快捷键并不完全符合。)

表格 1. 一些在其他软件中可用、在TeXmacs不可用的快捷键

快捷键风格 快捷键 备选 作用
Emacs F10 在窗口中显示菜单栏
Emacs ⌘! Shell命令
Emacs ⌘'/⌘‘/⌘^ Needed for TeXmacs accents
Emacs ⌘//⌘\/⌘:/⌘;
Emacs ⌃←/⌃→ ⌘←/⌘→ 以单词为单位前进/后退
Emacs ⌃↑/⌃↓ 以段落为单位前进/后退
Emacs ⌘B/⌘F 以字符为单位前进/后退
Emacs ⌘L/⌘T Locase/transpose words (not impl.)
Windows F5 Refresh/Switch to next pane
Windows F6/⌃F6/⌃⇧F6 Switch to next/previous pane/tab
Windows ⌃␣ Remove formatting
Windows ⌃⇥ Switch to next child window
Windows ⌃⌫/⌃⌦ Delete word
Mac OS ⌃F5/⌃F6/⌃⇧F6 Move focus to toolbar/panels
Mac OS ⌃F7 Override keyboard access mode
Mac OS F9/F10 Tile or untile windows
Mac OS F11/F12 Hide or show windows/dashboard
Mac OS ⇥/⇧⇥ Navigate through controls
Mac OS ⌃⇥, ⌃⇧⇥ Move focus within control groups
Mac OS ⌃␣/⌘⌃␣ Toggle between input sources
Mac OS ⌃←/⌃→ ⌘⌃←/⌘⌃→ Move one cell left/right in table
Mac OS ⌃↑/⌃↓ ⌘⌃↑/⌘⌃↓ Move one cell up/down in table
Mac OS ↖/↘ ⌘↑/⌘↓ Move to start/end of document
Mac OS ⌥⇞, ⌃↑, ⌃⇞ ⇞ Page up
Mac OS ⌥⇟, ⌃↓, ⌃⇟ ⇟ Page down
Mac OS ⌃A/⌃E ⌥↑/⌥↓ Move to start/end of block
优先的系统全局快捷键

除了上述标准快捷键,系统的全局应用会定义一些额外的全局快捷键,这些快捷键会覆盖掉TeXmacs的快捷键。比如,Mac OS X中Spaces这个应用会用⌃←, ⌃→, ⌃↑, ⌃↓, ⌃1, ⌃2, ⌃3和⌃4在多个屏幕中切换。

这个问题的一种解决方案是在相应的应用中改变出问题的全局快捷键。比如,Spaces可以把前缀⌃改为⌘⌥⌃。另外,TeXmacs没有使用fn这个键。

如果你不能或不想改变全局的快捷键,你可以用⎋来产生和⌘, ⌥与⌃等价的修饰键。所以,你可以输入⎋⎋→以在TeXmacs产生⌃→的效果。表格 ?所示即可以用⎋得到的修饰键及组合。

表格 2. 快捷键和对应修饰键或修饰键组合

快捷键 修饰键
⎋ ⌥
⎋⎋ ⌃
⎋⎋⎋ ⌘
⇧⎋ ⌘⌥
⇧⎋⇧⎋ ⌥⌃
⇧⎋⇧⎋⇧⎋ ⌘⌃
用户自定义快捷键

TeXmacs默认的快捷键不合你的心意时,你还可以配置你自己的快捷键.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".