Asciimath's one row and multiple column matrix displays strange behavior

Dear friends

The figure shows a matrix with multiple rows and columns multiplied by a matrix with multiple rows and columns, written in ASCII syntax. It is obvious that the parentheses on both sides of the vertical matrix are very clear, while the parentheses on both sides of the horizontal matrix match the background color of the tiddler very well. Either my ASCII syntax is incorrect, or this is what ASCII looks like when parsed normally. Is there anything to eliminate this confusing display

$am$[[1],[2],[3]]*[[3,2,1]]$$

Any response would be greatly appreciated

try this:

.katex :is(
.delimsizing.size1, 
.minner .delimcenter
){

font-weight: 600;

}

In a tiddler with the tag $:/tags/Stylesheet and the type set to text/css.

This should increase the thickness of the smaller brackets and improve contrast.

Before:

image

After:

image

It’s not perfect but I was not able to find a fond weight that make the thickness of both type of brackets equal. You could try to use a different font and see if you can get better results.

1 Like

Thank you very much, your IT skills are excellent.

There is a question that may not be a problem. Why do the parentheses on the row matrices on both sides of the equation seem to be unusually thick? It may be due to my viewing angle

This is the result of applying the bold style of horizontal matrix parentheses

This is the initial one

I think the root of the issue is that two different fonts have been used: “KaTeX_Size4” for the first array, and “KaTeX_Size1” for the second array. In fact, I can’t see any difference other than the font-family. Not even the computed font-size is different!

You can see the same thing if you paste the generated KaTeX code:

\displaystyle \left [ \begin{matrix} 1 \\ 2 \\ 3 \end{matrix} \right ] \cdot \left [ \begin{matrix} 3 & 2 & 1 \end{matrix} \right ]

into the demo box on https://katex.org/

Edit: What I’m really saying is that this is a KaTeX issue, and you should take it up with them.

1 Like