# [✓] Insert a variable value in text cell?

Posted 1 month ago
210 Views
|
2 Replies
|
2 Total Likes
|
 This is probably a very stupid question, but I can't find the answer in the documentation. I have a text cell for which I would like to insert the value of a symbol. For example, n=7 (where this line is a separate text cell) I would like to do this n times I would like the text cell to show up as I would like to do this 7 times Is this possible
2 Replies
Sort By:
Posted 1 month ago
 This is one way to do it: In the middle of your text cell, insert an inline cell (Ctrl-9) Type Dynamic[n] inside it With Dynamic[n] selected, evaluate it in place (Shift-Ctrl-Enter) Now when you change n it gets updated automatically.