MathGroup Archive 2012

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

Search the Archive

Interpretation of typesetting using placeholder

  • To: mathgroup at smc.vnet.net
  • Subject: [mg124443] Interpretation of typesetting using placeholder
  • From: yves papegay <yves.papegay at sophia.inria.fr>
  • Date: Fri, 20 Jan 2012 01:47:12 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

For an ad-hoc interface, I'd like to use labeled placeholder to help
user entering text ...
Unfortunately, even if the placeholder is in a text cell, what is
typeset inside is interpreted as an expression, not as text !

To be precise, entering "a=b" in the placeholder of the following cell

Cell[BoxData[
 TagBox[
  FrameBox["\<\"Enter equation here\"\>"],
  "Placeholder"]], "Text"]

will create the cell below :

Cell[BoxData[RowBox[{"a", "=", "b"}]], "Text"]

when I'd like to get

Cell["a=b", "Text"]

Any idea ?

Thanks,

Yves



  • Prev by Date: Re: Tips for writing correct, non trivial Mathematica Libraries
  • Next by Date: Re: Filling question
  • Previous by thread: Re: Vectorlength independet of axis-scale using VectorPlot?
  • Next by thread: Customizing counters functions