MathGroup Archive 2010

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

Search the Archive

Re: Creating a hybrid cell

  • To: mathgroup at
  • Subject: [mg108928] Re: Creating a hybrid cell
  • From: Jason Alexander <jalex at>
  • Date: Wed, 7 Apr 2010 07:24:46 -0400 (EDT)
  • References: <hpcjda$mrl$> <hpf5m3$our$> <>

A better solution would be the following: create a text cell and enter something like "Previously we calculated the value of X1 to be ", then insert an inline cell (ctrl+9, I believe). In the inline cell, enter "Dynamic[X1]", select and evaluate in place.

The inline cell, although it appears inside of a text cell, will automatically update to reflect the current value of X1. The previous solution only captures the value of X1 at the time of evaluation.


On 7 Apr 2010, at 08:19, Geico Caveman wrote:

> On 2010-04-06 04:24:51 -0700, dh <dh at> said:
>> On 05.04.2010 14:00, Geico Caveman wrote:
>>> I am doing a calculation. Let us say that the result of the calculation
>>> is in variable X1 (which was extracted from a list using [[]] type
>>> constructs - unimportant, but it is a result).
>>> I want to add text cells later in the notebook that refer to the value
>>> of X1 (not the string "X1"). I have tried doing this with the use of
>>> inline cells crtl + ( and ctrl + ), but whenI evaluate the notebook, I
>>> just get something like :
>>> "We calculated X1 earlier to be X1." instead of the expected "We
>>> calculated X1 earlier to be<<value of X1>>".
>>> I am trying to use Mathematica as a tool to create a handout for a class.
>>> I am not a Mathematica newbie, though I am new to using it for any
>>> purpose other than as a calculation program.
>>> Any ideas if this is possible ?
>> Hi geico,
>> you could e.g. assuming x already has a value, first write your text like:
>> x=x
>> then select the second x and choose "Evaluate in Place" (from the menu
>> "Evaluation" or by right click)
>> Daniel
> Perfect. Thanks :)

Please access the attached hyperlink for an important electronic communications disclaimer:

  • Prev by Date: Re: Mathematica Programming
  • Next by Date: Re: Integration error
  • Previous by thread: Re: Creating a hybrid cell
  • Next by thread: Re: Creating a hybrid cell