thetensor-space / thetensor-space.github.io

Tools to Tame the Tensor
https://TheTensor.Space
MIT License
3 stars 4 forks source link

Make latex a bit more sane and document behaviors in tensorspace page #59

Closed cliu587 closed 6 months ago

cliu587 commented 6 months ago

I fixed one page (the whitney tensor product page) see attached for evidence whitney_tensor_product_page.pdf

And also, I documented the pecularities of writing latex in markdown that then gets translated to HTML and rendered by ketex.

At a 10000 foot level:

(successful):

\begin{bmatrix}
1 & 2 & 3\\\\␣
7 & 14 & 21
\end{bmatrix}

(unsuccessful, no trailing whitespace after \\\\):

\begin{bmatrix}
1 & 2 & 3\\\\
7 & 14 & 21
\end{bmatrix}

(unsuccessful, due to whitespace at the end of the 3rd line - this breaks the parser looking for the \end{bmatrix} environment):

\begin{bmatrix}
1 & 2 & 3\\\\
7 & 14 & 21␣
\end{bmatrix}

We can also further obfuscate latex by writing everything in one line, e.g the following is successful: \begin{bmatrix}1 & 2 & 3\\\\7 & 14 & 21␣\end{bmatrix} - but the problem is if we wish to nest align with bmatrix environments, everything in 1 line is very messy, so the considerations for line breaks above are necessary.

cliu587 commented 6 months ago

@algeboy - I cannot seem to add you as a reviewer, but this should demystify latex behavior on the website.