DocumentTools - Maple Help

Home : Support : Online Help : Programming : Document Tools : DocumentTools/Retrieve

DocumentTools

 Retrieve
 Retrieve expression from document or worksheet file

 Calling Sequence Retrieve(filename, label)

Parameters

 filename - string ; filename for document to open label - string ; label of expression to retrieve from document

Description

 • The Retrieve command scans a document file for the given label and returns the corresponding expression.
 • If filename is not an absolute filename, the setting of currentdir determines what directory to search.
 • label is an internal label for the expression in the document and does not correspond to equation numbers.
 • In order to create a such a reference, use Insert>Reference in the Standard Worksheet Interface. This will allow you to look up an expression based on its equation number and automatically generate the internal label.

Examples

 > $\mathrm{with}\left(\mathrm{DocumentTools}\right):$
 > $\mathrm{src}≔\mathrm{FileTools}:-\mathrm{JoinPath}\left(\left["example/BesselsEquation.mw"\right],\mathrm{base}=\mathrm{datadir}\right)$
 ${\mathrm{src}}{:=}{"/usr/local/repository/build/rdgetroll7/maple/slot2/data/example/BesselsEquation.mw"}$ (1)
 > $\mathrm{Retrieve}\left(\mathrm{src},"L6"\right)$
 ${{x}}^{{2}}{}\left(\frac{{ⅆ}}{{ⅆ}{x}}{}\left(\frac{{ⅆ}}{{ⅆ}{x}}{}{y}{}\left({x}\right)\right)\right){+}{x}{}\left(\frac{{ⅆ}}{{ⅆ}{x}}{}{y}{}\left({x}\right)\right){+}\left({-}{{\mathrm{ν}}}^{{2}}{+}{{x}}^{{2}}\right){}{y}{}\left({x}\right){=}{0}$ (2)