# Mixing Text and Formulas

I'm trying to do some typesetting in which I mix text with formulas. The Mathematica documentation has a section titled "Mixing Text and Formulas" which pretty much describes what it is that I'd like to do. However I can't seem to work out how they do it.

The tutorial says to use Ctrl+( to start entering a formula within text or vice versa, however I don't seem to get the result I am after.

This is what their example looks like:

Notice that they have been able to mix text with a formula that is in TraditionalForm, this is what I would like to be able to do.

If I enter: "Hello World = " x^2 but Ctrl+( before I enter the x^2....

Hello World = x^2


## Further Clarification

Some further clarification (I would have preferred to enter this clarification after all of your helpful hints below but the guidelines recommend against answering your own question or adding further clarification in that way):

In my text box I'd like to use a prior defined equation rather than having to re-enter and format it in the text box. Hopefully this next image will clarify:

-
Can you post what you are getting? –  bobthechemist Sep 28 at 16:07
Press ALT-7 to create a new text cell, then you can type some text and use CTRL-( to start adding math format. Does that get you closer to what you want? –  bobthechemist Sep 28 at 16:35
@episanty et.al., Thanks for your suggestions however I've added a further clarification to explain a bit more about what I'm trying to achieve. –  CrustyNoodle Sep 30 at 1:37
add comment

## 3 Answers

You need to be in a text cell to begin with. Starting on a cell division (so your cursor is horizontal instead of vertical), press Alt+7 to create a text cell. There you can type text and it will get interpreted as such. If you then want to input maths, type Ctrl+( and it will create a math box. You can also create a math box by, e.g. creating a superscript using Ctrl+^.

-
add comment

Use a palette from the menu when typing x^2 or use Ctrl+^ to get a superscript box.

-
add comment

Thanks for your help guy's, I have found a solution that fulfils my requirements.

-
add comment