Jump to content

Latex problems again


Recommended Posts

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
Link to comment
Share on other sites

[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
Link to comment
Share on other sites

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.

 

 

 

 

Link to comment
Share on other sites

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
Link to comment
Share on other sites

 

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

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.