Hybrid commands and LaTeX simulation |
TeXmacs allows you to enter LaTeX commands directly from the keyboard as follows. You first hit the \-key in order to enter the hybrid LaTeX/TeXmacs command mode. Next you type the command you wish to execute. As soon as you finished typing your command, the left footer displays something like
<return>: action to be undertaken
When you hit the return-key at this stage, your command will be executed. For instance, in math-mode, you may create a fraction by typing \ f r a c return.
If the command you have typed is not a (recognized) LaTeX command, then we first look whether the command is an existing TeXmacs macro, function or environment (provided by the style file). If so, the corresponding macro expansion, function application or environment application is created (with the right number of arguments). Otherwise, it is assumed that your command corresponds to an environment variable and we ask for its value. The \-key is always equivalent to one of the commands M-i l, M-i e, M-i a, M-i # or M-i v.
To insert a literal \ (backslash) character, you can use the S-F5 \ sequence.