aligned equations
hi
I'm trying to use Marked 2 with TextMate. I find that
$$\begin{align*}
\vec{F}C &= m\vec{a}C \
\vec{F}_C &=m\frac{v2}{R} \label{centf}
\end{align*}$$
It spits back the math block as above and strips the * BTW.
which happily works in any browser and MacDown and other markdown tools, doesn't render with any of the MathJax selections available in Marked. I must be doing something wrong?
thanks!
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 16 Jul, 2017 07:21 PM
You may need to look at the additional MathJax configuration. The $$ separator isn't always recognized by default.
http://marked2app.com/help/MathJax.html#additionalmathjaxconfiguration
Let me know if that helps.
Thanks,
Brett
2 Posted by brock on 16 Jul, 2017 08:09 PM
hi
hmm. Thanks. I tried that actually. I think that just plain $$ works, but it’s the embedding within it of the latex environment that seems to confuse it.
I’ve not seen this behavior before with “all-in-one” markdown tools like Atom, MacDown, etc. So there’s something unusual in the MathJax implementation I think. It renders properly in a browser with a stock preamble MathJax setup.
I don’t know what all of the different choices are inside of Marked but I tried all of the MathJax versions.
thanks
Ray
On Jul 16, 2017, at 3:21 PM, Brett <[email blocked]<mailto:[email blocked]>> wrote:
Support Staff 3 Posted by Brett on 18 Jul, 2017 05:27 PM
First, are you certain the custom processor (pandoc) is working? There would be a green "light" icon at the bottom right of the preview window. For me, with the TeX-AMS-MML_HTMLorMML-full configuration, it works as is with both the built-in MultiMarkdown or with Pandoc as a custom processor.
4 Posted by brock on 18 Jul, 2017 07:00 PM
hi
Thanks, but no, I’m not sure that pandoc is working. I can make multimarkdown be respected and get the green light, but it fails. I’ve attached screen shots. Notice that multimarkdown fails for inaccessibility to the binary. Yes, I have the apple store version.
There’s also that strange “pipe” like vertical line at the end of each.
This renders fine in a browser.
Ray
[cid:2EDDF773-B08F-4DB3-9E9F-90A7278FAE6C]
[cid:879DDD58-65BB-4F60-9B59-3BFA32C3F722]
[cid:21B918DD-2853-4DAB-8D01-F2D66753978B]
[cid:21A9EA77-24F5-48D0-B4F5-C7D9814ED312]
[cid:C53BD9CC-D358-4B62-8BAB-DD86C0AE0A2D]
On Jul 18, 2017, at 1:27 PM, Brett <[email blocked]<mailto:[email blocked]>> wrote:
Support Staff 5 Posted by Brett on 18 Jul, 2017 07:50 PM
I'm sending you a cross-grade license via email. You'll need the direct version to run pandoc. We'll take another look after you try it with that version.
Regarding the line on the right, it's a known issue fixed in the next update.
6 Posted by brock on 18 Jul, 2017 08:27 PM
hi
Thanks. But same results for pandoc and for multimarkdown…no complaints from the processor and green lights for both.
But it’s something to do with the align environment maybe.
I added some fakes:
Putting them together, we then find:
$$\begin{align*}
F &=ma \\
E &=mc^2
\end{align*}$$
$$\begin{align}
F &=ma \\
E &=mc^2
\end{align}$$
$$\begin{aligned}
F &=ma \\
E &=mc^2
\end{aligned}$$
$$\begin{eqnarray*}
F &=ma \\
E &=mc^2
\end{eqnarray*}$$
$$\begin{eqnarray}
F &=& ma \\
E &=& mc^2
\end{eqnarray}$$
Three ways I know of to align equations. The last two are oldest, but frowned upon. The top two I think are in the AMS package, which I assume that the MathJax Marked 2 uses deploys?
Anyhow attached are the results. Where nothing works, it’s from multimarkdown. Where everyone lines up, it’s pandoc.
However I found the problem and it’s strange:
$$
\begin{align*}
\Delta p_{A} &= - \Delta p_{B} \\
p_{A} - p_{A,0} &= - (p_{B} -
p_{B,0}) \;\;\;\;\;\;\;\text{ rearrange these terms...} \\
p_{A,0} + p_{B,0} &= p_{A} + p_{B} \tag{pcon}\label{pcon} \end{align*}
$$
does not work, while:
$$\begin{align*}
\Delta p_{A} &= - \Delta p_{B} \\
p_{A} - p_{A,0} &= - (p_{B} -
p_{B,0}) \;\;\;\;\;\;\;\text{ rearrange these terms...} \\
p_{A,0} + p_{B,0} &= p_{A} + p_{B} \tag{pcon}\label{pcon} \end{align*}$$
does work.
I don’t think that’s quite optimal since many of us with LaTeX in our blood would always fence off the equation environment with the $$ standing alone I think.
Ray
[cid:7B127AB8-6A9F-46F8-A330-4644CFD1846B]
[cid:DE0E9580-D91A-4923-BE5B-FD880D0D6456]
On Jul 18, 2017, at 3:50 PM, Brett <[email blocked]<mailto:[email blocked]>> wrote: