Qu

docx.add_bookmark

Builtin index · File I/O

docx.add_bookmark(doc, i, name, [on=])

Input: doc, i, name, on · Output: no output

What it is

Puts a bookmark named name around body paragraph i (or the text on in it) -- the target for add_cross_ref and #name links. Names follow Word's rule: a letter, then letters, digits or _, at most 40 characters. docx.bookmarks(doc) lists {name, text} records (Word's hidden _Toc/_GoBack ones included). *Added in v0.4.5*

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
docx.add_bookmark(doc, i, name, [on=])
doc —docx.bookmarks(doc) lists {name, text} records (Word's hidden _Toc/_GoBack ones included).
i —Puts a bookmark named name around body paragraph i (or the text on in it) -- the target for add_cross_ref and #name links.
name —Puts a bookmark named name around body paragraph i (or the text on in it) -- the target for add_cross_ref and #name links.
on optionalPuts a bookmark named name around body paragraph i (or the text on in it) -- the target for add_cross_ref and #name links.
not documented yetNames follow Word's rule: a letter, then letters, digits or _, at most 40 characters. *Added in v0.4.5*.

Examples

No documentation example calls this form yet. The File I/O chapter is where one belongs.