3
$\begingroup$

In waterstreamer's recent post, they used a table to present the possible Jordan normal forms of a $3\times3$ matrix. As they comment, and I checked, the table looks just fine on preview, but terrible on post:

Preview: Preview

Post: Post

Why does it behave that way?

EDIT: A new revision removes :s in the subheader line, and it now renders fine. So that explains how to get a correct rendering on post. But why did it work on preview before, if that's not the right syntax?

$\endgroup$
3
  • 6
    $\begingroup$ I'm fairly sure that the fix actually was the blank line added before the table header, and not the removal of the colons in the subheader. This is a known discrepancy between the preview and final output; see, for instance, "Markdown table preview does not detect missing blank line before table header" on Meta SE. $\endgroup$ Commented Jul 7, 2023 at 15:48
  • 1
    $\begingroup$ @MartinSleziak, thanks for the tag edit! I need to get more familiar with meta tags. I tried table and preview, neither of which (yet) exists. $\endgroup$
    – LSpice
    Commented Jul 7, 2023 at 17:04
  • 1
    $\begingroup$ @waterstreamer commented on main: "The issue was, that i had to use $$ in the markdown table for latex to work properly (and also use two newlines for the table to render here, although the editor showed it to me after one already, so there seems to be a discrepency in the rendering there, I cant comment that on your MMO post though)" $\endgroup$
    – LSpice
    Commented Jul 7, 2023 at 17:05

1 Answer 1

5
$\begingroup$

There needs to be a blank line before the table header for it to render correctly in the final output. Unfortunately, the table renders properly in the preview even without a blank line before the header, so this often causes confusion. This issue was reported on Meta SE here: Markdown table preview does not detect missing blank line before table header.


Here is revision 2 of the post under discussion; it does not have a blank line before the header. Everything renders fine in the preview, but the final output is broken.

After being introduced to the Jordan normal form I wanted to see, if you could classify all 3x3 Matrices by their Jordan normal form and how they would look. This is the table I arraived at, however I was a bit confused, because all Matrices with same minimal polynomial and characteristic polynomial are also similar in this classification. Does that hold for 3x3 Matrices of $\mathbb{R}$? If not, where did I go wrong?
| $\chi_A$ | $\mu_A$ | partition | jordan | |:---------------------------------|:-------------------------------|:-------------|:--------------------------------| | $(X-a)^3$ | $(X-a)$ | $(1,1,1)$ | $Diag(a,a,a)$ | | | $(X-a)^2$ | $(2,1)$ | $Diag(J_2(X-a),a)$ | | | $(X-a)^3$ | $(3)$ | $J_3(X-a)$ | | $(X-a)^2\cdot (X-b)$ | $(X-a)\cdot (X-b) $ | $(1,1)(1)$ | $Diag(a,a,b)$ | | | $(X-a)^2\cdot (X-b)$ | $(2)(1)$ | $Diag(J_2(X-a),J_1(X-b)$ | | $(X-a)\cdot (X-b) \cdot (X-c)$ | $(X-a)\cdot (X-b)\cdot (X-c)$ | $(1)(1)(1)$ | $Diag(a,b,c)$ | | $(X-a)\cdot (X^2+bX+c)$ | $(X-a)\cdot (X^2+bX+c)$ | $(1),(1)$ | $Diag(J_1(X-a),J_1(X^2+bX+c))$ |


Here is the same content but with a blank line added before the header:

After being introduced to the Jordan normal form I wanted to see, if you could classify all 3x3 Matrices by their Jordan normal form and how they would look. This is the table I arraived at, however I was a bit confused, because all Matrices with same minimal polynomial and characteristic polynomial are also similar in this classification. Does that hold for 3x3 Matrices of $\mathbb{R}$? If not, where did I go wrong?

$\chi_A$ $\mu_A$ partition jordan
$(X-a)^3$ $(X-a)$ $(1,1,1)$ $Diag(a,a,a)$
$(X-a)^2$ $(2,1)$ $Diag(J_2(X-a),a)$
$(X-a)^3$ $(3)$ $J_3(X-a)$
$(X-a)^2\cdot (X-b)$ $(X-a)\cdot (X-b) $ $(1,1)(1)$ $Diag(a,a,b)$
$(X-a)^2\cdot (X-b)$ $(2)(1)$ $Diag(J_2(X-a),J_1(X-b)$
$(X-a)\cdot (X-b) \cdot (X-c)$ $(X-a)\cdot (X-b)\cdot (X-c)$ $(1)(1)(1)$ $Diag(a,b,c)$
$(X-a)\cdot (X^2+bX+c)$ $(X-a)\cdot (X^2+bX+c)$ $(1),(1)$ $Diag(J_1(X-a),J_1(X^2+bX+c))$

The above post uses colons : for aligning the content of the columns, but the final output looks terrible. Unfortunately, MathJax has been broken like this for quite some time, ever since the switch to the responsive design. I listed some of these bug reports in a comment elsewhere. Honestly, I despair of this ever getting fixed.

User watertrainer's choice to use "displaystyle" instead of the colons is a decent workaround in this case. But, the Markdown rendering of the table was fixed just by adding a blank line before the table header, and that had nothing to do with the "inline" math mode in the table cells.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .