$MessagePrePrint

$MessagePrePrint

is a global variable whose value, if set, is applied to expressions before they are included in the text of messages.

Details

Examples

open allclose all

Basic Examples  (1)

Have expressions in messages print out in TraditionalForm:

Restore the default. Now the expressions are shown in StandardForm:

Scope  (2)

Locally define $MessagePrePrint so that expressions sent to messages are shown in a circle:

The local definition does not affect messages outside the Block:

Make a list of all expressions sent to messages during a computation:

Wolfram Research (1991), $MessagePrePrint, Wolfram Language function, https://reference.wolfram.com/language/ref/$MessagePrePrint.html.

Text

Wolfram Research (1991), $MessagePrePrint, Wolfram Language function, https://reference.wolfram.com/language/ref/$MessagePrePrint.html.

CMS

Wolfram Language. 1991. "$MessagePrePrint." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$MessagePrePrint.html.

APA

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

BibTeX

@misc{reference.wolfram_2024_$messagepreprint, author="Wolfram Research", title="{$MessagePrePrint}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/$MessagePrePrint.html}", note=[Accessed: 21-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_$messagepreprint, organization={Wolfram Research}, title={$MessagePrePrint}, year={1991}, url={https://reference.wolfram.com/language/ref/$MessagePrePrint.html}, note=[Accessed: 21-December-2024 ]}