D.4 | API Scopes#
[1] rv.R Markup#
The Run 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.R("""Section title | script_type, other parameters""")
script type |
Description |
|---|---|
endnotes |
Footnotes separated by blank line, in order |
python |
Python script |
literal |
literal text |
rst |
reStructuredText |
html |
HTML markup |
mermaid |
Mermaid diagram (requires mermaid installation) |
latex |
LaTeX (requires LaTeX installation) |
[2] rv.I Markup#
The Insert API inserts and formats static sources into the doc, including images, tables, links and formatted text.
Tags / Commands / Assignment |
Description |
|---|---|
text _[C] |
|
text math _[M] description |
|
LaTeX math _[L] description |
|
text _[#] text |
|
text _[G] text, term |
|
text _[S] text, section link |
|
text _[U] text, label |
|
text _[V] var_name text |
|
title _[T] |
|
_[[TEXT]] optional label |
|
_[[TOPIC]] topic |
|
_[[END]] |
|
| IMAGE | relative path | scale, caption, figure |
|
| IMAGE2 | rel path1, rel path2 | s1, s2, c1, c2, fig1, fig2 |
|
| TEXT | relative path | language |
|
| TABLE | rel path | title, width, rows, align, head |
[3] rv.V Markup#
The Values API defines values and evaluates equations and functions.
Tags / Commands / Assignment |
Description |
|---|---|
_[[TEXT]] optional label |
|
_[[PYTHON]] namespace |
|
_[[END]] |
|
TABLE | rel path | title,width,rows,align,head,num
|
|
IMAGE | relative path | scale, caption, figure
|
|
IMAGE2 | rel path1, rel path2 | c1, c2, s1, s2, f1, f2
|
|
VALTABLE | rel path | title, width, rows
|
|
PYTHON | relative path | namespace
|
|
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 Markup#
The Tool API executes shell commands.
Command |
Description |
|---|---|
_[[SHELL]] process parameters |
|
_[[END]] |
|
| SHELL | relative path | os, wait |
[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 |