RawBoxes[boxes]
is a low-level construct which is formatted as boxes without further interpretation.
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 all close allBasic Examples (2)
Scope (1)
Properties & Relations (2)
MakeBoxes returns the content of RawBoxes:
MakeBoxes[RawBoxes[RowBox[{"1", "+", "2"}]]]MakeBoxes will not validate the contents and may return illegally formed boxes:
MakeBoxes[RawBoxes[FractionBox["1", "2", "3"]]]RawBoxes of a string typesets as if the contents of the string were literally typed:
RawBoxes["+"]This can be used to display arbitrary content without using string quoting:
Style[{"+", RawBoxes["+"]}, ShowStringCharacters -> True]It can also be used to represent an operator that vertically spans:
Row[{f, RawBoxes["["], 1 / 2}]Possible Issues (2)
Not all box expressions that are valid for display purposes correspond to input expressions:
RawBoxes[RowBox[{OverscriptBox["∫", "—"], RowBox[{RowBox[{"f", "[", "x", "]"}], RowBox[{"ⅆ", "x"}]}]}]]Attempting to convert such expressions to an input will produce an ErrorBox construct:
MakeExpression[First[%], StandardForm]It is possible to send invalid boxes to the front end with RawBoxes:
RawBoxes[FractionBox["1", "2", "3"]]See Also
Tech Notes
Related Guides
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_2026_rawboxes, author="Wolfram Research", title="{RawBoxes}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/RawBoxes.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_rawboxes, organization={Wolfram Research}, title={RawBoxes}, year={2017}, url={https://reference.wolfram.com/language/ref/RawBoxes.html}, note=[Accessed: 12-June-2026]}