瀏覽代碼

doc: two tiny tweaks to the babel indexing documentation

Eric Schulte 15 年之前
父節點
當前提交
e3af061f90
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5 3
      doc/org.texi

+ 5 - 3
doc/org.texi

@@ -11537,7 +11537,7 @@ following the source name.
 @subsubheading Indexable variable values
 @subsubheading Indexable variable values
 It is possible to reference portions of variable values by ``indexing'' into
 It is possible to reference portions of variable values by ``indexing'' into
 the variables.  Indexes are 0 based with negative values counting back from
 the variables.  Indexes are 0 based with negative values counting back from
-the end.  If an index is separated by ``,''s then each subsequent section
+the end.  If an index is separated by @code{,}s then each subsequent section
 will index into the next deepest nesting or dimension of the value.  The
 will index into the next deepest nesting or dimension of the value.  The
 following example assigns the last cell of the first row the table
 following example assigns the last cell of the first row the table
 @code{example-table} to the variable @code{data}:
 @code{example-table} to the variable @code{data}:
@@ -11559,7 +11559,7 @@ following example assigns the last cell of the first row the table
 
 
 Ranges of variable values can be referenced using two integer separated by a
 Ranges of variable values can be referenced using two integer separated by a
 @code{:}, in which case the entire inclusive range is referenced.  For
 @code{:}, in which case the entire inclusive range is referenced.  For
-example the following assigns the entire first column of @code{example-table}
+example the following assigns the middle three rows of @code{example-table}
 to @code{data}.
 to @code{data}.
 
 
 @example
 @example
@@ -11568,14 +11568,16 @@ to @code{data}.
 | 2 | b |
 | 2 | b |
 | 3 | c |
 | 3 | c |
 | 4 | d |
 | 4 | d |
+| 5 | 3 |
 
 
-#+begin_src emacs-lisp :var data=example-table[1:2]
+#+begin_src emacs-lisp :var data=example-table[1:3]
   data
   data
 #+end_src
 #+end_src
 
 
 #+results:
 #+results:
 | 2 | b |
 | 2 | b |
 | 3 | c |
 | 3 | c |
+| 4 | d |
 @end example
 @end example
 
 
 Additionally an empty index, or the single character @code{*} are both
 Additionally an empty index, or the single character @code{*} are both