![]() |
Cut and paste | ![]() |
You can select text and formulas by maintaining the left mouse button. In order to delete the selected region, use Edit\(\rightarrow\)Cut or ⌘X. In order to copy the selected region, first click on Edit\(\rightarrow\)Copy or hit ⌘C. Next, paste it as many times as you want to the location of your cursor, using Edit\(\rightarrow\)Paste or ⌘V. Alternatively, you may copy a selected region using the middle mouse button.
It is also possible to change the text properties of a selected
region. For instance, in order to transform some black text in red,
you select it using the left mouse button and click on Format\(\rightarrow\)Color\(\rightarrow\)
. Similarly, if you select a formula and you
click on Insert\(\rightarrow\)Fraction, then the formula becomes the numerator of the newly created
fraction.
When using the copy and paste mechanism to communicate with other applications, text is copied and pasted using the TeXmacs data format. You may specify other import and export formats using Tools\(\rightarrow\)Miscellaneous\(\rightarrow\)Import selections as resp. Tools\(\rightarrow\)Miscellaneous\(\rightarrow\)Export selections as. Alternatively, you may directly copy to or paste from an external format using the first group of entries in the Edit\(\rightarrow\)Copy to and Edit\(\rightarrow\)Paste from submenus. For instance, a LaTeX formula can be pasted inside a TeXmacs formula using Edit\(\rightarrow\)Paste from\(\rightarrow\)LaTeX.
By default, copying and pasting uses the “primary clipboard”. Using the remaining entries in the Edit\(\rightarrow\)Copy to and Edit\(\rightarrow\)Paste from menus, you may specify as many other clipboards as you like. This allows you to keep multiple selections in memory, ready to be pasted.
There are two ways to make selections using the keyboard. When using the cursor keys ←, →, etc. while holding down the ⇧ button, you may select text while moving around the cursor. Alternatively, you may press ⌥␣ once to fix a starting position. When moving around using the cursor keys, the text between the starting position and the current position keeps being selected. The selection gets cleared by pressing ⌃G.
Notice that the ⌥␣ shortcut also allows you to make structured selections. You may select the current word you are in by pressing ⌥␣ twice. Each additional time you press ⌥␣ results in the selection of the smallest structure that englobes the current selection. Ultimately, when the entire document gets selected, pressing ⌥␣ once more clears the selection.