Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

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/


  • 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!