Title Author 1 ∗ Author 2 † Author 3 ‡ January 23, 2015 Abstract Place your abstract here. This document is a template for turning in project and assignment reports for Math 442. In addition, we go over some basic features of LATEX such as creating sections and subsections, lists of items, numbered lists, equations, matrices, tables and images. Labeling and referencing is demonstrated. Through a basic example, it is shown how to cite and create bibliography. 1 Introduction The introduction goes here. 2 Section Place your text here. 2.1 Subsection Place your text here. 2.1.1 Sub-subsection Place your text here. Next I will include a list. I don’t want to break the list up, so I am going to tell LATEX to end the page here with the \eject command. ∗ Put here comments or information about Author 1, if desired. here comments or information about Author 2, if desired. ‡ Put here comments or information about Author 3, if desired. † Put 1 3 How to place item lists This is an example of an item list. • First item. • Second item. • ... Notice that LATEX broke that list in the middle, which is irritating. To fix this you can put an \eject before the item list to force the end of the page before the item list comes out. This is an example of a numbered list. 1. First item. 2. Second item. 3. ... 4 How to insert equations Equations can be placed within the paragraph; e.g., ut = α∇2 u, is the heat equation. Alternatively, one can place equations inline; for example, this is the second order wave equation: utt − αuxx = 0. (1) To put several equations together, one can do: ∇ · D = ρ, (2a) ∇ · B = 0, (2b) ∇ × E = −Bt , (2c) ∇ × H = Dt + J. (2d) These are Maxwell’s equations. One convenient thing about LATEX is that one can reference the equations by the labels; e.g., equations (2) are the Maxwell’s equations and (1) is the wave equation. One can also reference individual equations; e.g., equation (2b) implies the non-existence of magnetic monopoles. Note that the numbering is done automatically. Here’s a nice, complicated equation for you. # " cos(x) 1 sin(x2 ) iπ +e − exp =y (3) 2 ln(y) x tan(x) + xy3 2 Floating wherever xxx xxx xxx tables LATEX xxx xxx xxx get output decides they belong xxx xxx xxx Table 1: The caption for the table goes here. Sometimes captioning a table is important to explain what is going on! 5 How to insert a matrix Here are three ways to write a matrix; the first uses arrays, the second uses the bmatrix environment for a bracketed matrix, and the third uses the pmatrix environment for a matrix in parentheses. 1 2 3 1 2 3 1 2 3 A = 4 5 6 = 4 5 6 = 4 5 6 (4) 7 8 9 7 8 9 7 8 9 6 How to insert a table This is an example of a table placed in the text where typed. xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx At the top of the page is an example of a floating table. A floating table may contain a caption describing what is in the table. It may also contain a label so that you can refer back to the table. By default, tables and figures are placed wherever LATEX considers more convenient. I have requested this table be output to the top of the page. If you want to override the default behavior, you can do so, search Google for information on tables and figures to find out how! The commands for the floating table are below this paragraph. Here I can reference the floating table. It is table 1. You may find it weird that the label for the floating table is in the caption, but if it is put elsewhere, I will get the label for the section, and not for the table. This is a LATEX bug that we just have to work with. 7 How to insert an image Here I insert an image directly into the text. It normally appears pretty much directly after I type the command to put it in, however there isn’t enough room 3 to put it on this page, so it will appear on the next page. BUT! After entering this figure, I requested the same figure be input as a floating figure at the top of the page, and that got inserted first. So the figure input directly after this paragraph is underneath the floating figure that I requested come out at the top of the page. NOTE: the axis labels and tics on figures should be readable. These are a little small, but okay. Make sure your graphs are tited, the axes are labeled, that you have a legend if you need one, and that the reader of your report can actually read all of these things. Here is the LATEX for the floating image. These work much like floating tables. Floating images can be convenient because you can include a caption and a label, so that you can refer to them later, just like floating tables. I can reference my floating figure. It is figure 1. You may find it weird that the label is in the caption, and it is. This is a LATEX bug. If it isn’t in the caption, we will get the label for the section and not for the figure. 8 References In LATEX one can reference sections, subsections, equations, matrices, tables, figures and others. To reference an entity, one has to first label it and then reference it. See how to make a section in section 2 and a subsection in section 2.1. Also see an example of a table in table 1 and an image in figure 1. 4 Figure 1: Place here information for the figure. 9 Bibliography One can use BibTeX to create the bibliography and insert citations throughout the paper. This is how to do it: • Create a separate file with extension .bib, see file bib.bib, and insert all references in there, following the format in the example. – Tip: go to Google scholar, http://scholar.google.com/, look for the article you want, go to Scholar preferences (top right), select show links to import citation into BibTeX (last option in the bottom), save the preferences, click on import into BibTeX (below of the article’s link), copy the information into the .bib file and save it. 9.1 Example on referencing To cite a journal article with one author, see [1]. To cite a journal article with two authors, see [2]. To cite a journal article with three authors, see [3]. To cite a journal article with more than three authors, see [4]. To cite a textbook, see [5]. To cite a website, see [6]. References [1] A.B. Smith, Title of Article, Title of Journal, Volume:Issue (Year) p. 1-10. 5 [2] A.B. Smith and C.D. Jones, Title of Article, Title of Journal, Volume:Issue (Year) p. 11-20. [3] A.B. Smith, C.D. Jones, and E.F. Jackson, Title of Article, Title of Journal, Volume:Issue (Year) p. 21-30. [4] A.B. Smith et al., Title of Article, Title of Journal, Volume:Issue (Year) p. 31-40. [5] K.B. Athreya and P.E. Ney, Branching Processes, Springer-Verlag, New York, 1972. [6] Centers for Disease Control and Prevention, Cholera in Haiti, 2013. Available at http://wwwnc.cdc.gov/travel/notices/watch/haiti-cholera (accessed 22 May 2014). Appendix A This is an unnumbered section. 6