D.2 | API Scopes#
[1] rv.R Markup#
The Run API executes shell commands.
Command |
Description |
|---|---|
_[[SHELL]] process parameters |
|
_[[END]] |
|
| SHELL | relative path | os, wait |
[2] rv.I Markup#
The Insert API inserts and formats static sources into the doc, including images, tables, links and formatted text.
Tags / Commands |
Description |
|---|---|
text _[C] |
|
text _[#] text |
|
text _[G] text, term | text |
|
text _[S] text, section link | text |
|
text _[U] text, label | text |
|
text _[V] var_name | text |
|
text math _[M] description |
|
LaTeX math _[L] description |
|
title _[T] |
|
_[[ENDNOTES]] |
|
_[[END]] |
|
| IMAGE | file | scale, caption, num, time |
|
| IMAGE2 | file | s1, s2, c1, c2, fig1, fig2, num1, num2, |
|
| TABLE | file | title, width, rows, align, head |
[3] rv.V Markup#
The Values API defines values and evaluates equations and functions.
Tags / Commands / Assignment |
Description |
|---|---|
_[[ENDNOTES]] |
|
_[[END]] |
|
TABLE | file | title,width,rows,align,head,num
|
|
IMAGE | file | scale, caption, figure
|
|
IMAGE2 | file1, file2 | c1, c2, s1, s2, f1, f2
|
|
VALTABLE | file | title, width, rows
|
|
a ==: 1*IN | unit1, unit2, decimal, num | label |
|
c <=: expression | unit1, unit2, decimal, num | label |
|
c :=: expression | unit1, unit2, decimal | label, number |
|
a < c | decimal | text1,text2,align, num |
[4] rv.T Text#
The Text API processes text and scripts. It does not use markup. The header substring takes an additional parameter that specifies the type of text or script. The header substring has the form:
rv.(T"""Section title | script_type, file: filename""")
script type |
Description |
|---|---|
PYTHON |
run Python code |
python |
Python code |
text |
literal text |
rst |
reStructuredText |
html |
HTML markup |
mermaid |
Mermaid diagram (requires mermaid installation) |
latex |
LaTeX (requires LaTeX installation) |
[5] rv.D Markup#
The Doc API publishes formatted docs from the rivt API strings.
Tags / Commands / Assignment |
Description |
|---|---|
_[[METADATA]] label |
|
_[[END]] |
|
| PDFATTACH | relative path | place, cover |
|
| PUBLISH | doc title | type |