CopyFunction
is an option for TemplateBox that specifies how the box is to be copied.
Details
- CopyFunction takes a function that produces a box expression.
- TemplateBox parameters are substituted into the function to create the box expression that is sent to the kernel when the box is evaluated.
- When a TemplateBox is copied, a full-fidelity version is placed on the clipboard. If the clipboard is then used to paste into an external text editor, CopyFunction controls how the TemplateBox is converted to plain text.
- CopyFunctionAutomatic causes the DisplayFunction to be used if the TemplateBox is copied as plain text. If the TemplateBox is copied as input text, the InterpretationFunction will be used.
Examples
Basic Examples (2)
Set a copy form different from the displayed or interpreted form:
fowl
Create a copy form from TemplateBox arguments:
f[x]
Wolfram Research (2020), CopyFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/CopyFunction.html.
Text
Wolfram Research (2020), CopyFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/CopyFunction.html.
CMS
Wolfram Language. 2020. "CopyFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CopyFunction.html.
APA
Wolfram Language. (2020). CopyFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CopyFunction.html