Body macro

Back to Available macros

The Body macro reads the currently considered document from a file and expands into its contents. The ReadFile macro generalizes this macro; the Body macro is retained for compatibility.

Properties

Output expansion default

Enabled.

Parameters

Ignored.

Variables

None.

Example

[[Body]]

would lead to an an infinite macro expansion loop. This form of the macro invocation is seen only on document templates. For demonstration purposes, we can use:

[[-+Verbatim]]: [[-Body]]
Body macro
==========

[[Parent]]: available_macros.txt

The Body macro reads the currently considered document from a file and
expands into its contents. The [[Link: ReadFile_Macro.txt]] generalizes
this macro; the Body macro is retained for compatibility.

Properties
----------

### Output expansion default

Enabled.

### Parameters

Ignored.

### Variables

None.

Example
-------

    [[Body]]

would lead to an an infinite macro expansion loop. This form of the macro invocation is seen only on document templates. For demonstration purposes, we can use:

[[Example]]:
    [[-+Verbatim]]: [[-Body]]

Files

Body macro

Reads a document from file.