Ask Your Question
1

Multiline equation write form in text cell?

asked 12 years ago

Eugene gravatar image

Is there a way to write equation within text cell as few lines?

For example this:

$f(x) = y^x$

renders normally, but this:

$f(x)
=
y^x$

renders as plain text. I wan it to be rendered in the same way as first one.

P.S. I am new to latex, so trying to find a way to make complex equation in latex more readable (may be there is a better way to do it than splitting it to a few lines?).

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
2

answered 12 years ago

fidbc gravatar image

It seems that line breaks in the editor cause <p> and </p> tags to be inserted. You can always edit the html source directly. The drawback of this approach is that once the HTML source editor is closed the line breaks disappear.

Preview: (hide)
link
0

answered 12 years ago

ndomes gravatar image

For example two lines:

$ \begin{align}  x & = x^2-4  \\ & =  (x-2)(x+2)  \end{align} $
Preview: (hide)
link

Comments

Thanks, but this is not what I mean. The idea was: number of lines in equation should be determined by Tex-rules only - no matter how many lines is in source code (ie. how many \n characters in editor).

Eugene gravatar imageEugene ( 11 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 12 years ago

Seen: 797 times

Last updated: Apr 08 '13