Typesetting Text. Spring 2013 TEX-Bit #1 Math 406

Size: px
Start display at page:

Download "Typesetting Text. Spring 2013 TEX-Bit #1 Math 406"

Transcription

1 Spring 2013 TEX-Bit #1 Math 406 Typesetting Text Whitespace characters, such as blank or tab, are treated uniformly as space by L A TEX. Several consecutive whitespace characters are treated as one space. Whitespace at the start of a line is generally ignored, and a single line break is treated as whitespace. An empty line between two lines of text defines the end of a paragraph. Several empty lines are treated the same as one empty line. 1 From the above paragraphs note the way that quotes are done. You do not use the double quotes Like this you use two graves quotes at the beginning and two single quotes at the end like this. Notice the difference at the beginning, with the double quotes you get 99 and 99 but doing it with the single quotes you get 66 and 99 as we would expect. The same is true for single quotes, note the difference between quote and quote. Also, the characters # $ % ˆ & { } and \have a special meaning so to typeset these you use \# \$ \% \^{} \& \_ \{ \} \~{} \textbackslash respectively. Notice a couple things at this point. First L A TEX automatically formats the lines so that the spacing between the words is at its best. Another feature that it has is that it will automatically hyphenate a word if it will make the line look better. L A TEX always tries to produce the best line breaks possible. If it cannot find a way to break the lines in a manner that meets its high standards, it lets one line stick out on the right of the paragraph. L A TEX then complains ( overfull hbox ) while processing the input file. This happens most often when L A TEX cannot find a suitable place to hyphenate a word. 2 You can force a line break but it is not advisable. In most cases L A TEX will break a line at a better point than you will. As you have probably noticed all L A TEX commands (i.e. special things) begin with a \. So changing font styles can be done with bold, italic, typewriter and Small Caps. You may not have noticed a special feature that is done automatically and makes the document easier to read, these are called Ligatures. Notice the f and the i in final, the two f s in shelfful and the two f s and i in traffic. Forcing these to display like Word you would have final, shelfful and traffic. One last bit of information for now. When you make an ellipsis, those three dots you do not use three dots you use the command \ldots, notice the difference... verses... 1 Taken from The Not So Short Introduction to L A TEX 2ε 2 Although L A TEX gives you a warning when that happens (Overfull \hbox) and displays the offending line, such lines are not always easy to find. If you use the option draft in the \documentclass command, these lines will be marked with a thick black line on the right margin. Taken from The Not So Short Introduction to L A TEX 2ε

2 C:\Users\despickler\LaTeX\Classes\Math406\TeXBit001.tex \documentclass[12pt]{article} \usepackage[pdftex]{graphicx} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsmath} \usepackage[top=1in,bottom=1in,left=1in,right=1in]{geometry} Tuesday, July 09, :56 PM \pagestyle{empty} \parskip=5pt \begin{document} \noindent Spring 2013 \hfill {\Huge\textbf{\TeX{}-Bit \#1}} \hfill Math 406 \vspace{20pt} \noindent\textsc{\large Typesetting Text} \vspace{10pt} % Comments are any line after a percnet % sign. This does not show up in the document. ``Whitespace'' characters, such as blank or tab, are treated uniformly as ``space'' by \LaTeX{}. Several consecutive whitespace characters are treated as one space. Whitespace at the start of a line is generally ignored, and a single line break is treated as whitespace. An empty line between two lines of text defines the end of a paragraph. Several empty lines are treated the same as one empty line.\footnote{taken from \textit{the Not So Short Introduction to \LaTeXe{}}} From the above paragraphs note the way that quotes are done. You do not use the double quotes " Like this" you use two graves quotes at the beginning and two single quotes at the end ``like this''. Notice the difference at the beginning, with the double quotes you get 99 and 99 but doing it with the single quotes you get 66 and 99 as we would expect. The same is true for single quotes, note the difference between 'quote' and `quote'. Also, the characters \# \$ \% \^{} \& \_ \{ \} \~{} and \textbackslash have a special meaning so to typeset these you use \verb \# \$ \% \^{} \& \_ \{ \} \~{} \textbackslash respectively. Notice a couple things at this point. First \LaTeX{} automatically formats the lines so that the spacing between the words is at its best. Another feature that it has is that it will automatically hyphenate a word if it will make the line look better. -1-

3 C:\Users\despickler\LaTeX\Classes\Math406\TeXBit001.tex Tuesday, July 09, :56 PM \LaTeX{} always tries to produce the best line breaks possible. If it cannot find a way to break the lines in a manner that meets its high standards, it lets one line stick out on the right of the paragraph. \LaTeX{} then complains (``overfull hbox'') while processing the input file. This happens most often when \LaTeX{} cannot find a suitable place to hyphenate a word.\footnote{ Although \LaTeX{} gives you a warning when that happens (\texttt{overfull \textbackslash hbox}) and displays the offending line, such lines are not always easy to find. If you use the option \texttt{draft} in the \texttt{\textbackslash documentclass} command, these lines will be marked with a thick black line on the right margin. Taken from \textit{the Not So Short Introduction to \LaTeXe{}}} You can force a line break \\ but it is not advisable. In most cases \LaTeX{} will break a line at a better point than you will. As you have probably noticed all \LaTeX{} commands (i.e. special things) begin with a \textbackslash. So changing font styles can be done with \textbf{bold}, \textit{italic}, \texttt{typewriter} and \textsc{ Small Caps}. You may not have noticed a special feature that is done automatically and makes the document easier to read, these are called \textit{ligatures}. Notice the f and the i in final, the two f's in shelfful and the two f's and i in traffic. Forcing these to display like Word you would have f\mbox{}inal, shelf\mbox{}ful and traf\mbox{}f\mbox{} ic. One last bit of information for now. When you make an ellipsis, those three dots you do not use three dots you use the command \texttt{\textbackslash ldots}, notice the difference \ldots verses... \end{document} -2-

4 Spring 2013 TEX-Bit #2 Math 406 Typesetting Text Lists and a few other things. There are three basic types of lists, enumerations, itemization and descriptions. Enumerations are numbering systems 1, 2, 3,... or a, b, c,..., etc. Itemizations are bulleted lists and descriptions are of course descriptions. These can be combined in any manner. Creating then is simple and the same syntax for each type. Lists are an example of an environment. An environment in L A TEX is any block of text (or math) that is between a \begin{---} and an \end{---} where what is between the curly brackets is the type of environment. So an enumeration environment starts with a \begin{enumerate} and ends with an \end{enumerate}. Each item in the list is preceded by a \item. The same is true for an itemize environment. The description environment is only slightly different in that for each item you put the thing being described in square brackets for example, \item [First] This is the first item. The words inside the square brackets are automatically bold faced. 1. Item number Item number Item number 3. The first bullet. The second bullet. The third bullet. First This is the first item. Second This is the second item. Third This is the third item. You can combine these in any order and to any reasonable depth. enumeration inside an enumeration, For example, an 1. Item number 1. (a) Item number 1. (b) Item number 2. (c) Item number 3. 1

5 2. Item number Item number 3. Bullets and enumerations together, 1. Item number Item number Item number 3. The first bullet. The second bullet. The third bullet. Bullets inside bullets inside bullets. The first bullet. The second bullet. The first bullet. The first bullet. The second bullet. The third bullet. The second bullet. The third bullet. The third bullet. Finally a really long one, combining all three types. 1. Item number 1. The first bullet. The second bullet. The third bullet. 2. Item number 2. (a) Item number 1. (b) Item number 2. i. Item number 1. ii. Item number 2. 2

6 The first bullet. The second bullet. The third bullet. A. Item number 1. B. Item number 2. C. Item number 3. iii. Item number 3. (c) Item number Item number 3. First This is the first item. (a) Item number 1. (b) Item number 2. (c) Item number 3. Second This is the second item. The first bullet. The second bullet. The third bullet. Third This is the third item. If you looked through the mark-up of this document you will notice a couple other things. First, you can create a horizontal line in the document by using the \hrule command, which of course stands for horizontal rule. You will also notice several uses of \verb and some vertical line characters. The verb stands for verbatim and the syntax is \verb followed by a particular character, everything between the two occurrences of that character is set in typewriter font and the L A TEX commands are ignored. There is also a verbatim environment for multiple lines of text. This is text in the verbatim environment note that it keeps spaces and does not reformat as it would if the text were outside the environment. Also note in the first paragraph of the typeset document that there are two hyphenated words at the end of lines but in the original paragraph there were no hyphenations in those words. As we pointed out before, if L A TEX needs to hyphenate a word to make the word spacing look good it will do so automatically. 3

7 C:\Users\despickler\LaTeX\Classes\Math406\TeXBit002.tex \documentclass[12pt]{article} \usepackage[pdftex]{graphicx} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsmath} \usepackage[top=1in,bottom=1in,left=1in,right=1in]{geometry} Tuesday, July 09, :58 PM %\pagestyle{empty} \parskip=5pt \begin{document} \noindent Spring 2013 \hfill {\Huge\textbf{\TeX{}-Bit \#2}} \hfill Math 406 \vspace{20pt} \noindent\textsc{\large Typesetting Text --- Lists and a few other things.} \vspace{10pt} There are three basic types of lists, enumerations, itemization and descriptions. Enumerations are numbering systems 1, 2, 3, \ldots or a, b, c, \ldots, etc. Itemizations are bulleted lists and descriptions are of course descriptions. These can be combined in any manner. Creating then is simple and the same syntax for each type. Lists are an example of an environment. An environment in \LaTeX{} is any block of text (or math) that is between a \verb \begin{---} and an \verb \end{---} where what is between the curly brackets is the type of environment. So an enumeration environment starts with a \verb \begin{enumerate} and ends with an \verb \end{enumerate}. Each item in the list is preceded by a \verb \item. The same is true for an \verb itemize environment. The \verb description environment is only slightly different in that for each item you put the thing being described in square brackets for example, \verb \item [First] This is the first item. The words inside the square brackets are automatically bold faced. \begin{enumerate} \item Item number 1. \item Item number 2. \item Item number 3. \end{enumerate} \begin{itemize} \item The first bullet. \item The second bullet. \item The third bullet. \end{itemize} \begin{description} \item [First] This is the first item. \item [Second] This is the second item. \item [Third] This is the third item. \end{description} You can combine these in any order and to any reasonable depth. For example, an enumeration -1-

8 C:\Users\despickler\LaTeX\Classes\Math406\TeXBit002.tex inside an enumeration, Tuesday, July 09, :58 PM \begin{enumerate} \item Item number 1. \begin{enumerate} \item Item number 1. \item Item number 2. \item Item number 3. \end{enumerate} \item Item number 2. \item Item number 3. \end{enumerate} \hrule Bullets and enumerations together, \begin{enumerate} \item Item number 1. \item Item number 2. \item Item number 3. \begin{itemize} \item The first bullet. \item The second bullet. \item The third bullet. \end{itemize} \end{enumerate} \hrule Bullets inside bullets inside bullets. \begin{itemize} \item The first bullet. \item The second bullet. \begin{itemize} \item The first bullet. \begin{itemize} \item The first bullet. \item The second bullet. \item The third bullet. \end{itemize} \item The second bullet. \item The third bullet. \end{itemize} \item The third bullet. \end{itemize} \hrule Finally a really long one, combining all three types. -2-

9 C:\Users\despickler\LaTeX\Classes\Math406\TeXBit002.tex \begin{enumerate} \item Item number 1. \begin{itemize} \item The first bullet. \item The second bullet. \item The third bullet. \end{itemize} \item Item number 2. \begin{enumerate} \item Item number 1. \item Item number 2. \begin{enumerate} \item Item number 1. \item Item number 2. \begin{itemize} \item The first bullet. \item The second bullet. \item The third bullet. \begin{enumerate} \item Item number 1. \item Item number 2. \item Item number 3. \end{enumerate} \end{itemize} \item Item number 3. \end{enumerate} \item Item number 3. \end{enumerate} \item Item number 3. \begin{description} \item [First] This is the first item. \begin{enumerate} \item Item number 1. \item Item number 2. \item Item number 3. \end{enumerate} \item [Second] This is the second item. \begin{itemize} \item The first bullet. \item The second bullet. \item The third bullet. \end{itemize} \item [Third] This is the third item. \end{description} \end{enumerate} Tuesday, July 09, :58 PM If you looked through the mark-up of this document you will notice a couple other things. First, you can create a horizontal line in the document by using the \verb \hrule command, which of course stands for horizontal rule. You will also notice several uses of \verb \verb and some vertical line characters. The verb stands for verbatim and the syntax is \verb \verb followed by a particular character, everything between the two occurrences of that character is set in typewriter font and the \LaTeX{} commands are ignored. There is also a verbatim environment for multiple lines of text. -3-

10 C:\Users\despickler\LaTeX\Classes\Math406\TeXBit002.tex Tuesday, July 09, :58 PM \begin{verbatim} This is text in the verbatim environment note that it keeps spaces and does not reformat as it would if the text were outside the environment. \end{verbatim} Also note in the first paragraph of the typeset document that there are two hyphenated words at the end of lines but in the original paragraph there were no hyphenations in those words. As we pointed out before, if \LaTeX{} needs to hyphenate a word to make the word spacing look good it will do so automatically. \end{document} -4-

11 Spring 2013 TEX-Bit #3 Math 406 A Little Bit of Math The real reason for using L A TEX is for typesetting mathematics. Although I use it for just about everything its real strength is in the presentation of mathematics. L A TEX has two different modes, text mode and math mode. In the first two TEX-Bits we were always in text mode. Math mode is when you are between two dollar signs $ $ or you are between \[ and \]. When you are between two dollar signs you are in in-line mode and when you are between \[ and \] you are in display mode. In-line mode is for formulas that are inside a paragraph like, y = x 2 3x + 2 and display mode will center the formula and place it in its own vertical space. For example, y = x 2 3x + 2 There are other differences between the two types of math modes, for example, take the definition of the derivative f f(x+h) f(x) (x) = lim h 0 is the in-line and this is the displayed, h f (x) = lim h 0 f(x + h) f(x) h I am not going to go into all of the options for mathematical formula in L A TEX since I really do not have time to write a book but we will look at a few examples of things you will use frequently and I point out some mistakes I tend to see with new TEX users. For a good background on typesetting mathematics that will probably cover 99% of all you will need read chapter 3 of The Not So Short Introduction to L A TEX 2ε. Exponents are done with a ^ symbol, as with most calculation devices. x 2, x 3, x xx. Subscripts are done with the underscore, x 2, x 3, x a1. These can, of course, be combined, x x x 2 n. Fractions use the \frac command. With it the stuff in the first set of curly brackets is in the numerator and the stuff in the second set of curly brackets is in the denominator. Fractions in displayed equations are much larger than those in the in-line equations. For example, x2 +x 1 x 2 +x+1 verses x 2 + x 1 x 2 + x + 1 So if you are doing compound fractions you will probably want to make it a displayed equation for readability, notice x 1 x verses x 2 x 7 +1 x 1 x x x 7 Also notice with the in-line version, L A TEX only made the character so small. Instead of making them smaller, to the point where they would be impossible to read it moved the line so that the in-line equation would fit. 1

12 Roots are equally simple, use the syntax \sqrt{---} where the thing inside the curly brackets is what you are taking the square root of. For example, 2, x, and 4x 2 6x + 1. To do roots that are not square roots just put [ ] with something inside right after the \sqrt. For example, 3 2, 7 x, and t 4x2 6x + 1. As with just about anything in L A TEX you can combine these structures, x 1 3 x x 5 2 x L A TEX has an extremely extensive list of symbols. The Not So Short Introduction to L A TEX 2ε has tables of mathematical symbols that go on for several pages and for the complete list take a look at The Comprehensive L A TEX Symbol List by Scott Pakin. This contains 330 tables of symbols. L A TEX even has a complete list of symbols for the Linear A language, which is an ancient and so far undecipherable language. Of course, there is a complete set of symbols for Greek, α, β, Γ and so on. If you are using the TeXnicCenter to do your editing you will find under Math in the main menu listings of many symbols and mathematical constructs, so for most of your work you will not need to memorize or look up commands. One more idea for this TEX-Bit, parentheses. Notice the following output, ( 1 x )5 This does not look very good, to say the least. It would be better if the parentheses were larger so that the 1 was contained in them. To do this we replace ( ) with \left( \right). x We get, ( ) 5 1 x It does add some length to expressions but the result is very readable, no matter how complex the expression is. For example, ( ( 3 4) 2 ) 5 1 x 2 +1 x 3 2 x 1 x+7 Before we end this TEX-Bit I want to show you a common error that is made by those new to L A TEX, too many dollar signs. You do not need to put dollar signs around every symbol, just every expression. In math mode you should put an entire formula or expression inside one set of dollar signs or one set of displayed equation delimiters. For example, x A verses x A or y = x 2 3x + 2 verses y = x 2 3x + 2. In these examples the second form is preferred. In some cases it is difficult to tell the difference but there are spacing differences between the two and frankly the second forms are easier to write and read. 2

13 C:\Users\despickler\LaTeX\Classes\Math406\TeXBit003.tex \documentclass[12pt]{article} \usepackage[pdftex]{graphicx} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsmath} \usepackage[top=1in,bottom=1in,left=1in,right=1in]{geometry} Tuesday, July 09, :58 PM %\pagestyle{empty} \parskip=5pt \begin{document} \noindent Spring 2013 \hfill {\Huge\textbf{\TeX{}-Bit \#3}} \hfill Math 406 \vspace{20pt} \noindent\textsc{\large A Little Bit of Math} \vspace{10pt} The real reason for using \LaTeX{} is for typesetting mathematics. Although I use it for just about everything its real strength is in the presentation of mathematics. \LaTeX{} has two different modes, text mode and math mode. In the first two \TeX{}-Bits we were always in text mode. Math mode is when you are between two dollar signs \verb $ $ or you are between \verb \[ and \verb \]. When you are between two dollar signs you are in in-line mode and when you are between \verb \[ and \verb \] you are in display mode. In-line mode is for formulas that are inside a paragraph like, $y = x^2-3x+2$ and display mode will center the formula and place it in its own vertical space. For example, \[ y = x^2-3x+2 \] There are other differences between the two types of math modes, for example, take the definition of the derivative $f'(x) = \lim_{h \rightarrow 0} \frac{f(x+h)-f(x)}{h}$ is the inline and this is the displayed, \[ f'(x) = \lim_{h \rightarrow 0} \frac{f(x+h)-f(x)}{h} \] I am not going to go into all of the options for mathematical formula in \LaTeX{} since I really do not have time to write a book but we will look at a few examples of things you will use frequently and I point out some mistakes I tend to see with new \TeX{} users. For a good background on typesetting mathematics that will probably cover 99\% of all you will need read chapter 3 of \textit{the Not So Short Introduction to \LaTeXe{}}. Exponents are done with a \verb ^ symbol, as with most calculation devices. $x^2$, $x^3$, $x^{x^x}$. Subscripts are done with the underscore, $x_2$, $x_3$, $x_{a_1}$. These can, of course, be combined, $x_1^2 + x_2^2+\cdots + x_n^2$. Fractions use the \verb \frac command. With it the stuff in the first set of curly brackets is in the numerator and the stuff in the second set of curly brackets is in the denominator. Fractions in displayed equations are much larger than those in the in-line equations. For example, $\frac{x^2+x-1}{x^2 +x+1}$ verses \[ -1-

14 C:\Users\despickler\LaTeX\Classes\Math406\TeXBit003.tex Tuesday, July 09, :58 PM \frac{x^2+x-1}{x^2+x+1} \] So if you are doing compound fractions you will probably want to make it a displayed equation for readability, notice $\frac{x-\frac{1}{x}}{\frac{x^2}{x-7}+1}$ verses \[ \frac{x-\frac{1}{x}}{\frac{x^2}{x-7}+1} \] Also notice with the in-line version, \LaTeX{} only made the character so small. Instead of making them smaller, to the point where they would be impossible to read it moved the line so that the in-line equation would fit. Roots are equally simple, use the syntax \verb \sqrt{---} where the thing inside the curly brackets is what you are taking the square root of. For example, $\sqrt{2}$, $\sqrt{x}$, and $\sqrt{4x^2-6x+1}$. To do roots that are not square roots just put \verb [ ] with something inside right after the \verb \sqrt. For example, $\sqrt[3]{2}$, $ \sqrt[7]{x}$, and $\sqrt[t]{4x^2-6x+1}$. As with just about anything in \LaTeX{} you can combine these structures, \[ \frac{x-\sqrt{\frac{1}{\sqrt{\sqrt[3]{x}}}}}{\frac{x^2}{\sqrt[5]{x-7}}+1} \] \LaTeX{} has an extremely extensive list of symbols. \textit{the Not So Short Introduction to \LaTeXe{}} has tables of mathematical symbols that go on for several pages and for the complete list take a look at \textit{the Comprehensive \LaTeX{} Symbol List} by Scott Pakin. This contains 330 tables of symbols. \LaTeX{} even has a complete list of symbols for the Linear A language, which is an ancient and so far undecipherable language. Of course, there is a complete set of symbols for Greek, $\alpha$, $\beta$, $\Gamma$ and so on. If you are using the TeXnicCenter to do your editing you will find under Math in the main menu listings of many symbols and mathematical constructs, so for most of your work you will not need to memorize or look up commands. One more idea for this \TeX{}-Bit, parentheses. Notice the following output, \[ (\frac{1}{x})^5 \] This does not look very good, to say the least. It would be better if the parentheses were larger so that the $\frac{1}{x}$ was contained in them. To do this we replace \verb ( ) with \verb \left( \right). We get, \[ \left( \frac{1}{x} \right)^5 \] It does add some length to expressions but the result is very readable, no matter how complex the expression is. For example, \[ \left( \frac{\left( \frac{1}{\sqrt{x^2+1}} \right)^5}{\frac{x^3- \frac{2}{x-1}}{x+7}} \right)^{\left(\frac{3}{4}\right)^2} \] Before we end this \TeX{}-Bit I want to show you a common error that is made by those new to \LaTeX{}, too many dollar signs. You do not need to put dollar signs around every symbol, just every expression. In math mode you should put an entire formula or expression inside one set of dollar signs or one set of displayed equation delimiters. For example, $x$ $\in$ $A$ verses $x \in A$ or -2-

15 C:\Users\despickler\LaTeX\Classes\Math406\TeXBit003.tex Tuesday, July 09, :58 PM $y$ $=$ $x^2-3x+2$ verses $y = x^2-3x+2$. In these examples the second form is preferred. In some cases it is difficult to tell the difference but there are spacing differences between the two and frankly the second forms are easier to write and read. \end{document} -3-

16 Spring 2013 TEX-Bit #4 Math 406 A Little More Math Arrays and Equation Arrays An equation array is a lit of equations in which all of the equal signs line up. These are environments so they start with \begin{eqnarray} and ends with \end{eqnarray}. There are two types, the eqnarray which numbers all of the equations and eqnarray* which does not number the equations. Also, if you use eqnarray you can keep L A TEX from numbering an equation by using \nonumber after the equation. The equal signs that are to be lined up are put between two and symbols (&) and we must end every line except the last with \\ so, \begin{eqnarray*} - x_1 + 6x_2 + 16x_3 & = & 1 \\ 11 x_1-22x_2-44x_3 & = & -3 \\ -22 x_1 + 55x_ x_3 & = & 8 \end{eqnarray*} produces x 1 + 6x x 3 = 1 11x 1 22x 2 44x 3 = 3 22x x x 3 = 8 and \begin{eqnarray} - x_1 + 6x_2 + 16x_3 & = & 1 \\ 11 x_1-22x_2-44x_3 & = & -3 \\ -22 x_1 + 55x_ x_3 & = & 8 \end{eqnarray} produces x 1 + 6x x 3 = 1 (1) 11x 1 22x 2 44x 3 = 3 (2) 22x x x 3 = 8 (3) Finally, an example of using \nonumber after an equation, 1

17 \begin{eqnarray} - x_1 + 6x_2 + 16x_3 & = & 1 \nonumber \\ 11 x_1-22x_2-44x_3 & = & -3 \nonumber \\ -22 x_1 + 55x_ x_3 & = & 8 \end{eqnarray} produces x 1 + 6x x 3 = 1 11x 1 22x 2 44x 3 = 3 22x x x 3 = 8 (4) One thing that is a bit out of the ordinary with the equation arrays is that they are not placed inside a displayed equation. so we do not need to put \[ and \] around them as we do with other displayed mathematics. The next few examples simply show some more equation arrays. The first also uses the \displaystyle command. When you are in the inline math mode and you want to force L A TEX to typeset the equation like it does in display math mode simply put \displaystyle as the first thing inside the $ $. Note in the next example how the limits are displayed. The inline mode would put the x 0 as a subscript to the limit but since we used \displaystyle the x 0 is placed under the limit. sin(x) cos(x) 1 Using the fact that lim = 1, lim = 0 and the definition of the derivative, x 0 x x 0 x prove that d (sin(x)) = cos(x). dx Proof. f (x) = f(x + h) f(x) lim h 0 h = sin(x + h) sin(x) lim h 0 h = lim h 0 sin(x) cos(h) + cos(x) sin(h) sin(x) h sin(x) cos(h) sin(x) cos(x) sin(h) = lim + lim h 0 h h 0 h cos(h) 1 = sin(x) lim h 0 = cos(x) h + cos(x) lim h 0 sin(h) h 2

18 The next example was an exam question on one of my Calculus I exams a few years ago. lim x2 + 2x ( x 2 3x = lim x2 + 2x ) x2 + 2x + x x 2 3x 2 3x x x x2 + 2x + x 2 3x (x 2 + 2x) (x 2 3x) = lim x x2 + 2x + x 2 3x 5x x2 + 2x + x 2 3x = lim x 5 = lim x 1 + 2x x 1 x 1 x = 5 2 In all of the above examples we used equal signs between the & signed but this is not necessary, any symbol will work. For example, given that a and b are non-negative numbers we have, a 2 + b 2 a 2 + 2ab + b 2 = (a + b) 2 When we work with matrices we use a different type of array environment, the array environment. These do have to be inside the display math delimiters. We also need to tell it how many columns we intend to have and how we want to align the columns. Consider the following example, \[ A = \left[ \begin{array}{rrr} 2 & 1 & 0 \\ -2 & 2 & 2 \\ 1 & -3 & 0 \\ \end{array} \right] \] This produces the following matrix, A = Notice in the code that after \begin{array} we have {rrr}. This tells L A TEX that we are going to use three columns and each will be aligned on the right. Notice in the resulting 3

19 matrix the three columns line up on the right. Changing {rrr} to {ccc} will center the columns as in the example below. A = Changing {rrr} to {ccc} will center the columns as in the example below. A = The alignment for any column is independent of the alignment of any other column, so changing the alignment to {clr} is valid and produces, A = As you noticed we did a left and right commands to place the brackets around the array, without them the array simply looks like, We can also use other brackets, such as parentheses or vertical bars in the case of a determinant. We added a few other things in the example below as well. Notice the use of \qquad, \quad and \qquad are two spacing commands you can use in math mode that put some space between items. The \qquad is twice the width of the \quad. These come in handy when you want to put two different but related items in the same displayed math area, like we did below. Another new thing was the \mbox{...}. The \mbox{...} is used to write text inside math mode. Without the \mbox{...} the so we have would be treated as mathematics, italicized and no spaces. A = so we have A = Without \mbox{...} the result does not look very good, A = sowehave A = = 14 = 14 4

20 C:\Users\despickler\LaTeX\Classes\Math406\TeXBit004.tex \documentclass[12pt]{article} \usepackage[pdftex]{graphicx} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsmath} \usepackage[top=1in,bottom=1in,left=1in,right=1in]{geometry} Tuesday, July 09, :58 PM \usepackage{amsthm} %\pagestyle{empty} \parskip=5pt \begin{document} \noindent Spring 2013 \hfill {\Huge\textbf{\TeX{}-Bit \#4}} \hfill Math 406 \vspace{20pt} \noindent\textsc{\large A Little More Math --- Arrays and Equation Arrays} \vspace{10pt} An equation array is a lit of equations in which all of the equal signs line up. These are environments so they start with \verb \begin{eqnarray} and ends with \verb \end{eqnarray}. There are two types, the \verb eqnarray which numbers all of the equations and \verb eqnarray* which does not number the equations. Also, if you use \verb eqnarray you can keep \LaTeX{} from numbering an equation by using \verb \nonumber after the equation. The equal signs that are to be lined up are put between two and symbols (\&) and we must end every line except the last with \verb \\ so, \begin{verbatim} \begin{eqnarray*} - x_1 + 6x_2 + 16x_3 & = & 1 \\ 11 x_1-22x_2-44x_3 & = & -3 \\ -22 x_1 + 55x_ x_3 & = & 8 \end{eqnarray*} \end{verbatim} \noindent produces \begin{eqnarray*} - x_1 + 6x_2 + 16x_3 & = & 1 \\ 11 x_1-22x_2-44x_3 & = & -3 \\ -22 x_1 + 55x_ x_3 & = & 8 \end{eqnarray*} \noindent and \begin{verbatim} \begin{eqnarray} - x_1 + 6x_2 + 16x_3 & = & 1 \\ 11 x_1-22x_2-44x_3 & = & -3 \\ -22 x_1 + 55x_ x_3 & = & 8-1-

21 C:\Users\despickler\LaTeX\Classes\Math406\TeXBit004.tex \end{eqnarray} \end{verbatim} Tuesday, July 09, :58 PM \noindent produces \begin{eqnarray} - x_1 + 6x_2 + 16x_3 & = & 1 \\ 11 x_1-22x_2-44x_3 & = & -3 \\ -22 x_1 + 55x_ x_3 & = & 8 \end{eqnarray} Finally, an example of using \verb \nonumber after an equation, \begin{verbatim} \begin{eqnarray} - x_1 + 6x_2 + 16x_3 & = & 1 \nonumber \\ 11 x_1-22x_2-44x_3 & = & -3 \nonumber \\ -22 x_1 + 55x_ x_3 & = & 8 \end{eqnarray} \end{verbatim} \noindent produces \begin{eqnarray} - x_1 + 6x_2 + 16x_3 & = & 1 \nonumber \\ 11 x_1-22x_2-44x_3 & = & -3 \nonumber \\ -22 x_1 + 55x_ x_3 & = & 8 \end{eqnarray} One thing that is a bit out of the ordinary with the equation arrays is that they are not placed inside a displayed equation. so we do not need to put \verb \[ and \verb \] around them as we do with other displayed mathematics. The next few examples simply show some more equation arrays. The first also uses the \verb \displaystyle command. When you are in the inline math mode and you want to force \LaTeX{} to typeset the equation like it does in display math mode simply put \verb \displaystyle as the first thing inside the \$ \$. Note in the next example how the limits are displayed. The inline mode would put the $x \rightarrow 0$ as a subscript to the limit but since we used \verb \displaystyle the $x \rightarrow 0$ is placed under the limit. \noindent Using the fact that $\displaystyle \lim_{x \rightarrow 0} \frac{\sin(x)}{x} = 1$, $\displaystyle \lim_{x \rightarrow 0} \frac{\cos(x)-1}{x} = 0$ and the definition of the derivative, prove that $\frac{d}{dx}(\sin(x)) = \cos(x)$. \begin{proof} \begin{eqnarray*} f'(x) & = & \lim_{h \rightarrow 0} \frac{f(x+h)-f(x)}{h} \\ & = & \lim_{h \rightarrow 0} \frac{\sin(x+h)-\sin(x)}{h} \\ & = & \lim_{h \rightarrow 0} \frac{\sin(x)\cos(h)+\cos(x)\sin(h)-\sin(x)}{h} \\ & = & \lim_{h \rightarrow 0} \frac{\sin(x)\cos(h)-\sin(x)}{h} + \lim_{h \rightarrow 0} \frac{ \cos(x)\sin(h)}{h} \\ -2-

22 C:\Users\despickler\LaTeX\Classes\Math406\TeXBit004.tex Tuesday, July 09, :58 PM & = & \sin(x)\lim_{h \rightarrow 0} \frac{\cos(h)-1}{h} +\cos(x) \lim_{h \rightarrow 0} \frac{ \sin(h)}{h} \\ & = & \cos(x) \end{eqnarray*} \end{proof} The next example was an exam question on one of my Calculus I exams a few years ago. \begin{eqnarray*} \lim_{x \rightarrow \infty} \sqrt{x^2+2x}-\sqrt{x^2-3x} & = & \lim_{x \rightarrow \infty} \left( \sqrt{x^2+2x}-\sqrt{x^2-3x} \right) \cdot \frac{\sqrt{x ^2+2x}+\sqrt{x^2-3x}}{\sqrt{x^2+2x}+\sqrt{x^2-3x}} \\ & = & \lim_{x \rightarrow \infty} \frac{(x^2+2x)-(x^2-3x)}{\sqrt{x^2+2x}+\sqrt{x^2-3x}} \\ & = & \lim_{x \rightarrow \infty} \frac{5x}{\sqrt{x^2+2x}+\sqrt{x^2-3x}} \cdot \frac{\frac{1}{x }}{\frac{1}{x}} \\ & = & \lim_{x \rightarrow \infty} \frac{5}{\sqrt{1+\frac{2}{x}}+\sqrt{1-\frac{3}{x}}} \\ & = & \frac{5}{2} \\ \end{eqnarray*} In all of the above examples we used equal signs between the \& signed but this is not necessary, any symbol will work. For example, given that $a$ and $b$ are non-negative numbers we have, \begin{eqnarray*} a^2 + b^2 & \leq & a^2 + 2ab + b^2 \\ & = & (a+b)^2 \end{eqnarray*} When we work with matrices we use a different type of array environment, the array environment. These do have to be inside the display math delimiters. We also need to tell it how many columns we intend to have and how we want to align the columns. Consider the following example, \begin{verbatim} \[ A = \left[ \begin{array}{rrr} 2 & 1 & 0 \\ -2 & 2 & 2 \\ 1 & -3 & 0 \\ \end{array} \right] \] \end{verbatim} \indent This produces the following matrix, \[ A = \left[ \begin{array}{rrr} 2 & 1 & 0 \\ -2 & 2 & 2 \\ 1 & -3 & 0 \\ \end{array} \right] \] -3-

23 C:\Users\despickler\LaTeX\Classes\Math406\TeXBit004.tex Tuesday, July 09, :58 PM Notice in the code that after \verb \begin{array} we have \verb {rrr}. This tells \LaTeX{} that we are going to use three columns and each will be aligned on the right. Notice in the resulting matrix the three columns line up on the right. Changing \verb {rrr} to \verb {ccc} will center the columns as in the example below. \[ A = \left[ \begin{array}{ccc} 2 & 1 & 0 \\ -2 & 2 & 2 \\ 1 & -3 & 0 \\ \end{array} \right] \] \noindent Changing \verb {rrr} to \verb {ccc} will center the columns as in the example below. \[ A = \left[ \begin{array}{lll} 2 & 1 & 0 \\ -2 & 2 & 2 \\ 1 & -3 & 0 \\ \end{array} \right] \] \noindent The alignment for any column is independent of the alignment of any other column, so changing the alignment to \verb {clr} is valid and produces, \[ A = \left[ \begin{array}{clr} 2 & 1 & 0 \\ -2 & 2 & 2 \\ 1 & -3 & 0 \\ \end{array} \right] \] As you noticed we did a left and right commands to place the brackets around the array, without them the array simply looks like, \[ \begin{array}{rrr} 2 & 1 & 0 \\ -2 & 2 & 2 \\ 1 & -3 & 0 \\ \end{array} \] We can also use other brackets, such as parentheses or vertical bars in the case of a determinant. We added a few other things in the example below as well. Notice the use of \verb \qquad, \verb \quad and \verb \qquad are two spacing commands you can use in math mode that put some space between items. The \verb \qquad is twice the width of the \verb \quad. These -4-

24 C:\Users\despickler\LaTeX\Classes\Math406\TeXBit004.tex Tuesday, July 09, :58 PM come in handy when you want to put two different but related items in the same displayed math area, like we did below. Another new thing was the \verb \mbox{...}. The \verb \mbox{...} is used to write text inside math mode. Without the \verb \mbox{...} the ``so we have'' would be treated as mathematics, italicized and no spaces. \[ A = \left( \begin{array}{rrr} 2 & 1 & 0 \\ -2 & 2 & 2 \\ 1 & -3 & 0 \\ \end{array} \right) \qquad \mbox{so we have} \qquad A = \left \begin{array}{rrr} 2 & 1 & 0 \\ -2 & 2 & 2 \\ 1 & -3 & 0 \\ \end{array} \right = 14 \] \noindent Without \verb \mbox{...} the result does not look very good, \[ A = \left( \begin{array}{rrr} 2 & 1 & 0 \\ -2 & 2 & 2 \\ 1 & -3 & 0 \\ \end{array} \right) \qquad so we have \qquad A = \left \begin{array}{rrr} 2 & 1 & 0 \\ -2 & 2 & 2 \\ 1 & -3 & 0 \\ \end{array} \right = 14 \] \end{document} -5-

25 Spring 2013 TEX-Bit #5 Math 406 A Little More Math Theorems As you can see we added the amsthm package and did some definitions in the preamble that set up Theorems, Lemmas, Propositions, Corollaries and Examples. These are environments that will automatically number themselves when you compose the document. We also made definitions, remarks and notations. Definition 1. A Rational number is a real number that can be written as a where a and b b are integers and b 0. Definition 2. An Irrational number is a real number that is not rational. Remark 1. Another equivalent way to define an Irrational number is one that cannot be written as a where a and b are integers. b Theorem 1. The 2 is irrational. Proof. By way of contradiction we will assume that 2 is rational. Then there must exist integers a and b such that 2 = a. Without loss of generality we may also assume that the b fraction a is in lowest terms, thus there is no common factor between a and b. Squaring b both sides of the equation 2 = a a2 we get 2 = and thus 2b 2 = a 2. So a 2 must be even b b 2 which implies that a is even, so 2 is a factor of a and we can write a = 2t for some t. Then 2b 2 = a 2 = 4t 2, giving b 2 = 2t 2. So b 2 must be even which implies that b is even, so 2 is a factor of b. But this implies that both a and b have a common factor of 2 which contradicts the assumption that a is in lowest terms. Therefore, 2 is irrational. b Corollary 1. The p is irrational for any prime number p. Proof. The proof is similar to the proof of theorem 1 and is left as an exercise. The next proof is my favorite proof. Theorem 2. There exists two irrational numbers a and b such that a b is a rational number. Proof. By theorem 1 we know that 2 is irrational. So either 2 2 is rational or it is irrational. If it is rational we are done and if it is irrational then ( 2 2 ) 2 = = 2 2 = 2 Remark 2. The reason I like theorem 2 is because it is a constructive proof and constructs the actual numbers that satisfy the theorem but you never know what those number actually are. 1

26 Definition 3. An irrational number is one that cannot be written as a where a and b are b integers. Theorem 3. The 2 is irrational. Proof. By way of contradiction we will assume that 2 is rational. Then there must exist integers a and b such that 2 = a. Without loss of generality we may also assume that the b fraction a is in lowest terms, thus there is no common factor between a and b. Squaring b both sides of the equation 2 = a a2 we get 2 = and thus 2b 2 = a 2. So a 2 must be even b b 2 which implies that a is even, so 2 is a factor of a and we can write a = 2t for some t. Then 2b 2 = a 2 = 4t 2, giving b 2 = 2t 2. So b 2 must be even which implies that b is even, so 2 is a factor of b. But this implies that both a and b have a common factor of 2 which contradicts the assumption that a is in lowest terms. Therefore, 2 is irrational. b Corollary 2. The p is irrational for any prime number p. Proof. The proof is similar to the proof of theorem 3 and is left as an exercise. The next proof is my favorite proof, again. Theorem 4. There exists two irrational numbers a and b such that a b is a rational number. Proof. By theorem 3 we know that 2 is irrational. So either 2 2 is rational or it is irrational. If it is rational we are done and if it is irrational then ( 2 ) 2 2 = = 2 = 2 Remark 3. Did you notice the use of labels and references in the theorems above? Remark 4. Labels and references are very convenient. Think about this, what if you changed the order of some of the theorems? The theorem numbers would change when you recompose the document and you would have to go back and change the numbering in the proofs. This is what you would have to do on the first page of this handout. But with the labels and references the renumbering happens automatically. Remark 5. When you use of labels and references you need to compose the document twice. The first time sets the theorem numbers and the second time puts them into the references. Notation. Notice that the Notation environment does not do any numbering. That is because of the * that we used after the \newtheorem command. 2

27 C:\Users\despickler\LaTeX\Classes\Math406\TeXBit005.tex \documentclass[12pt]{article} \usepackage[pdftex]{graphicx} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsmath} \usepackage[top=1in,bottom=1in,left=1in,right=1in]{geometry} Tuesday, July 09, :58 PM \usepackage{amsthm} %\newtheorem{thm}{theorem}[section] \newtheorem{thm}{theorem} \newtheorem{cor}{corollary} \newtheorem{lem}{lemma} \newtheorem{prop}{proposition} \newtheorem{ex}{example} \theoremstyle{definition} \newtheorem{defn}{definition} \theoremstyle{remark} \newtheorem{rem}{remark} \newtheorem*{notation}{notation} %\pagestyle{empty} \parskip=5pt \begin{document} \noindent Spring 2013 \hfill {\Huge\textbf{\TeX{}-Bit \#5}} \hfill Math 406 \vspace{20pt} \noindent\textsc{\large A Little More Math --- Theorems} \vspace{10pt} As you can see we added the \texttt{amsthm} package and did some definitions in the preamble that set up Theorems, Lemmas, Propositions, Corollaries and Examples. These are environments that will automatically number themselves when you compose the document. We also made definitions, remarks and notations. \begin{defn} A Rational number is a real number that can be written as $\frac{a}{b}$ where $a$ and $b$ are integers and $b \neq 0$. \end{defn} \begin{defn} An Irrational number is a real number that is not rational. \end{defn} \begin{rem} Another equivalent way to define an Irrational number is one that cannot be written as $\frac{a }{b}$ where $a$ and $b$ are integers. -1-

28 C:\Users\despickler\LaTeX\Classes\Math406\TeXBit005.tex \end{rem} Tuesday, July 09, :58 PM \begin{thm} The $\sqrt{2}$ is irrational. \end{thm} \begin{proof} By way of contradiction we will assume that $\sqrt{2}$ is rational. Then there must exist integers $a$ and $b$ such that $\sqrt{2} = \frac{a}{b}$. Without loss of generality we may also assume that the fraction $\frac{a}{b}$ is in lowest terms, thus there is no common factor between $a$ and $b$. Squaring both sides of the equation $\sqrt{2} = \frac{a}{b}$ we get $2 = \frac{a^2}{b^2}$ and thus $2b^2 = a^2$. So $a^2$ must be even which implies that $a$ is even, so 2 is a factor of $a$ and we can write $a = 2t$ for some $t$. Then $2b^2 = a^2 = 4t^2$, giving $b^2 = 2t^2$. So $b^2$ must be even which implies that $b$ is even, so 2 is a factor of $ b$. But this implies that both $a$ and $b$ have a common factor of 2 which contradicts the assumption that $\frac{a}{b}$ is in lowest terms. Therefore, $\sqrt{2}$ is irrational. \end{proof} \begin{cor} The $\sqrt{p}$ is irrational for any prime number $p$. \end{cor} \begin{proof} The proof is similar to the proof of theorem 1 and is left as an exercise. \end{proof} The next proof is my favorite proof. \begin{thm} There exists two irrational numbers $a$ and $b$ such that $a^b$ is a rational number. \end{thm} \begin{proof} By theorem 1 we know that $\sqrt{2}$ is irrational. So either $\sqrt{2}^{\sqrt{2}}$ is rational or it is irrational. If it is rational we are done and if it is irrational then \[ \left(\sqrt{2}^{\sqrt{2}}\right)^{\sqrt{2}} = \sqrt{2}^{\sqrt{2}\sqrt{2}} = \sqrt{2}^2 = 2 \] \end{proof} \begin{rem} The reason I like theorem 2 is because it is a constructive proof and constructs the actual numbers that satisfy the theorem but you never know what those number actually are. \end{rem} \newpage \begin{defn} An irrational number is one that cannot be written as $\frac{a}{b}$ where $a$ and $b$ are integers. \end{defn} \begin{thm} -2-

29 C:\Users\despickler\LaTeX\Classes\Math406\TeXBit005.tex \label{sqrt2irr} The $\sqrt{2}$ is irrational. \end{thm} Tuesday, July 09, :58 PM \begin{proof} By way of contradiction we will assume that $\sqrt{2}$ is rational. Then there must exist integers $a$ and $b$ such that $\sqrt{2} = \frac{a}{b}$. Without loss of generality we may also assume that the fraction $\frac{a}{b}$ is in lowest terms, thus there is no common factor between $a$ and $b$. Squaring both sides of the equation $\sqrt{2} = \frac{a}{b}$ we get $2 = \frac{a^2}{b^2}$ and thus $2b^2 = a^2$. So $a^2$ must be even which implies that $a$ is even, so 2 is a factor of $a$ and we can write $a = 2t$ for some $t$. Then $2b^2 = a^2 = 4t^2$, giving $b^2 = 2t^2$. So $b^2$ must be even which implies that $b$ is even, so 2 is a factor of $ b$. But this implies that both $a$ and $b$ have a common factor of 2 which contradicts the assumption that $\frac{a}{b}$ is in lowest terms. Therefore, $\sqrt{2}$ is irrational. \end{proof} \begin{cor} The $\sqrt{p}$ is irrational for any prime number $p$. \end{cor} \begin{proof} The proof is similar to the proof of theorem \ref{sqrt2irr} and is left as an exercise. \end{proof} The next proof is my favorite proof, again. \begin{thm} \label{irrtoirrisrat} There exists two irrational numbers $a$ and $b$ such that $a^b$ is a rational number. \end{thm} \begin{proof} By theorem \ref{sqrt2irr} we know that $\sqrt{2}$ is irrational. So either $\sqrt{2}^{\sqrt{2}}$ is rational or it is irrational. If it is rational we are done and if it is irrational then \[ \left(\sqrt{2}^{\sqrt{2}}\right)^{\sqrt{2}} = \sqrt{2}^{\sqrt{2}\sqrt{2}} = \sqrt{2}^2 = 2 \] \end{proof} \begin{rem} Did you notice the use of labels and references in the theorems above? \end{rem} \begin{rem} Labels and references are very convenient. Think about this, what if you changed the order of some of the theorems? The theorem numbers would change when you recompose the document and you would have to go back and change the numbering in the proofs. This is what you would have to do on the first page of this handout. But with the labels and references the renumbering happens automatically. \end{rem} \begin{rem} When you use of labels and references you need to compose the document twice. The first time -3-

30 C:\Users\despickler\LaTeX\Classes\Math406\TeXBit005.tex sets the theorem numbers and the second time puts them into the references. \end{rem} Tuesday, July 09, :58 PM \begin{notation} Notice that the Notation environment does not do any numbering. That is because of the * that we used after the \verb \newtheorem command. \end{notation} \end{document} -4-

31 Spring 2013 TEX-Bit #6 Math 406 Including Graphics Including graphics into L A TEX is not as easy as including graphics into other word processing systems, like Word. Although it requires a little doing, the graphics that are produced are of the highest quality. One thing you will notice about L A TEX graphics is that the image is well preserved when it is scaled up or down. This is not always the case with Word. There are several types of graphics files than can be loaded into a L A TEX document. The most common formats used today are jpeg and png. The type of graphics you load into the document will depend on what you are showing. If the image is a photograph then a jpeg is probably the best. On the other hand, if you are showing a chart or a diagram you would probably want to save the image as a png. To include a graphics file in your L A TEX document make sure that you have the \usepackage[pdftex]{graphicx} in the preamble of your document. Also make sure that the image file you are inserting is in the same folder as the tex document. Now to include a graphics file you just need the \includegraphics command. For example the code \begin{center} \includegraphics[scale=0.9]{texbit6pic001.png} \end{center} produces. 1

32 In the command \includegraphics[scale=0.9]{texbit6pic001.png} the graphics file is texbit6pic001.png the [scale=0.9] is an option that scales the image by 0.9, that is 90% of its original size and maintains the images aspect ratio. The same images stored as a jpg file would be loaded in with \begin{center} \includegraphics[scale=0.4]{texbit6pic001.jpg} \end{center} and produces. Note that the scale factor is different, different image files store sizes differently so the same image under two different formats may require different scales. There are many other options that can go inside the [ ] but scaling is probably the most common. L A TEX has a very active following and several communities devoted to the language. TUG (TEX Users Group) is one of them. If you have a question on how to formulate something in L A TEX, chances are the same question has already been asked and a quick Google search will bring up numerous forums with answers. I have found a lot of nifty tricks and packages this way that I never knew existed. 2

A Beginner s guide to L A TEX for CSCA67/MATA67. Kohilan Mohanarajan

A Beginner s guide to L A TEX for CSCA67/MATA67. Kohilan Mohanarajan A Beginner s guide to L A TEX for CSCA67/MATA67 Kohilan Mohanarajan August 31, 2017 Contents 1 Foreword 2 2 Getting Started 3 3 Setting up your L A TEXDocument 4 4 Writing your L A TEXDocument 6 4.1 Environments...............................

More information

A Short Introduction to L A TEX

A Short Introduction to L A TEX A Short Introduction to L A TEX David J. Eck October 22, 2003 Abstract This paper is a very short introduction to the essentials of L A TEX, a document-preparation system that is an alternative to typical

More information

L A TEX. The Logo. Introduction to L A TEX. Overview. Primary Benefits. Kinds of Documents. Bill Slough and Andrew Mertz

L A TEX. The Logo. Introduction to L A TEX. Overview. Primary Benefits. Kinds of Documents. Bill Slough and Andrew Mertz The Logo Introduction to L A TEX Bill Slough and Andrew Mertz L A TEX Mathematics and Computer Science Department Eastern Illinois University January 20, 2010 Overview TEX and L A TEX What is L A TEX?

More information

L A TEX for Psychological Researchers

L A TEX for Psychological Researchers L A TEX for Psychological Researchers Lecture 2: Basics of the L A TEX language Sacha Epskamp University of Amsterdam Department of Psychological Methods 27-01-2015 The L A TEX process.tex pdfl A TEX.pdf

More information

Introduction to L A TEX

Introduction to L A TEX Introduction to L A TEX D. Broline, A. Mertz & W. Slough Mathematics and Computer Science Department Eastern Illinois University February 8, 2007 The Logo L A TEX Overview What is L A TEX? Typesetting

More information

Become a L A TEX Guru

Become a L A TEX Guru Become a L A TEX Guru 1 Many thanks to Michele, who was my coteacher for this class for Splash 2009 1. Log in using the username sipb2 and the password hsspmonster 2. Once you are logged on, type sudo

More information

Learning LaTeX: The Basics

Learning LaTeX: The Basics Learning LaTeX: The Basics The best way to learn LaTeX is by trial and error, with a lot of experimenting, and using other people s.tex files as a model. Google is also a good source: for example, googling

More information

Using L A TEX Tom Edgar

Using L A TEX Tom Edgar M499 - Senior Capstone Using L A TEX Tom Edgar Department of Mathematics Pacific Lutheran University Tacoma, WA Wednesday, September 17, 2014 Introduction Introduction What is L A TEX? Powerful (Mathematical)

More information

Using L A TEX. A numbered list is just that a collection of items sorted and labeled by number.

Using L A TEX. A numbered list is just that a collection of items sorted and labeled by number. Using L A TEX About these notes These notes give some starting tips on using L A TEX to typeset mathematical documents. To learn the system at all fully you ll need a proper L A TEX manual, but you can

More information

Paul Gartside. March 2, 2013

Paul Gartside. March 2, 2013 SIAM L A TEX Workshop: First Steps Paul Gartside March 2, 2013 1 Introduction Today you are going to take the first steps in learning how to create beautiful mathematical documents using L A TEX (or review

More information

LaTeX Seminar III: Environments and More Advanced Mathematical Typesetting

LaTeX Seminar III: Environments and More Advanced Mathematical Typesetting LaTeX Seminar III: Environments and More Advanced Mathematical Typesetting Clifford E. Weil March 24, 2004 1 General Environments We have already encountered two environments. They are the document environment

More information

Math 235: Introduction to LaTeX

Math 235: Introduction to LaTeX Math 235: Introduction to LaTeX The LaTeX word processing system was built to do mathematical typesetting. It is different than word processors; in LaTeX you type in text and typesetting commands, then

More information

Guide to using L A TEX

Guide to using L A TEX Guide to using L A TEX Andrew Stevens, UC Berkeley 1 What is L A TEX, and why use it? L A TEX (pronounced LAH-tekh or LAY-tekh) is a language and document preparation system for typesetting. L A TEX is

More information

L A TEX Primer. Randall R. Holmes. August 17, 2018

L A TEX Primer. Randall R. Holmes. August 17, 2018 L A TEX Primer Randall R. Holmes August 17, 2018 Note: For this to make sense it needs to be read with the code and the compiled output side by side. And in order for the compiling to be successful, the

More information

L A TEX Tutorial. 1 Introduction. 2 Running L A TEX. J. E. Rice. May 2010

L A TEX Tutorial. 1 Introduction. 2 Running L A TEX. J. E. Rice. May 2010 L A TEX Tutorial J. E. Rice May 2010 Abstract The purpose of this document is to provide a simple example of how to use L A TEX. Examples of tables, figures, citations, references and math are shown, and

More information

An Introduction to L A TEX

An Introduction to L A TEX An Introduction to L A TEX Ryan C. Trinity University Math Majors Seminar September 12, 2017 What is L A TEX? L A TEX is a typesetting system/language used for the production of technical (mathematical)

More information

Introduction to L A TEX for MCS-236

Introduction to L A TEX for MCS-236 Introduction to L A TEX for MCS-236 Max Hailperin, based on a version by Tom LoFaro September 14, 2011 1 Why L A TEX? L A TEX is a very strange document formatting system. Actually, it is a combination

More information

Introduction to Math in LaTeX

Introduction to Math in LaTeX Robert Andersen University of Oxford and University of Western Ontario ICPSR Summer Program, July 2002 Introduction to Math in LaTeX LaTeX has three basic modes: 1. Text mode 2. Inline math mode (allows

More information

An Introduction to LATEX

An Introduction to LATEX An Introduction to LATEX Mathematics 23a, Fall 2012 By: Isabel Vogt, Will Rafey, and Neil Gat Last Updated: 13 September, 2012 1 Introduction The simplest way to learn TeX is by example. Copy the heading

More information

Introduction to L A T E X

Introduction to L A T E X L A T E X R. M. Department of Mathematics University of Kentucky 6 October 2008 / L A T E X Outline T E X T E X was begun by Donald Knuth in 1977 because he did not like the appearance of his book The

More information

Introduction to MCS 220 and L A TEX

Introduction to MCS 220 and L A TEX Introduction to MCS 220 and L A TEX Tom LoFaro August 28, 2009 1 Introduction to MCS 220 MCS 220, Introduction to Analysis, carries a WRITD (writing in the discipline) designation. What this means to you

More information

A Brief Introduction to L A TEX

A Brief Introduction to L A TEX A Brief Introduction to L A TEX Amanda Kriesel Metropolitan Community College, Nebraska akriesel@mccneb.edu April 7, 2016 Amanda Kriesel (MCC) LaTex April 7, 2016 1 / 17 Table of Contents 1 What is L A

More information

David Helmbold, October 2005, Revised October 2007

David Helmbold, October 2005, Revised October 2007 Short Intro to LATEX David Helmbold, October 2005, Revised October 2007 Goals: Introduce L A TEX... so you can read/edit L A TEX source... and use manual as reference rather than reading it Outline: 1.

More information

Meeting One. Aaron Ecay. February 2, 2011

Meeting One. Aaron Ecay. February 2, 2011 Meeting One Aaron Ecay February 2, 2011 1 Introduction to a L A TEX file Welcome to LaTeX. Let s start learning how to use the software by going over this document piece by piece. We ll read the output

More information

An Interactive Introduction to L A TEX

An Interactive Introduction to L A TEX An Interactive Introduction to L A TEX Part 1: The Basics Dr John D. Lees-Miller December 2, 2017 Why L A TEX? It makes beautiful documents Especially mathematics It was created by scientists, for scientists

More information

Course A, Part 1 Basic Formatting in L A TEX

Course A, Part 1 Basic Formatting in L A TEX Course A, Part 1 Basic Formatting in L A TEX As you become acquainted with L A TEX, you must remember that this is not a piece of word processing software. Neither is it a programming language. Specifically,

More information

Getting Started with L A TEX

Getting Started with L A TEX Getting Started with L A TEX This document is designed to help you see how to produce some mathematical typesetting. The best way to learn how to use L A TEX is to experiment with particular commands.

More information

Intro to LATEX I. Aaron Erlich POLS/CSSS 510, Why LATEX? Programming Document Structure Floats Tables Lists Math

Intro to LATEX I. Aaron Erlich POLS/CSSS 510, Why LATEX? Programming Document Structure Floats Tables Lists Math Intro to LATEX I 1 1 POLS/CSSS 510, 2012 Intro to LATEX I 1 / 32 Outline 1 Why L A TEX? 2 Programming 3 Document Structure 4 Floats 5 Tables 6 Lists 7 Math Intro to LATEX I 2 / 32 The Complaint This sucks

More information

Introduction to LaTex 2ε. Based on The Not So Short Introduction to LaTeX 2ε by Tobias Oetiker et al., April 2001

Introduction to LaTex 2ε. Based on The Not So Short Introduction to LaTeX 2ε by Tobias Oetiker et al., April 2001 Introduction to LaTex 2ε Based on The Not So Short Introduction to LaTeX 2ε by Tobias Oetiker et al., April 2001 Contents Things you need to know Typesetting text Typesetting Mathematical Formulae Specialties

More information

A Very Brief Introduction to L A T E X MAT 3535

A Very Brief Introduction to L A T E X MAT 3535 A Very Brief Introduction to L A T E X MAT 3535 Wm C Bauldry BauldryWC Spring Semester, 2006 Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 1 / 19 Topics 1

More information

L A TEX examples. a b c a b c b b a c b c c b a. This table was typeset with the following commands.

L A TEX examples. a b c a b c b b a c b c c b a. This table was typeset with the following commands. L A TEX examples This document is designed to help you see how to produce some mathematical typesetting. The best way to learn how to use L A TEX is to experiment with particular commands. After you have

More information

Assessments for CS students:

Assessments for CS students: Assessments for CS students: Two hours per week lectures, Tuesdays 2-4pm. Three in-semester assignments, with feedback de-coupled from assessment: Assignment 1 Generic paper Assignment 2 Literature review

More information

LearningLatex. % This file walks you through some basic things with LaTex % Thanks to Patrick Lam and Maya Sen for letting me borrow their materials

LearningLatex. % This file walks you through some basic things with LaTex % Thanks to Patrick Lam and Maya Sen for letting me borrow their materials % Jennifer Pan % Math Prefresher % Fall 2011 % This file walks you through some basic things with LaTex % Thanks to Patrick Lam and Maya Sen for letting me borrow their materials % COMMANDS % You have

More information

EGR 53L - Spring 2011

EGR 53L - Spring 2011 EGR 53L - Spring 2011 Appendix A LATEX Information A.1 Introduction L A TEX is a very useful tool for making your lab reports look great. This document contains information about creating L A TEX documents,

More information

An Interactive Introduction to L A TEX. Part 1: The Basics. John Lees-Miller. writel A TEX

An Interactive Introduction to L A TEX. Part 1: The Basics. John Lees-Miller. writel A TEX An Interactive Introduction to L A TEX Part 1: The Basics John Lees-Miller writel A TEX Why L A TEX? I It makes beautiful documents I Especially mathematics I It was created by scientists, for scientists

More information

Simple Math. Adam Dishaw 2011 September 21. Suppose you want to include some math in your documents. Just follow these basics steps:

Simple Math. Adam Dishaw 2011 September 21. Suppose you want to include some math in your documents. Just follow these basics steps: Simple Math Adam Dishaw 2011 September 21 Suppose you want to include some math in your documents. Just follow these basics steps: 1. Create a new TEX document with the basic requirements (the documentclass

More information

TUTORIAL 8: TYPESETTING MATHEMATICAL EXPRESSIONS CHRISTOPHER RARIDAN Abstract. Upon completion of this tutorial, the author should be able to add some mathematical content to his or her paper. In particular,

More information

LaTeX in SLATE. Common Symbols. 1. Subscripts & Superscripts Fractions & Roots. 4. Brackets.. 5. Multiline Formulas.. 6. Matrices..

LaTeX in SLATE. Common Symbols. 1. Subscripts & Superscripts Fractions & Roots. 4. Brackets.. 5. Multiline Formulas.. 6. Matrices.. LaTeX in SLATE Common Symbols. 1 Subscripts & Superscripts... 3 Fractions & Roots. 4 Brackets.. 5 Multiline Formulas.. 6 Matrices.. 7 Limits & Integrals. 8 l LaTeX Common Symbols Operations \times \div

More information

L A TEX and Basic Text Editing

L A TEX and Basic Text Editing L A TEX and Basic Text Editing 1 Basics L A TEXis a mathematical typesetting word processing tool. You need a compiler to display L A TEX, and you can dowload the open-source freeware at MikTex.org. We

More information

1 Different Document Classes

1 Different Document Classes 1 Different Document Classes There are several different document classes that can format just about any type of document. This is the very first line of your L A TEX code. It will define what kind of

More information

Just Enough L A TEX, Week 4

Just Enough L A TEX, Week 4 Just Enough L A TEX, Week 4 1 1 Department of Mathematics Michigan State University East Lansing, MI USA weil@math.msu.edu October 24, 2008 Typesetting Fractions The basic command to produce a fraction

More information

An Introduction to LATEX

An Introduction to LATEX An to L A TEX Iryna Schlackow Mathematical Institute This talk and other useful L A TEX-related information is available at http://www.maths.ox.ac.uk/help/faqs/latex/ May 21, 2009 An to LATEX The Name

More information

The Name of the Game. An Introduction to LATEX. Why L A TEX? The Name of the Game

The Name of the Game. An Introduction to LATEX. Why L A TEX? The Name of the Game The Name of the Game An to L A TEX Iryna Schlackow Mathematical Institute This talk and other useful L A TEX-related information is available at http://www.maths.ox.ac.uk/help/faqs/latex/ TEX is a computer

More information

An introduction to L A TEX for students

An introduction to L A TEX for students An introduction to L A TEX for students Christopher Hanusa February 17, 2011 Christopher.Hanusa@qc.cuny.edu http://people.qc.cuny.edu/chanusa/ > Talks Pros and Cons of L A TEX Why use L A TEX? Ideal for

More information

Introduction to L A TEX

Introduction to L A TEX Introduction to L A TEX Mark Baltovic MA498 - Dissertation in Mathematics Objectives of this session What is L A TEX? The L A TEX source file Inside the body of the text Typesetting mathematics Internal

More information

L A TEX for Psychological Researchers

L A TEX for Psychological Researchers L A TEX for Psychological Researchers Lecture 2: Basics of the L A TEX language Sacha Epskamp University of Amsterdam Department of Psychological Methods 10/04/2013 Outline Last Week The L A TEX Language

More information

INSTALLING AND USING L A TEX

INSTALLING AND USING L A TEX INSTALLING AND USING L A TEX DAVID MEREDITH Contents 1. Installing and Running L A TEX with Microsoft Windows 2 1.1. Installing the compiler MikTeX 2 1.2. Installing the editor TeXtudio 2 1.3. Running

More information

L A TEX minicourse. dstowell, mag, sar, scannell,... September Typeset by FoilTEX

L A TEX minicourse. dstowell, mag, sar, scannell,... September Typeset by FoilTEX L A TEX minicourse dstowell, mag, sar, scannell,... September 2003 Typeset by FoilTEX What it is What is L A TEX? a typesetting system for creating high-quality documents allows you to create complex-looking

More information

Learn how to [learn] LATEX

Learn how to [learn] LATEX Learn how to [learn] L A TEX November 19, 2010 This document is available at http://web.mit.edu/jgross/ Public/2010cluedump/Slideshow.pdf. Outline Installing L A TEX What is L A TEX? Getting Help Basic

More information

Getting Started with L A T E X for a Technical Document or Thesis

Getting Started with L A T E X for a Technical Document or Thesis Getting Started with L A T E X for a Technical Document or Thesis University of Waterloo Nov 2015 Outline What is LAT E X? 1 What is L A T E X? 2 3 4 5 What is L A T E X? What is LAT E X? L A T E X is

More information

Getting started General Tables Figures Math Wrap up. UCLA Department of Statistics Statistical Consulting Center. LaTeX Bootcamp

Getting started General Tables Figures Math Wrap up. UCLA Department of Statistics Statistical Consulting Center. LaTeX Bootcamp UCLA Department of Statistics Statistical Consulting Center Mine Çetinkaya mine@stat.ucla.edu September 20, 2010 Outline 1 Getting started 2 General 3 Tables 4 Figures 5 Math 6 Wrap up 1 Getting started

More information

Typing Mathematics. Darrin Doud

Typing Mathematics. Darrin Doud Typing Mathematics in LATEX Darrin Doud Darrin Doud Department of Mathematics Brigham Young University Provo, UT 84602 doud@math.byu.edu Copyright c 2018 Version: 0.01 Date: January 31, 2018 Contents 1

More information

TUTORIAL 10: ARRAYS AND MATRICES. 1. Welcome. Hello. My name is Dr. Christopher Raridan (Dr. R). I want to welcome you to the L A TEX Tutorial Series.

TUTORIAL 10: ARRAYS AND MATRICES. 1. Welcome. Hello. My name is Dr. Christopher Raridan (Dr. R). I want to welcome you to the L A TEX Tutorial Series. TUTORIAL 10: ARRAYS AND MATRICES CHRISTOPHER RARIDAN Abstract. Upon completion of this tutorial, the author should be able to construct arrays and matrices. 1. Welcome Hello. My name is Dr. Christopher

More information

1 Obtaining LyX and L A TEX

1 Obtaining LyX and L A TEX A Guide to LyX and L A TEX Based off A Quick Guide to LyX by Jessica Moses 08 October 2011 Many economists (and academics in mathematics-heavy disciplines) use a program called L A TEX to create documents.

More information

simpletex Documentation

simpletex Documentation simpletex Documentation Release v0.2.1 Samuel Li Aug 06, 2018 Contents 1 Getting Started 3 2 API Documentation 11 Python Module Index 17 i ii simpletex is a Python library for automatically generating

More information

How to L A TEX. George Wong, David Mykytyn. 6 October 2016

How to L A TEX. George Wong, David Mykytyn. 6 October 2016 How to L A TEX George Wong, David Mykytyn 6 October 2016 1 What is L A TEX? Used in textbooks, journal/conference articles, and lab reports! You provide the material and L A TEX renders according to typographical

More information

TUTORIAL 5: LIST ENVIRONMENTS. 1. Welcome. (1) Hello. My name is Dr. Christopher Raridan (Dr. R).

TUTORIAL 5: LIST ENVIRONMENTS. 1. Welcome. (1) Hello. My name is Dr. Christopher Raridan (Dr. R). TUTORIAL 5: LIST ENVIRONMENTS CHRISTOPHER RARIDAN Abstract. Upon completion of this tutorial, the author should be able to create bullet lists and numbered lists using the itemize and enumerate environments,

More information

LATEX Workshop. Yi Liu Chen SUNY Geneseo PRISM Math Club. February 6, Wordmark Reversed Geneseo Wordmark Style Guide 4

LATEX Workshop. Yi Liu Chen SUNY Geneseo PRISM Math Club. February 6, Wordmark Reversed Geneseo Wordmark Style Guide 4 Yi Liu Chen SUNY Geneseo PRISM Math Club February 6, 2019 Outline L A TEX Environment The Basics Mathematics SUNY Geneseo PRISM Math Club 2 BDA/MBS and Math/Physics People People taking BDA (BIOL250) or

More information

My Mathematical Thesis

My Mathematical Thesis My Mathematical Thesis A. Student September 1, 2018 Abstract An abstract is a paragraph or few that gives the reader an overview of the document. Abstracts are commonly found on research articles, but

More information

Using the amsthm Package

Using the amsthm Package Using the amsthm Package Version 2.20, August 2004 American Mathematical Society 1 Introduction The amsthm package provides an enhanced version of L A TEX s \newtheorem command for defining theorem-like

More information

Writing Mathematics in L A TEX by Example

Writing Mathematics in L A TEX by Example Writing Mathematics in L A TEX by Example Jason B. Hill University of Colorado Boulder Wednesday, October 31, 2008 Currently available in PDF, DVI and TEX formats at http://euclid.colorado.edu/ hilljb/latex/

More information

T E X and L A T E X Document preparation tools

T E X and L A T E X Document preparation tools T E X and L A T E X Document preparation tools This lecture adds to the previous introduction to L A T E X, introduces BibT E X and looks at creating larger documents. Last time... The first session introduced:

More information

LATEX Primer. 1 Introduction (Read Me)

LATEX Primer. 1 Introduction (Read Me) LATEX Primer 1 Introduction (Read Me) This document is intended to be used as a primer. You are welcome to remove the body of the document and use the headers only. If you actually read this document,

More information

Lecture 1. MA2730: Analysis I. Lecture slides for MA2730 Analysis I. Study and Assessment Components. MA L A TEX: topics for Lecture 1

Lecture 1. MA2730: Analysis I. Lecture slides for MA2730 Analysis I. Study and Assessment Components. MA L A TEX: topics for Lecture 1 Contents of the teaching and assessment blocks MA2730: Analysis I Lecture slides for MA2730 Analysis I Simon people.brunel.ac.uk/~icsrsss simon.shaw@brunel.ac.uk College of Engineering, Design and Physical

More information

Mikkel Madsen

Mikkel Madsen Mikkel Madsen latex@mikkl.dk Today Recap from lecture 1 Sections, figures, tables, equations, multiple files TechnicCenter demonstration Navigating a large report Compiling New material Bold, italic, fontsize

More information

An Introduction to L A TEX

An Introduction to L A TEX An Introduction to L A TEX John Hamer John.Hamer@glasgow.ac.uk 24 January 2018 What, how, where? L A TEX is a fine typesetting system. You write your document (paper, report, essay, thesis, poster, book,

More information

Intro to L A TEX. Kelly Choo. Sept. 21, Mathematics and Statistics, UVic

Intro to L A TEX. Kelly Choo. Sept. 21, Mathematics and Statistics, UVic Intro to L A TEX Kelly Choo Mathematics and Statistics, UVic Sept. 21, 2017 Software Windows: ProTeXt to install MikTeX and TeXStudio Kelly Choo (Mathematics and Statistics, UVic) Intro to LATEX 2 / 35

More information

Guide to L A TEX. Daniel M. Kane

Guide to L A TEX. Daniel M. Kane Guide to L A TEX Daniel M. Kane 1 Overview TEXis a typesetting program developed by Donald Knuth. L A TEXwas an extension of TEXcreated by Leslie Lamport, making a number of operations considerably easier.

More information

LaTeX A Tutorial. Mohsen Alimomeni, 2010

LaTeX A Tutorial. Mohsen Alimomeni, 2010 LaTeX A Tutorial Mohsen Alimomeni, 2010 How to pronounce LaTeX? (Lah-tek, or Lay-tek) A typesetting program, not a word-processor Designed for producing beautiful books, thesis, papers, articles... (Springer

More information

CS 189 L A TEX and Linux: Displaying Text

CS 189 L A TEX and Linux: Displaying Text CS 189 L A TEX and Linux: Displaying Text (1) Robert S. Laramee Computer Science Department School of Physical Sciences Swansea University February 21, 2008 (1) Robert S. Laramee CS 189 LATEX and Linux:

More information

Using the amsthm Package

Using the amsthm Package Using the amsthm Package Version 2.20.3, September 2017 Publications Technical Group American Mathematical Society Contents 1 Introduction 2 2 Setup and input of theorem elements 2 2.1 Theorems beginning

More information

L A TEX: Online module 2

L A TEX: Online module 2 L A TEX: Online module 2 Venkata Manem Univ. of Waterloo July 22, 2011 Venkata Manem (Univ. of Waterloo) LATEX: Online module 2 July 22, 2011 1 / 28 Topics to be covered Typeface Font size Special characters

More information

Effective Programming Practices for Economists

Effective Programming Practices for Economists Effective Programming Practices for Economists 4. A L A T E X primer Hans-Martin von Gaudecker Department of Economics, Universität Bonn The case for plain L A T E X Version control works best with simple

More information

Introduzione a LaTex. Fabrizio Messina

Introduzione a LaTex. Fabrizio Messina Introduzione a LaTex Fabrizio Messina messina@dmi.unict.it www.dmi.unict.it/~fmessina Tex and LaTex TEX is a formatting program created by Donald E. Knuth from 1977. Typesetting text and mathematical formulae.

More information

Getting started with Latex

Getting started with Latex Getting started with Latex Robert G. Niemeyer University of New Mexico, Albuquerque October 15, 2012 What is Latex? Latex is a mathematical typesetting language. Essentially, when you are using Latex to

More information

Introduction to LAT E X

Introduction to LAT E X Introduction to LAT E X RSI 2006 Staff Contents What is L A T E X?........................................ 1 L A T E X command syntax................................... 2 Starting your L A T E X document...............................

More information

Introduction to LATEX

Introduction to LATEX Introduction to LATEX Jennifer Flegg, September 5 2018 School of Mathematics and Statistics, University of Melbourne Why L A TEX? L A TEX is the mathematical/statistical standard L A TEX looks better than

More information

CSE 150: Notation Examples

CSE 150: Notation Examples CSE 150: Notation s Leif Walsh December 12, 2007 For most of the following, you will need to include amsmath, amsfonts, amsthm, and sometimes amssymb in your source, by putting the \usepackage{amsmath}

More information

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

COMP496/901: Academic Presentation and Writing Skills Using LaTeX COMP496/901: Academic Presentation and Writing Skills Using LaTeX Robert Dale Robert.Dale@mq.edu.au 1 Acknowledgements These slides borrow heavily from similar material by: Jan-Philipp Söhn David Squire

More information

Electronic Production Guidelines

Electronic Production Guidelines Electronic Production Guidelines Illustrations It is a good idea to check out the draw programs you have available to you before you start drawing the figures for your article. Make sure that you can create

More information

Typesetting in wxmaxima

Typesetting in wxmaxima Typesetting in wxmaxima 1 Introduction To make your paper look as good as possible you should be familiar with the following: how to format text and create sections (and subsections, etc.), how to typeset

More information

L A TEX Overview. Jiayi Liu. January 31, Colorado School of Mines

L A TEX Overview. Jiayi Liu. January 31, Colorado School of Mines 1 L A TEX Overview Jiayi Liu Colorado School of Mines January 31, 2017 Please refer to LATEX WikiBooks and ShareLaTeX.com Documentation for more details. 2 Brief History TEX ( Tech ) A low-level markup

More information

Outline. Installing LaTeX. Opening TeXShop. Intro to LaTeX. Intro to LaTeX interface Working with text Tabbing and tables Figures Math and equations

Outline. Installing LaTeX. Opening TeXShop. Intro to LaTeX. Intro to LaTeX interface Working with text Tabbing and tables Figures Math and equations Outline UCLA Department of Statistics Statistical Consulting Center interface Working with text Tabbing and tables Figures Math and equations April 23, 2009 Installation Installing LaTeX Opening TeXShop

More information

LAT E X Math Mode. RSI 2007 Staff

LAT E X Math Mode. RSI 2007 Staff LAT E X Math Mode RSI 2007 Staff LAT E X has a special mode for formatting mathematic This mode allows the use of: Subscripts and superscripts Greek letters and various special symbols Example of text

More information

Workshop on LATEX 2ε. Asst. Prof. Dr. Kemal Bagzibagli Department of Economics. 20 May 2015

Workshop on LATEX 2ε. Asst. Prof. Dr. Kemal Bagzibagli Department of Economics. 20 May 2015 Workshop on LATEX 2ε Asst. Prof. Dr. Kemal Bagzibagli Department of Economics 20 May 2015 1 Outline 1 Introduction 2 Some L A TEX Features 3 Input File Structure 4 The Layout of the Document 5 Special

More information

Latex Tutorial 1 L A TEX. 1.1 Text

Latex Tutorial 1 L A TEX. 1.1 Text Latex Tutorial This tutorial was originally prepared by Joel Wein of MIT. You may find it helpful in preparing your notes. Anything I send you in the template file supercedes what is written here. Yishay

More information

Learning L A TEX. Patrick Lam

Learning L A TEX. Patrick Lam Learning L A TEX Patrick Lam setting up 1. download a TeX distribution (MiKTeX, MacTeX, etc.) 2. download an editor (Texmaker, WinEDT, XEmacs, etc.) 3. start a.tex file in editor 4. work only in the.tex

More information

Introduction to L A T E X

Introduction to L A T E X to L A T E X Ricky Patterson Big Library 21 Sep 2016 Ricky Patterson Intro to LAT E X 21 Sep 2016 1 / 18 Outline A Basic L A T E X Document \documentclass Packages Caveats Formatting Some L A T E X Examples

More information

L A TEX. COMPSCI 111 / 111G Mastering Cyberspace: An introduction to practical computing. LaTeX. Development. Why?

L A TEX. COMPSCI 111 / 111G Mastering Cyberspace: An introduction to practical computing. LaTeX. Development. Why? LaTeX A document preparation system Used to typeset a document COMPSCI 111 / 111G Mastering Cyberspace: An introduction to practical computing LaTeX Compiler L A TEX http://en.wikipedia.org/wiki/latex

More information

A Grasshopper s Approach to L A TEX

A Grasshopper s Approach to L A TEX A Grasshopper s Approach to L A TEX JHB Deane and S Reich Updated by PJ Aston February 1, 2011 Contents 1 Introduction 2 2 Winshell 2 2.1 Editor Commands..................................... 2 2.2 Processing

More information

Homework # You ll want to use some LaTeX editor to edit and compile your.tex files

Homework # You ll want to use some LaTeX editor to edit and compile your.tex files Homework # 1 What is LaTeX? LaTeX is a document markup language You prepare a (.tex) document, and compile it into a PDF LaTeX helps make your homework pretty (just like this document!) and makes us happy

More information

Helen Cameron. A Brief Overview of LATEX

Helen Cameron. A Brief Overview of LATEX A Brief Overview of L A TEX What Is L A TEX? L A TEX is a document preparation system designed by Leslie Lamport on top of Donald Knuth s TEX. Useful Websites There s a useful wikibook about L A TEX at

More information

MATLAB for the Sciences

MATLAB for the Sciences A Preliminary Discussion in L A TEX, Part 2 January 6, 2008 Multiple Lines of Equations Just as there was an environment for writing equations, there is an environment for multi-line equations. \begin{eqnarray}

More information

Introduction to L A TEX

Introduction to L A TEX Introduction to L A TEX Guillermo Toral & Weihuang Wong MIT September 15, 2017 These slides build on materials from previous years by Dan de Kadt and Elizabeth Keysner, and on The Not So Short Introduction

More information

Preparation of ADSA and IJDE Manuscripts

Preparation of ADSA and IJDE Manuscripts Preparation of ADSA and IJDE Manuscripts http://campus.mst.edu/adsa http://campus.mst.edu/ijde Before submitting your paper to ADSA or IJDE, please follow all instructions as given in this document. If

More information

Note di Matematica instructions for authors

Note di Matematica instructions for authors Note di Matematica, manuscript, pages 1 8. Note di Matematica instructions for authors Author One i Department of..., University of... one@xxx.xxx.xx Author Two ii Department of..., University of... two@yyy.yyy.yy

More information

L A TEXInstallation and Introduction

L A TEXInstallation and Introduction L A TEXInstallation and Introduction Andrew McAllister Society of Physics Students September 21st, 2011 Andrew McAllister (SPS) LATEXIntro September 21st, 2011 1 / 22 What is L A TEX? L A TEXis a typesetting

More information

The L Y X Tutorial. by the L Y X Team 1. December 2, them to the LYX Documentation mailing list:

The L Y X Tutorial. by the L Y X Team 1. December 2, them to the LYX Documentation mailing list: The L Y X Tutorial by the L Y X Team 1 December 2, 2016 1 If you have comments on or corrections to this documentation, please send them to the LYX Documentation mailing list: lyx-docs@lists.lyx.org 2

More information

L A T E X Workshop. Bijulal D & Anu Thomas Industrial Engineering and Operations Research Indian Institute of Technology

L A T E X Workshop. Bijulal D & Anu Thomas Industrial Engineering and Operations Research Indian Institute of Technology L A T E X Workshop Bijulal D & Anu Thomas Industrial Engineering and Operations Research Indian Institute of Technology LAT E X Workshop, IEOR@IITB, March 18 & 23, 2010 p. 1 Outline of the Workshop Introduction

More information

A Brief Introduction to LaTeX

A Brief Introduction to LaTeX A Brief Introduction to LaTeX Paul Gustafson (shamelessly stolen from Robert Williams) Texas A&M University June 2, 2017 Paul Gustafson (shamelessly stolen from Robert Williams) A Brief (Texas Introduction

More information