Link - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

DocumentTools[Canvas]

 create a hyperlink in a canvas

Parameters

 url - string expression - anything

Description

 • The Link command creates a hyperlink data structure to be used in conjunction with the Text command.
 • The url is a string of the form "http://www.maplesoft.com", and is the destination target page that should be opened when the link is clicked.
 • The expression is the text or math expression to click on.
 Note: When viewing a canvas containing a hyperlink in Maple with the ShowCanvas command, the text containing the link will be static; and won't be modified by any script commands.  Also, when the link expression is not a string, in Maple it will be prefixed with clickable text.  These limitations are not present when using the same canvas in Maple Learn.
 • The Link command should be used as a % parameter's argument in a call to the Text command.  Links are always embedded into a block of text or math as MathML attributes, and are not stand-alone canvas elements.

Examples

 > $\mathrm{with}\left(\mathrm{DocumentTools}:-\mathrm{Canvas}\right):$
 > $\mathrm{cv}≔\mathrm{NewCanvas}\left(\left["Hyperlink Example",\mathrm{Text}\left("See also %1 and %2",\mathrm{Link}\left("http://www.maplesoft.com","Maplesoft"\right),\mathrm{Link}\left("https://en.wikipedia.org/wiki/Euler%27s_formula",{ⅇ}^{Ix}=\mathrm{cos}\left(x\right)+I\mathrm{sin}\left(x\right)\right)\right)\right]\right)$
 {\mathrm{cv}}{≔}{"Hyperlink ExampleSee alsoMaplesoftandeI x=cosx+I sinx\left[/itex\right]"} (1)
 > $\mathrm{ShareCanvas}\left(\mathrm{cv}\right)$
 > $\mathrm{ShowCanvas}\left(\mathrm{cv}\right)$

Compatibility

 • The DocumentTools[Canvas][Link] command was introduced in Maple 2022.
 • For more information on Maple 2022 changes, see Updates in Maple 2022.