DisplayForm Problem
- To: mathgroup at smc.vnet.net
- Subject: [mg79988] DisplayForm Problem
- From: "Chris Chiasson" <chris at chiasson.name>
- Date: Fri, 10 Aug 2007 01:47:35 -0400 (EDT)
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*) "5" "5" 5 -- http://chris.chiasson.name/