+0

# LaTex Coding

+31
1
7610
14

LaTex is a mathematics presentation language that can be used on this forum.

It is used in many other places as well.

This can be very confusing when you first use it but if you start with little things like using it to write fractions then it is easy to build your knowledge from there.

If you are interested in learning say so in a new post and we will be very pleased to help you.

I was looking for some early LaTex coding examples that were supposed to be in the sticky notes but they are displaying. Some of the coding does not work in this new version of the forum but I still want to be able to find these posts,

So..        I'm putting them here This first one I am only including for historical value, it was posted before we had LaTex here at all

http://web2.0calc.com/questions/test_6            dated  5th March 2014

Now for the real ones   (1)   This is a big one dated from                      dated  28th April 2014

(2)   This has good information to help get you started.

It was written by MaxWong                     dated 7th July 16

Thanks Max (3)   Another by MaxWong                              dated  10th July 2016

Here is a post discussing a couple of Latex converters. I have not used it but it looks like it coud be really good!

This is the actual latex equation editor.

http://www.imatheq.com/imatheq/com/imatheq/math-equation-editor-latex-mathml.html

And here is a virtual maths keyboard

http://usefulwebtool.com/en/math-keyboard.php

Sep 21, 2017
edited by Melody  May 11, 2019

#1
+3

Here is one, by GingerAle and Hectictar, that Hectictar just asked me to include.  Thanks Girls :)

This is the original thread but I will includ most of the salient coding underneath.

https://web2.0calc.com/questions/1-84-1-56-8

$$\boxed{3x\stackrel{?}{=}7}$$

\boxed{3x\stackrel{?}{=}7}

---------------------------------

$$\begin{array}{|rcll|} \hline \angle {ABC} &=& 27° \\ \measuredangle{ABC} &=& 27° \\ \stackrel {\; \frown} {ABC} &=& 27° \\ \stackrel { \hspace{.1em} \wedge} {AC} &=& 27° \\ \stackrel {\, \hspace{.1em} \frown} {AC} &=& 27° \\ \hline \end{array}\\\ \overset{\; \frown}{AC} = 27° \\$$

Coding

\begin{array}{|rcll|}

\hline

\angle {ABC} &=& 27° \\

\measuredangle{ABC} &=& 27° \\

\stackrel {\; \frown} {ABC} &=& 27° \\

\stackrel { \hspace{.1em} \wedge} {AC} &=& 27° \\

\stackrel {\, \hspace{.1em}  \frown} {AC} &=& 27° \\

\hline \end{array}\\\

\overset{\; \frown}{AC} = 27° \\

I only just realised that Ginger has not used the \boxed command.

I wonder how she got the vertical side lines on her box??   I'll have to work it out ://

Arr got it, it is a part of the array command.

Thanks Ginger :)

-----------------------------------------------------------------------------------

Oh Hectictar also mentioned that there is a number of ways to get the degree sign.

These are Hectictars words:

"I have noticed that there are actually two signs that look like degree signs in the "special character" selection. One of them is a masculine ordinal indicator: º  and the other is the degree sign: °  . (If you hover over the symbol it tells the name of it.)

I just use the command   ^\circ     Like this     5^\circ  displays as  $$5^\circ$$

Sep 25, 2017
edited by Melody  Sep 25, 2017
#2
+3

Courtesy of Heureka :)

$$\begin{array}{|rcll|} \hline && \mathbf{(t-1)^3 + 6(t-1)^2 + 12(t-1) + 8 } \\ &=& (t-1)^3 + 3(t-1)^2+3(t-1) +1 \\ && \quad + 3(t-1)^2+9(t-1)+7 \\ &=& t^3 + 3(t-1)^2+9(t-1)+7 \\ &=& t^3 + 3(t^2-2t+1)+9t-9+7 \\ &=& t^3 + 3t^2-6t+3+9t-9+7 \\ &=& t^3 + 3t^2+3t+1 \quad & | \quad (1+t)^3 = t^3+3t^2+3t+1 \\ &\mathbf{=}& \mathbf{(1+t)^3} \\ \hline \end{array}$$

\begin{array}{|rcll|} \hline && \mathbf{(t-1)^3 + 6(t-1)^2 + 12(t-1) + 8 } \\

&=& (t-1)^3 + 3(t-1)^2+3(t-1) +1\\

&=& t^3 + 3(t-1)^2+9(t-1)+7 \\

&=& t^3 + 3(t^2-2t+1)+9t-9+7 \\

&=& t^3 + 3t^2-6t+3+9t-9+7 \\

&\mathbf{=}& \mathbf{(1+t)^3} \\

\hline \end{array}

Oct 26, 2017
#3
0

Thank You

Nov 4, 2017
#4
0

Some interesting coding by GingerAle and Heureka:  Thanks to both of you :)

It is from this question:

https://web2.0calc.com/questions/modular-math_8

$$\begin{array}{rcll} n &=& {\color{red}3331} \cdot {\color{green}1247} \cdot \underbrace{ \underbrace{ \underbrace{ \underbrace{ [ {\color{green}1247}^{\varphi({\color{green}231})-1} \pmod {{\color{green}231}} ] }_{=\text{modulo inverse 1247 mod 231} } }_{=1247^{230-1} \mod {231} }}_{=1247^{229} \mod {231}}}_{=113} + {\color{red}1361} \cdot {\color{green}231} \cdot \underbrace{ \underbrace{ \underbrace{ \underbrace{ [ {\color{green}231}^{\varphi({\color{green}1247})-1} \pmod {{\color{green}1247}} ] }_{=\text{modulo inverse 231 mod 1247} } }_{=231^{1246-1} \mod {1247} }}_{=231^{1245} \mod {1247}}}_{=637}\\\\ n &=& {\color{red}3331} \cdot {\color{green}1247} \cdot [ 113] + {\color{red}1361} \cdot {\color{green}231} \cdot  \\ n &=& 469374541 + 200267067 \\ n &=& 669641608 \\\\ && n\pmod {m}\\ &=& 669641608 \pmod {288057} \\ &=& 197140 \\\\ n &=& 197140 + k\cdot 288057 \qquad k \in Z\\\\ \mathbf{n_{min}} & \mathbf{=}& \mathbf{197140 } \end{array}$$

CODING:

\begin{array}{rcll} n &=& {\color{red}3331} \cdot {\color{green}1247} \cdot \underbrace{ \underbrace{ \underbrace{ \underbrace{ [ {\color{green}1247}^{\varphi({\color{green}231})-1} \pmod {{\color{green}231}} ] }_{=\text{modulo inverse 1247 mod 231} } }_{=1247^{230-1} \mod {231} }}_{=1247^{229} \mod {231}}}_{=113} + {\color{red}1361} \cdot {\color{green}231} \cdot \underbrace{ \underbrace{ \underbrace{ \underbrace{ [ {\color{green}231}^{\varphi({\color{green}1247})-1} \pmod {{\color{green}1247}} ] }_{=\text{modulo inverse 231 mod 1247} } }_{=231^{1246-1} \mod {1247} }}_{=231^{1245} \mod {1247}}}_{=637}\\\\

n &=& {\color{red}3331} \cdot {\color{green}1247} \cdot [ 113] + {\color{red}1361} \cdot {\color{green}231} \cdot  \\

n &=& 469374541 + 200267067 \\ n &=& 669641608 \\\\ && n\pmod {m}\\ &=& 669641608 \pmod {288057} \\

&=& 197140 \\\\

n &=& 197140 + k\cdot 288057 \qquad k \in Z\\\\

\mathbf{n_{min}} & \mathbf{=}& \mathbf{197140 }

\end{array}

Nov 24, 2017
#5
+1

You can also visit the Wikibooks article on how to code LaTeX: https://en.wikibooks.org/wiki/LaTeX/Mathematics

Nov 30, 2017
edited by SpaceModo  Nov 30, 2017
#6
0
Melody  Dec 1, 2017
#7
+1

Lots more Latex coding ideas by SpaceModo     (Dec2017)

Thanks SpaceModo,

https://web2.0calc.com/questions/latex-formatting-fixed

Dec 26, 2017
#8
+1

Here is a cool website:      http://detexify.kirelabs.org/classify.html

If you are trying to find the code for a certain symbol, draw it in the box and it will give you a list of symbols and their codes that look like what you drew!

Also, you can click the "symbols" button to see a list of LaTeX symbols.

Jan 12, 2018
#9
+1

Here is a knew one I just saw

$x^2 + \dfrac{5}{3}x + \boxed{\phantom{000}}.$

this is really interestig because I did not go into LaTex to do this.

I just opened it with      \[

then the code

x^2 + \dfrac{5}{3}x + \boxed{\phantom{000}}.

and closed it with the close ] command.

I think it would have worked almost as good  If I had opened it with a dollar sign and closed it with a dollar sign Jan 17, 2018
edited by Melody  Jan 17, 2018
#10
+1

https://web2.0calc.com/questions/latex

Jun 24, 2018
#11
+2

Piecewise Graphs:

$$f(x) = \begin{cases} k(x) &\text{if }x>3, \\ x^2-6x+12&\text{if }x\leq3. \end{cases}$$

f(x) = (backslash)     begin{cases} k(x) &\text{if }x>3, \\ x^2-6x+12&\text{if }x\leq3. \end{cases}

Jan 16, 2019
#12
0

https://web2.0calc.com/questions/cool-rainbow-latex

\color{red}{\LaTeX}_{\color{orange}{\LaTeX}_{\color{green}{\LaTeX}}{\color{blue}{\LaTeX}}}^{\color{orange}{\LaTeX}^{\color{green}{\LaTeX}}{\color{blue}{\LaTeX}}}\color{purple}{\LaTeX}

$$\color{red}{\LaTeX}_{\color{orange}{\LaTeX}_{\color{green}{\LaTeX}}{\color{blue}{\LaTeX}}}^{\color{orange}{\LaTeX}^{\color{green}{\LaTeX}}{\color{blue}{\LaTeX}}}\color{purple}{\LaTeX}$$

Jun 1, 2019
#13
+1

How can Iget LaTex to render without using the LaTex box?

GingerAle shows us how!

https://web2.0calc.com/questions/latex-delimiters

Aug 11, 2019
#14
0

CoolStuffYT

https://web2.0calc.com/questions/latex-basic-guide

Some useful functions

Nov 27, 2019