C.3 Insert - rv.I#

Summary

<i>

[1] Summary#


The Insert API function inserts static resources into the doc including images, tables and formatted text.

Line Tags

Description (doc scope)

text _[#]

endnote number (all)

text _[C]

center text (all)

text _[R]

right justify text (all)

math _[L]

format LaTeX math (all)

math _[A]

format ASCII math (all)

label _[E]

equation number and label (all)

caption _[I]

image number and caption (all)[1]

title _[T]

table number and title (all)[1]

text _[S] section link

link section within doc (all)

text _[D] term link

defined term link (all)

text _[R] report link

link docs within report (all)

text _[U] external url

external url link (all)

-----

>4 dashes inserts line (all)[2]

=====

>4 underscores inserts page (all)[2]

[1] tag may be added to the label parameter in the IMAGE and TABLE commands

[2] must start in first indented column (absolute column 4)

Block Tags

Description (doc scope)

_[[INDENT]] spaces (4 default)

Indent (all)

_[[ITALIC]] spaces (4 default)

Italic indent - (all)

_[[NOTES]] optional label

Endnote descriptions (all)

_[[TEXT]] optional language

literal, code language (all)

_[[TERMS]] label

Glossary of terms

_[[TOPIC]] topic

Topic (all)

_[[END]]

End block (all)

Command | path | parameters

R/W

input types

| IMAGE | relative path | scale, caption (_[I])

R

.png, .jpg

| IMAGE2 | relative path | s1, s2, c1, c2 (_[I])

R

.png, jpg

| TABLE | relative path | width, l;c;r, title

R

csv, txt, xlsx

| TEXT | relative path | normal;literal ;code

R

txt, code

<i>

[2] _[#] : endnote number#


This tag assigns an endnote number to the text. Endnotes are defined with the block tag _[[NOTE]] and are listed at the end of the doc. Numbers are assigned in the order they are processed.

outputs: text, pdf, html

<i>

[3] _[C] : center text#


Center text within the page margins.

outputs: text, pdf, html

<i>

[4] _[R] : right justify text#


The LaTeX math expression will be formatted in PDF and HTML.

outputs: pdf, html

<i>

[5] _[L] : LaTeX math#


The LaTeX math expression will be formatted in PDF and HTML.

outputs: pdf, html

<i>

[6] _[A] : ASCII math#


The math expression will be formated in ASCII text.

outputs: text, pdf, html

<i>

[7] _[E] : equation label#


Labels and numbers equation.

outputs: text, pdf, html

<i>

[8] _[I] : image label#


Labels and numbers images.

outputs: text, pdf, html

<i>

[9] _[T] : table label#


Labels and numbers tables.

outputs: text, pdf, html

<i>

[12] _[U] : url - external#


External url link. Text will be continued and wrapped when formatted.

outputs: text, pdf, html

<i>

[13] ______ : horizontal line#


Draws a horizontal line the width of the page.

outputs: text, pdf, html

<i>

[14] ======== : new page#


Starts a new page.

outputs: text, pdf, html

<i>

[15] _[[INDENT]] : indent text#


Indents text four spaces.

<i>

[16] _[[ITALIC]] : indent italic#


Indents the specified number spaces and italicizes block.

outputs: pdf, html

<i>

[17] _[[NOTE]] : endnote text#


Formats and numbers an endnote in order of processing.

outputs: text, pdf, html

<i>

[18] _[[TEXT]] : literal text or code#


This block formats text as literal or code. The parameters specify formatting and syntax coloring. Languages include: - python - bash - sh - cmd

outputs: text, pdf, html

<i>

[19] _[[TOPIC]] : topic#


Formats a highlighted block.

outputs: pdf, html

<i>

[20] | IMAGE | : insert image#


Reads PNG and JPEG files (.png, jpg) and inserts them in the doc. The Image tag may be added to the captions.

outputs: PDF, HTML

<i>

[21] | IMAGE2 | : insert adjacent images#


Reads PNG and JPEG files (.png, jpg) and inserts them side by side in the document. The Image tag may be added to the captions.

outputs: PDF, HTML

<i>

[22] | TABLE | : format table#


Reads text, csv and EXCEL files (.txt, .csv, .xls) and outputs formatted tables. The width parameter specifies the maximum column width. The l,c,r parameter specifies cell justification (left, center, right). The Table tag may be added to the caption.

outputs: text, PDF, HTML

<i>

[23] | TEXT | : format text#


Reads and formats text and code files. The parameters specify formatting and syntax coloring. Languages include:

  • python

  • bash

  • sh

  • cmd

outputs: text, PDF, HTML