Previous: Code block specific header arguments, Up: Using header arguments

Header arguments in function calls

At the most specific level, header arguments for “Library of Babel” or #+CALL: lines can be set as shown in the two examples below. For more information on the structure of #+CALL: lines see Evaluating code blocks.

The following will apply the :exports results header argument to the evaluation of the #+CALL: line.

     #+CALL: factorial(n=5) :exports results

The following will apply the :session special header argument to the evaluation of the factorial code block.

     #+CALL: factorial[:session special](n=5)