Ask your own question, for FREE!
LaTeX Practicing! :) 18 Online
thomaster (thomaster):

Legendary LaTeX Turorial!

thomaster (thomaster):

In this turorial, I will highlight begin and end tags in \(\sf\color{red}{red}\), commands in \(\sf\color{green}{green}\) and parameters in \(\sf\color{blue}{blue}\). Normal text is black. You can't copy these colored examples and use them because they won't work (they contain different symbols to make it possible to display them here without it being recognized as latex) So you'll have to type over everything.

thomaster (thomaster):

\(\hspace{50pt}\Huge\sf \color{#730000}{Basic\ \LaTeX\ Layout}\) Always begin with \(\color{red}{\backslash(}\) and end with \(\color{red}{\backslash)}\) When you write your text between these two, it will be recognized as LaTeX \(\color{red}{\backslash(}\sf Hello~there!!!\color{red}{\backslash)}\) will look like: \(Hello there!!!\) The commands (or tags) in latex begin with a backslash and most of them also want parameters, which are enclosed in curly braces after the command. For example, write: \(\sf\color{red}{\backslash(}\color{green}{\backslash underline}\color{blue}{\{my\ first\ underlined\ text!\}} \color{red}{\backslash)}\) It will look like this: \(\underline{my first underlined text!}\) In LaTeX, you need to define spaces. You can use a single backslash followed by a space to induce spaces. So just type a single backslash\ after\ every\ word\ and you'll have text with spaces. You can also use a tilde (\(\sf\sim\)) to induce spaces. Now we write: \(\sf\color{red}{\backslash(}\color{green}{\backslash underline}\color{blue}{\{my\backslash~first\backslash~underlined\backslash~text!\}} \color{red}{\backslash)}\) It will look like this: \(\underline{my\ first\ underlined\ text!}\) When you use the tide, it will be \(\sf\color{red}{\backslash(}\color{green}{\backslash underline}\color{blue}{\{my\sim first\sim underlined\sim text!\}} \color{red}{\backslash)}\) Other ways to create spaces are: \(\backslash;\) = thick space \(\hspace{60 pt}~\to\sf M\;M\) \(\backslash\hspace{-2pt}:\) = medium space\(\hspace{51 pt}~\to\sf M\:M\) \(\backslash,\) = thin space\(\hspace{68 pt}~\to\sf M\,M\) \(\backslash!\) = negative space\(\hspace{51 pt}~\to\sf M\!M\) \(\backslash\sf quad\) = 1 em space\(\hspace{43 pt}~\to\sf M\quad M\) \(\backslash\sf qquad\) = 2 em space (2x \quad)\(~\to\sf M\qquad M\) For long white spaces, use: \(\sf\color{green}{\backslash hspace\color{blue}{\{x~pt\}}}\), where x is the length. Example: \(\color{red}{\backslash(}\sf Hello\color{green}{\backslash hspace}\color{blue}{\{100~pt\}}there!\color{red}{\backslash)}\) will be: \(Hello~\hspace{100 pt}there!\)

thomaster (thomaster):

\(\hspace{80pt}\Huge\sf \color{#730000}{More\ fonts}\) Now this italic text is nice, but we can use way cooler fonts! The syntax for this is: \(\color{red}{\backslash(}\sf\color{green}{\backslash font}\color{blue}{~text }\color{red}{\backslash)}\) \(\sf\color{red}{\backslash(}\color{green}{\backslash bf}\color{blue}{~Hello\sim there!}\color{red}{\backslash)}\) Will become: \( \bf Hello\ there! \) \(\LARGE\sf Fonts\ you\ can\ use:\) \(\huge\sf\color{green}{\backslash sf} \hspace{19pt} \to ABCDEFabcdef123456\) \(\huge\sf\color{green}{\backslash tt} \hspace{19pt} \to \tt ABCDEFabcdef123456\) \(\huge\sf\color{green}{\backslash it} \hspace{21pt} \to \it ABCDEFabcdef123456\) \(\huge\sf\color{green}{\backslash bf} \hspace{15pt} \to \bf ABCDEFabcdef123456\) \(\huge\sf\color{green}{\backslash rm} \hspace{10pt} \to \rm ABCDEFabcdef123456\) \(\huge\sf\color{green}{\backslash cal} \hspace{10pt} \to \cal ABCDEFabcdef123456\) \(\huge\sf\color{green}{\backslash scr} \hspace{10pt} \to \scr ABCDEFabcdef123456\) \(\huge\sf\color{green}{\backslash frak} \to \frak ABCDEFabcdef123456\) \(\LARGE\sf There\ are\ 2\ exceptions:\) You need to add braces to these fonts in order to use them, so \(\bf\color{red}{\backslash(}\color{green}{\backslash mathbb\{}\color{blue}{text}\color{green}{\} }\color{red}{\backslash)}\) \(\LARGE\sf\color{green}{\backslash mathbb} \to \mathbb{ ABCDEFabcdef123456}\) \(\LARGE\sf\color{green}{\backslash boldsymbol} \to \boldsymbol{ ABCDEFabcdef123456}\) \(\Large\sf How\ to\ use\ 2\ fonts\ in\ 1\ line:\) When you type \sf, everything after that will become Sans-serif until you introduce another font command. So when you type: \(\color{red}{\backslash(}\sf\color{green}{\backslash sf}\color{blue}{~hello\sim everyone\sim i'm}\color{green}{\backslash cal}\color{blue}{~Thomaster!!}\color{red}{\backslash)}\) It will become: \(\sf hello\ everyone\ i'm\ \cal Thomaster!!\)

thomaster (thomaster):

\(\hspace{80pt}\Huge\sf \color{#730000}{Change\ Sizes}\) In \(\LaTeX\) on OpenStudy, we can use a few different text sizes. The syntax for this is \(\bf\color{red}{\backslash(}\color{green}{\backslash size~}\color{blue}{text}\color{red}{\backslash)}\) (don't forget the space after the size tag) For \(\sf\color{green}{\backslash size}\) we can use the following 9 sizes: \(\begin{array}{ll} \large\sf\color{green}{\backslash tiny}&\Large\to\sf\tiny ABCDEFabcdef123456\\ \large\sf\color{green}{\backslash scriptsize}&\Large\to\sf\scriptsize ABCDEFabcdef123456\\ \large\sf\color{green}{\backslash small}&\Large\to\sf\small ABCDEFabcdef123456\\ \large\sf\color{green}{\backslash normalsize}&\Large\to\sf\normalsize ABCDEFabcdef123456\\ \large\sf\color{green}{\backslash large}&\Large\to\sf\large ABCDEFabcdef123456\\ \large\sf\color{green}{\backslash Large}&\Large\to\sf\Large ABCDEFabcdef123456\\ \large\sf\color{green}{\backslash LARGE}&\Large\to\sf\LARGE ABCDEFabcdef123456\\ \large\sf\color{green}{\backslash huge}&\Large\to\sf\huge ABCDEFabcdef123456\\ \large\sf\color{green}{\backslash Huge}&\Large\to\sf\Huge ABCDEFabcdef123456\\ \end{array}\) You can use more sizes in 1 line. Everytime you introduce a new size text, everything after that will be in that size untill you introduce a new one. So \(\bf\color{red}{\backslash(}\color{green}{\backslash Huge~}\color{blue}{hello}\color{green}{\backslash small~}\color{blue}{every}\color{green}{\backslash LARGE~}\color{blue}{one}\color{red}{\backslash)}\) will output: \(\Huge hello\small every\LARGE one\)

thomaster (thomaster):

\(\hspace{110pt}\Huge\sf \color{#730000}{Colors}\) There are 2 ways to create colored text, by using predefined colors or hexadecimal color codes The syntax is always: \(\bf\color{red}{\backslash(}\color{green}{\backslash color\{\color{#8C00FF }{color}\}\{\color{blue}{text}\}}\color{red}{\backslash)}\) \(\sf\color{#8C00FF }{color}\) is either a predefined color or a hexadecimal code. This is a list of predefined colors on OpenStudy and hexadecimal codes: \(\begin{array}{|l|l|}\hline \sf\Large predefined\ colors&\sf\Large hexadecimal\\\hline \sf\Large\color{maroon}{maroon}&\sf\Large\color{#FF0000}{\#FF0000}\\\hline \sf\Large\color{brown}{brown}&\sf\Large\color{#FF1700}{\#FF1700}\\\hline \sf\Large\color{red}{red}&\sf\Large\color{#FF2E00}{\#FF2E00}\\\hline \sf\Large\color{orangered}{orangered}&\sf\Large\color{#FF4500}{\#FF4500}\\\hline \sf\Large\color{salmon}{salmon}&\sf\Large\color{#FF5C00}{\#FF5C00}\\\hline \sf\Large\color{orange}{orange}&\sf\Large\color{#FF7300}{\#FF7300}\\\hline \sf\Large\color{goldenrod}{goldenrod}&\sf\Large\color{#FF7300}{\#FF7300}\\\hline \sf\Large\color{gold}{gold}&\sf\Large\color{#FF8A00}{\#FF8A00}\\\hline \sf\Large\color{yellow}{yellow}&\sf\Large\color{#FFA100}{\#FFA100}\\\hline \sf\Large\color{greenyellow}{greenyellow}&\sf\Large\color{#FFB800}{\#FFB800}\\\hline \sf\Large\color{olive}{olive}&\sf\Large\color{#FFCF00}{\#FFCF00}\\\hline \sf\Large\color{lime}{lime}&\sf\Large\color{#FFE600}{\#FFE600}\\\hline \sf\Large\color{springgreen}{springreen}&\sf\Large\color{#FFFD00}{\#FFFD00}\\\hline \sf\Large\color{green}{green}&\sf\Large\color{#FFFF00}{\#FFFF00}\\\hline \sf\Large\color{forestgreen}{forestgreen}&\sf\Large\color{#E8FF00}{\#E8FF00}\\\hline \sf\Large\color{seagreen}{seagreen}&\sf\Large\color{#D1FF00}{\#D1FF00}\\\hline \sf\Large\color{teal}{teal}&\sf\Large\color{#BAFF00}{\#BAFF00}\\\hline \sf\Large\color{turquoise}{turquoise}&\sf\Large\color{#A3FF00}{\#A3FF00}\\\hline \sf\Large\color{cyan}{cyan}&\sf\Large\color{#8CFF00}{\#8CFF00}\\\hline \sf\Large\color{aquamarine}{aquamarine}&\sf\Large\color{#75FF00}{\#75FF00}\\\hline \sf\Large\color{cadetblue}{cadetblue}&\sf\Large\color{#5EFF00}{\#5EFF00}\\\hline \sf\Large\color{cornflowerblue}{cornflowerblue}&\sf\Large\color{#19FF00}{\#19FF00}\\\hline \sf\Large\color{royalblue}{royalblue}&\sf\Large\color{#00FF17}{\#00FF17}\\\hline \sf\Large\color{midnightblue}{midnightblue}&\sf\Large\color{#00FF5C}{\#00FF5C}\\\hline \sf\Large\color{navy}{navy}&\sf\Large\color{#00FF8A}{\#00FF8A}\\\hline \sf\Large\color{blue}{blue}&\sf\Large\color{#00FFB8}{\#00FFB8}\\\hline \sf\Large\color{purple}{purple}&\sf\Large\color{#00FFE6}{\#00FFE6}\\\hline \sf\Large\color{blueviolet}{blueviolet}&\sf\Large\color{#00E6FF}{\#00E6FF}\\\hline \sf\Large\color{darkorchid}{darkorchid}&\sf\Large\color{#00CFFF}{\#00CFFF}\\\hline \sf\Large\color{magenta}{magenta}&\sf\Large\color{#00A1FF}{\#00A1FF}\\\hline \sf\Large\color{orchid}{orchid}&\sf\Large\color{#008AFF}{\#008AFF}\\\hline \sf\Large\color{plum}{plum}&\sf\Large\color{#0073FF}{\#0073FF}\\\hline \sf\Large\color{grey}{grey}&\sf\Large\color{#005CFF}{\#005CFF}\\\hline \sf\Large\color{tan}{tan}&\sf\Large\color{#0045FF}{\#0045FF}\\\hline \sf thanks\ to\ \href{/users/kymber}{@kymber}\ for\\\sf the\ predefined\ color\ list&\sf\Large\color{#0017FF}{\#0017FF}\\\hline &\sf\Large\color{#0200FF}{\#0200FF}\\\hline &\sf\Large\color{#3000FF}{\#3000FF}\\\hline &\sf\Large\color{#4700FF}{\#4700FF}\\\hline &\sf\Large\color{#7500FF}{\#7500FF}\\\hline &\sf\Large\color{#8C00FF}{\#8C00FF}\\\hline &\sf\Large\color{#A300FF}{\#A300FF}\\\hline &\sf\Large\color{#BA00FF}{\#BA00FF}\\\hline &\sf\Large\color{#D100FF}{\#D100FF}\\\hline &\sf\Large\color{#E800FF}{\#E800FF}\\\hline &\sf\Large\color{#FF00CF}{\#FF00CF}\\\hline &\sf\Large\color{#FF00A1}{\#FF00A1}\\\hline &\sf\Large\color{#FF008A}{\#FF008A}\\\hline \end{array}\) There are many more hexadecimal color codes available (more than 16 million actually) so you can use every existing color. Visit http://www.color-hex.com to pick your own colors. We can use more colors in the same line, like this: \(\bf\color{red}{\backslash(}\color{green}{\backslash bf}\color{green}{\backslash color\{\color{#8C00FF }{lime}\}\{\color{blue}{hello\sim}\}}\color{green}{\backslash color\{\color{#8C00FF }{\#8C00FF}\}\{\color{blue}{everyone}\}}\color{red}{\backslash)}\) Would output: \(\bf\color{lime}{hello~}\color{#8C00FF}{everyone}\) When you only want to color 1 letter, you don't have to put it in braces. \(\small\bf\color{red}{\backslash(}\color{green}{\backslash bf}\color{green}{\backslash color\{\color{#8C00FF}{red}\}\color{black}H}\color{green}{\backslash color\{\color{#8C00FF}{gold}\}}\color{black}E\color{green}{\backslash color\{\color{#8C00FF}{green}\}}\color{black}L\color{green}{\backslash color\{\color{#8C00FF}{aqua}\}}\color{black}L\color{green}{\backslash color\{\color{#8C00FF}{blue}\}}\color{black}O\color{red}{\backslash)}\) Will give: \(\bf\color{red}H\color{gold}E\color{green}L\color{aqua}L\color{blue}O\)

thomaster (thomaster):

\(\hspace{110pt}\Huge\sf \color{#730000}{Symbols}\) Syntax for symbols: \(\sf\color{red}{\backslash(}\color{green}{\backslash symbolcode} \color{red}{\backslash)}\) \(\begin{array}{|c|l|c|l|} \hline \large\sf symbol&\sf\large code&\sf\large symbol&\sf\large code\\\hline \large\leftarrow&\sf\backslash leftarrow&\large\rightarrow&\sf\backslash righttarrow\\\hline \large\Leftarrow&\sf\backslash Leftarrow&\large\Rightarrow&\sf\backslash Righttarrow\\\hline \large\longleftarrow&\sf\backslash longleftarrow&\large\large\longrightarrow&\sf\backslash longrighttarrow\\\hline \large\Longleftarrow&\sf\backslash Longleftarrow&\large\Longrightarrow&\sf\backslash Longrighttarrow\\\hline \large\leftrightarrow&\sf\backslash leftrightarrow&\large\Leftrightarrow&\sf\backslash Leftrightarrow\\\hline \large\longleftrightarrow&\sf\backslash longleftrightarrow&\Longleftrightarrow&\sf\backslash Longleftrightarrow\\\hline \large\uparrow&\sf\backslash uparrow&\large\downarrow&\sf\backslash downarrow\\\hline \large\leq&\sf\backslash leq&\large\geq&\sf\backslash geq\\\hline \large\ll&\sf\backslash ll&\large\gg&\sf\backslash gg\\\hline \large\approx&\sf\backslash approx&\large\neq&\sf\backslash neq\\\hline \large\pm&\sf\backslash pm&\large\div&\sf\backslash div\\\hline \large\sum&\sf\backslash sum&\large\infty&\sf\backslash infty\\\hline \large\diamondsuit&\sf\backslash diamondsuit&\large\heartsuit&\sf\backslash heartsuit\\\hline \large\triangle&\sf\backslash triangle&\large\Box&\sf\backslash Box\\\hline \large\LaTeX&\sf\backslash LaTeX&\large\bigstar&\sf\backslash bigstar\\\hline \end{array}\) Example of combination with size and color: \(\bf\color{red}{\backslash(}\color{green}{\backslash Huge}\color{green}{\backslash color\{\color{#8C00FF }{red}\}\{\color{blue}{\backslash sum}\}}\color{red}{\backslash)}~~\Large\longrightarrow~\Huge\color{red}{\sum}\) For more symbols, visit http://detexify.kirelabs.org/symbols.html All latex symbols are on that list but you can only use the mathmode symbols on OpenStudy.

thomaster (thomaster):

\(\hspace{110pt}\Huge\sf \color{#730000}{Math}\) Some useful latex math stuff: \[\begin{array}{l|l|l} \hline \large\sf function&\sf\large preview&\sf\large code\\\hline\\ \sf fraction& \dfrac{1+2}{3+4} &\sf\backslash dfrac\{1+2\}\{3+4\} \\~\\ \sf square\ root&\large\sqrt{x+3}&\sf\backslash sqrt\{x+3\}\\~\\ \sf multiple\ root&\large\sqrt[3]{x+3}&\sf\backslash sqrt[3]\{x+3\}\\~\\ \sf limit & \large\lim_{x \to \infty}&\sf\backslash lim\_\{x ~\backslash to \backslash infty\} \\~\\ \sf power& \large5x^2 &\sf 5x\wedge 2 \\~\\ \sf indices&\large F_{(x)} &\sf F\_\{(x)\} \\~\\ \sf integral& \large\int_7^2 x &\sf\backslash int\_7\wedge2~ x \\~\\ \sf sum& \large\sum_{x=4}^{19} t_x &\sf\backslash sum\_\{x=4\}\wedge\{19\} ~t\_x \\~\\ \end{array}\]

thomaster (thomaster):

\(\hspace{90pt}\Huge\sf \color{#730000}{Chemistry}\) For a chemical equation, you need mainly subscripts. Use the _ symbol to do this. When only 1 number is used as subscript, you can just write it as _3 (in case the number is 3) When more characters are used, you need to put them in curly braces, so _{12} Let's write a chemical equation: \(\sf\color{red}{\backslash(}\color{blue}{6CO\_2+6H\_2O\backslash to~C\_6H\_\{12\}O\_6+6O\_2}\color{red}{\backslash)}\) Will become: \(\sf\large 6CO_2+6H_2O ~\to~C_6H_{12}O_6+6O_2\) For nuclear equations, you can use subscripts and superscripts. When you write _5^2 x, it will look like \(\large^2_5 x\) Don't forget to add braces for 2 or more characters. \(\sf\color{red}{\backslash(}\color{blue}{\_6\wedge{13}C + \_2\wedge4He \backslash to \large\_8\wedge{16}O+\_0\wedge1n}\color{red}{\backslash)}\) Will become: \(\sf\large_6^{13}C + _2^4He \to _8^{16}O+_0^1n\)

thomaster (thomaster):

\(\hspace{100pt}\Huge\sf \color{#730000}{Tables}\) You can create tables with the \begin{array} tag First determine how many columns you want to have. For this example I use 5 columns After {array} you add a new parameter in curly braces, In this one you can set the table borders and the alignment The symbol | is used to create a vertical line in the table. Since I'm going to make 5 columns, I need 6 vertical lines. Now we have `\begin{array}{||||||}` {||||||} will be like this in the table: {|column 1|column 2|" 3|" 4|" 5|} We can set the alignment of the stuff in the column by placing a l, r or c between the || of the corresponding column. l = left, r = right and c = center To show the difference, i'll use {|l|c|r|c|l|}. So the first column will be aligned left, the second in the center and the middle one right. 4 center again and column 5 has left alignment. We'll begin with `\begin{array}{|l|c|r|c|l|}` To end the table, we use `\end{array}` The table content will be between these 2 tags. The last tag you need to know is `\hline`, this is a horizontal line which indicates a new row. `\begin{array}{|l|c|r|c|l|}` \hline (if you want a line on top of the table) To skip to the next column, use & we're now in the first row of the second column & 3rd column & 4th column & 5th column \\ with the `\\` you tell want to go to the next row. Now begin with the \hline tag to get a horizontal line after the first row. Now an example of 3 rows. ``` \begin{array}{|l|c|r|c|l|} \hline first&second&third&fourth&fifth\\ \hline 1&2&3&4&5\\ \hline uno&dos&tres&cuatro&cinco\\ \hline \end{array} ``` This will look like this: \(\begin{array}{|l|c|r|c|l|} \hline first&second&third&fourth&fifth\\ \hline 1&2&3&4&5\\ \hline uno&dos&tres&cuatro&cinco\\ \hline \end{array}\) You can see the difference in the alignment of the different columns. If you want to make this table longer, just continue with adding rows.

thomaster (thomaster):

Wondering how to use the `grey boxes`? Just put your text between `` (the key for this symbol is above the tab key) When I put hello between 2 of these ``, it will become `hello` You can also use a bigger grey box by typing 3 of these symbols, so ``` when you do this at the beginning of a row and go to the next line, it will become a big grey box where you can imput code. it will stop when you add another ``` at the beginning of a new line after the code ``` It will look like this when i type another ``` on the next line and press enter, the grey box will end ``` In this big box, some words or numbers will be colored, this is meant to differentiate certain programming code tags

thomaster (thomaster):

\(\hspace{90pt}\Huge\sf \color{#730000}{Hyperlinks}\) Currently, it's only possible to create links to webpages within the openstudy.com domain. That means it's not possible to create a latex link to wikipedia or google. You also have to strip the url and remove the openstudy.com part. So http://openstudy.com/code-of-conduct will become /code-of-conduct Now if we want to make a link to the CoC, we use the \href tag This is the syntax: \(\bf\color{red}{\backslash(}\color{green}{\backslash href\{\color{blue }{stripped~url}\}\{\color{blue}{link~text}\}}\color{red}{\backslash)}\) The link to the CoC will be: \(\bf\color{red}{\backslash(}\color{green}{\backslash href\{\color{blue }{/code-of-conduct}\}\{\color{blue}{Code\sim of\sim Conduct}\}}\color{red}{\backslash)}\) And it will look like this: \(\href{/code-of-conduct}{Code~of~Conduct}\) You can change the color or add an underline to make it look more like a link.

thomaster (thomaster):

Also check out: \(\sf\large\color{blue}{\href{/study#/updates/51b10358e4b05b167ed2f45e}{\LaTeX\ welcoming\ messages}}\) \(\color{#FF0000}█ \color{#FF1700}█ \color{#FF2E00}█ \color{#FF4500}█ \color{#FF5C00}█ \color{#FF7300}█ \color{#FF8A00}█ \color{#FFA100}█ \color{#FFB800}█ \color{#FFCF00}█ \color{#FFE600}█ \color{#FFFD00}█ \color{#FFff00}█ \color{#E8ff00}█ \color{#D1ff00}█ \color{#BAff00}█ \color{#A3ff00}█ \color{#8Cff00}█ \color{#75ff00}█ \color{#5Eff00}█ \color{#47ff00}█ \color{#30ff00}█ \color{#19ff00}█ \color{#02ff00}█ \color{#00ff00}█ \color{#00ff17}█ \color{#00ff2E}█ \color{#00ff45}█ \color{#00ff5C}█ \color{#00ff73}█ \color{#00ff8A}█ \color{#00ffA1}█ \color{#00ffB8}█ \color{#00ffCF}█ \color{#00ffE6}█ \color{#00ffFD}█ \color{#00ffff}█ \color{#00FDff}█ \color{#00E6ff}█ \color{#00CFff}█ \color{#00B8ff}█ \color{#00A1ff}█ \color{#008Aff}█ \color{#0073ff}█ \color{#005Cff}█ \color{#0045ff}█ \color{#002Eff}█ \color{#0017ff}█ \color{#0000ff}█ \color{#0200ff}█ \color{#1900ff}█ \color{#3000ff}█ \color{#4700ff}█ \color{#5E00ff}█ \color{#7500ff}█ \color{#8C00ff}█ \color{#A300ff}█ \color{#BA00ff}█ \color{#D100ff}█ \color{#E800ff}█ \color{#FF00ff}█ \color{#FF00FD}█ \color{#FF00E6}█ \color{#FF00CF}█ \color{#FF00B8}█ \color{#FF00A1}█ \color{#FF008A}█\\ \hspace{100pt}\Huge©\sf\huge ~Thomaster\)

OpenStudy (e.mccormick):

\(\underline{\text{You do not need to ~ the spaces.}}\) That is only needed if you leave it in math format. If you tell it a section is text, it will retain spaces.

HanAkoSolo (jamierox4ev3r):

woah this is pretty legendary nice job @thomaster :) i found the math stuff incredibly useful and helpful!!! Thank you! \(\huge\tt\color{salmon}J\color{gold}a\color{GreenYellow}m\color{Turquoise}i\color{CornflowerBlue}e\color{orchid}<3\)

OpenStudy (e.mccormick):

And what about the proper position of the limits? \[\large\int_7^2 xdx \text{ vs. }\large\int\limits_7^2 xdx \] Or \(\sum_{i=1}^n\) vs. \(\sum\limits_{i=1}^n\) vs. \[\sum_{i=1}^n\]=P

OpenStudy (e.mccormick):

What if I do $$ for starting math rather than \(? Hehe. Try it.

thomaster (thomaster):

@e.mccormick for leaving the spaces, you'd have to put it in the \text tag. That won't allow you to use colors or fonts or anything else. Also the math part isn't very extensive, I just intended to show some stuff you could do with latex. Maybe you could write a cool latex math tutorial :)

OpenStudy (e.mccormick):

Sadly, the cool stuff is not supported by MathJax.

OpenStudy (e.mccormick):

I mean, what if you took something like this: http://www.texample.net/tikz/examples/dandelin-spheres/ But did conic sections with it? Then, any time someone did not know their conics, you could paste it in. But nope. No TikZ and PGF support in MathJax.

thomaster (thomaster):

Yea but it's a lot of work to create those and kinda not necessary here. although tikzpicture would be nice :)

OpenStudy (e.mccormick):

And since they are already storing pictures, it is not like it would take more space requirements than they are already committed to. In fact, they could do it as an alternative picture editor and that would work nicely. Keep it volatile with user selected view refreshes. Then post and the final version is rendered into an image in the system... perhaps with the code stored as metadata for edit replies.

OpenStudy (theeric):

Awesome tutorial! Here's more math for you or maybe someone who want For math... Like a lot of functions, the \(\mathbb{\backslash mathbb}\) and \(\boldsymbol{\backslash boldsymbol}\) fonts don't need `{}` when you want only one character in that font. Examples: \(\mathbb R^3\) and \(\boldsymbol V^3\). thomaster pointed that concept out for colors. It's the same for things like subscripts and exponents! And square root symbols. `x^something` : \(x^something\) `x^{something}` : \(x^{something}\) I just learned from this tutorial a difference between `\frac` and `\dfrac`. \(x=\frac{1}{3}\) `\(x=\frac{1}{3}\)` \(x=\dfrac{1}{3}\) `\(x=\dfrac{1}{3}\)` `\dfrac` seems to make the size of the numerator and denominator the same as normal. So it's your preference. \(x^{\frac{1}{3}}\) `\(x^{\frac{1}{3}}\)` or \(x^{\dfrac{1}{3}}\) `\(x^{\dfrac{1}{3}}\)` And notice that `\frac

OpenStudy (e.mccormick):

Actually, \frac can be a \dfrac or a \tfrac. frac is fraction, the t is text or inline, the d is display, or the large equation version.

OpenStudy (theeric):

Ugh, hit tab+enter I guess! Anyway... Notice that `\( \)` and `\[ \]` work a little different. It's not a big deal or super useful, but it shows that `\frac` can be full size as a default, too. \(\frac{1}{3}\) \[\frac{1}{3}\]

OpenStudy (theeric):

Oo, tfrac?

OpenStudy (e.mccormick):

Inline: \(\frac{x}{y} ~~\tfrac{x}{y} ~~\dfrac{x}{y} \) In brackets:\[\frac{x}{y} ~~\tfrac{x}{y} ~~\dfrac{x}{y} \]

OpenStudy (theeric):

`\dfrac` doesn't seem to change size, even if it's a fraction of fractions. `\frac` will, and size them to make sense with where they are. The exponent example I typed showed when that is important to make it look nice. \[\huge\frac{\frac{\frac{1}{3}}{3}}{\frac{1}{3}}\]\[\huge\dfrac{\dfrac{\dfrac{1}{3}}{3}}{\dfrac{1}{3}}\]The lines seem to be sized correctly all of the time. Cool! Thanks, e.mccormick! It seems like `\frac` is sized automatically, while `\dfrac` and `\tfrac` stay the same size: bigger and smaller respectively. \(\frac{x}{y} ~~\tfrac{x}{y}~~\tfrac{\dfrac{1}{2}}{\tfrac{\tfrac{1}{2}}{2}} ~~\dfrac{x}{y}\) \[\frac{x}{y} ~~\tfrac{x}{y}~~\tfrac{\dfrac{1}{2}}{\tfrac{\tfrac{1}{2}}{2}} ~~\dfrac{x}{y}\]

OpenStudy (e.mccormick):

Exactly.

OpenStudy (theeric):

Cool, thanks! :)

OpenStudy (swag):

OMG I love this post

OpenStudy (e.mccormick):

@SWAG Yes, well, you know that anything I post to is great.... =P

OpenStudy (e.mccormick):

Here is a nice overview of \(\LaTeX\) for math: http://www.artofproblemsolving.com/Wiki/index.php/LaTeX:Commands Much of what is there will work here.

OpenStudy (cggurumanjunath):

\[\left| \left( umbrella \right) \right|\]

OpenStudy (debbieg):

\(\huge \bf \color {red}{T} \color {blue}{h} \color {teal}{a}\color {orange}{n}\color {green}{k}\color {purple}{s} \color {red}{!!!!}\) This has been so helpful already!! \[\huge\left(\begin{matrix}\bullet\ \bullet \\ \smile\end{matrix}\right)\]

OpenStudy (debbieg):

omg I could have way too much fun with this. lol

OpenStudy (anonymous):

Informative! Thanks ;D

OpenStudy (anonymous):

Thank you very much !!!!!!! :);)

OpenStudy (anonymous):

\(\rm\Huge\color{plum}{Thank~}\color{plum}{you!♥}\)

OpenStudy (e.mccormick):

Bounding Boxes: \(\bbox[red]{\color{green}{x+y}} \) \(\bbox[2pt,lightblue]{x+1} \) \(\bbox[red,2pt]{x+1}\) \(\bbox[5px,border:2px solid black]{x+1}\) Cancel and Back Cancel: \(\dfrac{\cancel{(2+x)}}{\bcancel{(2+x)}x}\) Unicode Support \(\unicode{165}\) \(\unicode{x141}\) \(\unicode[.55,0.05]{x22D6}\) \(\unicode[Geramond]{x22D6}\) Hmm, fonts may not be on... Small matrices \(\begin{smallmatrix} a&b\\c&d \end{smallmatrix}\) Have fun! \(\bcancel{\cancel{\left[\begin{smallmatrix} \bbox[1px,lightblue,border:1px solid black]a&\bbox[lightgreen,1px,border:1px solid black]b\\ \bbox[yellow,1px,border:1px solid black]c&\bbox[tan,1px,border:1px solid black]d \end{smallmatrix}\right]}}\)

OpenStudy (e.mccormick):

Sadly, serveral thing are not supported. In equation \(\eqref{eq:sample}\), we find the value of an interesting integral: \(\begin{equation} \int_0^\infty \frac{x^3}{e^x-1}\,dx = \frac{\pi^4}{15} \label{eq:sample} \end{equation}\)

OpenStudy (e.mccormick):

\(\begin{array}{|l|c|r|c|l|} \hline \bbox[lightblue]{first}&\bbox[lightblue]{second}&\bbox[pink]{third}&fourth&fifth\\ \hline 1&2&3&\bbox[2px,border:1px solid black]{\begin{smallmatrix}4&\mathit{4}\\\mathbf{4}&\mathtt{4}\end{smallmatrix}}&5\\ \hline uno&dos&tres&cuatro&cinco\\ \hline \end{array}\)

thomaster (thomaster):

Haha nice, I like the colored matrix

OpenStudy (e.mccormick):

\(\huge\rlap{\mathit{\;\,Welcome}}\bbox[5pt,lightgrey,border:2px solid red]{\color{red}{\mathit{Welcome}}}\) O.o Oooooh. Hmmm...

OpenStudy (e.mccormick):

I bet that @SnuggieLad could get really interesting with boxes like that.

OpenStudy (anonymous):

@e.mccormick ,How did you write "Welcome" like that?

OpenStudy (e.mccormick):

For any \(\LaTeX\) you should be able to right click it, go to Show Math As, and select TeX Commands. \(\ddot\smile\)

OpenStudy (anonymous):

Oh,Thank you,Then I can learn!

OpenStudy (anonymous):

but @e.mccormick , how long does it take to learn? I want to learn LaTeX but I can't :)

thomaster (thomaster):

\(\Huge\bf \color{#00B4ff}{\bbox[10pt, #7cc517]{Open}}\color{#7cc517}{\bbox[10pt, #00B4ff]{Study}}\) @PFEH.1999 It's easy once you understand the basics :)

OpenStudy (anonymous):

@thomaster quick question. Can you color mathbb font b/c i tried and it turns out like this: \(\Huge\color{Turqouise}{\mathbb{HELLO}}\) its just not colored, obviously lol any suggestions?

thomaster (thomaster):

Because you spelled turquoise wrong :P \(\Huge\mathbb{\color{turquoise}{HELLO}}\)

OpenStudy (anonymous):

what?!?! omg so close looool nearly had it oh wow -.-

OpenStudy (e.mccormick):

Like all things, repetition or use is the key. The more you use \(\LaTeX\), the more the commands become natural and easy to use. Do I know every command I use? No. I remember the basics and as I need others, I look them up. If I look something up a few times because I am using it more often, I tend to remember it. This is a natural part of the human learning process. Spaced repetition, practice, and self challenge. They work for anything.

OpenStudy (e.mccormick):

Using \(\LaTeX\) in a class can be a great way to do papers in physics, chemistry, math, and so on. However, it can take a bit of work to use it! Here are a few options for people: The Codecogs Solution: Use your favorite word processor to do most of the work. Then, go to this web site for equations: http://www.codecogs.com/latex/eqneditor.php Codecogs' equation editor lets you produce a number of graphics formats, sizes, and so on. It also has an interactive editor so if you do not know a \(\LaTeX\) code it helps you. Once you have the image made, save it to your computer, name it something you will remember, and then use the insert images ability of your program to add it to your document. Presto! You are done and have a nice looking document to hand in for grading. But what if you want to work with \(\LaTeX\) completely? Here is an example: On this page: http://myweb.lmu.edu/dondi/fall2012/cmsi370/ Right under Assignment 1030: it has LaTeX paper template: LaTeX source PDF result included image That LaTeX source file and the image are used to make the PDF result. If you look at just the PDF file, it shows what \(\LaTeX\) was really meant for. And with a real editor you can get TikZ and PGF support for doing graphics! Here are a ton of detailed examples in a wide range of fields: http://www.texample.net/tikz/examples/ So what if you want to try doing this? Here are a couple options for that case... The Online Editor Solution: There are a number of web sites that let you edit \(\LaTeX\) without installing anything. https://www.writelatex.com/ http://www.scribtex.com/ https://www.sharelatex.com/ I have used writelatex.com to test it and it worked very well. It supports many of the advanced features. Here is their sample page: https://www.writelatex.com/223488sqhnzt The down side of the free services are two fold. First, they generally only allow security when you use their fee based services. Second, they may not support all the features and formats you want to use. In those cases, it may be better to install your own, free copy of \(\LaTeX\)! For \(\LaTeX\) I use the following: There are very few engines. They are open source projects and you just need the right one for your operating system. MiK\(\TeX\) is the engine that makes my \(\LaTeX\) work on Windows. http://miktex.org/ It comes with an editor and to be honest you could do things with a text editor. However, I have found an editor I like a lot better: Texmaker. It has lot of features to make the editing and production of a PDF for printing or electronic distribution a lot easier. http://www.xm1math.net/texmaker/

OpenStudy (anonymous):

Hello guys...I have a problem.i used color-hex.com and made some colors but i wasn't able to use them by this code: \( \color{} \) what should i do?

OpenStudy (e.mccormick):

\(\bbox[ #123456, 5pt]{\color{#ddcfe1}{Test}}\) Did you have the # in front of the code?

OpenStudy (anonymous):

yes :)

thomaster (thomaster):

`\( \color{ #000000 }{ text } \)`

OpenStudy (anonymous):

yes @thomaster i know it,i used this code but no color appeared :(

OpenStudy (e.mccormick):

What color code did you use? The test I did used one of theirs.

OpenStudy (anonymous):

\( \sf \large \color{#00f9f9}{This \hspace{5pt} Color} \) oh!sorry alot!it works now!i don't know why it didn't work before!

OpenStudy (anonymous):

and i have another problem!when i want to put another websites'link it will be like this: \( \href{ http://www.color-hex.com/ }{\sf \large This \hspace{5pt} Website} \)

thomaster (thomaster):

Oke first: you don't have to use hspace to induce spaces. Just use ~ Second, href only works for pages within the openstudy.com domain. and Third, I think I'm gonna repost this tutorial since it's starting to get real slow and laggy.

OpenStudy (anonymous):

oh thank you :)

OpenStudy (anonymous):

\(\sf \large Te ~ st \) \( \sf \large Te \hspace{5pt} st \)

OpenStudy (anonymous):

but when i want to use a thick space i think ~ may not help me!

OpenStudy (e.mccormick):

Spaces: \(||\) `\(||\)` None \(|\!|\) `\(|\!|\)` Negative \(|\,|\) `\(|\,|\)` Then they get from small... \(|~|\) `\(|~|\)` \(|\:|\) `\(|\:|\)` \(|\;|\) `\(|\;|\)` \(|\quad|\) `\(|\quad|\)` \(|\qquad|\) `\(|\qquad|\)` to large

OpenStudy (e.mccormick):

The other thign about reposting is you can tweak things, add in \bbox, etc.

OpenStudy (anonymous):

oh thank you so these are more powerful than \hspace ?

OpenStudy (e.mccormick):

Not more powerful. Just quicker to type for the short ones.

OpenStudy (drakedoesmc):

\(this is my first latex)/

OpenStudy (drakedoesmc):

\(this~ is~ the~ first ~latex` i ~have~ ever ~done\)

OpenStudy (anonymous):

@thomaster How would we go about to use \(LaTeX\) to show the distributive method? I understand that there are packages for this specific problem but none of the solutions I find seem to work on this site.

OpenStudy (e.mccormick):

You could make a table like the one in the last part of this: http://www.youtube.com/watch?v=5esgRrWLpRg&feature=player_detailpage#t=107 Or at least close. And if you used bounding boxes on the headers for rows and columns, you could change the background color to help keep things distinct.

OpenStudy (anonymous):

How to type piecewise function?

OpenStudy (e.mccormick):

Where is \(f(x)\) undefined? \( f(x)=\begin{cases} x^2 & \text{ if } x<0\\ \frac{1}{x}& \text{ if } x= 0 \\ -x^{2}& \text{ if } x >0 \end{cases}\) Right click it and select Show Math As > TeX Commands to see the code. You can do that for any \(\LaTeX\) code here. The \\ parts make the new lines. So you can add as many lines as are needed. The & separates the columns. The \text{ if } part is optional or sometimes \text{ for } depending on the textbook/class used. Sometimes they just put a , or ; there.

OpenStudy (anonymous):

Gracias! :D

OpenStudy (e.mccormick):

De nada.

OpenStudy (solomonzelman):

Maaaaan, so many medals per one question!

OpenStudy (anonymous):

\(\LARGE\color{#005CFF}{THANK\ YOU\ SO\ MUCH!!}\) \(\color{#BA00FF}{This\ is\ my\ first\ trial}\ \color{#A300FF}{and\ it\ works!}\)

OpenStudy (anonymous):

\( \large Since~you~seem~new~here:\\\bf\Huge{~~\color{red}{\boxed{W}}\color{#FF9200}{\boxed{E}}\color{#FFDB00}{\boxed{L}}\color{#B6ff00}{\boxed{C}}\color{#00ff49}{\boxed{O}}\color{#00DBff}{\boxed{M}}\color{#B600ff}{\boxed{E}}\\~~~~~~~~~~~~~~~~~~\boxed{T}\boxed{O}\\~~~~~~~~~~~\color{#0092ff}{\boxed{O}}\color{#0092ff}{\boxed{P}}\color{#0092ff}{\boxed{E}}\color{#0092ff}{\boxed{N}}\color{#7cc517}{\boxed{S}}\color{#7cc517}{\boxed{T}}\color{#7cc517}{\boxed{U}}\color{#7cc517}{\boxed{D}}\color{#7cc517}{\boxed{Y}}\color{#7cc517}{\boxed{!}}} \\ \large\bf You~can~read~the~\underline{\href{ /code-of-conduct }{Code~of~Conduct}}~here. \\ \it \large Now~let's~try~to~find~an~answer~to~your~problem~together.\)

OpenStudy (cggurumanjunath):

\(\ umbrella \)

OpenStudy (blackops2luvr):

\(\Huge \color{orange}{\text{Practice~time!~<3}}\)

OpenStudy (shamil98):

\(\large Testing!\)

OpenStudy (anonymous):

The forgot the symbol for the angle, \( \color{ green }{ ∠ } \)

OpenStudy (anonymous):

@zimmah, how did you do that?

OpenStudy (blackops2luvr):

Since you seem new here: WELCOME TO OPENSTUDY!You can read the Code of Conduct−−−−−−−−−−−−−−−− here.Now let′s try to find an answer to your problem together.

OpenStudy (anonymous):

@GABI_J sorry for the late reply but you can simply right-click my comment and show math as TeX commands to copy it

OpenStudy (anonymous):

\(\text{is this in line...}\) oooh... it is!!!

OpenStudy (solomonzelman):

Yeah there is really lots of information (just like medals).

OpenStudy (anonymous):

yeah

OpenStudy (anonymous):

using \( \backslash(~and~\backslash) \) will allow you to write code in line, while \( \backslash [ ~and~\backslash ] \) will be on their own line.

OpenStudy (anonymous):

\(\huge{hello~there}\)

OpenStudy (anonymous):

\(\huge\frak\color{salmon}{Thank~you!}\)

OpenStudy (poopsiedoodle):

\(\Large\sf\rlap{LOLOLOL}\rlap{HUEHUEHUEHUE}\rlap{JEJEJEJEJE}ASHUASHUASHUA\)

OpenStudy (anonymous):

\(\Huge\color{red}\ast\)\(\huge\color{purple}\ast\)\(\Large\color{blue}\ast\)\(\large\color{green}\ast\)\(\color{yellow}\ast\)\(\small\color{grey}\ast\)\(\Tiny\color{goldenrod}\ast\)\(\tiny\color{turquoise}\ast\)\(\Tiny\color{goldenrod}\ast\)\(\small\color{grey}\ast\)\(\color{yellow}\ast\)\(\large\color{green}\ast\)\(\Large\color{blue}\ast\)\(\huge\color{purple}\ast\)\(\Huge\color{red}\ast\)\(\huge\color{purple}\ast\)\(\Large\color{blue}\ast\)\(\large\color{green}\ast\)\(\color{yellow}\ast\)\(\small\color{grey}\ast\)\(\Tiny\color{goldenrod}\ast\)\(\tiny\color{turquoise}\ast\)\(\Tiny\color{gold}\ast\)

OpenStudy (theeric):

@blackops2luvr you posted what it looked like when you copied an pasted. For anyone who wants to see the \(\LaTeX\) for these, you can (at least in Firefox, but I think the menus will be at least similar) ∙ you might have to disable pop-up blocking, or control+click on the last step ∙ right click what was generated with \(\LaTeX\) commands ∙ select "Show Math As" ∙ select "TeX Commands" Then a text box will pop-up with just the innards! You can put it in between `\( \)` or `\[ \]` then. If it looks weird one way, try the other! :)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!