1
0
Fork 0

Various updates

This commit is contained in:
Joris van der Hoeven 2017-07-06 16:39:39 +00:00
parent 3397bae788
commit 8fa1f6d542
3 changed files with 46 additions and 48 deletions

View File

@ -20,16 +20,17 @@
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<nbsp>tree inside a table, then the innermost tag is a If you are 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.
For most editing operations, a \Pdefault particular behaviour\Q has been For most editing operations, a \Pdefault particular behaviour\Q has been
defined, which may next be overridden for a few exceptional tags. In our defined. This behaviour may potentially be overridden for a few exceptional
example of structured insertion, the default behaviour of tags. In our example of structured insertion, the default behaviour of
<shortcut|(structured-insert-left)> and <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 of the cursor (when allowed). Inside tables,
this behaviour is overridden so as to insert entire columns.
<\big-figure> <\big-figure>
<\equation*> <\equation*>
@ -55,17 +56,17 @@
below<nbsp>(<shortcut|(structured-insert-down)>). below<nbsp>(<shortcut|(structured-insert-down)>).
</big-figure> </big-figure>
Similarly, in the case of matrices, the keys Similarly, still in the case of matrices, the keys
<shortcut|(structured-insert-start)>, <shortcut|(structured-insert-end)>, <shortcut|(structured-insert-start)>, <shortcut|(structured-insert-end)>,
<shortcut|(structured-insert-top)> and <shortcut|(structured-insert-bottom)> <shortcut|(structured-insert-top)> and <shortcut|(structured-insert-bottom)>
can be used for inserting a new first or last column, <abbr|resp.> a new can be used for inserting a new first or last column, <abbr|resp.> a new
first or last row. The keys <shortcut|(structured-remove-left)> and first or last row. The keys <shortcut|(structured-remove-left)> and
<shortcut|(structured-remove-right)> are mapped to the commands for <shortcut|(structured-remove-right)> are mapped to the commands for
backward <abbr|resp.> forward <em|structured deletion>. In the case of backward <abbr|resp.> forward <em|structured deletion>. For matrices, this
matrices, this will result in the removal of the column before or after the will result in the removal of the column before or after the cursor (see
cursor (see figure<nbsp><reference|matrix-remove-fig>). In order to remove figure<nbsp><reference|matrix-remove-fig>). In order to remove the
the enclosing environment you may use <shortcut|(remove-structure-upwards)> enclosing environment you may use <shortcut|(remove-structure-upwards)> or
or <shortcut|(remove-structure-upwards)>. <shortcut|(remove-structure-upwards)>.
<\big-figure> <\big-figure>
<\equation*> <\equation*>

View File

@ -17,10 +17,8 @@
</enumerate> </enumerate>
Most keyboard shortcuts for structured cursor movements can be used in Most keyboard shortcuts for structured cursor movements can be used in
combination with the<nbsp><prefix|S->-key so as to similtaneously select combination with the<nbsp><prefix|S-><nbhyph>key so as to similtaneously
text while moving around. select text while moving around.
<todo|customizing the behaviour>
<paragraph*|Structured traversal of the document> <paragraph*|Structured traversal of the document>
@ -31,13 +29,13 @@
structured traversal of the entire document. Inside plain text, structured traversal of the entire document. Inside plain text,
<shortcut|(kbd-select-if-active traverse-left)> and <shortcut|(kbd-select-if-active traverse-left)> and
<shortcut|(kbd-select-if-active traverse-right)> allow you to move in a <shortcut|(kbd-select-if-active traverse-right)> allow you to move in a
word-by-word manner, while <shortcut|(kbd-select-if-active traverse-up)> word-by-word manner, whereas <shortcut|(kbd-select-if-active traverse-up)>
and <shortcut|(kbd-select-if-active traverse-down)> correspond to and <shortcut|(kbd-select-if-active traverse-down)> correspond to
paragraph-by-paragraph motion. paragraph-by-paragraph motion.
In the presence of other markup, the <shortcut|(kbd-select-if-active In the presence of other markup, the <shortcut|(kbd-select-if-active
traverse-left)> and <shortcut|(kbd-select-if-active traverse-right)> keys traverse-left)> and <shortcut|(kbd-select-if-active traverse-right)> keys
allow you to visit all accessible cursor positions of the document, except allow you to visit all accessible cursor positions in the document, except
that we keep moving in a word-by-word manner inside plain text. The that we keep moving in a word-by-word manner inside plain text. The
behaviour of the <shortcut|(kbd-select-if-active traverse-up)> and behaviour of the <shortcut|(kbd-select-if-active traverse-up)> and
<shortcut|(kbd-select-if-active traverse-down)> keys is more <shortcut|(kbd-select-if-active traverse-down)> keys is more
@ -58,7 +56,8 @@
previous sectional title using <shortcut|(kbd-select-if-active previous sectional title using <shortcut|(kbd-select-if-active
traverse-previous)>. Subsection and chapter titles are in particular traverse-previous)>. Subsection and chapter titles are in particular
understood to be \Psimilar\Q to section titles. Notice that you may use understood to be \Psimilar\Q to section titles. Notice that you may use
<key|C-Ÿ> to jump to the previous section title. <shortcut|(traverse-previous-section-title)> to jump to the previous
section title.
<paragraph*|Movements inside the innermost tag> <paragraph*|Movements inside the innermost tag>

View File

@ -1,45 +1,46 @@
<TeXmacs|1.0.5.3> <TeXmacs|1.99.5>
<style|tmdoc> <style|<tuple|tmdoc|english>>
<\body> <\body>
<tmdoc-title|Structured variants> <tmdoc-title|Structured variants>
When creating an environment like a theorem, an equation or a list, it When creating an environment like a theorem, an equation or a list, it
frequently happens that one would like to change the environment <em|a frequently happens that one would like to change the environment <em|a
posteriori>. This can be done using the keyboard shortcuts posteriori>. The keyboard shortcuts<nbsp><shortcut|(variant-circulate
<shortcut|(variant-circulate (focus-tree) #t)> and <shortcut|(variant-circulate (focus-tree) #f)> for cycling through the list of (focus-tree) #t)> and <shortcut|(variant-circulate (focus-tree) #f)> allow
<em|structured variants> of the innermost tag in a direct or inverse you to cycle through the list of <em|structured variants> of the innermost
manner. tag, in forward or backward direction, respectively.
For instance, assuming that you are inside a theorem, pressing For instance, assuming that you are inside a theorem, pressing
<shortcut|(variant-circulate (focus-tree) #t)> several times will change the theorem into a proposition, <shortcut|(variant-circulate (focus-tree) #t)> several times will change
a lemma, a corollary, a conjecture and back into a theorem. The the theorem into a proposition, a lemma, a corollary, a conjecture, and
<shortcut|(variant-circulate (focus-tree) #f)> key allows you to cycle in the inverse direction: finally back into a theorem. The <shortcut|(variant-circulate (focus-tree)
theorem<nbsp><with|mode|math|<op|\<rightarrow\>>> #f)> key allows you to cycle in the reverse direction:
conjectur<nbsp><with|mode|math|<op|\<rightarrow\>>> theorem<nbsp><math|<op|\<rightarrow\>>>
corollary<nbsp><with|mode|math|<op|\<rightarrow\>>> conjectur<nbsp><math|<op|\<rightarrow\>>>
lemma<nbsp><with|mode|math|<op|\<rightarrow\>>> corollary<nbsp><math|<op|\<rightarrow\>>>
proposition<nbsp><with|mode|math|<op|\<rightarrow\>>> theorem. lemma<nbsp><math|<op|\<rightarrow\>>> proposition<nbsp><math|<op|\<rightarrow\>>>
theorem.
In the case of mathematical formulas, the <shortcut|(variant-circulate (focus-tree) #t)> shortcuts In the case of mathematical formulas, the <shortcut|(variant-circulate
allows you to change an inline formula like (focus-tree) #t)> shortcut allows you to change an inline formula such as
<with|mode|math|a<rsup|2>+b<rsup|2>=c<rsup|2>> into a displayed formula <math|a<rsup|2>+b<rsup|2>=c<rsup|2>> into the displayed formula
like
<\equation*> <\equation*>
a<rsup|2>+b<rsup|2>=c<rsup|2> a<rsup|2>+b<rsup|2>=c<rsup|2>
</equation*> </equation*>
while taking care of potential ``trailing spaces and punctuation signs''. while taking care of potential \Ptrailing spaces and punctuation signs\Q.
<TeXmacs> also provides the <shortcut|(numbered-toggle (focus-tree))> shortcut for turning numbered <TeXmacs> also provides the <shortcut|(numbered-toggle (focus-tree))>
environments into unnumbered environments and <em|vice versa>. This works shortcut for turning numbered environments into unnumbered environments and
for most common environments like theorems, remarks, tables, equations, <em|vice versa>. This works for most common environments like theorems,
etc. Notice that <shortcut|(numbered-toggle (focus-tree))> also turns an unnumbered itemize environment remarks, tables, equations, etc. Notice that <shortcut|(numbered-toggle
into an enumeration and <em|vice versa>, whereas <shortcut|(variant-circulate (focus-tree) #t)> allows (focus-tree))> also turns an unnumbered itemize environment into an
you to cycle between the available kinds of list items (bullets, dashes, enumeration and <em|vice versa>, whereas <shortcut|(variant-circulate
arrows, <abbr|etc.>). (focus-tree) #t)> allows you to cycle between the available kinds of list
items (bullets, dashes, arrows, <abbr|etc.>).
<tmdoc-copyright|1998--2005|Joris van der Hoeven> <tmdoc-copyright|1998--2005|Joris van der Hoeven>
@ -51,8 +52,5 @@
Documentation License".> Documentation License".>
</body> </body>
<\initial> <initial|<\collection>
<\collection> </collection>>
<associate|language|english>
</collection>
</initial>