Group Abstract Group Abstract

Message Boards Message Boards

0
|
9.9K Views
|
7 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Print Text with Notebook automatic Equation Formating

Posted 10 years ago

Hi all there, I hope everyone is fine and happy. I am trying to use Mathematica as an equation editor because I like the formatting that Mathematica gives to the equations automatically. Which is: enter image description here

But when I convert the Formula to text I get smaller brackets, like this:

enter image description here

My question is, how can I convert Expressions to Text keeping the Automatic formatting of Mathematica without the colors?

Thank you in advance for your help and time.

Wishing you Joy and Happiness

POSTED BY: Juan Tamara
7 Replies
Posted 10 years ago

Hi Gianluca,

thank you for the tip. It has worked: 1. Formatting (Size,Font, etc...) 2. InLine Cell (Insert > Typesetting > Start inline cell) Paste inside 3. Copy InLineCell into a= "...<Paste here>..." 4. Export [Arg1, a]

Do you have any Idea how to make it Programmatically?

Thank You very much for your Help and Time

POSTED BY: Juan Tamara

You can type a formula into an input cell, and then, without evaluating, you convert the cell to TraditionalForm by using the menu

Cell > Convert To > TraditionalForm.

Then you copy and paste into "".

POSTED BY: Gianluca Gorni
POSTED BY: Gianluca Gorni
Posted 10 years ago

Hi Gianluca,

I did not understand your method. I tried using Traditional Form, but I lost the brackets for big formulas. And I could not Print the Traditional Form if the Mathematical expression is not consistent with mathematica Input format, for example I could not Print the formula

enter image description here without using the "..." (TraditionalForm["...."]), and then I lose the mathematica Automatic Formatting.

here is the Equation in PlainText : 1/(R(r)) ([DifferentialD]/[DifferentialD]r)(r^2[DifferentialD]/[DifferentialD]r)R(r)-2(mr^2)V(r)-E]=[ScriptL

POSTED BY: Juan Tamara
Posted 10 years ago

Hi David,

thank you for your help and time. Well I convert to Text by adding "...." at the begining and end of the Input. I have tried also Text [...] but the syntax has to be correct for Mathematica and therefore not flexible for what I need. I have to use the "...", in any case I get the small brackets and lose the original Mathematica Formatting. I am using Mathematica 10. To make it clearer, here is my Master Plan:

Step 1. Formating the Equation -> Font, Color, etc.... -----Here is where the problem is, since I can only format it with Style ["...", Arg1, Arg2, etc... ], but to use the Style function I have to put my equation in quoting marks "..." and there I lose the Automatic Formatting of Mathematica. Step 2. Export the Equation (no Copy paste)-> Good Resolution image PNG or EPS.

If I format the Input Cell Using the Format Tab/Ribbon I cannot export as EPS or PNG, and the Formatting looks different, I don“t like it.

One solution of my Question would be: 1. is there a Function option that defines the Fomatting of an Input Cell (conserve the Bracket Size) 2. What if the name of that Function 3. How can I use it to Format my Text with the Style[ ]. Obviously this is just one way of solving the problem, but I would gladly read a solution even with other route.

POSTED BY: Juan Tamara

When I compose a formula in TraditionalForm, copy it and paste it into double quotes, Mma asks me "do you want to wrap the pasted TraditionalForm expression in a FormBox?". I answer OK. Then the large parentheses are preserved in the pasted formula. It is somewhat tricky, but it works for me.

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