GNU TeXmacsUser manualReferenceAboutEnglish·中文
Keyboard configuration

The behaviour of keyboard inside TeXmacs depends on a few user preferences, as specified in the menu Edit\(\rightarrow\)Preferences:

We will now detail specific issues related to the keyboard configuration on various systems.

Please refer to the section on general conventions for explanations on the way keyboard shortcuts are printed in this manual. For more information on keyboard shortcuts, we refer to the general section on how the master the keyboard.

Standard conformance

TeXmacs attempts to be as standard-conformant regarding the various look and feels. However, there are a few general situations in which TeXmacs reserves some keyboard shortcuts for the sake of user-friendliness:

Potential conflicts

The TeXmacs-specific shortcuts are rarely in conflict with standard conventions. Nevertheless, in table ?, we have displayed some more or less standard shortcuts, which might work in other applications, but which will usually not work inside TeXmacs.

Look and feel Shortcut Alternative Meaning
Emacs F10 Show menu bar in window
Emacs ⌘! Shell command
Emacs ⌘'/⌘‘/⌘^ Needed for TeXmacs accents
Emacs ⌘//⌘\/⌘:/⌘;
Emacs ⌘←/⌘→ ⌃←/⌃→ Move word back/forward
Emacs ⌘A/⌘E ⌃↑/⌃↓ Move paragraph back/forward
Emacs ⌘B/⌘F ⌃←/⌃→ Move word back/forward
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

Table 1. Some shortcuts that might work in other applications, but usually not in TeXmacs.

System-wide shortcuts which may take precedence

In addition to the above standard shortcuts, some system-wide applications may define additional global shortcuts, which take precedence over the TeXmacs shortcuts. For instance, under Mac OS X, the application Spaces uses the shortcuts ⌃←, ⌃→, ⌃↑, ⌃↓, ⌃1, ⌃2, ⌃3 and ⌃4 to switch between multiple screens.

One solution to the above problems is to change the problematic global shortcuts in the responsible applications. For instance, Spaces can be configured to use ⌘⌥⌃ as a prefix instead of ⌃ (click on the popup menu behind “To switch between spaces” and simultaneously press ⌘, ⌥ and ⌃). Notice that fn is another key which is not used by TeXmacs.

If you cannot or do not want to change the system-wide shortcuts, then you may use the ⎋-key in order to produce equivalents for the modifier keys ⌘, ⌥ and ⌃. For instance, under Mac OS, ⌃ is equivalent to ⎋⎋. Hence, the TeXmacs shortcut ⌃→ can also be obtained by typing ⎋⎋→, which may coexist with the Spaces shortcut ⌃→. Table ? shows the modifier key combinations which can be obtained using ⎋.

Shortcut Modifier keys
⎋ ⌥
⎋⎋ ⌃
⎋⎋⎋ ⌘
⇧⎋ ⌘⌥
⇧⎋⇧⎋ ⌥⌃
⇧⎋⇧⎋⇧⎋ ⌘⌃

Table 2. Keyboard shortcuts for modifier keys or modifier key combinations.

User-defined shortcuts

If, for some reason, the standard TeXmacs shortcuts are not sufficient or suitable for you, then you may define your own shortcuts.

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".