mirror of https://github.com/texmacs/doc.git
correction
This commit is contained in:
parent
66b3b469ce
commit
87a19cbc22
|
@ -1,4 +1,4 @@
|
||||||
<TeXmacs|1.0.6.10>
|
<TeXmacs|1.0.7.16>
|
||||||
|
|
||||||
<style|tmdoc>
|
<style|tmdoc>
|
||||||
|
|
||||||
|
@ -48,33 +48,29 @@
|
||||||
<|explain>
|
<|explain>
|
||||||
Select all compound subtrees with the specified <scm-arg|label>. Example:
|
Select all compound subtrees with the specified <scm-arg|label>. Example:
|
||||||
|
|
||||||
<with|prog-language|scheme|prog-session|default|<\session>
|
<\session|scheme|default>
|
||||||
<\input|scheme] >
|
<\unfolded-io|scheme] >
|
||||||
(select '(document (strong "x") (math "a+b") (strong "y")) '(strong))
|
(select '(document (strong "x") (math "a+b") (strong "y")) '(strong))
|
||||||
</input>
|
<|unfolded-io>
|
||||||
|
|
||||||
<\output>
|
|
||||||
((strong "x") (strong "y"))
|
((strong "x") (strong "y"))
|
||||||
</output>
|
</unfolded-io>
|
||||||
</session>>
|
</session>
|
||||||
</explain>
|
</explain>
|
||||||
|
|
||||||
<\explain>
|
<\explain>
|
||||||
<scm|:#1>, <scm|:#2>, <scm|:#3>, ...<explain-synopsis|select descendants
|
<scm|:%1>, <scm|:%2>, <scm|:%3>, ...<explain-synopsis|select descendants
|
||||||
of a given generation>
|
of a given generation>
|
||||||
<|explain>
|
<|explain>
|
||||||
The pattern <scm|:#n>, where <scm|n> is a number, selects all descendants
|
The pattern <scm|:%n>, where <scm|n> is a number, selects all descendants
|
||||||
of the <scm|n>-th generation. Example:
|
of the <scm|n>-th generation. Example:
|
||||||
|
|
||||||
<with|prog-language|scheme|prog-session|default|<\session>
|
<\session|scheme|default>
|
||||||
<\input|scheme] >
|
<\unfolded-io|scheme] >
|
||||||
(select '(foo (bar "x" "y") (slash (dot))) '(:#2))
|
(select '(foo (bar "x" "y") (slash (dot))) '(:%2))
|
||||||
</input>
|
<|unfolded-io>
|
||||||
|
|
||||||
<\output>
|
|
||||||
("x" "y" (dot))
|
("x" "y" (dot))
|
||||||
</output>
|
</unfolded-io>
|
||||||
</session>>
|
</session>
|
||||||
</explain>
|
</explain>
|
||||||
|
|
||||||
<\explain>
|
<\explain>
|
||||||
|
@ -98,15 +94,13 @@
|
||||||
This pattern matches the input tree if and only the input tree matches
|
This pattern matches the input tree if and only the input tree matches
|
||||||
the specified <scm-arg|pattern> according to <scm|match?>. Example:
|
the specified <scm-arg|pattern> according to <scm|match?>. Example:
|
||||||
|
|
||||||
<with|prog-language|scheme|prog-session|default|<\session>
|
<\session|scheme|default>
|
||||||
<\input|scheme] >
|
<\unfolded-io|scheme] >
|
||||||
(select '(foo "x" (bar)) '(:#1 (:match :string?)))
|
(select '(foo "x" (bar)) '(:%1 (:match :string?)))
|
||||||
</input>
|
<|unfolded-io>
|
||||||
|
|
||||||
<\output>
|
|
||||||
("x")
|
("x")
|
||||||
</output>
|
</unfolded-io>
|
||||||
</session>>
|
</session>
|
||||||
</explain>
|
</explain>
|
||||||
|
|
||||||
<\explain>
|
<\explain>
|
||||||
|
@ -140,14 +134,14 @@
|
||||||
<scm|:next><explain-synopsis|next child>
|
<scm|:next><explain-synopsis|next child>
|
||||||
<|explain>
|
<|explain>
|
||||||
If the input tree is the <math|i>-th child of its parent, then this
|
If the input tree is the <math|i>-th child of its parent, then this
|
||||||
pattern will select the <math|(i+1)>-th child.
|
pattern will select the <math|<around|(|i+1|)>>-th child.
|
||||||
</explain>
|
</explain>
|
||||||
|
|
||||||
<\explain>
|
<\explain>
|
||||||
<scm|:previous><explain-synopsis|previous child>
|
<scm|:previous><explain-synopsis|previous child>
|
||||||
<|explain>
|
<|explain>
|
||||||
If the input tree is the <math|i>-th child of its parent, then this
|
If the input tree is the <math|i>-th child of its parent, then this
|
||||||
pattern will select the <math|(i-1)>-th child.
|
pattern will select the <math|<around|(|i-1|)>>-th child.
|
||||||
</explain>
|
</explain>
|
||||||
|
|
||||||
<tmdoc-copyright|2007|Joris van der Hoeven>
|
<tmdoc-copyright|2007|Joris van der Hoeven>
|
||||||
|
|
Loading…
Reference in New Issue