Qu

docx.add_cross_ref

Builtin index · File I/O

docx.add_cross_ref(doc, i, name, [show="text"])

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

What it is

Appends a cross-reference to bookmark name at the end of body paragraph i: show="text" shows the bookmarked text (a REF field, filled in now with the true text), "page" its page number (PAGEREF), "number" its paragraph number. Page and paragraph numbers depend on layout, so they are left for Word/LibreOffice to compute when the document is opened. *Added in v0.4.5*

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
docx.add_cross_ref(doc, i, name, [show="text"])
doc —not documented yet
i numberAppends a cross-reference to bookmark name at the end of body paragraph i: show="text" shows the bookmarked text (a REF field, filled in now with the true text), "page" its page number (PAGEREF), "number" its paragraph number.
name numberAppends a cross-reference to bookmark name at the end of body paragraph i: show="text" shows the bookmarked text (a REF field, filled in now with the true text), "page" its page number (PAGEREF), "number" its paragraph number.
show number, optional (default "text")Appends a cross-reference to bookmark name at the end of body paragraph i: show="text" shows the bookmarked text (a REF field, filled in now with the true text), "page" its page number (PAGEREF), "number" its paragraph number.
not documented yetPage and paragraph numbers depend on layout, so they are left for Word/LibreOffice to compute when the document is opened. *Added in v0.4.5*.

Examples

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