An Introduction to L A TEX

Size: px
Start display at page:

Download "An Introduction to L A TEX"

Transcription

1 An Introduction to L A TEX Paddy Johnson edited by J. Kinsella January 26,

2 MS4024 Numerical Computation L A TEXNotes 1 1 Getting Acquainted with L A TEX 1.1 Why use L A TEX? With Word Processing systems like MS Word/Office, authors write documents with very little or inconsistent structure. These documents are then very hard to update. And look scrappy. L A TEX prevents such formatting errors by forcing the author to declare the logical structure of the document. L A TEX then chooses the most suitable layout. Professionally designed layouts are available, which make a document really look as if printed. The typesetting of mathematical formulae is supported in a convenient way.

3 MS4024 Numerical Computation L A TEXNotes 2 Users only need to learn a few easy-to-understand commands that specify the logical structure of a document. They almost never need to tinker with the actual layout of the document. Even complex structures such as footnotes, references, table of contents and bibliographies can be generated easily.

4 MS4024 Numerical Computation L A TEXNotes Installing L A TEX L A TEXis Open Source Source software, available free of charge and free from copyright restrictions. The version for PC s running the various MicroSoft OS s is MikTeX. Most MS Windows users working with MikTeX use the WinEdt editor to create L A TEXdocuments that are then compiled into viewable and printable form. It is important to install MikTeX first & then to install WinEdt. WinEdt needs MikTeX installed first so that it can see the various MikTeX commands and incorporate them into its menu system.

5 MS4024 Numerical Computation L A TEXNotes 4 To install MikTeX on your own PC/laptop you ll need an internet connection for the downloads. 1. Download and install MikTeX by connecting to and following the instructions there. 2. Download and install WinEdt by connecting to and follow the instructions there. WinEdt is not free but you can use it free for 31 days. After that I ll give you an unlock code that the Mathematics Dept has bought. There are other free editors available. 3. Make sure that you have Adobe Reader installed so that you can view the PDF files (Freely downloadable from Adobe.).

6 MS4024 Numerical Computation L A TEXNotes 5 2 Some Basic L A TEX commands 2.1 Starting to Use L A TEX The input for L A TEX is a plain text file. You can create it with any text editor. It contains the text of the document, as well as the commands that tell L A TEX how to typeset the text. Spaces 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. Paragraphs 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.

7 MS4024 Numerical Computation L A TEXNotes 6 Comments The comment character in L A TEX is the % character. Comments start from the comment character until the end-of-line. Special Symbols The following symbols are reserved characters that either have a special meaning in L A TEX or are not available in all the fonts. If you enter them directly in your text, they will normally not be printed but rather coerce L A TEX to do things you did not intend. # $ % ˆ & { } These characters can be used in your documents by adding a prefix backslash: \# or \% for example.

8 MS4024 Numerical Computation L A TEXNotes L A TEX Commands L A TEX commands are case sensitive and take one of the following two formats: They start with a backslash \ and then have a name consisting of letters only. They consist of a backslash and exactly one non-letter. Command names are terminated by a space, a number or any other non-letter. The L A TEX logo is produced by the command \LaTeX.

9 MS4024 Numerical Computation L A TEXNotes 8 There are several useful text-generating commands such as \today which produces the current date, \newpage produces a new page, \backslash produces a new line, \Large increases the size of your font to Large.

10 MS4024 Numerical Computation L A TEXNotes 9 3 L A TEXDocument Structure 3.1 A General Document Outline Every input file must start with the command \documentclass{...}. This specifies what sort of document you intend to write. After that, you can include commands that influence the style of the whole document, or you can load packages that add new features to the L A TEX system. To load such a package you use the command \usepackage{...}

11 MS4024 Numerical Computation L A TEXNotes 10 When you are finished setting up the document in the preamble you start the body of the text with the command \begin{document} Now you enter the text that will appear in your document mixed with some useful L A TEX commands. At the end of the document you add the \end{document} command, which tells L A TEX to stop processing the file. Anything that follows this command will be ignored by L A TEX.

12 MS4024 Numerical Computation L A TEXNotes The Document Class The preamble begins with a \documentclass{...} command whose argument is one of the predefined classes of documents that L A TEX knows. The standard L A TEX classes are article, report, book, slides and letter.

13 MS4024 Numerical Computation L A TEXNotes 12 In addition to choosing the class, you can also choose from among certain document-class options. You can choose more than one option - separated by commas with no spaces. Some of the common options include: 11pt Specifies the size of the font to be 11pt - 10% larger than normal 10pt font. twoside Formats output for printing on both sides of the page. twocolumn Produces two-column output. a4paper Forces the output to be formatted to A4 paper.

14 MS4024 Numerical Computation L A TEXNotes 13 4 Compiling L A TEX Files 4.1 A Simple L A TEX Document We will now look at a very basic L A TEX file and see how to compile and generate readable output from the file. Download the file http: //jkcray.maths.ul.ie/ms4024/latex-files/sample1.tex to your local folder. Just click on the link above your browser should give you the options of Opening the file in WinEdt or Saving it to a local folder.

15 MS4024 Numerical Computation L A TEXNotes 14 Saving it to a local folder first and opening from within WinEdt gives you more control over the process. The Opening the file in WinEdt option is quicker but can result in multiple copies of the same file. Compilation commands such as PDFTeXify, LaTeX and TeX are currently enabled indicating that we can compile the current file with the compiler of our choice. MiKTeX s TeXify accessory can be used to perform a full compile (run L A TEX, BibTeX and MakeIndex as many times as necessary to update the references, bibliography and index). This would be the fastest way to compile the document but for demonstrational purposes we ll take care of things manually.

16 MS4024 Numerical Computation L A TEXNotes 15 Note that certain commands are still disabled. There is good reason for that: DVI Preview or dvi2ps require the file Sample1.dvi which will be created by L A TEX. This file doesn t exist yet. Let s make it! Ready? Press the LaTeX button...

17 MS4024 Numerical Computation L A TEXNotes 16 Figure 1: WinEdt Screen Capture

18 MS4024 Numerical Computation L A TEXNotes Error Checking in WinEdt By default the Console Window (with black background) appears and L A TEX is compiling your file. When there are no Errors the window disappears quite fast as you are not expected to process the feedback from the Console Window. In WinEdt you can enter the Ctrl E shortcut (or Errors...Command in the Search Menu)to display the LOG file at the bottom of the screen. This file contains all the information produced by L A TEX. Warnings in the LOG file are not serious.

19 MS4024 Numerical Computation L A TEXNotes 18 Your file will compile so long as you do not have too many warnings. Keep on pressing Ctrl E to walk through the errors or else use the GUI in the Error Form. To close the Errors dialog click on the X in the left top corner of the form or use the Shift Ctrl E shortcut.

20 MS4024 Numerical Computation L A TEXNotes Viewing the Document You may have noticed that DVI Search and Preview, dvi2ps and dvi2pdf commands are now enabled. The file Sample1.dvi now exists and the commands therefore make sense. Press the DVI Preview Button. The previewer starts (in MiKTeX it is called YAP).

21 MS4024 Numerical Computation L A TEXNotes 20 Figure 2: Sample1.dvi

22 MS4024 Numerical Computation L A TEXNotes Files you might Encounter When you work with L A TEX you will (without trying) generate a lot of files with various extensions The following list explains some of the various file types you might encounter when working with L A TEX. The list is not complete!

23 MS4024 Numerical Computation L A TEXNotes 22.tex L A TEX or TEX input file that you type. Can be compiled with the latex command in MikTeX..sty L A TEX Macro package. This is a file you can load into your L A TEX document using the \usepackage command..cls Class files define what your document looks like. They are selected with the \documentclass command..dvi Device Independent File. This is the useful output of a successful L A TEX run..log Gives a detailed account of what happened during the last compiler run..toc Stores all your section headers. It gets read in for the next compiler run and is used to produce the table of content..aux Cross-referencing files not intended to be read by people!

24 MS4024 Numerical Computation L A TEXNotes 23 5 Document Layout 5.1 Page Style L A TEX supports three predefined header/footer combinations so-called page styles. The style parameter of the \pagestyle{style} command defines which one to use. The list below lists the predefined page styles.

25 MS4024 Numerical Computation L A TEXNotes 24 plain prints the page numbers on the bottom of the page, in the middle of the footer. This is the default page style. headings prints the current chapter heading and the page number in the header on each page, while the footer remains empty. empty sets both the header and the footer to be empty. It is possible to change the page style of the current page with the command \thispagesstyle{style} It is possible to create your own headers and footers using the package fancyhdr.

26 MS4024 Numerical Computation L A TEXNotes Page Numbering There are five different page number styles invoked by the command: \pagenumbering{numstyle} arabic - ordinary arabic numerals roman - lowercase roman numerals Roman - uppercase roman numerals alph - lowercase letters Alph - uppercase letters The page number for any page is stored in the variable \thepage. Thus the code: This is page \thepage produces: This is page 17 (if it appears on page 17 of your document).

27 MS4024 Numerical Computation L A TEXNotes Sectioning A sectioning unit is begun by a sectioning command with the unit s title as its argument. For example if you were writing a document on Matrices, you might want a section on Matrix Methods: \section{matrix Methods} Which might have a subsection on Easy Matrix Methods: \subsection{easy Matrix Methods} To be followed, sadly, by \subsection{hard Matrix Methods} L A TEX automatically generates the section number. Blank lines before or after a sectioning command have no effect. The document class determines what sectioning commands are allowed:

28 MS4024 Numerical Computation L A TEXNotes 27 \part \subsection \paragraph \chapter \subsubsection \subparagraph \section

29 MS4024 Numerical Computation L A TEXNotes 28 The article document class does not contain the \chapter command, which makes it easy to include an article as a chapter in a report. If you have chosen your class to be article and then use the \chapter command you will receive an error. If there is an appendix, it is begun with the \appendix command. The \appendix command does not produce any text it simply causes all the following sectional units to be numbered properly for an appendix.

30 MS4024 Numerical Computation L A TEXNotes 29 Challenge Use WinEdt to create a file Test1.tex and create three new pages all with the same text as the first page. Change the page styles of all three pages to see the difference between the styles. Add chapter titles on each page and section titles throughout the work. Add some more pages and play around with the page style, page numbering and sectioning of the pages.

31 MS4024 Numerical Computation L A TEXNotes L A TEX Fonts You will need to define your fonts at the beginning of any L A TEX document. After defining them, you ll only need to use font commands to change the font, for instance to bold or italics. L A TEX has three font families as defaults. Roman This is the default font. Use the command \textrm{text} Sans-serif Use the command \textsf{text} Monospace Fixed-width or typewriter type text. Use the command \texttt{text}

32 MS4024 Numerical Computation L A TEXNotes 31 L A TEX has the following built-in font styles: Italics \textit puts words in italics. Bold \textbf puts words in bold. Slanted textsl puts words in slanted type. Emphasis \emph similar to italics. Small Capitals \textsc puts words in small capitals.

33 MS4024 Numerical Computation L A TEXNotes 32 Font size in L A TEX is controlled with font size commands. Note that you will need to reset the font size with one of these commands after changing it.

34 MS4024 Numerical Computation L A TEXNotes 33 Command Normal Point Size \tiny 5 \scriptsize 7 \footnotesize 8 \small 9 \normalsize 10 \large 12 \Large 14 \LARGE 18 \huge 20 \Huge 24

35 MS4024 Numerical Computation L A TEXNotes 34 Font Colour The colour of your font can be changed by using the color package which must be called in the Preamble (note the spelling of the package color). You can typeset L A TEX in any colour. To add the color package in the Preamble, use the command: \usepackage{color} The colours available by default are: red, green and blue. To place a single word or phrase in colour, use the command: \textcolor{color}{words to be in colour} or {\color{color}words to be in colour}. Notice the use of braces {... } to group text together. For example, \textcolor{red}{text in red} produces: text in red.

36 MS4024 Numerical Computation L A TEXNotes 35 It is possible to define other colours that you can use in your L A TEX document. To define your own colour add the following piece of code to the Preamble of your document: \usepackage{color} \definecolor{colour name}{rgb}{rval, GVal, BlueVal}. where RVal, GVal and BlueVal are numbers between 0 and 1. Any combination of values can be used to get the desired colour that your want e.g. {0,0,0} = Black, {1,1,1} = White, {0.3,0.3,0.9} = Light Blue. So if I enter \definecolor{lightblue}{rgb}{0.3,0.3,0.9}, followed by \textcolor{lightblue}{a Very Blue Monday.}, I get: A Very Blue Monday.

37 MS4024 Numerical Computation L A TEXNotes 36 Challenge Change the font, font size and font colour of words or paragraphs in the file Test1.tex (that you made earlier). Create a new colour to reflect your mood and use it to colour some text.

38 MS4024 Numerical Computation L A TEXNotes 37 6 Displaying Material 6.1 Environments L A TEX has a built-in construction called an environment for producing several different kinds of displays. \begin{name}... \end{name} where name is the environment. We have already encountered the document environment. Blank lines before or after an environment mark a new paragraph.

39 MS4024 Numerical Computation L A TEXNotes Some Useful Environments Let s look at some of the more commonly used environments: Lists L A TEXis really good at generating lists. The itemize environment is suitable for simple lists. The following piece of L A TEX \begin{itemize} \item The first item. \item The second item. \item The third item. \end{itemize} generates the output: The first item. The second item. The third item.

40 MS4024 Numerical Computation L A TEXNotes 39 the enumerate environment for enumerated lists The following piece of L A TEX \begin{enumerate} \item The first item. \item The second item. \item The third item. \end{enumerate} generates the output: 1. The first item. 2. The second item. 3. The third item.

41 MS4024 Numerical Computation L A TEXNotes 40 the description environment for lists of categories. The following piece of L A TEX \begin{description} \item[flora] Tree, plants etc. \item [Fauna] Animals of all kinds. \item [Geographical features] Rivers, lakes, mountains, valleys and seas. \end{description} generates the output: Flora Tree, plants etc. Fauna Animals of all kinds. Geographical features Rivers, lakes, mountains, valleys and seas.

42 MS4024 Numerical Computation L A TEXNotes 41 Verbatim Text that is enclosed in the verbatim environment will be directly printed, as if typed on a typewriter, with all line breaks and spaces, without execution of any L A TEX commands. This environment is very useful for displaying sections of program code.

43 MS4024 Numerical Computation L A TEXNotes 42 For example the following L A TEXcode: \begin{verbatim} function [f,fprime] = flogist(x,a) % FLOGIST Logistic function and its derivative. % [F,FPRIME] = FLOGIST(X,A) evaluates the logistic % function F(X) = X.*(1-A*X) and its derivative FPRIME % at the matrix argument X, where A is a scalar parameter. f = x.*(1-a*x); if nargout>1 fprime = 1-2*a*x; end \end{verbatim}

44 MS4024 Numerical Computation L A TEXNotes 43 generates the output: function [f,fprime] = flogist(x,a) % FLOGIST Logistic function and its derivative. % [F,FPRIME] = FLOGIST(X,A) evaluates the logistic % function F(X) = X.*(1-A*X) and its derivative FPRIME % at the matrix argument X, where A is a scalar parameter. f = x.*(1-a*x); if nargout>1 fprime = 1-2*a*x; end

45 MS4024 Numerical Computation L A TEXNotes 44 lstlisting We will see that this does an even better job of displaying Matlab code than Verbatim. N.B. notice the spelling of lstlisting! For example the following L A TEXcode: \begin{lstlisting} function [f,fprime] = flogist(x,a) % FLOGIST Logistic function and its derivative. % [F,FPRIME] = FLOGIST(X,A) evaluates the logistic % function F(X) = X.*(1-A*X) and its derivative FPRIME % at the matrix argument X, where A is a scalar parameter. f = x.*(1-a*x); if nargout>1 fprime = 1-2*a*x; end \end{lstlisting}

46 MS4024 Numerical Computation L A TEXNotes 45 generates the output: 1 function [f,fprime] = flogist(x,a) 2 % FLOGIST Logistic function and its derivative. 3 % [F,FPRIME] = FLOGIST(X,A) evaluates the logistic 4 % function F(X) = X. (1 A X) and its derivative FPRIME 5 % at the matrix argument X, where A is a scalar parameter. 6 7 f = x. (1 a x); 8 if nargout>1 9 fprime = 1 2 a x; 10 end The lines have been numbered, keywords highlighted in red, comments displayed in green, etc.

47 MS4024 Numerical Computation L A TEXNotes Inserting Figures There are several picture formats that can be used with L A TEX. The most common is a format called Encapsulated Postscript (.eps). If we are converting our work to PDF format we have more choice and can include images in JPG, PNG and PDF format. To include a figure in your document you must first load the graphicx package in your preamble with \usepackage{graphicx} This package contains all the commands you need to include the figure and view it properly.

48 MS4024 Numerical Computation L A TEXNotes 47 At the position in your document where you want the figure to appear include the lines: \begin{figure}[ht] \centering \includegraphics[width=8cm]{filename.ext} \caption{figure Caption} \end{figure} Take the following example, \begin{figure}[ht] \centering \includegraphics[width=9cm,bb= ]{Pop.eps} \caption{population Growth Model} \end{figure}

49 MS4024 Numerical Computation L A TEXNotes x 107 Population in MatlabLand, 1950 to Figure 3: Population Growth Model

50 MS4024 Numerical Computation L A TEXNotes 49 The caption on a Figure or Table is made with the \caption{...} command having the caption s text as its argument. The nasty notation [width=9cm,bb= ] tells L A TEX: that you want the width of the graphic to be 9cm. and that you want the Bounding Box to have its lower left corner at (73,252) and its upper-right corner at ( ). Where did these numbers come from? From the header (the first few lines) of the text file (a PostScript file is a text file) Pop.eps %%BoundingBox:

51 MS4024 Numerical Computation L A TEXNotes 50 Bounding Box The bounding box of a PostScript image the printable figures and text on a page is the tightest rectangle which includes the image when the PostScript file is printed. The bounding box is described by 4 numbers; the x-y coordinates of the lower-left corner of the image, followed by the x-y coordinates of the upper-right corner of the image. The coordinates are measured from the bottom left corner of the page, in points, where 72 points = 1 inch. With such a tiny unit, whole numbers provide plenty of precision for the bounding box coordinates. Thus for images on an 8.5in 11in page, the x-coordinates of the bounding box always lie between 0 and 612, while the y-coordinates of the bounding box always lie between 0 and 792.

52 MS4024 Numerical Computation L A TEXNotes 51 If you view a PostScript image with ghostview (or gs or gv), the x-y coordinates are displayed as you move the mouse to point at different parts of the page. In general, the bounding box line of a PostScript file (always a text file!) appears as one of the top dozen lines often the 2nd line in the form %% BoundingBox: x0 y0 x1 y1 where (x0,y0) and (x1,y1) are the coordinates of the lower-left and upper-right corners, respectively.

53 MS4024 Numerical Computation L A TEXNotes 52 There is no need to include Figure or Table numbers in your caption L A TEX will automatically put the correct numbering on the Figure or Table. See the next section (Labelling and Referencing) for details. The standard L A TEX compile will fail if you decide to include your figures as JPG, PNG or PDF files so instead we can use the PDF L A TEX command to compile our file. This will produce a PDF file as output which can be viewed by pressing the Acrobat Reader button.

54 MS4024 Numerical Computation L A TEXNotes 53 Figure 4: PDF L A TEX button and Acrobat Reader button (directly below it)

55 MS4024 Numerical Computation L A TEXNotes 54 So for example, if we run PDFLaTeX on the L A TEXcode (notice that the bounding box is unchanged as Pop.pdf was produced from Pop.eps) \begin{figure}[ht] \centering \includegraphics[width=9cm,bb= ]{Pop.pdf} \caption{population Growth Model} \end{figure} it produces the (same as before) output:

56 MS4024 Numerical Computation L A TEXNotes x 107 Population in MatlabLand, 1950 to Figure 5: Population Growth Model

57 MS4024 Numerical Computation L A TEXNotes 56 Alternative Graphics Formats The need to include bounding box information is inconvenient. For this reason, the Portable Network Graphics (.png) and JPEG (.jpg) graphic formats are often preferred. So for example, if we run PDFLaTeX on the following L A TEXcode (notice that no bounding box is needed) \begin{figure}[ht] \centering \includegraphics[width=9cm]{pop.png} \caption{population Growth Model} \end{figure} we get the following output (indistinguishable from the previous examples):

58 MS4024 Numerical Computation L A TEXNotes 57 Figure 6: Population Growth Model

59 MS4024 Numerical Computation L A TEXNotes 58 The good news is that graphics produced with Matlab can be saved into all the above graphics formats. We will usually use the Portable Network Graphics (.png) graphics format in this course to avoid having to extract Bounding Box dimensions for the graphic.

60 MS4024 Numerical Computation L A TEXNotes Labelling and Referencing One reason for numbering things, figures or tables, is so that we can refer the reader to them, i.e. see Figure 3 etc.. We don t want to hardcode the number of the figure because inserting a new figure would mean that we would have to manually adjust all the numbers of figures that come after the new one as well as all places where they are referenced. Instead, you can assign a marker of your choice to the figure and refer to it by that marker, letting L A TEX translate the reference into the figure number. The marker is assigned a number by the \label command and the number is printed in your document by the \ref command.

61 MS4024 Numerical Computation L A TEXNotes 60 You can assign a label to anything in your document that has a number associated with it, i.e. figures, tables, chapters, sections, theorem, equations, etc.. L A TEX replaces \ref by the number of the section, subsection, figure, table, or theorem after which the corresponding \label command was issued. So the the following L A TEXcode (notice that no bounding box is needed) \begin{figure}[ht] \centering \includegraphics[width=9cm]{pop.png} \caption{population Growth Model} \label{fig:populationgrowth} \end{figure} produces the output:

62 MS4024 Numerical Computation L A TEXNotes 61 Figure 7: Population Growth Model

63 MS4024 Numerical Computation L A TEXNotes 62 But now the L A TEXcode it can be seen from Figure \ref{fig:populationgrowth}... generates the output: it can be seen from Figure 7... Note that the label must appear inside whatever environment it is associated with. It is advisable to label your equations/figures in a systematic way distinguishing between equations, figures, sections etc. by choosing sensible names for your markers.

64 MS4024 Numerical Computation L A TEXNotes 63 Challenge Open the file Sample2.tex to see an example of how to insert labels into a file. 1. Add a figure to the file. 2. Create a label for the figure. 3. Reference the figure somewhere else in the document.

65 MS4024 Numerical Computation L A TEXNotes Mathematical Formulae One of the main reasons the original TEX system was created was to allow simple construction of mathematical formulae, whilst looking professional when printed. TEX proved very successful in this aspect and this is probably why TEX (and later on, L A TEX) became so popular. L A TEX needs to know that the text that it is compiling does in fact contain mathematical elements. This is because L A TEX typesets mathematical notation differently than normal text. Therefore, special environments have been declared for this purpose.

66 MS4024 Numerical Computation L A TEXNotes 65 They can be distinguished into two categories depending on how they are presented: Inline formulae are displayed inline, that is, within the body of text were it is declared. e.g., to display x + y = 4 within this sentence I just typed $x+y = 4$. Displayed displayed formulae are separate from the main text and placed on a new line. To display sin 2 x + cos 2 x = 1 I typed $$\sin^2 x+ \cos ^2 x=1$$. NB you need to bracket your formula with a pair of $ s or $$ s or else L A TEXwill halt with an error. (I used \sin and \cos rather than just sin & cos in the example above this ensures that L A TEX displays these function names in a Roman rather than an italic maths font.)

67 MS4024 Numerical Computation L A TEXNotes 66 Displaying mathematical characters require special environments. Unlike most other environments however, there are some useful shorthand notations that can be used to declare your formulae. Use $ formula$ to create an in-line mathematics formula as above. The newer notation \( formula \) produces the same result with more typing! For example \(x+y = 4\) produces x + y = 4.

68 MS4024 Numerical Computation L A TEXNotes 67 A newer notation for displayed mathematics is \[ formula \] so for example I entered \[\sin^2 x+ \cos ^2 x=1\] to display sin 2 x + cos 2 x = 1. Most mathematicians prefer the $$ notation as it involves less typing. The displaymath environment produces an unnumbered displayed formula outside of the normal text. (Just like $$.) So to produce: I typed: \begin{displaymath} \int_0^\infty e^{-x} dx=1 \end{displaymath} 0 e x dx = 1

69 MS4024 Numerical Computation L A TEXNotes 68 The command $$ \int_0^\infty e^{-x} dx=1$$ produces exactly the same result. A numbered displayed formula is produced using the equation environment. So the command \begin{equation} \int_0^\infty e^{-x} dx=1 \end{equation} produces the output: 0 e x dx = 1 (1) The equation* environment can additionally be used to produce an unnumbered displayed formula essentially the same output as $$ and the displaymath environment.

70 MS4024 Numerical Computation L A TEXNotes 69 Most mathematical symbols are accessed in WinEdt by clicking on the symbol in the main toolbar. Experienced L A TEX users enter the symbols directly, e.g. \alpha α \int \beta β \sum \gamma γ \prod \delta δ \frac{1+x}{1-x} 1+x \infty \sum_0^\infty \frac{1}{i^2} \epsilon ɛ \sqrt{x^2+1} 1 x 1 0 i 2 x2 + 1 \lambda λ x \le y x y \pi π x \ge y x y \theta θ \frac{dy}{dx} dy dx

71 MS4024 Numerical Computation L A TEXNotes 70 You will gradually pick up the direct form of the various commands as you use L A TEX. Initially you will find it easier to use the WinEdt menu. Most L A TEXbeginners use example or template files written by someone else which they then edit to fit their needs. I advise you to take that approach in this module!

72 MS4024 Numerical Computation L A TEXNotes Grouping To group a section of text or mathematics or both so that we can apply a L A TEXcommand to them we use braces, i.e. {... } One very common situation where this is done is when we want a formula to appear as a subscript or superscript in another formula. For example, to get the output: f(x) = e x sin x we enter $$f(x)=e^{x \sin x}$$ Notice that the ^ symbol is used to indicate that the group following it is to be superscripted.

73 MS4024 Numerical Computation L A TEXNotes 72 In the same way, to get x n = Y n2 +1 we enter $$ x_n =Y_{n^2+1}$$ Here the _ symbol (underscore, not minus) is used to indicate that the group following it is to be subscripted.

74 MS4024 Numerical Computation L A TEXNotes 73 Challenge L A TEX? Can you figure out how to get the following output in 0 e x2 = π/2

75 MS4024 Numerical Computation L A TEXNotes Matrices To insert a matrix we use the bmatrix environment. It needs to be included in an equation, equation*, displaymath or $$ environment as it is a mathematical expression. Inside a bmatrix environment we separate columns by the special & character and end rows using the \\ characters. A matrix created with bmatrix automatically has the standard square brackets. If you prefer round brackets try pmatrix, if you want vertical lines (usually for determinants) try vmatrix and if you want no brackets at all try matrix.

76 MS4024 Numerical Computation L A TEXNotes 75 So to get the matrix formula I entered: \begin{equation} \label{eq:mat-ex} M= \begin{bmatrix} a&b\\ c&d\\ e&f \end{bmatrix} \end{equation} M = a c e b d (2) f

77 MS4024 Numerical Computation L A TEXNotes 76 Challenge Add some new equations to Sample2.tex using both the equation and equation* environments. Add labels to your equations (the ones that require a label) and reference them at some other stage in your document. Add some matrices.

78 MS4024 Numerical Computation L A TEXNotes 77 FINALLY! I have said nothing about Tables an important feature in L A TEX but one that we will not need. I used a lot of tables when making these Notes. I should have said more about grouping useful not just in mathematical formulae but to apply a command to a piece of text. So if I want the sentence This is the final sentence. to be in a bold font, I type: {\bf This is the final sentence.} The output is: This is the final sentence.

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

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

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

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

Introduction to L A TEX Introduction to L A TEX Henrik Thostrup Jensen September 29 th 2006 1 About What is L A TEX How does it work Exercises Fetch slides and work from them Not everyone works with same speed/focus First a topic

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

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

Basic L A TEX. what is LaTeX?

Basic L A TEX. what is LaTeX? Basic L A TEX Erik Brunvand what is LaTeX? it s a typesetting markup language it s a set of macros that use TeX to format documents it s a powerful set of formatting commands that includes support for

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

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

VERY VERY SHORT GUIDE TO LATEX

VERY VERY SHORT GUIDE TO LATEX - a System VERY VERY SHORT GUIDE TO LATEX School of Mathematics September 2017 - a System Advantages... Disadvantages... The Basics THE BASIC IDEA A word processor allows the user to design the document

More information

Introduction to LATEX

Introduction to LATEX Introduction to L A TEX Department of Statistics, UC Berkeley January 28, 2011 1 Why L A TEX? 2 Basics 3 Typing Math 4 BibTeX 5 More Why L A TEX? Professional typesetting tool offering great control Why

More information

عمادة البحث العلمي جامعة الملك سعود

عمادة البحث العلمي جامعة الملك سعود عمادة البحث العلمي جامعة الملك سعود Introduction to Latex A very quick look at typesetting documents Dr. Amal Almohisen (based on slides by Andrei Gurtov ) Introduction Essentially a Markup Language (like

More information

Introduction to LaTeX. Paul Fodor Stony Brook University

Introduction to LaTeX. Paul Fodor Stony Brook University Introduction to LaTeX Paul Fodor Stony Brook University http://www.cs.stonybrook.edu/~cse215 LaTeX TeX is essentially a Markup Language (like HTML, CSS, JSON, XML and RTF) TeX written by Donald Knuth in

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

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

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

CS 189 L A TEX and Linux: Document Layout and Organization

CS 189 L A TEX and Linux: Document Layout and Organization CS 189 L A TEX and Linux: Document Layout and Organization (1) Robert S. Laramee Computer Science Department School of Physical Sciences Swansea University February 14, 2008 (1) Robert S. Laramee CS 189

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

What is LaTeX. Is a document markup language and document preparation system for the TeX typesetting program

What is LaTeX. Is a document markup language and document preparation system for the TeX typesetting program What is LaTeX LaTeX ( /ˈleɪtɛk/, /ˈleɪtɛx/, /ˈlɑːtɛx/, or /ˈlɑːtɛk/) Is a document markup language and document preparation system for the TeX typesetting program Refers only to the language, not to the

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

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

Using L A T E X for scientific writing

Using L A T E X for scientific writing Using L A T E X for scientific writing (part 1) www.dcs.bbk.ac.uk/~roman/latex Roman Kontchakov roman@dcs.bbk.ac.uk T E X and L A T E X T E X is a computer program created by Donald E. Knuth. It is aimed

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

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

Introduction to Latex. A workshop by Dr. Ala Eshmawi

Introduction to Latex. A workshop by Dr. Ala Eshmawi Introduction to Latex A workshop by Dr. Ala Eshmawi Introduction TeX is essentially a Markup Language (like HTML, XML and RTF) TeX written by Donald Knuth in 70 s A revolution in typesetting Latex is an

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

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

The basics of LaTeX. Cédric Buron. April 25, 2016

The basics of LaTeX. Cédric Buron. April 25, 2016 The basics of LaTeX Cédric Buron April 25, 2016 Hello fellows! Today, I introduce a very important language in my PhD, L A TEX(what a logo!). In this article, I m going to introduce very quickly the purpose,

More information

L A TEX From The Ground Up

L A TEX From The Ground Up L A TEX From The Ground Up Tim Schulte Albert-Ludwigs-Universität Freiburg Grundlagen der Künstlichen Intelligenz 9. November 2017 Why L A TEX? L A TEX is a document preparation system and markup language.

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

Introduction to L A TEX

Introduction to L A TEX Introduction to L A TEX Yuval Carmel Ben-Gurion University June 30, 2009 Yuval Carmel (Ben-Gurion University) Introduction to LATEX June 30, 2009 1 / 40 Introduction L A TEX is not a word processor! Word,

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

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

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

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

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 Books Leslie Lamport. L A TEX: A document preparation

More information

TeXnicCenter v1 Beta Frank Van Puyvlde ICT for Research K.U.Leuven

TeXnicCenter v1 Beta Frank Van Puyvlde ICT for Research K.U.Leuven TeXnicCenter v1 Beta 7.01 Frank Van Puyvlde ICT for Research K.U.Leuven March 2008 Contents 1 TeXnicCenter Installation 2 1.1 Installing TeXnicCenter........................... 2 1.2 TeXnicCenter and a

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

A Short L A TEX Introduction

A Short L A TEX Introduction A Short L A TEX Introduction Dr Will Hossack School of Physics & Astronomy tele: 50-5261 Will.Hossack@ed.ac.uk February 2016 What is L A TEX L A TEX(being Layman s-tex) is a text-formatting mark-up language,

More information

What is T E X? T E X and L A T E X Document preparation tools. Setting and casting type. What Knuth was setting. Setting and casting type

What is T E X? T E X and L A T E X Document preparation tools. Setting and casting type. What Knuth was setting. Setting and casting type T E X and L A T E X Document preparation tools This lecture will introduce software necessary to produce documents using L A T E X in the School of Computer Science. It will also show the basics of producing

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

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

Mikkel Madsen

Mikkel Madsen Mikkel Madsen latex@mikkl.dk After completing this course, you: Have an understanding of what LaTeX is Have an idea of what things can be easily accomplished in LaTeX Know where to look for help DON T

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

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

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

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 L A TEX

Introduction to L A TEX Introduction to L A TEX 2. Document structure Matemaattisten tieteiden laitos Document classes The basic document classes in L A TEX are article, report and book. They are taken into use by starting the

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

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

Latex Tutorial. CIS400 Senior Design 9/5/2013

Latex Tutorial. CIS400 Senior Design 9/5/2013 1 Latex Tutorial CIS400 Senior Design 9/5/2013 2 Outline Introducing TeX/LaTeX Benefits and potential difficulties Installation and use on Unix/Mac/Windows Compiling PDF documents from LaTeX Basic 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

My LaTeX Document. July 7, Introduction 2

My LaTeX Document. July 7, Introduction 2 My LaTeX Document Me July 7, 2017 Contents 1 Introduction 2 2 Exercises 2 2.1 Piecewise defined function...................... 2 2.2 Greek letters............................. 2 2.3 Limits.................................

More information

AASHTO Materials Standard Template Users Guide

AASHTO Materials Standard Template Users Guide AASHTO Materials Standard Template Users Guide Prepared for: National Cooperative Highway Research Program Transportation Research Board 2101 Constitution Avenue N.W. Washington, DC 20418 Prepared by:

More information

Formatting with LaTeX

Formatting with LaTeX Formatting with LaTeX Zuyuan Wang School of Mechanical Engineering Purdue University wang1707@purdue.edu June 23, 2016 Seminar @ SURF 2016 About the SURF GAs Formatting with LaTeX (02/35) 06/23/2016 Purdue

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

Useful L A TEX Commands

Useful L A TEX Commands Useful L A TEX Commands David Woods dwoods@scss.tcd.ie Document Classes These will come at the beginning of the document, generally the very first line. Use \begin{document} to start adding content, and

More information

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

LATEX Seminar Week 2 Jonathan Blair & Evan Ott. Document classes, basic math formatting, basic pictures, tables and matrices

LATEX Seminar Week 2 Jonathan Blair & Evan Ott. Document classes, basic math formatting, basic pictures, tables and matrices LATEX Seminar Week 2 Jonathan Blair & Evan Ott Document classes, basic math formatting, basic pictures, tables and matrices 1 Document Classes Used \documentclass before, here are more options: \documentclass{

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

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

LaTeX. Information Literacy II EN(IL2) Course

LaTeX. Information Literacy II EN(IL2) Course LaTeX Information Literacy II EN(IL2) Course Previous Lecture Saving plots to file Customizing plots Bar and pie charts Today Introduction to Latex - Basic commands - Structure of the document - Mathematical

More information

L A T E X FOSSEE. Department of Aerospace Engineering IIT Bombay. FOSSEE (IIT Bombay) LAT E X 1 / 58

L A T E X FOSSEE. Department of Aerospace Engineering IIT Bombay. FOSSEE (IIT Bombay) LAT E X 1 / 58 L A T E X FOSSEE Department of Aerospace Engineering IIT Bombay FOSSEE (IIT Bombay) LAT E X 1 / 58 Outline Introduction 1 Introduction 2 Adding Structure 3 Typesetting Text 4 Figures, Tables & Floats 5

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

Written & Oral Presentation: Computer Tools

Written & Oral Presentation: Computer Tools Written & Oral Presentation: Computer Tools Aleksandar Donev Courant Institute, NYU 1 donev@courant.nyu.edu 1 Course MATH-GA.2840-004, Spring 2018 February 7th, 2018 A. Donev (Courant Institute) Tools

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

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

An Introduction to. Rado Ivanov CIS400 Senior Design Tutorial September 18, 2014

An Introduction to. Rado Ivanov CIS400 Senior Design Tutorial September 18, 2014 An Introduction to Rado Ivanov CIS400 Senior Design Tutorial September 18, 2014 Today's Outline Introducing TeX/LaTeX Benefits and potential difficulties Installation and use on Unix/Mac/Windows Compiling

More information

Introduction to L A TEX

Introduction to L A TEX Introduction to L A TEX Aravind Ranganathan Graduate Assistant Engineering Library University of Cincinnati r.aravind@gmail.com Workshop Objectives Introduction to L A TEX Hands-on Hello World! Basic Document

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

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

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 LAT E X

Introduction to LAT E X Introduction to LAT E X RSI 2012 Staff Contents What is L A T E X?........................................ 1 First Example........................................ 2 Compiling...........................................

More information

LATEX TYPESETTING SYSTEM. CAAM 519, CHAPTER 3

LATEX TYPESETTING SYSTEM. CAAM 519, CHAPTER 3 LATEX TYPESETTING SYSTEM. CAAM 519, CHAPTER 3 1. Latex installation and text editors 1.1. Installation. Install Latex in your virtual machine with the following command. sudo apt get install texlive Note

More information

Introduction to L A TEX

Introduction to L A TEX Introduction to L A TEX 2. Document structure Markus Harju Mathematical Sciences 2. Document structure Johdatus LaTeXiin (2/12) a Document classes The basic document classes in L A TEX are article, report

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

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

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

Style template and guidelines for SPIE Proceedings

Style template and guidelines for SPIE Proceedings Style template and guidelines for SPIE Proceedings Anna A. Author1 a and Barry B. Author2 b a Affiliation1, Address, City, Country; b Affiliation2, Address, City, Country ABSTRACT This document shows the

More information

GROUP ASSIGNMENT. L A TEX Assignment 1/3

GROUP ASSIGNMENT. L A TEX Assignment 1/3 GROUP ASSIGNMENT L A TEX Assignment 1/3 GROUP ASSIGNMENT L A TEX Assignment 1/3 create a report in L A TEX about all the homework of the previous lectures the Report should have the following elements

More information

Table of Contents Headings:... 2 Changing text to a heading... 2 Modifying Style settings for current and future documents... 2

Table of Contents Headings:... 2 Changing text to a heading... 2 Modifying Style settings for current and future documents... 2 Table of Contents Headings:... 2 Changing text to a heading... 2 Modifying Style settings for current and future documents... 2 Navigation Pane... 4 Finding Navigation Pane... 4 Using Navigation Pane...

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

Katlenburg-Lindau, Germany. Patrick W. Daly 2011/01/27. Abstract

Katlenburg-Lindau, Germany. Patrick W. Daly 2011/01/27. Abstract Max-Planck-Institut für Sonnensystemforschung Katlenburg-Lindau, Germany The preprint Collection of L A TEX Packages Patrick W. Daly 2011/01/27 Abstract A number of L A TEX packages have been developed

More information

Outline. A Sneak Peek

Outline. A Sneak Peek Outline L A TEX Primer Things you need to know as a starter Jialin He Department of Electrical Engineering Southern Methodist University 05/31/2011 1 Introduction How LATEX works? Document structure 2

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

Introduction to Scientific Typesetting Lesson 1: Getting Started

Introduction to Scientific Typesetting Lesson 1: Getting Started Introduction to Scientific Typesetting Lesson 1: Getting Started Ryan Higginbottom January 5, 2012 1 Our First The Structure of a L A T E X Our First L A T E X The Structure of a L A T E X 2 The Weaknesses

More information

Began as TeX, in 1982 (Knuth). Purely a typesetting tool. LaTeX added macros, maintaining TeX as it s typesetting engine (Lamport).

Began as TeX, in 1982 (Knuth). Purely a typesetting tool. LaTeX added macros, maintaining TeX as it s typesetting engine (Lamport). LaTeX Began as TeX, in 1982 (Knuth). Purely a typesetting tool. LaTeX added macros, maintaining TeX as it s typesetting engine (Lamport). Now maintained by Frank Mittlebach. For an interesting interview,

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

Word Tips & Tricks. Status Bar. Add item to Status Bar To add an itme to the status bar, click on the item and a checkmark will display.

Word Tips & Tricks. Status Bar. Add item to Status Bar To add an itme to the status bar, click on the item and a checkmark will display. Status Bar The status bar is located on the bottom of the Microsoft Word window. The status bar displays information about the document such as the current page number, the word count in the document,

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

A L A T E X quick start

A L A T E X quick start 1 A L A T E X quick start 1.1 A first example When you meet a new computer language (and TEX is a language, although not a very general purpose one) the first thing to do is to write a program that outputs

More information

Guidelines for ETNA manuscripts 1

Guidelines for ETNA manuscripts 1 Guidelines for ETNA manuscripts 1 1 General formatting guidelines A manuscript for ETNA must be written in English. It may be in color provided it is equally readable when displayed in black and white.

More information

Word 2016 Advanced. North American Edition SAMPLE

Word 2016 Advanced. North American Edition SAMPLE Word 2016 Advanced Word 2016 Advanced North American Edition WORD 2016 ADVANCED Page 2 2015 Cheltenham Group Pty. Ltd. All trademarks acknowledged. E&OE. No part of this document may be copied without

More information

Corel Ventura 8 Introduction

Corel Ventura 8 Introduction Corel Ventura 8 Introduction Training Manual A! ANZAI 1998 Anzai! Inc. Corel Ventura 8 Introduction Table of Contents Section 1, Introduction...1 What Is Corel Ventura?...2 Course Objectives...3 How to

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