studiot Posted February 6, 2015 Posted February 6, 2015 (edited) 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 February 6, 2015 by studiot
Endy0816 Posted February 6, 2015 Posted February 6, 2015 (edited) [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 February 6, 2015 by Endy0816 1
studiot Posted February 6, 2015 Author Posted February 6, 2015 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.
Endy0816 Posted February 6, 2015 Posted February 6, 2015 (edited) 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 February 6, 2015 by Endy0816
studiot Posted February 6, 2015 Author Posted February 6, 2015 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. 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.
Endy0816 Posted February 7, 2015 Posted February 7, 2015 (edited) 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: Programs only do what they are told to do, you just have to tell them exactly what you want. Edited February 7, 2015 by Endy0816
studiot Posted February 7, 2015 Author Posted February 7, 2015 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now