MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

DisplayForm Problem

DisplayForm (or another function) is producing incorrect output in the
second case below. There should be no string delimiters shown.

By what reasoning? The input to DisplayForm is a set of boxes. The box
form of 5 is "5". Therefore, DisplayForm@"5" should show 5.

Note that if you try to test this with regular input and output, you
will probably be confounded by the "ShowStringCharacters"->False
option setting of the "Output" cell style.

CellPrint@ExpressionCell["5","Text"](*correct output*)
CellPrint@ExpressionCell[DisplayForm@"5","Text"](*incorrect output*)
CellPrint@ExpressionCell[DisplayForm@RowBox@List@"5","Text"](*correct output*)


  • Prev by Date: Re: data format on y axis
  • Next by Date: something (not) funny!
  • Previous by thread: Re: Simplifying the exponents
  • Next by thread: something (not) funny!