documentation patch, Babel header arguments
This commit is contained in:
parent
c9bb51e883
commit
0cb3c523df
16
doc/org.texi
16
doc/org.texi
|
@ -456,6 +456,7 @@ Using header arguments
|
||||||
* Buffer-wide header arguments:: Set default values for a specific buffer
|
* Buffer-wide header arguments:: Set default values for a specific buffer
|
||||||
* Header arguments in Org-mode properties:: Set default values for a buffer or heading
|
* Header arguments in Org-mode properties:: Set default values for a buffer or heading
|
||||||
* Code block specific header arguments:: The most common way to set values
|
* Code block specific header arguments:: The most common way to set values
|
||||||
|
* Header arguments in function calls::
|
||||||
|
|
||||||
Specific header arguments
|
Specific header arguments
|
||||||
|
|
||||||
|
@ -11299,7 +11300,7 @@ Code blocks defined in the ``Library of Babel'' can be called remotely as if
|
||||||
they were in the current Org-mode buffer (see @ref{Evaluating code blocks}
|
they were in the current Org-mode buffer (see @ref{Evaluating code blocks}
|
||||||
for information on the syntax of remote code block evaluation).
|
for information on the syntax of remote code block evaluation).
|
||||||
|
|
||||||
@kindex C-c C-v l
|
@kindex C-c C-v i
|
||||||
Code blocks located in any Org-mode file can be loaded into the ``Library of
|
Code blocks located in any Org-mode file can be loaded into the ``Library of
|
||||||
Babel'' with the @code{org-babel-lob-ingest} function, bound to @kbd{C-c C-v
|
Babel'' with the @code{org-babel-lob-ingest} function, bound to @kbd{C-c C-v
|
||||||
i}.
|
i}.
|
||||||
|
@ -11378,7 +11379,7 @@ describes each header argument in detail.
|
||||||
@node Using header arguments, Specific header arguments, Header arguments, Header arguments
|
@node Using header arguments, Specific header arguments, Header arguments, Header arguments
|
||||||
@subsection Using header arguments
|
@subsection Using header arguments
|
||||||
|
|
||||||
The values of header arguments can be set in five different ways, each more
|
The values of header arguments can be set in six different ways, each more
|
||||||
specific (and having higher priority) than the last.
|
specific (and having higher priority) than the last.
|
||||||
@menu
|
@menu
|
||||||
* System-wide header arguments:: Set global default values
|
* System-wide header arguments:: Set global default values
|
||||||
|
@ -11386,6 +11387,7 @@ specific (and having higher priority) than the last.
|
||||||
* Buffer-wide header arguments:: Set default values for a specific buffer
|
* Buffer-wide header arguments:: Set default values for a specific buffer
|
||||||
* Header arguments in Org-mode properties:: Set default values for a buffer or heading
|
* Header arguments in Org-mode properties:: Set default values for a buffer or heading
|
||||||
* Code block specific header arguments:: The most common way to set values
|
* Code block specific header arguments:: The most common way to set values
|
||||||
|
* Header arguments in function calls:: The most specific level
|
||||||
@end menu
|
@end menu
|
||||||
|
|
||||||
|
|
||||||
|
@ -11480,7 +11482,7 @@ Properties defined in this way override the properties set in
|
||||||
@code{org-set-property} function bound to @kbd{C-c C-x p} to set properties
|
@code{org-set-property} function bound to @kbd{C-c C-x p} to set properties
|
||||||
in Org-mode documents.
|
in Org-mode documents.
|
||||||
|
|
||||||
@node Code block specific header arguments, , Header arguments in Org-mode properties, Using header arguments
|
@node Code block specific header arguments, Header arguments in function calls, Header arguments in Org-mode properties, Using header arguments
|
||||||
@subsubheading Code block specific header arguments
|
@subsubheading Code block specific header arguments
|
||||||
|
|
||||||
The most common way to assign values to header arguments is at the
|
The most common way to assign values to header arguments is at the
|
||||||
|
@ -11501,14 +11503,18 @@ fac 0 = 1
|
||||||
fac n = n * fac (n-1)
|
fac n = n * fac (n-1)
|
||||||
#+end_src
|
#+end_src
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
Similarly, it is possible to set header arguments for inline code blocks:
|
Similarly, it is possible to set header arguments for inline code blocks:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
src_haskell[:exports both]@{fac 5@}
|
src_haskell[:exports both]@{fac 5@}
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
Header arguments for ``Library of Babel'' or function call lines can be set as shown below:
|
@node Header arguments in function calls, , Code block specific header arguments, Using header arguments
|
||||||
|
@comment node-name, next, previous, up
|
||||||
|
@subsubheading Header arguments in function calls
|
||||||
|
|
||||||
|
At the most specific level, header arguments for ``Library of Babel'' or
|
||||||
|
function call lines can be set as shown below:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
#+call: factorial(n=5) :exports results
|
#+call: factorial(n=5) :exports results
|
||||||
|
|
Loading…
Reference in New Issue