1
0
Fork 0

Various updates and rephrasings

This commit is contained in:
Joris van der Hoeven 2017-07-06 15:05:22 +00:00
parent 6b74364c06
commit 3397bae788
5 changed files with 71 additions and 60 deletions

View File

@ -6,32 +6,42 @@
<tmdoc-title|Cut and paste>
You can select text and formulas by maintaining the left mouse button. In
order to delete the selected region, use <menu|Edit|Cut>. In order to copy
the selected region, first click on <menu|Edit|Copy>. Next, paste it as
many times as you want to the location of your cursor, using
<menu|Edit|Paste>. Alternatively, you may copy a selected region using the
middle mouse button.
order to delete the selected region, use <menu|Edit|Cut> or
<shortcut|(clipboard-cut "primary")>. In order to copy the selected region,
first click on <menu|Edit|Copy> or hit<nbsp><shortcut|(clipboard-copy
"primary")>. Next, paste it as many times as you want to the location of
your cursor, using <menu|Edit|Paste> or<nbsp><shortcut|(clipboard-paste
"primary")>. Alternatively, you may copy a selected region using the middle
mouse button.
It is also possible to the change text properties of a selected region. For
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 <menu|Format|Color|Red>. Similarly, if
you select a formula and you click on <menu|Insert|Fraction>, then the
formula becomes the numerator of some fraction.
the left mouse button and click on <render-menu|Format|<rigid|<render-menu|Color|<tabular*|<tformat|<cwith|1|1|1|1|cell-vcorrect|n>|<cwith|1|1|1|1|cell-lsep|1spc>|<cwith|1|1|1|1|cell-rsep|1spc>|<cwith|1|1|1|1|cell-bsep|1spc>|<cwith|1|1|1|1|cell-tsep|1spc>|<cwith|1|1|1|1|cell-width|1.5em>|<cwith|1|1|1|1|cell-hmode|exact>|<cwith|1|1|1|1|cell-background|red>|<table|<row|<cell|>>>>>>>>.
Similarly, if you select a formula and you click on <menu|Insert|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 <menu|Edit|Import>
resp. <menu|Edit|Export>. By default, copying and pasting uses the primary
text buffer. Using <menu|Edit|Copy to> and <menu|Edit|Paste from>, you may
specify as many other buffers as you like.
You may specify other import and export formats using
<menu|Tools|Miscellaneous|Import selections as> <abbr|resp.>
<menu|Tools|Miscellaneous|Export selections as>. Alternatively, you may
directly copy to or paste from an external format using the first group of
entries in the <menu|Edit|Copy to> and <menu|Edit|Paste from> submenus. For
instance, a <LaTeX> formula can be pasted inside a <TeXmacs> formula using
<menu|Edit|Paste from|LaTeX>.
By default, copying and pasting uses the \Pprimary clipboard\Q. Using the
remaining entries in the <menu|Edit|Copy to> and <menu|Edit|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 <key|left>, <key|right>, <abbr|etc.> while holding down the
<prefix|S-> button, you may select text while moving around the cursor.
cursor keys<nbsp><key|left>, <key|right>, <abbr|etc.> while holding down
the <prefix|S-> button, you may select text while moving around the cursor.
Alternatively, you may press <shortcut|(kbd-select-enlarge)> 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 when pressing
selected. The selection gets cleared by pressing
<shortcut|(selection-cancel)>.
Notice that the <shortcut|(kbd-select-enlarge)> shortcut also allows you to

View File

@ -1,18 +1,20 @@
<TeXmacs|1.0.7.7>
<TeXmacs|1.99.5>
<style|tmdoc>
<style|<tuple|tmdoc|english>>
<\body>
<tmdoc-title|Editing tools>
In this chapter, we discuss the general editing facilities present in
<TeXmacs>. Besides classical features, like ``cut and paste'', ``search and
replace'', <abbr|etc.>, <TeXmacs> also supports additional functionality
which exploits the document structure. Examples of such features are
\ ``structured cursor movement'' and ``structured variants''. It should be
noticed that more traditional functions like ``search and replace'' also
attempt to exploit the structure. For instance, when searching <math|x> in
math mode, you will only find matches which are also in math mode.
In this chapter, we discuss some of the general editing facilities that are
implemented in <TeXmacs>. Of course, this includes basic operations that
can also be found in other editors: \Pcut and paste\Q, \Psearch and
replace\Q, etc. But, more interestingly, some of these facilities take
advantage of the additional structure of <TeXmacs> documents. Typical
examples of \Pstructured editing features\Q are \Pstructured cursor
movement\Q and \Pstructured variants\Q. Traditional operations such as
\Psearch and replace\Q also attempt to exploit the document structure. For
instance, when searching <math|x> in math mode, you will only find matches
that are also in math mode.
<\traverse>
<branch|Cut and paste|man-cut-and-paste.en.tm>
@ -44,8 +46,5 @@
Documentation License".>
</body>
<\initial>
<\collection>
<associate|language|english>
</collection>
</initial>
<initial|<\collection>
</collection>>

View File

@ -12,15 +12,16 @@
your texts have been written have been installed on your system; this is
usually the case for English.
When you launch the spell checker (either on the whole text or a selected
region), you will be prompted at each misspelled word and the footer
displays the available options:
When you launch the spell checker (either on the whole text or on a
selected region), you will be prompted at each misspelled word and the
footer displays the available options:
<\description>
<item*|a)>Accepts the misspelled word and all its future occurrences in
the text.
<item*|r)>Replace the misspelled word by a correction you have to enter.
<item*|r)>Replace the misspelled word by a correction that you have to
enter.
<item*|i)>Indicate that the \Pmisspelled\Q word is actually correct and
that it has to be inserted in your personal dictionary.

View File

@ -6,12 +6,12 @@
<tmdoc-title|Structured editing>
As a general rule, the behaviour of most structured editing operations is
conditioned by the <em|<rigid|current focus>>. By default, the innermost
tag that contains the cursor. Whenever some selection is active, the
current focus is the innermost tag that contains the selection. During
structured operations, such as navigating among similar tags, the current
focus may temporarily be set to something else. The current focus is
visually indicated by the innermost cyan box around the cursor.
conditioned by the <em|<rigid|current focus>>. By default, the focus is on
the innermost tag that contains the cursor. Whenever some selection is
active, the focus is rather on the innermost tag that contains the
selection. During structured operations, such as navigating among similar
tags, the focus may temporarily be set to something else. The current focus
is visually indicated by the innermost cyan box around the cursor.
For instance, the <em|structured insertion> commands
<shortcut|(structured-insert-left)>, <shortcut|(structured-insert-right)>,
@ -20,13 +20,14 @@
allow you to insert new rows and columns (see
figure<nbsp><reference|matrix-insert-fig>). Inside trees, they correspond
to the insertion of new nodes (see figure<nbsp><reference|tree-insert-fig>).
Whenever you inside a tree inside a table, then the innermost tag is a
Whenever you inside a<nbsp>tree inside a table, then the innermost tag is a
tree, and node insertions will take precedence over the insertion of new
rows and columns.
In many cases, a \Pdefault particular behaviour\Q has been defined for all
tags minus some exceptional ones. In our example of structured insertion,
the default behaviour of <shortcut|(structured-insert-left)> and
For most editing operations, a \Pdefault particular behaviour\Q has been
defined, which may next be overridden for a few exceptional tags. In our
example of structured insertion, the default behaviour of
<shortcut|(structured-insert-left)> and
<shortcut|(structured-insert-right)> is to insert a new argument to the tag
at the left or at the right (when allowed).

View File

@ -7,23 +7,23 @@
It is possible to gradually undo the changes you made in a document from
the moment that you launched <TeXmacs>. This can be done via
<menu|Edit|Undo> or using the keystrokes <shortcut|(undo 0)> or
<shortcut|(undo 0)>. Undone changes can be \Predone\Q using
<menu|Edit|Redo> or <shortcut|(redo 0)>.
<menu|Edit|Undo> or using the keystroke <shortcut|(undo 0)>. Undone changes
can be \Predone\Q using <menu|Edit|Redo> or <shortcut|(redo 0)>. <TeXmacs>
maintains the entire \Phistory tree\Q of all your edits. Sometimes, after
multiple undo and redo actions, this means that there can be several ways
to redo some modification; in that case, <menu|Edit|Redo> becomes a menu in
which you can select the appropriate branch.
In order to save memory, the number of successive actions that can be
undone is limited to 100 (by default). It is possible to increase this
number by adding a command like\
We notice that only changes in the document itself are taken into account
by the undo system. In particular, modifications of most of the global
document properties can not be undone. This includes modifications of the
document style, the page size, the main font, etc. The same remark applies
to any modifications outside <TeXmacs> that were triggered by your actions.
For instance, in a computer algebra session, you can undo your edits inside
<TeXmacs>, but not the computations in the external computer algebra
system.
<\verbatim>
\ \ \ \ (set-maximal-undo-depth 1000)
</verbatim>
in our personal initialization file (see <menu|Help|Scheme>). When
specifying a negative number as your maximal undo depth, any number of
actions can be undone.
<tmdoc-copyright|1998--2002|Joris van der Hoeven>
<tmdoc-copyright|1998--2017|Joris van der Hoeven>
<tmdoc-license|Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License, Version 1.1