Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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: enter image description here

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:

enter image description here

share|improve this question
    
Can you post what you are getting? –  bobthechemist Sep 28 '13 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 '13 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 '13 at 1:37

3 Answers 3

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+^.

share|improve this answer

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

It will be like this:

share|improve this answer

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

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.