Message Boards Message Boards

0
|
5978 Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Use math inside a document without the input/output cells showing up?

Posted 8 years ago

Hello, I am new to Mathematica. I am creating design document where I would like to show output of formula or math inside the document. Such as

2+4 = 6

at present when I enter =2+4 I get the result 6 in a different output cell. Is there a way I can simply type 2+4= and get 6 at the end without any other formatting, label or colours?

In specific I am trying to use the round function in my document

would like to have in the document

Round[11/10] = 1

Thank you for your help, Akhilesh Bhartia

POSTED BY: Akhilesh Bhartia
4 Replies
Posted 8 years ago

In three steps:

1. Start a text cell, and type whatever you want

Blah blah blah. An equality:

2. Add the math expression, wrapped in HoldForm and TeXForm, as an Inline Cell

Blah blah blah. An equality: TeXForm@HoldForm[2+4=6]

3. Mark the whole Inline Cell, rightclick and select Evaluate in Place

enter image description here

- This should now be the result:

Blah blah blah. An equality: 2+4=6
POSTED BY: Hans Milton

Thank you. Ill try them out

POSTED BY: Akhilesh Bhartia

For inline formulas within the text you can use the menu item Insert > Typesetting.

POSTED BY: Gianluca Gorni

A simplistic solution is Evaluate In Place...

  • use a Text Cell, using Alt+7
  • type Round[11/10]=Round[11/10]
  • select the second one
  • use menu item Evaluation >> Evaluate In Place

HTH.

POSTED BY: Aeyoss Antelope
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract