* doc/org.texi: More changes to :var table (some examples were wrong)
This commit is contained in:
parent
90aa84ffc1
commit
3c832c9e81
17
doc/org.texi
17
doc/org.texi
|
@ -12259,7 +12259,7 @@ Here are examples of passing values by reference:
|
||||||
@table @dfn
|
@table @dfn
|
||||||
|
|
||||||
@item table
|
@item table
|
||||||
an Org mode table named with either a @code{#+NAME:} or @code{#+TBLNAME:} line
|
an Org mode table named with either a @code{#+DATA:} or @code{#+TBLNAME:} line
|
||||||
@example
|
@example
|
||||||
#+TBLNAME: example-table
|
#+TBLNAME: example-table
|
||||||
| 1 |
|
| 1 |
|
||||||
|
@ -12277,11 +12277,11 @@ an Org mode table named with either a @code{#+NAME:} or @code{#+TBLNAME:} line
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
@item list
|
@item list
|
||||||
a named, simple list (note that nesting is not carried through to the source
|
a simple list named with a @code{#+DATA:} line (note that nesting is not
|
||||||
code block)
|
carried through to the source code block)
|
||||||
|
|
||||||
@example
|
@example
|
||||||
#+NAME: example-list
|
#+DATA: example-list
|
||||||
- simple
|
- simple
|
||||||
- not
|
- not
|
||||||
- nested
|
- nested
|
||||||
|
@ -12291,12 +12291,13 @@ code block)
|
||||||
(print x)
|
(print x)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
#+RESULTS:
|
#+results:
|
||||||
| simple | list |
|
| simple | list |
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
@item code block without arguments
|
@item code block without arguments
|
||||||
a code block name, as assigned by @code{#+NAME:}, followed by parentheses
|
a code block name (from the example above), as assigned by @code{#+NAME:},
|
||||||
|
followed by parentheses
|
||||||
|
|
||||||
@example
|
@example
|
||||||
#+BEGIN_SRC emacs-lisp :var length=table-length()
|
#+BEGIN_SRC emacs-lisp :var length=table-length()
|
||||||
|
@ -12331,10 +12332,10 @@ code block name using standard function call syntax
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
@item literal example
|
@item literal example
|
||||||
a named literal example block
|
a literal example block named with an @code{#+DATA:} line
|
||||||
|
|
||||||
@example
|
@example
|
||||||
#+NAME: literal-example
|
#+DATA: literal-example
|
||||||
#+BEGIN_EXAMPLE
|
#+BEGIN_EXAMPLE
|
||||||
A literal example
|
A literal example
|
||||||
on two lines
|
on two lines
|
||||||
|
|
Loading…
Reference in New Issue