+0  
 
+16
478
5
avatar+6880 

Um.... I am not a staff of the forum but I am just trying to make a post of general LaTeX codes because there are always someone asking 'How do I make fractions?' and 'How to input the cube root?'. 

 

If you want to make fractions \dfrac{numerator}{denominator} or \frac{numerator}{denominator}

Example: \(\frac{5}{7}\) Latex code: \frac{5}{7}

If you want mixed fractions (whole number part)\dfrac{numerator}{denominator} or (whole number part)\frac{numerator}{denominator}

Example: \(4\frac{3}{4}\) Latex code: 4\frac{3}{4}

 

If you want to make square root \sqrt{number}. If it's a 1-digit number you can use \sqrt number without the {}s.

Example: \(\sqrt{169}\) Latex code: \sqrt{169}

Example: \(\sqrt9\) Latex code: \sqrt9

If you want to make other kinds of square root(cube root, etc.), \sqrt[number]{number}.

Example: \(\sqrt[3]{8}\) Latex code: \sqrt[3]{8}

Example: \(\sqrt[5]{6}\) Latex code: \sqrt[5]{6}

 

If you want to make power of a number, {number}^{number}.If it's a 1-digit number you can use the code without the {}s.

Example:\(2^3\) Latex code: 2^3

Example: \(14^{13}\)Latex code: 14^{13}

 

If you want to add a space, \space , \quad , or \qquad . \qquad makes bigger gap than \quad, and \quad makes bigger gap than \space. If you want to add a new row to the Text, do \\

Example: \(I \space love \space Maths.\) Latex code: I \space love \space Maths.

Example: \(\quad 2\times 2 \\ =4 \) Latex code: \quad 2\times 2 \\ =4 

 

If you want to make multiplication sign, do \times.

Example: \(14\times14=196\) Latex code:14\times14=196

 

If you want to make division sign, do \div.

Example: \(14\div2=7\) Latex code: 14 \div 2=7

 

If you want to make summation sign, do \sum_{lower limit}^{upper limit} (For infinity sign, do \infty)

Example:\(\sum_{n=1}^{\infty}\) Latex code:\sum_{n=1}^{\infty}

 

If you want to make the notation for differentiation, do \frac{d}{dx}{equation} or {something}'

Example: \(\frac{d}{dx} x+1 = 1\) Latex code: \frac{d}{dx} x+1 = 1

Example: \(f'(x)\) Latex code: f '(x)

 

If you want to make integration sign, do \int (for indefinite integrals) or \int_{}^{} (for definite integrals)

Example: \(\int 3x^2=x^3\) Latex code: \int 3x^2=x^3

Example: \(\int_{0}^{\pi}sinx\) Latex code: \int_{0}^{\pi}sinx

 

If you want to make limits, do \lim_{something \rightarrow something}

Example: \(\lim_{x\rightarrow 0} x+1 = 1\) Latex code: \lim_{x\rightarrow 0} x+1 = 1

 

If you want to make bold text, do \textbf{something}

Example: \(\textbf{2a+1}\) Latex code: \textbf{2a+1}

PS: That should not involve LaTeX codes like \frac , \int , etc.

 

If you want to add a box to something, do \boxed{something}

Example :\(\boxed{\quad x^2-y^2\\=(x+y)(x-y)}\) Latex code: \boxed{\quad x^2-y^2\\=(x+y)(x-y)}

 

If you want to add colors to something do \color{Your desired color}.

(black, blue, brown, cyan, darkgray, gray, green, lightgray, lime, magenta, olive, orange, pink, purple, red, teal, violet, white, yellow. These colors are possible to use on the forum.)

Example: \(\color{blue}Max \space is \space clever.\) Latex code: \color{blue}Max \space is \space clever.

 

If you want to make the text underlined, use \underline{something}.

Example: \(\underline{Good\space Morning}\) Latex code: \underline{Good\space Morning}

 

If you want to make the text italic, you don't need to do anything, because it's preset italic.

 

Various Symbols:

\(\pi\) Latex code: \pi

\(\theta\) Latex code: \theta

\(\alpha\) Latex code: \alpha

\(\beta\) Latex code: \beta

\(\gamma\) Latex code: \gamma

MaxWong  Jul 7, 2016
edited by MaxWong  Jul 7, 2016

Best Answer 

 #5
avatar+90988 
+15

Max:  Here is one I can teach to you,

 

you showed

If you want to make summation sign, do \sum_{lower limit}^{upper limit} (For infinity sign, do \infty)

 

Example: Latex code:\sum_{n=1}^{\infty}                \(\sum_{n=1}^{\infty} \)

 

 

This is how I would do it:

 

\displaystyle \sum_{lower limit}^{upper limit} (For infinity sign, do \infty)

 

\(\displaystyle \sum_{n=1}^{\infty} \)

Melody  Jul 10, 2016
Sort: 

5+0 Answers

 #1
avatar+6880 
+10

Why can't I edit my answer again..... Never mind.

 

If you want to type a degree sign do {something}^{\circ}

Example: \(180^{\circ}\) Latex code: 180^{\circ}

MaxWong  Jul 7, 2016
 #2
avatar+90988 
+15

Thanks Max,

 

I will add this to our LaTex thread that is kept with the sticky topics.

This thread is in a bit of a mess I am afraid but I still find it useful occasionally.

 

If you want to voluteer to do a new cleaned up version that would be really good.

(You would just need to include the address of the original one so we don't lose it)

If you don't want to or do not have time that is fine.  :)

 

Also,

If you are usually able to edit your posts you are really lucky.  Most of us, including me, are never able to do that any more.  We used to be able to but it has not worked for a long time now.  That is one of the reasons that things are no longer well organised.  Many threads really need the editing ability to keep them tidy. :(

Melody  Jul 7, 2016
 #3
avatar+7116 
+15

Please excuse.
A LaTeX - exercise.

 

\(4\frac{3}{4}\)  +  \(\sqrt[3]{8}\)  =  \(\frac{16\ +\ 3}{4}+2 = \frac{19}{4}+ \frac{8}{4}=6\frac{3}{4} \)  
4\frac{3}{4}+\sqrt[3]{8}=\frac{16\ +\ 3}{4}+2 = \frac{19}{4}+ \frac{8}{4}=6\frac{3}{4}

 

 

\(\frac{16\ +\ 3}{4}+2 = \frac{19}{4}+ \frac{8}{4}=6\frac{3}{4} \)   

\frac{16\ +\ 3}{4}+2 = \frac{19}{4}+ \frac{8}{4}=6\frac{3}{4}

asinus  Jul 10, 2016
 #4
avatar+90988 
+15

Thanks Max and asinus, it is good for people to see how LaTex can be used.  :)

 

I had vaguely wondered about this one      180^{\circ}

 

I have always used  180^0  but yours is better max    laugh

 

I will have to try and remember it :)

Melody  Jul 10, 2016
 #5
avatar+90988 
+15
Best Answer

Max:  Here is one I can teach to you,

 

you showed

If you want to make summation sign, do \sum_{lower limit}^{upper limit} (For infinity sign, do \infty)

 

Example: Latex code:\sum_{n=1}^{\infty}                \(\sum_{n=1}^{\infty} \)

 

 

This is how I would do it:

 

\displaystyle \sum_{lower limit}^{upper limit} (For infinity sign, do \infty)

 

\(\displaystyle \sum_{n=1}^{\infty} \)

Melody  Jul 10, 2016

7 Online Users

avatar
avatar
avatar
avatar
We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.  See details