+0

# LaTex Coding

+36
2
13524
21

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
+4

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
+2

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

Jun 24, 2018
#11
+3

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
+1

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
+2

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
+2

CoolStuffYT

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

Some useful functions

Nov 27, 2019
#15
+2

BOLD FACE,     UNDERLINING    AND     ITALICS

https://sharelatex.psi.ch/learn/Bold,_italics_and_underlining

The best way to put bf and other fonts on and off.

Use  \textbf

If you just use \bf then all the rest that you write will also be in bold face.

=(p+3q\;\textcolor{red}{\textbf{-}}\;3s)(p+3q\;\textcolor{red}{\textbf{+}}3s)

$$=(p+3q\;\textcolor{red}{\textbf{-}}\;3s)(p+3q\;\textcolor{red}{\textbf{+}}3s)$$

Feb 12, 2021
#16
+5

Hello all, just a few resources for using LaTeX.

I found a great resource on AoPS about LaTeX. It's not a gigantic read, so I suggest that if you want to learn LaTeX to a deeper extent to look at this webpage. It also covers aligning equations.

https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS

If you want to create LaTeX Tables, use this webpage to generate one.

https://www.tablesgenerator.com/#

The only problem is that webpage doesn't allow math input for the tables.

You can also learn to make them yourself in the below link.

https://www.overleaf.com/learn/latex/tables

If you don't know how to do some LaTeX symbols, that's no problem. You can just directly search them up online, and there will definitely be some great sources.

If you are making complicated, hard-to-read equations in LaTeX, then don't spend your time getting confused over the syntax! All you got to do is to type the equation up in the Desmos Graphing Calculator! Copy the result, and then if you paste it, then it will be in LaTeX. All you have to do is to wrap it with dollar signs.

https://www.desmos.com/calculator

-CitrusCornflakes :) $\int_{0}^{\pi}\sin\left(x\right)\ dx\ =\left(-\cos\left(\pi\right)+C\right)-\left(-\cos\left(0\right)+C\right)=2$

Feb 13, 2021
#17
+1

https://web2.0calc.com/questions/anser-this-question#r6        courtesy of Bginner      21/6/21

begin{eqnarray*}  \dfrac{x+1}{x-1}  &=& \frac{5}{4} \\
\dfrac{(x+1)+(x-1)}{(x+1)-(x-1)}  &=& \dfrac{5+4}{5-4} \\
\dfrac{2x}{2}  &=& \dfrac{9}{1} \\
x &=& 9  \end{eqnarray*}

$$\begin{eqnarray*} \dfrac{x+1}{x-1} &=& \frac{5}{4} \\ \dfrac{(x+1)+(x-1)}{(x+1)-(x-1)} &=& \dfrac{5+4}{5-4} \\ \dfrac{2x}{2} &=& \dfrac{9}{1} \\ x &=& 9 \end{eqnarray*}$$

Jun 22, 2021
edited by Melody  Jun 22, 2021
#18
0

0.\overline{23}

$$0.\overline{23}$$

Oct 6, 2021
#19
+1

List of symbols     Suggested by Babbeln  (16/11/21)

https://en.wikipedia.org/wiki/List_of_mathematical_symbols_by_subject

Melody  Nov 15, 2021
#20
+3

SPACING AND EMPTY BOXES

How to make an empty box of various horizontal length

\boxed{\color{white}ABCDEF  }

$$\boxed{\color{white}ABCDEF }$$

There are more spacing ideas from Hectictar here

Mar 15, 2022
edited by Melody  Mar 15, 2022
#21
+1

Boxes

$$\boxed{\phantom{X}}>\boxed{\phantom{X}}>\boxed{\phantom{X}}<\boxed{\phantom{X}}<\boxed{\phantom{X}}$$

LaTex for the boxes:

\boxed{\phantom{X}}>\boxed{\phantom{X}}>\boxed{\phantom{X}}<\boxed{\phantom{X}}<\boxed{\phantom{X}}

Oct 29, 2022