RawBoxes

RawBoxes[boxes]

is a low-level construct which is formatted as boxes without further interpretation.

Details

  • When typeset, RawBoxes[boxes] inserts boxes verbatim into the resulting box structure, to be rendered by the front end.
  • RawBoxes[boxes] performs no validation of boxes before inserting them.
  • If the front end determines that a given box structure is invalid, it may display the result with an error indicator.

Examples

open allclose all

Basic Examples  (2)

Display the formatted box expressions:

Create a button that applies a template:

Scope  (1)

Render an output that does not directly correspond to an input expression:

Properties & Relations  (2)

MakeBoxes returns the content of RawBoxes:

MakeBoxes will not validate the contents and may return illegally formed boxes:

RawBoxes of a string typesets as if the contents of the string were literally typed:

This can be used to display arbitrary content without using string quoting:

It can also be used to represent an operator that vertically spans:

Possible Issues  (2)

Not all box expressions that are valid for display purposes correspond to input expressions:

Attempting to convert such expressions to an input will produce an ErrorBox construct:

It is possible to send invalid boxes to the front end with RawBoxes:

Wolfram Research (2007), RawBoxes, Wolfram Language function, https://reference.wolfram.com/language/ref/RawBoxes.html (updated 2017).

Text

Wolfram Research (2007), RawBoxes, Wolfram Language function, https://reference.wolfram.com/language/ref/RawBoxes.html (updated 2017).

CMS

Wolfram Language. 2007. "RawBoxes." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/RawBoxes.html.

APA

Wolfram Language. (2007). RawBoxes. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RawBoxes.html

BibTeX

@misc{reference.wolfram_2024_rawboxes, author="Wolfram Research", title="{RawBoxes}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/RawBoxes.html}", note=[Accessed: 13-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_rawboxes, organization={Wolfram Research}, title={RawBoxes}, year={2017}, url={https://reference.wolfram.com/language/ref/RawBoxes.html}, note=[Accessed: 13-December-2024 ]}