## anonymous 2 years ago $$\LaTeX$$ practice - no questions being asked.

1. anonymous

$$\begin{array}{r,c,l} ax^2 + bx + c & =& 0 \\ \end{array}$$

2. anonymous

$\begin{array}{r,c,l} 2x+3 & = & 4x + 7 \\ -3 & = &-3\\ 2x & = &4x+4\\ -4x & = & -4x\\ -2x&=&4\\ x&=&-2 \end{array}$

3. anonymous

$\begin{array}{c,c,c,c,c,c,c,c,c,c} &2x&+&3 & = && 4x& +& 7 \\ &&-&3 & =&&& -&3\\ &&&2x & = &&4x&+&4\\ &&-&4x & = & -&4x\\ &&-&2x&=&&&&4\\ &&&x&=&&&-&2 \end{array}$ Now, if I can figure out how to reduce the spacing between columns...

4. Jamierox4ev3r

there are some codes for this, and you cold post another question on that (since i don't know those; you must remeber imma newb)

5. anonymous

I'm going to look it up on LaTeXWiki. Thanks for trying. :-)

This is much easier than you are making it. Dont use a table just space them apart. $$2x+3=4x+7$$ $$~~~~-3=~~~~-3$$ $$~~~~~~2x=4x+4$$ $$~~-4x=-4x$$ $$~~~~~~2x=4$$ $$~~~~~~~~x=-2$$

7. anonymous

Your right, there is an easier way to do this example, but I still want to know how to reduce the space between the columns. My point is to learn $$\LaTeX$$ and which of the many $$\LaTeX$$ commands are available on this forum. Since different commands are available in different forums, I'm making a $$\Huge{huge}$$ spreadsheet to list all the commands I have learned, what packages they are in and what forums they can be use in. I will also include equivalent HTML commands for those that have them.

8. e.mccormick

@SnuggieLad spacing does not always come out cleanly. The longer some things are, the harder it gets to align them with spaces, but an array will do it nicely. However, for something as simple as that one, the first array is not that bad to make. The second is overkill for that and I would save it for things like this: $$\begin{array}{rrrrc} 12x_1 & +5x_2 & & -x_4 & = 7\\ & x_2 & +3x_3 & &= 4\\ -3x_1 & -3x_2& &+2x_4 &= 2 \end{array}$$ And its cousin: $$\left[ \begin{array}{cccc|c} 12 & 5 &0 & -1 & 7\\ 0 & 1 & 3 & 0&4\\ -3 & -3&0 &2 & 2 \end{array} \right]$$ It also helps if you do the edits in a tool like this: http://www.codecogs.com/eqneditor Which can do a lot of the grunt work, leaving you to just put in the numbers.

9. e.mccormick

As for reducing: $$\begin{array}{c,c,c,c,c,c,c,c,c,c} &2x&+&3 & = && 4x& +& 7 \\ &&-&3 & =&&& -&3\\ &&&2x & = &&4x&+&4\\ &&-&4x & = & -&4x\\ &&-&2x&=&&&&4\\ &&&x&=&&&-&2 \end{array}$$ Simple. Don't make a separate column for signs and leep things to the right. $$\begin{array}{rrcrr} 2x & +3 & = & 4x & +7 \\ & -3 & = & & -3\\ & 2x & = & 4x &+4\\ & -4x & = & -4x &\\ & -2x & =& &4 \\ & x & = & & -2 \end{array}$$

10. e.mccormick

And matrix works well too.

11. e.mccormick

As for LaTeXWiki, please realize this is MathJax and not $$\LaTeX$$. Sure, it uses the $$\TeX$$ markups, but it is the poor cousin who can't do as much.

12. anonymous

@e.mccormick - that is exactly why I am creating my own spreadsheet. I work with multiple versions of $$\LaTeX$$ so I need to know which markups will work with each platform. Keeping the signs with the terms is a great idea(thanks), but I really want to condense the columns as well. I know it can be done in $$\LaTeX$$ (maybe not on here) but I haven't found the appropriate markups.

@gypsy1274 It can not be done. There are not markups for everything like that that. Unless you over lap stuff. Sometimes we want to think of LaTeX as a code as in depth as HTML or JAVASCRIPT but its not. It is a simple code used for little odd jobs that other codes make harder than they should be. If you need help with anything email me at OpenStudy.Intern.SnuggieLad@gmail.com If your into tables and stuff listen to E.mccormic he is right. Otherwise just space it out if you want a sleek clean look.

It is apparent you have worked with LaTeX elsewhere but it is not a full coding system. It is a simple type of code. Lastly, we do not have the full version. We can not support it as there are multiple columns on this site that do not create full pages so stuff would run over. Its not magic, you can not do everything. It is not a REAL code like HTML.

15. anonymous

$Z = \frac{x-\mu}{\sigma}$

16. e.mccormick

$$\begin{array}{ccc} 1&2&3\\4&5&6 \end{array}$$ $$\setlength{\arraycolsep}{3pt} \begin{array}{ccc} 1&2&3\\4&5&6 \end{array}$$ Seems the standard method does not work here. If you really needed that for an extensive thing, you could do it on codecogs and link the URL: http://latex.codecogs.com/gif.latex?%5Cbg_white%20%5Csetlength%7B%5Carraycolsep%7D%7B3pt%7D%20%5Cbegin%7Barray%7D%7Bccc%7D%201%262%263%5C%5C4%265%266%20%5Cend%7Barray%7D Or, you can use one of the online $$\LaTeX$$ document creators that lets you link documents. Or, use any of the toops to make an image or PDF and attach that. This really comes in handy for things where an accuate diagram is useful. See attached example.

17. anonymous

@e.mccormick Did you create that with $$\LaTeX$$? If so, I would really like to see your source document. I could learn a lot from that. And thanks for the \setlength, even if it doesn't work here it will work in other places. @SnuggieLad You hit on exactly what I am trying to figure out, what pieces of $$\LaTeX$$ will work here, what will work on each of the other platforms I use, and what things are just not possible. Thanks for all your helpful information. And please realize, that I ask questions to find out if it can be done or not - I don't expect that everything that pops into my head can be done easily. :-)

18. e.mccormick

Yes, I made it. It was when I was just starting with TikZ and PGF, so it is not as clean as it could be. You can do math inside the image declarations to get things to come out properly as well.

I want to be ablee to graph on here so badly

20. anonymous

No kidding. Or at least have the drawings created someplace else to show up as a picture and not a file to be opened separately. :-)

21. anonymous

@e.mccormick Thanks so much. Just from a quick glance, I can already see how to do some of the things I've been trying to learn.

22. e.mccormick

For sharing graphs I use: https://www.desmos.com/calculator/vgnihkr8sn Cause it does piecewise, multiple lines, points, and so on. All pretty easy.

23. e.mccormick

You can do your trig fun: https://www.desmos.com/calculator/6on3pmugbw Or you can just have fun: https://www.desmos.com/calculator/cb1kazuc7o Those are from their gallery of graphs.

24. anonymous

68-95-99.7 Percent Rule $\begin{array}{|c|c} \hline >3 & 0.15& \\ \hline 3 & 2.1 \\ \hline 2 & 13.6 \\ \hline 1 & 34.1 \\ \hline -1 & 34.1 \\ \hline -2 & 13.6 \\ \hline -3 & 2.1 \\ \hline <-3&0.15 \\ \hline \end{array}$

25. e.mccormick

Hmmm... that table looks a little deviated... but that is standard in statistics. $$\Large \ddot \smile$$

26. anonymous

Cute! Thanks. I needed that laugh.

27. anonymous

$$\dfrac{x}{y} = 3$$ Or $$\frac{x}{y}=3$$

28. e.mccormick

There is also \tfrac to force the text size one inside a  code block.

29. e.mccormick

And \cfrac for contunued fractions. $\cfrac{2}{1+\cfrac{2}{1+\cfrac{2}{1+\cfrac{2}{1}}}}$

30. e.mccormick

An Identity of Ramanujan with frac: $\frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\ldots} } } }$ And with \cfrac $\frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} = 1+\cfrac{e^{-2\pi}} {1+\cfrac{e^{-4\pi}} {1+\cfrac{e^{-6\pi}} {1+\cfrac{e^{-8\pi}} {1+\ldots} } } }$

31. anonymous

Good to know. Thanks @e.mccormick. $\Huge \text{(^◡^ )}$

32. anonymous

Is it possible to draw a bell curve here using $$\LaTeX$$?

33. e.mccormick

That would require TikZ and PGF. See my post in the feedback section on how they could add that. =) For use elsewhere, those are what you want to look into.

34. e.mccormick

For not having questions, you sure have gotten some answers!

35. anonymous

And those answers have been much appreciated. Thanks.

36. e.mccormick

np. It is all good information when someone has a use for it. Otherwise, it is just unused information. So I would rather share it and get some use!

37. anonymous

I feel the same way. Information should be shared. :-)

38. anonymous

$$\Huge 4x − \cancel{6} + 3x + \cancel{6}=?$$ $$\Huge 4x − \cancel{6} + 3x + \cancel{6}=?$$ It is helpful to be able to see the code others have written. I have learned new things today.

39. e.mccormick

$$\large\ddot\smile$$

40. e.mccormick

$$\not{a}$$ $$\cancel{a}$$ Ahh, a little different angle than \not Never looked to see if they were the same or not. Hehe.

41. anonymous

$$\cancel{2x+4}$$ $$\not{2x+4}$$ Apparently the \not command only works on one character. The cancel command seems to work on more than one character. Much better for my purposes. Both have their uses.

42. e.mccormick

Oh wow... I SOLVED IT! YES!!! An answe to your firstg question! $$\begin{array}{ccc} 1& 2 & 3 \\ 4 & 5 & 6 \end{array}\\ \begin{array}{ccc} \! 1\!&\! 2\!&\!3\!\\\!4\!&\!5\!&\!6\! \end{array}$$ And yah, cancel is sweet because of the ability to cancel a compound term.

43. e.mccormick

\! negates the kerning spaces. $$AB$$ $$A\!B$$ $$AB$$ $$A\!B$$. Well, kill all the kerning in a table and guess what happens!

44. anonymous

$\begin{array}{ccccc} \! 2x \! & \! +3 \! & \! =\! & \! 4x \! & \! +7 \\ & -3 & = & & -3\\ \hline & 2x & = & 4x &+4\\ & -4x & = & -4x &\\ \hline & -2x & =& &4 \\ & x & = & & -2 \end{array}$ It works well on your example, but doesn't seem to have much of an effect on my table. $\begin{array}{ccc} 1& 2 & 3 \\ 4 & 5 & 6 \end{array}\\ \begin{array}{ccc} \! 1\!&\! 2\!&\!3\!\\\!4\!&\!5\!&\!6\! \end{array}$

45. e.mccormick

$\begin{array}{ccccc} \! 2x \! & \! +3 \! & \! =\! & \! 4x \! & \! +7 \\ & -3 & = & & -3\\ \hline & 2x & = & 4x &+4\\ & -4x & = & -4x &\\ \hline & -2x & =& &4 \\ & x & = & & -2 \end{array}$ $\begin{array}{ccccc} \! 2x \! & \! +3 \! & \! =\! & \! 4x \! & \! +7 \\ \! & \!-3\! & \!=\! &\! &\! -3\!\\ \hline \! & \!2x \!&\! =\! & \!4x\! &\!+4\!\\ \! & \!-4x \!& \!= \!& \!-4x\! &\!\\ \hline \! & \!-2x \!&\! =\!&\! &4\! \\ \! &\! x\! &\! = \!&\! &\! -2\! \end{array}$

46. anonymous

Certainly better, but I've seen equation looking better than that. Must be a different solution. Although, that \! will be handy for other things.

47. e.mccormick

Well, the column separation command is better elsewhere. So this is just a way to cheat a little with MathJax.