SetDocumentProperty - Maple Help

Home : Support : Online Help : Programming : Document Tools : SetDocumentProperty

DocumentTools

 SetDocumentProperty
 set property of a document

 Calling Sequence SetDocumentProperty(attr, val) SetDocumentProperty(attr, val, mwfile, outfile)

Parameters

 attr - {name,string,list({name,string}) ; property of the document that is to be set val - anything ; value of property to set mwfile - string ; (optional) filename of a .mw file outfile - string ; (optional) destination filename

Description

 • The SetDocumentProperty function sets the value of a document property in the currently open document, or, when specified in mwfile.
 • When mwfile is specified, it is modified in-place unless outfile is also provided, in which case, outfile is an identical full copy of the source worksheet, with the modified properties.

Examples

Suppose that you want to set the Author property of a document to your name.  To do so, issue the following commands:

 > $\mathrm{with}\left(\mathrm{DocumentTools}\right):$
 > $\mathrm{SetDocumentProperty}\left('\mathrm{Author}',"your name"\right)$

Compatibility

 • The DocumentTools[SetDocumentProperty] command was updated in Maple 2021.
 • The mwfile and outfile parameters were introduced in Maple 2021.