![]() |
Graphical user interface related markup | ![]() |
The following markup elements can be used in order to describe various graphical user interface elements, such as keyboard shortcuts, menus or icons.
shortcut
This macro is used to indicate a keyboard shortcut for a Scheme command. For instance, the shortcut for (new-buffer) is ?.
key
This unary macro is used for explicit keyboard input. For instance, when giving A C-b return as argument, the result is ⇧A⌃B↩.
menu
This function with an arbitrary number of arguments indicates a menu like File or Document\(\rightarrow\)Language. Menu entries are automatically translated by this function.
submenu
Consider the following sentence:
In this example, the menu entries Load and Save were marked using the submenu tag, which takes the implicit File menu as its first invisible argument. This invisible argument is still taken into account when building the index (for instance). In a similar way, we provide subsubmenu and subsubsubmenu tags.
icon
Can be used in order to specify one of the TeXmacs icons, such as
and
. The macro takes
one argument with the file name of the icon (the full path is not
needed).
screenshot
Similar to the icon tag, but for screenshots.
cursor
This macro can be used to indicate a cursor position, as in \(a^2 + b^{2 {|}} = c^2\).
small-focus, small-envbox
This macro can be used for indicating the visual aids around the current focus and the further outer context (e.g. \({\begin{array}{|l|} \hline {\color{black}{a + \frac{b}{{\color{cyan}{\begin{array}{|l|} \hline {\color{black}{c}}\\ \hline \end{array}}}}}}\\ \hline \end{array}}\)), in the case of inline elements.
big-focus, big-envbox
Block versions of small-focus and small-envbox.
Notice that the contents of none of the above tags should be translated into foreign languages. Indeed, for menu tags, the translations are done automatically, so as to keep the translations synchronized with the translations of the actual TeXmacs menus. In the cases of markup, styles, packages and d.t.d.s, it is important to keep the original name, because it often corresponds to a file name.