ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 13 Apr 2013 14:10:26 +0200Multiline equation write form in text cell?https://ask.sagemath.org/question/10001/multiline-equation-write-form-in-text-cell/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?).Sun, 07 Apr 2013 14:54:52 +0200https://ask.sagemath.org/question/10001/multiline-equation-write-form-in-text-cell/Answer by fidbc for <p>Is there a way to write equation within text cell as few lines?</p>
<p>For example this:</p>
<pre><code>$f(x) = y^x$
</code></pre>
<p>renders normally, but this:</p>
<pre><code>$f(x)
=
y^x$
</code></pre>
<p>renders as plain text. I wan it to be rendered in the same way as first one.</p>
<p>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?).</p>
https://ask.sagemath.org/question/10001/multiline-equation-write-form-in-text-cell/?answer=14754#post-id-14754It 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.Sun, 07 Apr 2013 21:26:12 +0200https://ask.sagemath.org/question/10001/multiline-equation-write-form-in-text-cell/?answer=14754#post-id-14754Answer by ndomes for <p>Is there a way to write equation within text cell as few lines?</p>
<p>For example this:</p>
<pre><code>$f(x) = y^x$
</code></pre>
<p>renders normally, but this:</p>
<pre><code>$f(x)
=
y^x$
</code></pre>
<p>renders as plain text. I wan it to be rendered in the same way as first one.</p>
<p>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?).</p>
https://ask.sagemath.org/question/10001/multiline-equation-write-form-in-text-cell/?answer=14755#post-id-14755For example two lines:
$ \begin{align} x & = x^2-4 \\ & = (x-2)(x+2) \end{align} $Mon, 08 Apr 2013 03:42:39 +0200https://ask.sagemath.org/question/10001/multiline-equation-write-form-in-text-cell/?answer=14755#post-id-14755Comment by Eugene for <p>For example two lines:</p>
<pre><code>$ \begin{align} x & = x^2-4 \\ & = (x-2)(x+2) \end{align} $
</code></pre>
https://ask.sagemath.org/question/10001/multiline-equation-write-form-in-text-cell/?comment=17909#post-id-17909Thanks, 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).Sat, 13 Apr 2013 14:10:26 +0200https://ask.sagemath.org/question/10001/multiline-equation-write-form-in-text-cell/?comment=17909#post-id-17909