Jump to content

Latex problems again

Featured Replies

How do I get rid of the unwanted <br> whatevers in this matrix code please?

[math]\left( {\begin{array}{*{20}{c}}
{{a_{11}}} & {{a_{12}}} & {{a_{13}}} \\
{{a_{21}}} & {{a_{22}}} & {{a_{23}}} \\
{{a_{31}}} & {{a_{32}}} & {{a_{33}}} \\
\end{array}} \right)[/math]

 

 

I have left the brackets of the math / math tags so the code will show up.

math\left( {\begin{array}{*{20}{c}}
{{a_{11}}} & {{a_{12}}} & {{a_{13}}} \\
{{a_{21}}} & {{a_{22}}} & {{a_{23}}} \\
{{a_{31}}} & {{a_{32}}} & {{a_{33}}} \\
\end{array}} \right)/math

If I paste this code into Codecogs the matrix is correctly displayed.

Edited by studiot

[latex] \left( {\begin{array}{*{20}{c}} {{a_{11}}} & {{a_{12}}} & {{a_{13}}} \\ {{a_{21}}} & {{a_{22}}} & {{a_{23}}} \\ {{a_{31}}} & {{a_{32}}} & {{a_{33}}} \\ \end{array}} \right) [/latex]


You have to put all the latex code on one line. <br> is the HTML line break tag. Is kind of weird that it renders it though.

Edited by Endy0816

  • Author

Well rearranging what I wrote doesn't seem to work so what exact amendmends do I need to the code please?




[math]{\begin{array}{*{20}{c}} {{a_{11}}} & {{a_{12}}} & {{a_{13}}} \\ {{a_{21}}} & {{a_{22}}} & {{a_{23}}} \\{{a_{31}}} & {{a_{32}}} & {{a_{33}}} \\ \end{array}}[/math]



[math]\left( {\begin{array}{*{20}{c}}{{a_{11}}} & {{a_{12}}} & {{a_{13}}} \\{{a_{21}}} & {{a_{22}}} & {{a_{23}}} \\{{a_{31}}} & {{a_{32}}} & {{a_{33}}} \\\end{array}} \right)[/math]



Finally got it to work.

Thanks a bunch endy +1

 

What a cack handed piece of duff programming.

A machine should do what it is told period.

 

 

 

 

A computer is a literal genie. ;)

 

Looking at it, you can use the WordPress selection at the bottom and it'll show up correctly for here. Rather than say, copy from the upper textarea, which I suspect we're all in the habit of doing.

Edited by Endy0816

  • Author

 

Looking at it, you can use the WordPress selection at the bottom and it'll show up correctly for here. Rather than say, copy from the upper textarea, which I suspect we're all in the habit of doing.

 

 

I have no idea what you mean.

 

:confused:

 

The original matrix was generated in MathType and pasted in between math tags.

The <br> and anything else was added by the system without being asked or told.

The text you pasted had line breaks already in it. The forum simply translated those into HTML code and from there into LaTeX.

 

You have to put it all on a single line to get rid of them.

 

This is the Codecog's method I was talking about:

 

IGX1ir2.png

 

 

Programs only do what they are told to do, you just have to tell them exactly what you want.

Edited by Endy0816

  • Author

Thank you endy, for the continued support and explanations, which are very helpful.

 

 

Programs only do what they are told to do, you just have to tell them exactly what you want.

 

 

That (helpful) is the difference between humans and programs.

 

IMHO humans invented ergometrics as well as programming, but forgot to teach the former to the latter.

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.