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 |
|
rv.R |
_[[ARGS]] arg-dict-name |
|
rv.R |
_[[TEXT]] type |
|
rv.R |
_[[WRITE]] var name |
|
rv.I,V |
_[[TABLE]] label |
|
rv.I,V |
_[[ENDNOTES]] |
|
rv.T |
_[[SHELL]] os, wait;nowait |
|
rv.D |
_[[METADATA]] label |
|
all |
_[[END]] |
[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:
python
ruby
mermaid
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:
text - literal text
bold
italic
indent4
python - Python code
ruby - Ruby code
sphinx - Sphinx reStructuredText
rst - reStructuredText
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 |