7 Replies Latest reply: Feb 23, 2012 9:21 AM by A.Non

# Tab spacing in expressions

Is there any way to insert tab spacing in an experssion? This would help alot in the presentation of a worksheet.

• ###### Re: Tab spacing in expressions

Hello!

Could you provide an example of what you want?

• ###### Re: Tab spacing in expressions

I would like to write an expression in the form:

f(x)= x^2 + y^2 = 24

g(x)=2x + y^3 = 34

this way, tab spacing can be used to align all the the answers in a worksheet, making it more readable.

• ###### Re: Tab spacing in expressions

What version of Mathcad are you using? I would like to provide for you some Mathcad worksheet example. Here's how it looks:

• ###### Re: Tab spacing in expressions

Here you need to work with a text region (in main menu go to "Insert" -> "Text Region") and to insert into him mathematical region when necessary ("Insert" -> "Math Region"):

Use a boolean equal ("Equal to", hotkey "Ctrl + =") when specifying the function and then choose (by using right mouse button) "View Equality As" -> "Equal":

• ###### Re: Tab spacing in expressions

I think Vladimir has shown the answer for the example you provided, but I think the example you provided may not have been what you originally wanted.

The example you gave was the definition of a function, not an expression. Functions do not have results upon definition because the argument has not been specified. Therefore, the only way we can interpet your example is as a text description, not a live math equation. Vladimir provided a solution to aligning that text.

I think your original question was to align the numerical result of a live equation. I don't know of a way to do that in the equation result. What I do is to show results separately after the definition, and then I align those results with the align tool. It's not perfect because the tool doesn't right justify, only left. However, it does sometimes help to separate the numerical results from the definitions. An example is below:

• ###### Re: Tab spacing in expressions

What I do is to show results separately after the definition, and then I align those results with the align tool.

Ditto. In fact, this alignment issue is why I never use assignment and evaluation in the same expression.