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> <tmdoc-title|Cut and paste>
You can select text and formulas by maintaining the left mouse button. In 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 order to delete the selected region, use <menu|Edit|Cut> or
the selected region, first click on <menu|Edit|Copy>. Next, paste it as <shortcut|(clipboard-cut "primary")>. In order to copy the selected region,
many times as you want to the location of your cursor, using first click on <menu|Edit|Copy> or hit<nbsp><shortcut|(clipboard-copy
<menu|Edit|Paste>. Alternatively, you may copy a selected region using the "primary")>. Next, paste it as many times as you want to the location of
middle mouse button. 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 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 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|>>>>>>>>.
you select a formula and you click on <menu|Insert|Fraction>, then the Similarly, if you select a formula and you click on <menu|Insert|Fraction>,
formula becomes the numerator of some fraction. then the formula becomes the numerator of the newly created fraction.
When using the copy and paste mechanism to communicate with other When using the copy and paste mechanism to communicate with other
applications, text is copied and pasted using the <TeXmacs> data format. applications, text is copied and pasted using the <TeXmacs> data format.
You may specify other import and export formats using <menu|Edit|Import> You may specify other import and export formats using
resp. <menu|Edit|Export>. By default, copying and pasting uses the primary <menu|Tools|Miscellaneous|Import selections as> <abbr|resp.>
text buffer. Using <menu|Edit|Copy to> and <menu|Edit|Paste from>, you may <menu|Tools|Miscellaneous|Export selections as>. Alternatively, you may
specify as many other buffers as you like. 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 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 cursor keys<nbsp><key|left>, <key|right>, <abbr|etc.> while holding down
<prefix|S-> button, you may select text while moving around the cursor. 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 Alternatively, you may press <shortcut|(kbd-select-enlarge)> once to fix a
starting position. When moving around using the cursor keys, the text starting position. When moving around using the cursor keys, the text
between the starting position and the current position keeps being 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)>. <shortcut|(selection-cancel)>.
Notice that the <shortcut|(kbd-select-enlarge)> shortcut also allows you to 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> <\body>
<tmdoc-title|Editing tools> <tmdoc-title|Editing tools>
In this chapter, we discuss the general editing facilities present in In this chapter, we discuss some of the general editing facilities that are
<TeXmacs>. Besides classical features, like ``cut and paste'', ``search and implemented in <TeXmacs>. Of course, this includes basic operations that
replace'', <abbr|etc.>, <TeXmacs> also supports additional functionality can also be found in other editors: \Pcut and paste\Q, \Psearch and
which exploits the document structure. Examples of such features are replace\Q, etc. But, more interestingly, some of these facilities take
\ ``structured cursor movement'' and ``structured variants''. It should be advantage of the additional structure of <TeXmacs> documents. Typical
noticed that more traditional functions like ``search and replace'' also examples of \Pstructured editing features\Q are \Pstructured cursor
attempt to exploit the structure. For instance, when searching <math|x> in movement\Q and \Pstructured variants\Q. Traditional operations such as
math mode, you will only find matches which are also in math mode. \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> <\traverse>
<branch|Cut and paste|man-cut-and-paste.en.tm> <branch|Cut and paste|man-cut-and-paste.en.tm>
@ -44,8 +46,5 @@
Documentation License".> Documentation License".>
</body> </body>
<\initial> <initial|<\collection>
<\collection> </collection>>
<associate|language|english>
</collection>
</initial>

View File

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

View File

@ -6,12 +6,12 @@
<tmdoc-title|Structured editing> <tmdoc-title|Structured editing>
As a general rule, the behaviour of most structured editing operations is As a general rule, the behaviour of most structured editing operations is
conditioned by the <em|<rigid|current focus>>. By default, the innermost conditioned by the <em|<rigid|current focus>>. By default, the focus is on
tag that contains the cursor. Whenever some selection is active, the the innermost tag that contains the cursor. Whenever some selection is
current focus is the innermost tag that contains the selection. During active, the focus is rather on the innermost tag that contains the
structured operations, such as navigating among similar tags, the current selection. During structured operations, such as navigating among similar
focus may temporarily be set to something else. The current focus is tags, the focus may temporarily be set to something else. The current focus
visually indicated by the innermost cyan box around the cursor. is visually indicated by the innermost cyan box around the cursor.
For instance, the <em|structured insertion> commands For instance, the <em|structured insertion> commands
<shortcut|(structured-insert-left)>, <shortcut|(structured-insert-right)>, <shortcut|(structured-insert-left)>, <shortcut|(structured-insert-right)>,
@ -20,13 +20,14 @@
allow you to insert new rows and columns (see allow you to insert new rows and columns (see
figure<nbsp><reference|matrix-insert-fig>). Inside trees, they correspond figure<nbsp><reference|matrix-insert-fig>). Inside trees, they correspond
to the insertion of new nodes (see figure<nbsp><reference|tree-insert-fig>). 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 tree, and node insertions will take precedence over the insertion of new
rows and columns. rows and columns.
In many cases, a \Pdefault particular behaviour\Q has been defined for all For most editing operations, a \Pdefault particular behaviour\Q has been
tags minus some exceptional ones. In our example of structured insertion, defined, which may next be overridden for a few exceptional tags. In our
the default behaviour of <shortcut|(structured-insert-left)> and 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 <shortcut|(structured-insert-right)> is to insert a new argument to the tag
at the left or at the right (when allowed). 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 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 the moment that you launched <TeXmacs>. This can be done via
<menu|Edit|Undo> or using the keystrokes <shortcut|(undo 0)> or <menu|Edit|Undo> or using the keystroke <shortcut|(undo 0)>. Undone changes
<shortcut|(undo 0)>. Undone changes can be \Predone\Q using can be \Predone\Q using <menu|Edit|Redo> or <shortcut|(redo 0)>. <TeXmacs>
<menu|Edit|Redo> or <shortcut|(redo 0)>. 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 We notice that only changes in the document itself are taken into account
undone is limited to 100 (by default). It is possible to increase this by the undo system. In particular, modifications of most of the global
number by adding a command like\ 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> <tmdoc-copyright|1998--2017|Joris van der Hoeven>
\ \ \ \ (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-license|Permission is granted to copy, distribute and/or modify this <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 document under the terms of the GNU Free Documentation License, Version 1.1