B.4 | Block Tags#

[1] Block Tag Summary#

Format or run blocks of text or scripts

API Scope

Block Tag

Description

rv.R

_[[SCRIPT]] type

[2] Script

rv.R

_[[ARGS]] arg-dict-name

[6] Argument block

rv.R

_[[TEXT]] type

[4] Text

rv.R

_[[WRITE]] var name

[7] Write

rv.I,V

_[[TABLE]] label

[5] Table Block

rv.I,V

_[[ENDNOTES]]

[9] Endnotes Block

rv.T

_[[SHELL]] os, wait;nowait

[8] Shell script

rv.D

_[[METADATA]] label

[10] Metadata

all

_[[END]]

[11] End block

[2] Script#

The SCRIPT block executes code and returns a file object (text, list, image etc.) that is written to rvreport-…/scripts. The language parameter specifies the processing and requires a compatible compiler installation.

Language types include:

  1. python

  2. ruby

  3. mermaid

  4. latex

API Scope

rv.R

File Types

see above

Doc Types

text, PDF, HTML

[3] Args#

The ARGS command reads a Python file with arguments defined as dictionaries. The dictionary names are used as inputs to functions and scripts.

The namespace name rivt imports the values into the main rivt file namespace.

API Scope

rv.R

File Types

see above

Doc Types

text, PDF, HTML

[4] Text#

The TEXT command reads and formats text and code files. It inserts text after framing and formatting, without actually running it.

Language types include:

  1. text - literal text

  2. bold

  3. italic

  4. indent4

  5. python - Python code

  6. ruby - Ruby code

  7. sphinx - Sphinx reStructuredText

  8. rst - reStructuredText

  9. html - HTML markup

API Scope

rv.R

File Types

see above

Doc Types

text, PDF, HTML

[5] Table Block#

API Scope

Insert, Values

Doc Types

text, PDF, HTML


[6] Argument block#

API Scope

Values

Doc Types

text, PDF, HTML


[7] Write#

API Scope

Run

Doc Types

text, PDF, HTML


[8] Shell script#

Runs shell scripts that run external programs. The shell parameters include specifying the operating system, process control and terminal window control. The os parameter specifies the terminal type. The wait parameter specifies whether rivt file processing waits for the script to complete before continuing. The open parameter specifies whether to keep the shell window open after execution.

API Scope

Run

Doc Types

text, PDF, HTML


[9] Endnotes Block#

API Scope

Insert, Values

Doc Types

text, PDF, HTML

[10] Metadata#

API Scope

Docs

Doc Types

text, PDF, HTML


[11] End block#

API Scope

All

Doc Types

text, PDF, HTML