Matrices

47 views
Skip to first unread message

sapnaf...@gmail.com

unread,
Oct 30, 2019, 4:34:33 AM10/30/19
to MathJax Users
How to handle the matrices display with column names?

MJ.PNG

when i convert to latex & rendering into my app the display is being changed to 

s22.png


the negative -3 has been handled, but how do i change the latex code to adjust the column headers? A roundabout is to add spaces,but that is not supported in the event of line breaks

Murray

unread,
Oct 31, 2019, 3:41:44 AM10/31/19
to MathJax Users
@sapnaf: You could always use an overbrace over each of your matrices:

\overbrace{YOUR MATRIX HERE}^{P}

Regards
Murray

Davide Cervone

unread,
Nov 1, 2019, 9:31:30 PM11/1/19
to mathja...@googlegroups.com
Here's one way to handle it (based on Murray's idea):

\def\titleMatrix#1#2{\mathop{\left(\begin{array}{r}#2\end{array}\right)}\limits^{\textstyle\raise.5em{#1}}}

\titleMatrix{P}{1\\3} +
\titleMatrix{T}{3\\-3} =
\titleMatrix{P'}{1+3\\3-3} =
\titleMatrix{P'}{4\\0}

which produces

See if that does the trick.

Davide



On Oct 30, 2019, at 4:34 AM, sapnaf...@gmail.com wrote:

How to handle the matrices display with column names?

<MJ.PNG>

when i convert to latex & rendering into my app the display is being changed to 

<s22.png>


the negative -3 has been handled, but how do i change the latex code to adjust the column headers? A roundabout is to add spaces,but that is not supported in the event of line breaks


--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/21803269-06e7-4ab2-a70f-9f006c2b4fa1%40googlegroups.com.
<MJ.PNG><s22.png>

Reply all
Reply to author
Forward
0 new messages