Workshop: A Simple Introduction to L A TEX

Size: px
Start display at page:

Download "Workshop: A Simple Introduction to L A TEX"

Transcription

1 Workshop: A Simple Introduction to L A TEX Michael P. Fix Susanne Schorpp Georgia State University 142 October 2012

2 Outline 1 Introduction 2 The Basics 3 Typesetting Text 4 Typesetting Math 5 Tables and Figures 6 Bibliography 7 Closing Statements

3 What is L A TEX? L A TEX is an alternative to WYSIWYG word processors for creating documents.

4 What is L A TEX? L A TEX is an alternative to WYSIWYG word processors for creating documents. L A TEX allows you to focus on writing your document without spending hours formatting.

5 What is L A TEX? L A TEX is an alternative to WYSIWYG word processors for creating documents. L A TEX allows you to focus on writing your document without spending hours formatting. You simply provide a few logical commands to define the structure of your document, and let L A TEX design and TEX typeset your work.

6 Why You Should Use L A TEX Your documents look professionally printed.

7 Why You Should Use L A TEX Your documents look professionally printed. While it requires a bit of time investment upfront to learn, it will save you many wasted hours later.

8 Why You Should Use L A TEX Your documents look professionally printed. While it requires a bit of time investment upfront to learn, it will save you many wasted hours later. You can typeset elegant mathematical formulae with simple commands.

9 Why You Should Use L A TEX Your documents look professionally printed. While it requires a bit of time investment upfront to learn, it will save you many wasted hours later. You can typeset elegant mathematical formulae with simple commands. Everything is free!

10 Basic Structure of the Input File For a file to be correctly processed by L A TEX there are a few essential components that must be in the file. 1 Defining the document class 2 Loading Packages 3 Beginning and ending the document

11 Document Class Definition The Document Class specifies the type of document you intent to write. For example, most stuff can be done with the article class, the book class is for longer documents, and the beamer class is used for presentations (like this one).

12 Document Class Every file must begin by specifying the document class with the following command: \documentclass[options]{class}

13 Document Class Every file must begin by specifying the document class with the following command: \documentclass[options]{class} This can be as simple as defining the class: \documentclass{article}

14 Document Class Every file must begin by specifying the document class with the following command: \documentclass[options]{class} This can be as simple as defining the class: \documentclass{article} Or can be used to specify font size, paper type, and title page, among other options. For example: \documentclass[11pt, letter]{article} Would specify that you wanted to write an article in 11 point font using letter paper. (Note: This is what I usually use.)

15 Packages Definition Basic L A TEX often does not include everything you need to include in a document. For example, if you wish to include graphics, most mathematical symbols, colored text or various other things, you will have to use Packages. Packages allow you to expand the functionality of L A TEX.

16 Packages To activate a package, the following command is used: \usepackage[options]{package}

17 Packages To activate a package, the following command is used: \usepackage[options]{package} For example, in order to typeset many mathematical symbols and formulae you need to load the follow two packages: \usepackage{amssymb} \usepackage{amsmath} Note: options are rarely used with packages.

18 Identifying Information The last items generally included in the preamble to your file are the identifying information.

19 Identifying Information The last items generally included in the preamble to your file are the identifying information. This is done with the following three commands: \title{the Title} \author{your Name} \date{the Date} or \date{\today}

20 The Body of the Document With the preamble to your input file complete, you are now ready to begin writing the body of the document. It is important to tell L A TEX when to begin the document with the following command: \begin{document}

21 The Body of the Document With the preamble to your input file complete, you are now ready to begin writing the body of the document. It is important to tell L A TEX when to begin the document with the following command: \begin{document}... and when to end the document with this command: \end{document}

22 The Body of the Document To put the title information at the top of your document, you need only insert a simple command at the top of your document.

23 The Body of the Document To put the title information at the top of your document, you need only insert a simple command at the top of your document. Simply insert the following command at the beginning of your document: \maketitle Note: You have to insert the \maketitle command after \begin{document} or your title and name will not appear.

24 Cover Pages Alternatively, you may desire to create a cover page for your document rather than simply having the title information at the top of the first page.

25 Cover Pages Alternatively, you may desire to create a cover page for your document rather than simply having the title information at the top of the first page. This is very simple and requires only that you enter the following series of commands: \begin{titlepage} \maketitle \thispagestyle{empty} %To avoid page number on cover page \end{titlepage}

26 A Simple Document Now that we ve got the basics down, we can put it all together to create a simple document. Try this: \documentclass{article} \title{a Short Paper} \author{me} \date{\today} \begin{document} \maketitle This is a very short paper! I should get an A for being concise. \end{document}

27 A Simple Document If you were successful your document should appear like this: A Short Paper Me July 14, 2009 This is a very short paper! I should get an A for being concise.

28 A Technical Note File Types Each time you create a new document, several files will be created. The most important of these is your input file (i.e. the file you create in your text editor).

29 A Technical Note File Types Each time you create a new document, several files will be created. The most important of these is your input file (i.e. the file you create in your text editor). This file will look something like: filename.tex

30 A Technical Note File Types Each time you create a new document, several files will be created. The most important of these is your input file (i.e. the file you create in your text editor). This file will look something like: filename.tex Your output file will be saved in the same folder as something like: filename.pdf or filename.ps

31 A Technical Note File Types Each time you create a new document, several files will be created. The most important of these is your input file (i.e. the file you create in your text editor). This file will look something like: filename.tex Your output file will be saved in the same folder as something like: filename.pdf or filename.ps There will also be numerous other files created with extensions like: filename.log, filename.snm, filename.vrb, etc.

32 Writing Text for Your Document For me, one of the greatest things about creating L A TEX is the simplicity of writing your document.

33 Writing Text for Your Document For me, one of the greatest things about creating L A TEX is the simplicity of writing your document. Since you are working with a text editor, you are overwhelmed with the graphical interface of WYSIWYG word processors.

34 Writing Text for Your Document For me, one of the greatest things about creating L A TEX is the simplicity of writing your document. Since you are working with a text editor, you are overwhelmed with the graphical interface of WYSIWYG word processors. It is not necessary to hunt through menu bars to find everything you need to properly typeset your document.

35 Writing Text for Your Document For me, one of the greatest things about creating L A TEX is the simplicity of writing your document. Since you are working with a text editor, you are overwhelmed with the graphical interface of WYSIWYG word processors. It is not necessary to hunt through menu bars to find everything you need to properly typeset your document. All that is required is for you to learn a few simple (and easy to look up) commands to instruct the program and it does all the work for you.

36 Writing Text for Your Document For me, one of the greatest things about creating L A TEX is the simplicity of writing your document. Since you are working with a text editor, you are overwhelmed with the graphical interface of WYSIWYG word processors. It is not necessary to hunt through menu bars to find everything you need to properly typeset your document. All that is required is for you to learn a few simple (and easy to look up) commands to instruct the program and it does all the work for you. That is what is section of the presentation is all about...

37 Spacing Spacing in L A TEX is largely automatic. Like a professionally printed book or journal, it ensures relatively uniform spacing between characters, words, lines, and paragraphs. Thus you do not need to worry about these details. But there are a few things you must keep in mind.

38 The Essentials for Proper Spacing I First, you must note that spacing between words is treat uniformly. This regardless of whether you type: The dog ran fast. or The dog ran fast. or The dog ran fast.

39 The Essentials for Proper Spacing I First, you must note that spacing between words is treat uniformly. This regardless of whether you type: The dog ran fast. or The dog ran fast. or The dog ran fast. The output will be the same: The dog ran fast.

40 The Essentials for Proper Spacing II For paragraphs, L A TEX also automatically intents the first line and provides proper spacing. You simply need to let it know you want to start a new paragraph by leaving a blank line in your input file. For example: This is a paragraph. This is the next paragraph. instead of: This is a paragraph. This is the next paragraph.

41 The Essentials for Proper Spacing III Finally, note that while all of this spacing is automatic, you can tell L A TEX to do specific things when necessary. To create a line break use: \\ or \\* to start a new line without starting a new paragraph.

42 The Essentials for Proper Spacing III Finally, note that while all of this spacing is automatic, you can tell L A TEX to do specific things when necessary. To create a line break use: \\ or \\* to start a new line without starting a new paragraph. For a page break, you need to use: \newpage

43 Emphasizing Text Sometimes it is necessary to italicize or bold face text. To do this you use the following commands: \textit{... } or {\it... } for italicized text.

44 Emphasizing Text Sometimes it is necessary to italicize or bold face text. To do this you use the following commands: \textit{... } or {\it... } for italicized text. Or \textbf{... } or {\bf... } for bold faced text. Or \texttt{... } or {\tt... } for typewriter style text.

45 Special Characters L A TEX has commands for almost any special character that you could ever need. Here are some common examples.

46 Special Characters Quotation Marks For quotation marks you cannot use the " key as you would in a word processor, or you will get a strange output.

47 Special Characters Quotation Marks For quotation marks you cannot use the " key as you would in a word processor, or you will get a strange output. Instead, you should use two characters to open a quotation and two to close a quotation.

48 Special Characters Quotation Marks For quotation marks you cannot use the " key as you would in a word processor, or you will get a strange output. Instead, you should use two characters to open a quotation and two to close a quotation. Similarly, you use a single and for single quotes.

49 Special Characters Hyphens and Dashes Three types of dashes are recognized in L A TEX.

50 Special Characters Hyphens and Dashes Three types of dashes are recognized in L A TEX. A normal hyphen (-) is made simply by typing - as normal

51 Special Characters Hyphens and Dashes Three types of dashes are recognized in L A TEX. A normal hyphen (-) is made simply by typing - as normal An en-dash ( ), is made by typing --.

52 Special Characters Hyphens and Dashes Three types of dashes are recognized in L A TEX. A normal hyphen (-) is made simply by typing - as normal An en-dash ( ), is made by typing --. An em-dash ( ), is made by typing ---.

53 Special Characters Hyphens and Dashes Three types of dashes are recognized in L A TEX. A normal hyphen (-) is made simply by typing - as normal An en-dash ( ), is made by typing --. An em-dash ( ), is made by typing ---. Additionally, a negative sign is made simply by typing - while in math mode (will discuss this later), or by putting it between two $ marks. For example, typing $-6$ will give you 6.

54 Special Characters Others \& &

55 Special Characters Others \& & \% %

56 Special Characters Others \& & \% % \ldots...

57 Special Characters Others \& & \% % \ldots... The Google is very useful for locating any symbols you might ever need

58 Section Headings L A TEX supports various ways to subdivide your document into sections. The most common of these are: \section{... } or \section*{... } \subsection{... } or \subsection*{... } \subsubsection{... } or \subsubsection*{... }

59 Section Headings L A TEX supports various ways to subdivide your document into sections. The most common of these are: \section{... } or \section*{... } \subsection{... } or \subsection*{... } \subsubsection{... } or \subsubsection*{... } Note: the section, subsection, and subsubsection commands will automatically number the sections. The section*, subsection*, and subsubsection* commands print only the name of the section.

60 Footnotes Inserting footnotes is extremely simple. Simply insert the following command where you would like the footnote to appear. \footnote{... }

61 Footnotes Inserting footnotes is extremely simple. Simply insert the following command where you would like the footnote to appear. \footnote{... }... and simply type the text of the footnote inside the braces.

62 Environments Definition Environments are used in L A TEX for writing special kinds of text. Think of them as creating a special section of your document that follows a different set of rules.

63 Environments Definition Environments are used in L A TEX for writing special kinds of text. Think of them as creating a special section of your document that follows a different set of rules. To use an environment, you use the following commands: \begin{environment} and \end{environment}

64 Environments Definition Environments are used in L A TEX for writing special kinds of text. Think of them as creating a special section of your document that follows a different set of rules. To use an environment, you use the following commands: \begin{environment} and \end{environment}... with the text entered between the two commands.

65 Environments Lists Making lists in L A TEX is very quick and easy.

66 Environments Lists Making lists in L A TEX is very quick and easy. Additionally, you control the nesting of lists, so you never have to deal with the auto-formatting errors in MS Word.

67 Environments Lists Making lists in L A TEX is very quick and easy. Additionally, you control the nesting of lists, so you never have to deal with the auto-formatting errors in MS Word. The two most common types of lists use the enumerate environment (for a numbered list) or the itemize environment (for items where item are identified by a symbol).

68 Environments Lists To make a list simply begin the environment: \begin{itemize}

69 Environments Lists To make a list simply begin the environment: \begin{itemize} Then, note each item with the \item command. For example: \item Item 1 \item Item 2 \item Item 3

70 Environments Lists To make a list simply begin the environment: \begin{itemize} Then, note each item with the \item command. For example: \item Item 1 \item Item 2 \item Item 3 Finally, end the environment: \end{itemize}

71 Environments Lists enumerate works the same as itemize except the list will be numbered.

72 Environments Lists enumerate works the same as itemize except the list will be numbered. Additionally, lists can be easily nested. Simply add another \begin{itemize} command where you would like to begin the nested list.

73 Environments Lists enumerate works the same as itemize except the list will be numbered. Additionally, lists can be easily nested. Simply add another \begin{itemize} command where you would like to begin the nested list. Further, enumerate lists can be nested within itemize lists and vise versa.

74 Environments Lists Try the following example: \documentclass{article} \title{a Simple List} \author{me} \begin{document} \maketitle \begin{enumerate} \item This is the first item. \item This is the second item. \begin{itemize} \item I like the second item. \item {\it It is good}. \end{itemize} \item This is the third --- and last --- item. \end{enumerate} \end{document}

75 Environments Lists You document should look like this: A Simple List Me October 11, This is the first item. 2. This is the second item. I like the second item. It is good. 3. This is the third and last item.

76 Environments Quote The quote environment is useful for long quotes that need to be set off from the rest of the text.

77 Environments Quote The quote environment is useful for long quotes that need to be set off from the rest of the text. \begin{quote}

78 Environments Quote The quote environment is useful for long quotes that need to be set off from the rest of the text. \begin{quote} Enter the text you are quoting.

79 Environments Quote The quote environment is useful for long quotes that need to be set off from the rest of the text. \begin{quote} Enter the text you are quoting. Then, end the quote environment: \end{quote}

80 Environments Abstract The abstract environment is used for making abstracts for scholarly papers.

81 Environments Abstract The abstract environment is used for making abstracts for scholarly papers. It works just like the other environments.

82 Environments Abstract The abstract environment is used for making abstracts for scholarly papers. It works just like the other environments. Simply write the text of your abstract between the commands to begin and end the environment. \begin{abstract} This is an abstract \end{abstract}

83 Environments Others There are many additional environments available

84 Environments Others There are many additional environments available Excluding ones for mathematics (to be discussed in the next section) some of the more common are:

85 Environments Others There are many additional environments available Excluding ones for mathematics (to be discussed in the next section) some of the more common are: flushleft, flushright, and center change the alignment of the text inside the environment.

86 Environments Others There are many additional environments available Excluding ones for mathematics (to be discussed in the next section) some of the more common are: flushleft, flushright, and center change the alignment of the text inside the environment. tabular is used to create tables. We will discuss this later.

87 Introduction to Typesetting Math in L A TEX As I m sure you are well aware, the ability to typeset mathematical formulae with an elegance unmatched by any other program is the greatest strength of L A TEX.

88 Introduction to Typesetting Math in L A TEX As I m sure you are well aware, the ability to typeset mathematical formulae with an elegance unmatched by any other program is the greatest strength of L A TEX. It would be impossible to show you everything you can possibly do, without spending days waking through example after example.

89 Introduction to Typesetting Math in L A TEX As I m sure you are well aware, the ability to typeset mathematical formulae with an elegance unmatched by any other program is the greatest strength of L A TEX. It would be impossible to show you everything you can possibly do, without spending days waking through example after example. Thus, I am simply going to provide a brief overview to show you how it s done.

90 Introduction to Typesetting Math in L A TEX As I m sure you are well aware, the ability to typeset mathematical formulae with an elegance unmatched by any other program is the greatest strength of L A TEX. It would be impossible to show you everything you can possibly do, without spending days waking through example after example. Thus, I am simply going to provide a brief overview to show you how it s done. Fortunately, there are countless reference sources available for anything you could ever need to do.

91 A Note on Packages Just about any mathematical symbol or formulae you could ever need to created is contained in AMS-L A TEX.

92 A Note on Packages Just about any mathematical symbol or formulae you could ever need to created is contained in AMS-L A TEX. This was created by the American Mathematical Society and is as comprehensive as possible it is also how they create all of their documents.

93 A Note on Packages Just about any mathematical symbol or formulae you could ever need to created is contained in AMS-L A TEX. This was created by the American Mathematical Society and is as comprehensive as possible it is also how they create all of their documents. As it is included in any basic installation of L A TEX, you do not need to install anything extra.

94 A Note on Packages Just about any mathematical symbol or formulae you could ever need to created is contained in AMS-L A TEX. This was created by the American Mathematical Society and is as comprehensive as possible it is also how they create all of their documents. As it is included in any basic installation of L A TEX, you do not need to install anything extra. Just remember to load two package every time you start: \usepackage{amssymb} \usepackage{amsmath}

95 A Note on Environments All mathematical formulae and equations must be written inside special environments to appear correctly in your output file.

96 A Note on Environments All mathematical formulae and equations must be written inside special environments to appear correctly in your output file. The two most common are: equation for numbered equations and equation* for unnumbered ones.

97 A Note on Environments All mathematical formulae and equations must be written inside special environments to appear correctly in your output file. The two most common are: equation for numbered equations and equation* for unnumbered ones. Alternatively, if you wish to include mathematical symbols or formulas in the body of your text, you should use: $... $

98 A Note on Environments These are only a few of the many environments for typesetting mathematical formulae.

99 A Note on Environments These are only a few of the many environments for typesetting mathematical formulae. Many others are available for special purposes, such as: Aligning a series of equations (align)

100 A Note on Environments These are only a few of the many environments for typesetting mathematical formulae. Many others are available for special purposes, such as: Aligning a series of equations (align) Allowing a long equation to be split over multiple lines (multiline)

101 A Note on Environments These are only a few of the many environments for typesetting mathematical formulae. Many others are available for special purposes, such as: Aligning a series of equations (align) Allowing a long equation to be split over multiple lines (multiline)... and many others

102 A Note on Environments These are only a few of the many environments for typesetting mathematical formulae. Many others are available for special purposes, such as: Aligning a series of equations (align) Allowing a long equation to be split over multiple lines (multiline)... and many others The document A Short Math Guide to L A TEX (Downs 2002), provides details on these environments, and an extensive list of commonly used mathematical symbols.

103 Math is Easy as π We now know everything we need to know to typeset simple equations in L A TEX.

104 Math is Easy as π We now know everything we need to know to typeset simple equations in L A TEX. Let s try some examples.

105 Math is Easy as π We now know everything we need to know to typeset simple equations in L A TEX. Let s try some examples. First, open a new document in your text editor and create the preamble: \documentclass{article} \usepackage{amssymb} \usepackage{amsmath} \title{some Simple Math} \author{me} \begin{document} \maketitle

106 Math is Easy as π Example 1: Let s say we want to include some math in the body of a paragraph: Einstein s most famous equation is $e = mc ^ 2$.\\

107 Math is Easy as π Example 2: Let s say we want to set off an important equation, but we do not want it to be numbered: Another important contribution to scientific knowledge is the Pythagorean Theorem.\\ \begin{equation*} a^2 + b^2 = c^2 \end{equation*}

108 Math is Easy as π Example 3: Finally, let s say we need to use multiple equations and we want to number them. Since we know that: \begin{equation} 3+3=6 \end{equation} and we know that: \begin{equation} 2*3 =6 \end{equation} Then, from (1) and (2), we know that: \begin{equation} 2*3 =3+3 \end{equation}

109 Math is Easy as π Now just remember to end your document: \end{document}

110 Math is Easy as π Now just remember to end your document: \end{document} Now, typeset your document and compare it to the one on the following slide.

111 Math is Easy as π Simple Math Me October 11, 2011 Einstein s most famous equation is e = mc 2. Another important contribution to scientific knowledge is the Pythagorean Theorem. Since we know that: and we know that: Then, from (1) and (2), we know that: a 2 + b 2 = c = 6 (1) 2 3 = 6 (2) 2 3 = (3)

112 Some Common Commands There is an almost endless list of mathematical commands that I could show you.

113 Some Common Commands There is an almost endless list of mathematical commands that I could show you. However, the reality is that you will never need to use many of them we re not mathematicians after all!

114 Some Common Commands There is an almost endless list of mathematical commands that I could show you. However, the reality is that you will never need to use many of them we re not mathematicians after all! So, in the next few slides, I will cover some of the one s that I use the most frequently.

115 Some Common Commands There is an almost endless list of mathematical commands that I could show you. However, the reality is that you will never need to use many of them we re not mathematicians after all! So, in the next few slides, I will cover some of the one s that I use the most frequently. And remember, there are a ton of resources for this information, so most people will never find the need to memorize any except those they use with great regularity.

116 Some Common Commands A Note For all the examples that follow, I will use the $... $ format (i.e. for including math within the body of a paragraph). Remember that when using the equation, equation*, or any other math environment, it is unnecessary to include the $ symbols.

117 Some Common Commands Greek Letters Greek letters are commonly used and one of the simplest things to remember.

118 Some Common Commands Greek Letters Greek letters are commonly used and one of the simplest things to remember. Lower case letters are simply their name in all lower case letter preceded by a \

119 Some Common Commands Greek Letters Greek letters are commonly used and one of the simplest things to remember. Lower case letters are simply their name in all lower case letter preceded by a \... for upper cases Greek letters you simply capitalize the first letter of the name. For example: $\alpha \beta \gamma \Pi \Sigma \Delta$

120 Some Common Commands Greek Letters Greek letters are commonly used and one of the simplest things to remember. Lower case letters are simply their name in all lower case letter preceded by a \... for upper cases Greek letters you simply capitalize the first letter of the name. For example: $\alpha \beta \gamma \Pi \Sigma \Delta$ Gives you: αβγπσ

121 Some Common Commands Fractions There are a few ways to make fractions in L A TEX. For simple usually numeric fractions, we may want them typeset as 1/2. We can do this by using: $1/2$

122 Some Common Commands Fractions There are a few ways to make fractions in L A TEX. For simple usually numeric fractions, we may want them typeset as 1/2. We can do this by using: $1/2$ Sometimes we want a more traditional appearance for our fractions, especially when they are more complex like a+b c+d. For this we would use: $\frac{a+b}{c+d}$

123 Some Common Commands Exponents and Subscripts As we saw in the example equations earlier, to typeset exponents we simply enter a ^ prior to the exponent. Thus, to get n k, we simply need to enter: $n^k$

124 Some Common Commands Exponents and Subscripts As we saw in the example equations earlier, to typeset exponents we simply enter a ^ prior to the exponent. Thus, to get n k, we simply need to enter: $n^k$ For subscripts, we simply insert the _ character before the subscript. Thus, to get n k, we simply enter: $n_k$

125 Some Common Commands Grouping Symbols Often in typesetting mathematical expressions we need to use grouping symbols such as parentheses (... ), brackets [... ], braces {... }, and absolute value symbols....

126 Some Common Commands Grouping Symbols Often in typesetting mathematical expressions we need to use grouping symbols such as parentheses (... ), brackets [... ], braces {... }, and absolute value symbols.... Making each these symbols is quite simple: (... ) for parentheses [... ] for brackets \{... \} for braces $\vert$ for absolute values

127 Some Common Commands Grouping Symbols Often in typesetting mathematical expressions we need to use grouping symbols such as parentheses (... ), brackets [... ], braces {... }, and absolute value symbols.... Making each these symbols is quite simple: (... ) for parentheses [... ] for brackets \{... \} for braces $\vert$ for absolute values Note: Only the absolute value symbols require the $, when not in math mode.

128 Some Common Commands Grouping Symbols There are commands that allow you to manually control the size of your grouping symbols: $\big($ $\Big($ $\bigg($ $\Bigg($ or $\big\{$ $\Big\{$ $\bigg\{$ $\Bigg\{$ or $\big\vert$ $\Big\vert$ $\bigg\vert$ $\Bigg\vert$

129 Some Common Commands Grouping Symbols There are commands that allow you to manually control the size of your grouping symbols: $\big($ $\Big($ $\bigg($ $\Bigg($ or $\big\{$ $\Big\{$ $\bigg\{$ $\Bigg\{$ or $\big\vert$ $\Big\vert$ $\bigg\vert$ $\Bigg\vert$... gives you (((( { {{{

130 Typesetting Math Concluding Comments I couldn t possibly go through everything you may ever need to do with respect to typesetting mathematical symbols and formulae.

131 Typesetting Math Concluding Comments I couldn t possibly go through everything you may ever need to do with respect to typesetting mathematical symbols and formulae. However, this introduction should provide you with all the tools you need.

132 Typesetting Math Concluding Comments I couldn t possibly go through everything you may ever need to do with respect to typesetting mathematical symbols and formulae. However, this introduction should provide you with all the tools you need. Regardless of how simple your application: y = X β + ɛ

133 Typesetting Math Concluding Comments I couldn t possibly go through everything you may ever need to do with respect to typesetting mathematical symbols and formulae. However, this introduction should provide you with all the tools you need. Regardless of how simple your application: y = X β + ɛ... or how complex: f nb (y i λ, σ 2 ) = ( ) Γ λ σ y ( i σ ( ) 2 ) 1 y i!γ λ σ 2 y i (σ 2 ) λ σ 2 1 σ 2 1

134 Making Tables in L A TEX Making tables in L A TEX requires a relatively simple series of commands, however it is important that you follow a few simple rules.

135 Making Tables in L A TEX Making tables in L A TEX requires a relatively simple series of commands, however it is important that you follow a few simple rules. Let s start with how to make a very simple 2 x 2 table like the one below: x 1 x 2 y y 2.6.4

136 Making Tables in L A TEX The first thing that we need to keep in mind when making table is that they are made inside the tabular environment. \begin{tabular}{specifications}

137 Making Tables in L A TEX The first thing that we need to keep in mind when making table is that they are made inside the tabular environment. \begin{tabular}{specifications} Unlike many other environments, we must make an additional declaration in in \begin{environment} command. Specifically, we must define the specifications for our table.

138 Making Tables in L A TEX Specifications In defining the specifications for our table, we must define three things:

139 Making Tables in L A TEX Specifications In defining the specifications for our table, we must define three things: 1 The number of columns.

140 Making Tables in L A TEX Specifications In defining the specifications for our table, we must define three things: 1 The number of columns. 2 The alignment of each column.

141 Making Tables in L A TEX Specifications In defining the specifications for our table, we must define three things: 1 The number of columns. 2 The alignment of each column. 3 Whether we want vertical lines on the left margin, right margin, and/or between any of the columns.

142 Making Tables in L A TEX Specifications We use the following format to declare our table specification: \begin{tabular}{ l c c }

143 Making Tables in L A TEX Specifications We use the following format to declare our table specification: \begin{tabular}{ l c c } Each entry represents a column. Thus the above example would be for a table with three columns.

144 Making Tables in L A TEX Specifications We use the following format to declare our table specification: \begin{tabular}{ l c c } Each entry represents a column. Thus the above example would be for a table with three columns. The letters tell us how we want each column aligned, and we use: l c r left-aligned column centered column right-aligned column

145 Making Tables in L A TEX Specifications We use the following format to declare our table specification: \begin{tabular}{ l c c } Each entry represents a column. Thus the above example would be for a table with three columns. The letters tell us how we want each column aligned, and we use: l c r left-aligned column centered column right-aligned column Thus in the example, the first column is left-aligned, the second is centered, and the last is also centered.

146 Making Tables in L A TEX Specifications Finally, we must also declare any vertical lines we would like to have appear in our table.

147 Making Tables in L A TEX Specifications Finally, we must also declare any vertical lines we would like to have appear in our table. To do this, we use the following symbols: vertical line double vertical line

148 Making Tables in L A TEX Specifications Finally, we must also declare any vertical lines we would like to have appear in our table. To do this, we use the following symbols: vertical line double vertical line Since our example has a line on each side for the edge of the table and a line between the first and second column, we must declare this in our specifications: \begin{tabular}{ l c c }

149 Making Tables in L A TEX Additional Commands Before we can fill in our table, we need to familiarize ourselves with three more commands.

150 Making Tables in L A TEX Additional Commands Before we can fill in our table, we need to familiarize ourselves with three more commands. First, we need to know how to make the horizontal lines at the top and bottom of our table and after the first row. To do this we use: \hline

151 Making Tables in L A TEX Additional Commands Before we can fill in our table, we need to familiarize ourselves with three more commands. First, we need to know how to make the horizontal lines at the top and bottom of our table and after the first row. To do this we use: \hline Second, we need a symbol to separate the data for each column within a single row. For this we use: &

152 Making Tables in L A TEX Additional Commands Before we can fill in our table, we need to familiarize ourselves with three more commands. First, we need to know how to make the horizontal lines at the top and bottom of our table and after the first row. To do this we use: \hline Second, we need a symbol to separate the data for each column within a single row. For this we use: & Finally, we need a symbol to separate the rows of our table. For this we use: \\

153 Making Tables in L A TEX Putting It Together I Now we know how to make a table in L A TEX.

154 Making Tables in L A TEX Putting It Together I Now we know how to make a table in L A TEX. Let s look at the example again and then we will go through how to put it all together. x 1 x 2 y y 2.6.4

155 Making Tables in L A TEX Putting It Together II The first step is to enter the tabular environment and declare the specifications: \begin{tabular}{ l c c }

156 Making Tables in L A TEX Putting It Together III Next, we declare that we want a horizontal line at the top of our table: \hline

157 Making Tables in L A TEX Putting It Together IV Now we can enter our first line of information. Since the first column is empty we simply leave a blank space, prior to our first column separator ( &).

158 Making Tables in L A TEX Putting It Together IV Now we can enter our first line of information. Since the first column is empty we simply leave a blank space, prior to our first column separator ( &). Then, we enter the information for our second column, another &, the information for the third column, and a row separator (\\). & $x_1$ & $x_2$ \\

159 Making Tables in L A TEX Putting It Together V Now, since we want a horizontal line after this row, we can enter another: \hline

160 Making Tables in L A TEX Putting It Together V Now, since we want a horizontal line after this row, we can enter another: \hline Next we enter the information we want to appear in the final two rows: $y_1$ &.4 &.6 \\ $y_2$ &.6 &.4 \\

161 Making Tables in L A TEX Putting It Together VI Since we want another horizontal line at the bottom of our table we need one final: \hline

162 Making Tables in L A TEX Putting It Together VI Since we want another horizontal line at the bottom of our table we need one final: \hline Finally, we need to exit the tabular environment: \end{tabular}

163 Making Tables in L A TEX A Note on Spacing While spacing makes little technical difference in the tabular environment, you should carefully align your column separators when making a table with many rows.

164 Making Tables in L A TEX A Note on Spacing While spacing makes little technical difference in the tabular environment, you should carefully align your column separators when making a table with many rows. Consider the following example. Each of the lines below will result in the same output: $y_1$ &.4 &.6 \\ $y_1$ &.4 &.6 \\ $y_1$ &.4 &.6 \\

165 Making Tables in L A TEX A Note on Spacing However, when you have multiple rows of unaligned data: $x_1$ &.24 &.36 &.81 \\ $x_2$ &.44 &.63 &.32 \\ $x_3$ &.23 &.4 &.6 \\ $x_4$ &.64 &.32 & 12 \\

166 Making Tables in L A TEX A Note on Spacing However, when you have multiple rows of unaligned data: $x_1$ &.24 &.36 &.81 \\ $x_2$ &.44 &.63 &.32 \\ $x_3$ &.23 &.4 &.6 \\ $x_4$ &.64 &.32 & 12 \\ It is incredibly difficult to find errors in your input file should one occur, or should you need to go back later and edit your table.

167 Making Tables in L A TEX The table environment You can place your table into the table environment. That will allow you to assign each table a caption. Latex will also create a running counter for your tables to generate a List of Tables

168 Making Tables in L A TEX The table environment You can place your table into the table environment. That will allow you to assign each table a caption. Latex will also create a running counter for your tables to generate a List of Tables \begin{table} \caption{predicted Probabilities} \begin{tabular}... \end{tabular} \end{table}

169 Making Tables in L A TEX A Few Other Things This should provide a good grasp on the basics of the tabular environment. There are several resources out there that can provide you with any details you may need.

170 Making Tables in L A TEX A Few Other Things This should provide a good grasp on the basics of the tabular environment. There are several resources out there that can provide you with any details you may need.... A good place to start is:

171 Making Tables in L A TEX A Few Other Things This should provide a good grasp on the basics of the tabular environment. There are several resources out there that can provide you with any details you may need.... A good place to start is: Remember that you may have to load additional packages in the front end of your document for some features.

172 Making Tables in L A TEX A Few Other Things While it may seem a bit complicated to produce tables in L A TEX, they

173 Making Tables in L A TEX A Few Other Things While it may seem a bit complicated to produce tables in L A TEX, they 1... look professional

174 Making Tables in L A TEX A Few Other Things While it may seem a bit complicated to produce tables in L A TEX, they 1... look professional 2... can save time in the long run

175 Making Tables in L A TEX A Few Other Things Both for STATA and R, commands for automated L A TEX output exist.

176 Making Tables in L A TEX A Few Other Things Both for STATA and R, commands for automated L A TEX output exist. In other words: You can...

177 Making Tables in L A TEX A Few Other Things Both for STATA and R, commands for automated L A TEX output exist. In other words: You can... Run your model(s) Have the program generate the table for you Copy/paste it into your file

178 Making Tables in L A TEX STATA Using the estout package in STATA:

179 Making Tables in L A TEX STATA Using the estout package in STATA: run model1 estimates store model1

180 Making Tables in L A TEX STATA Using the estout package in STATA: run model1 estimates store model1 run model2 estimates store model2

181 Making Tables in L A TEX STATA Using the estout package in STATA: run model1 estimates store model1 run model2 estimates store model2 estout model1 model2, cells("b(star fmt(3)) se(fmt(3))") stats(n chi2, star(chi2)) style(tex) label

182 Making Tables in L A TEX STATA... would produce the following output in STATA: & model1 & & model2 & & b & se& b & Government Win & & & & Afghanistan/Iraq War& 1.052* & 0.483& 0.940* & Casualties & * & & * & PM Approval & & 0.012& & Rally & & 0.874& & Human Rights Act & & 0.525& & Casualties*Approval & 0.989* & 0.472& 0.663* & Ideology & & 0.372& & _cons & & 0.704& & N & & & & chi2 & * & & * &

183 Making Tables in L A TEX STATA... copy/pasting it into your L A TEX file produces: model1 model2 b se b se Government Win Afghanistan/Iraq War 1.052* * Casualties * * PM Approval Rally Human Rights Act Casualties*Approval 0.989* * Ideology Constant N chi * *

184 Making Tables in L A TEX Concluding Notes The key is to be careful in declaring the specifications for your table, and ensuring that all data gets entered properly and in the correct location.

185 Making Tables in L A TEX Concluding Notes The key is to be careful in declaring the specifications for your table, and ensuring that all data gets entered properly and in the correct location. You can automate much of the tedious process by letting your statistical software do the work for you Many pages on the web are dedicated to helping you draft your table in L A TEX if you ever get stuck

186 A Note on Importing Figures Importing figures into your L A TEX is very simple.

187 A Note on Importing Figures Importing figures into your L A TEX is very simple. Figures are made within the figure environment: \begin{figure}[placement]

188 A Note on Importing Figures Importing figures into your L A TEX is very simple. Figures are made within the figure environment: \begin{figure}[placement] Where the placement option takes the following values: h here (the exact location) t at the top of the page b at the bottom of the page p on a special page for floating bodies

189 A Note on Importing Figures Importing figures into your L A TEX is very simple. Figures are made within the figure environment: \begin{figure}[placement] Where the placement option takes the following values: h here (the exact location) t at the top of the page b at the bottom of the page p on a special page for floating bodies Note: the placement option is often left blank with the default [tbp].

190 A Note on Importing Figures An example should clarify:

191 A Note on Importing Figures An example should clarify: Say we to import a picture into our document. We could use the following commands: \begin{figure} \centering \includegraphics[scale=.5]{baby.jpg} \caption{cute Kid!} \end{figure}

192 A Note on Importing Figures... to get: Figure: Cute Kid!

193 A Note on Importing Figures Remember to keep in mind that for this to work the file you want to import must be located in the proper folder.

194 A Note on Importing Figures Remember to keep in mind that for this to work the file you want to import must be located in the proper folder. This generally requires that it be stored in the same folder as the.tex file

195 A Note on Importing Figures Remember to keep in mind that for this to work the file you want to import must be located in the proper folder. This generally requires that it be stored in the same folder as the.tex file Finally, note that his only works with certain file types. While not an exhaustive list, some of the most common include pdf, jpg, png, and eps.

196 Introduction to Bibliographies Bibliographies are tedious work. L A TEX will do much of the work for you.

197 Introduction to Bibliographies Bibliographies are tedious work. L A TEX will do much of the work for you. For that you will need a BibTEXfile that contains the bibliographic information on the works you may cite

198 Introduction to Bibliographies Bibliographies are tedious work. L A TEX will do much of the work for you. For that you will need a BibTEXfile that contains the bibliographic information on the works you may cite The entries in the BibTEXfile will look something like title = {Legislative Leviathan}, publisher = {University of California Press}, year = {1993}, author = {Cox, Gary W. and Matthew D. McCubbins}, address = {Berkeley} }

199 Introduction to Bibliographies Bibliographies are tedious work. L A TEX will do much of the work for you. For that you will need a BibTEXfile that contains the bibliographic information on the works you may cite The entries in the BibTEXfile will look something like title = {Legislative Leviathan}, publisher = {University of California Press}, year = {1993}, author = {Cox, Gary W. and Matthew D. McCubbins}, address = {Berkeley} } Where Cox1993 is what we call a Marker

200 Citing with BibTEX You will need to tell L A TEX which citation style to use

201 Citing with BibTEX You will need to tell L A TEX which citation style to use Specifically, we recommend using the natbib package which provides style files consistent with most of the major citation formats (including APSA). To do this you need to add the following lines to your preamble: \usepackage{natbib} \bibpunct{(}{)}{;}{a}{}{;} \bibliographystyle{name of style file}

202 Citing with BibTEX You will need to tell L A TEX which citation style to use Specifically, we recommend using the natbib package which provides style files consistent with most of the major citation formats (including APSA). To do this you need to add the following lines to your preamble: \usepackage{natbib} \bibpunct{(}{)}{;}{a}{}{;} \bibliographystyle{name of style file} Note that the apsr style file included in the harvard and natbib packages is NOT fully consistent with the APSA style manual. Michael Fix and Susanne Schorpp provide a corrected version available from the Society of Political Methodology.

203 Citing in L A TEX Back to our example

204 Citing in L A TEX Back to our title = {Legislative Leviathan}, publisher = {University of California Press}, year = {1993}, author = {Cox, Gary W. and Matthew D. McCubbins}, address = {Berkeley} }

205 Citing in L A TEX Back to our title = {Legislative Leviathan}, publisher = {University of California Press}, year = {1993}, author = {Cox, Gary W. and Matthew D. McCubbins}, address = {Berkeley} } Where Cox1993 is what we call a Marker

206 Citing in L A TEX The marker can be used to cite the item within the document as follows:

207 Citing in L A TEX The marker can be used to cite the item within the document as follows: \cite{cox1993}

208 Citing in L A TEX The marker can be used to cite the item within the document as follows: \cite{cox1993}... which will lead to the following output: (Cox and McCubbins 1993)

209 Citing in L A TEX Example: Typing this: According to \citet{cox1993}, as well as other work on the subject \citep{carmines1987,kiewiet1988}, political science is a really important subject. Will give you the following output: According to Cox and McCubbins (1993), as well as other work on the subject (Carmines, McIver, and Stimson 1987; Kiewiet and McCubbins 1988), political science is a really important subject.

210 Citing in L A TEX When using BibTEX you generate a separate file with all your references with the extension.bib

211 Citing in L A TEX When using BibTEX you generate a separate file with all your references with the extension.bib Using a reference manager such as JabRef (or Zotero) simplifies and automates this process

212 Bibliographies with BibTEX Finally, at the end of the document, where you would like your reference pages to appear, you add the following line: \newpage \bibliography{filename.bib}

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

PRISM Introduction to L A TEX

PRISM Introduction to L A TEX PRISM to L A TEX Matt Hitt & Ben Jones PRISM Department of Political Science hitt.23@osu.edu jones.2781@osu.edu January 20, 2011 LaTeX: What is it and why should you use it? LaTeX (pronounced lah-tech

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

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

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

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

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

An Interactive Introduction to L A TEX. Part 2: Structured Documents & More. Dr John D. Lees-Miller. writel A TEX.

An Interactive Introduction to L A TEX. Part 2: Structured Documents & More. Dr John D. Lees-Miller. writel A TEX. An Interactive Introduction to L A TEX Part 2: Structured Documents & More Dr John D. Lees-Miller writel A TEX February 27, 2013 Outline Structured Documents Title and Abstract Sections Labels and Cross-References

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

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

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

Lecture 3-Introduction to Latex (II)

Lecture 3-Introduction to Latex (II) ECON 6009 Graduate Seminar Memorial University of Newfoundland Lecture 3-Introduction to Latex (II) Lecture 0 slide 1 INTRODUCTION How to type math How to make cross-references How to use grouping (for

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

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

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

عمادة البحث العلمي جامعة الملك سعود عمادة البحث العلمي جامعة الملك سعود 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

Lecture 1: Short summary of LaTeX basics

Lecture 1: Short summary of LaTeX basics Laura Konstantaki Lecture 1: Short summary of LaTeX basics Feel at ease with LaTeX Unless otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, which means

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

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

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

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

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

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

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

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

Research Method and Report Writing Lecture 4: An Introduction to L A TEX

Research Method and Report Writing Lecture 4: An Introduction to L A TEX Research Method and Report Writing Lecture 4: An Introduction to L A TEX Farzaneh Abdollahi {Thanks to Hamed Rezaee} Department of Electrical Engineering Amirkabir University of Technology Fall 2012 Farzaneh

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

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

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

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

Introduction to L A TEX Introduction to L A TEX Evan Parker-Stephen September 21, 2006 1 Download and Installation http://www.miktex.org (L A TEX for Windows) http://www.winedt.com (Text Editor) http://www.tug.org (TEX User Group)

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

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

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

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

Using LaTex and BibTex to Write Academic Documents. Ligang He Department of Computer Science University of Warwick

Using LaTex and BibTex to Write Academic Documents. Ligang He Department of Computer Science University of Warwick Using LaTex and BibTex to Write Academic Documents Ligang He Department of Computer Science University of Warwick Introduction In LaTex, a markup language is used to describe document structure and format,

More information

Introduction to L A TEX

Introduction to L A TEX NMT May 18, 2016 Written by Ian Jones Revised by Caleb Hightower Contents 1 What is L A TEX? 2 2 Your First L A TEX Document 2 2.1 Getting Started............................ 3 3 Document Structure 4 3.1

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

LaTeX. Information Literacy II EN(IL2) Course

LaTeX. Information Literacy II EN(IL2) Course LaTeX Information Literacy II EN(IL2) Course Previous Lecture Introduction to Latex - Basic commands - Structure of the document - Mathematical expressions - Image Today Comments on assignment 2 More on

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

(Yet Another) Introduction to L A TEX 2ε (V3)

(Yet Another) Introduction to L A TEX 2ε (V3) (Yet Another) Introduction to L A TEX 2ε (V3) Matteo Carrara August 30th, 2013 (Yet Another) Introduction to LATEX2ε (V3) 1 / 29 What is L A TEX 2ε? Typesetting system that is very suitable for producing

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

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

Introduction to L A TEX beamer

Introduction to L A TEX beamer Introduction to L A TEX beamer Lukas Block, Nadja Maraun University of Paderborn June, 2017 Abstract You will learn what L A TEX is and how to use it for presentations. 2/34 Summary Introduction: L A TEX

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

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

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

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

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

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

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

An introduction. C.D. Emmery & M.M. van Zaanen. October 22, Tilburg University

An introduction. C.D. Emmery & M.M. van Zaanen. October 22, Tilburg University LATEX An introduction C.D. Emmery & M.M. van Zaanen Tilburg University October 22, 2013 What is L A TEX? System used to typeset documents. Typesetting: arranging all content in a document in order to achieve

More information

Introduction to L A TEX

Introduction to L A TEX A very short Introduction to L A TEX Florence Débarre UBC Delta Tea April 2012 Outline 1 General philosophy 2 The source document Preamble Structure Paragraphes Images Tables Equations Languages Customization

More information

Intro to LaTeX Workshop

Intro to LaTeX Workshop Intro to LaTeX Workshop Crystal Nguyen University of North Carolina at Chapel Hill 10/13/2017 Nguyen (UNC) LaTeX Workshop 10/13/2017 1 / 31 Overview 1 Getting Started in LaTeX 2 Typesetting Equations 3

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

A Demonstration of the L A TEX 2ε Class File for the Oxford University Press Ltd Journal. First Author 1 and Second Author 2.

A Demonstration of the L A TEX 2ε Class File for the Oxford University Press Ltd Journal. First Author 1 and Second Author 2. Author, F, and S Author (2009) A Demonstration of the LATEX 2ε Class File for the Oxford University Press Ltd Journal, International Mathematics Research Notices, Vol 2009, Article ID rnn999, 6 pages doi:101093/imrn/rnn999

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

A brief introduction to L A TEX

A brief introduction to L A TEX A brief introduction to L A TEX Chris Bowers October 16, 2007 What is L A TEX? TEX developed late 70 s as typesetting language. L A TEX is a set of macro extensions to TEX It s a document preparation system.

More information

Tools for Scientific Writing with LAT E X. Johan Carlson

Tools for Scientific Writing with LAT E X. Johan Carlson Tools for Scientific Writing with LAT E X Johan Carlson Luleå University of Technology Dept. of CSEE EISLAB Email: johanc@csee.ltu.se Tools for Scientific Writing Lecture no. 3 1 Last lecture Bibliography

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

Introduction to LaTeX. Christoph Pickl

Introduction to LaTeX. Christoph Pickl Introduction to LaTeX Christoph Pickl 1 Who knows (La-)TeX? 2 Who has ever written a document with it? 3 Who has ever written a package? 4 Agenda 1. Basics First steps with LaTeX Creating a LaTeX-Document

More information

Very Short Introduction to LaTeX

Very Short Introduction to LaTeX Very Short Introduction to LaTeX Johann Mitlöhner 2015 1 Motivation The computer scientist Donald Knuth developed the program TeX [1] in the late 70s to facilitate typesetting texts containing mathematical

More information

How to get started in L A TEX

How to get started in L A TEX very How to get started in L A TEX Florence Bouvet Department of Economics Sonoma State University March 26, 2009 1 / 29 Introduction very L A TEX is a document preparation system for high-quality typesetting.

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

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

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

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

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

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

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

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

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

GENERAL INFORMATION INSTRUCTIONS FOR MANUSCRIPT SUBMISSION

GENERAL INFORMATION INSTRUCTIONS FOR MANUSCRIPT SUBMISSION GENERAL INFORMATION ROMANIAN JOURNAL OF PHYSICS is a publication of the Romanian Academy. The journal was first published in 1992, as a continuation of the former REVUE ROUMAINE DE PHYSIQUE (established

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

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

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

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

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

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

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

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

An Introduction to L A T E X An Introduction to L A T E X Robert Dyer Department of Computer Science Iowa State University rdyer@cs.iastate.edu August 27, 2008 Why Use L A T E X? L A T E X lets you focus on the content and not how

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

Basics. Options. Commands

Basics. Options. Commands L A TEX Basics https://www.sharelatex.com http://gradquant.ucr.edu/latex-resources Options Preamble Commands Line numbers Document body Document Classes Document class determines the overall layout of

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

Praktische Aspekte der Informatik. Moritz Mühlhausen Prof. Marcus Magnor

Praktische Aspekte der Informatik. Moritz Mühlhausen Prof. Marcus Magnor Praktische Aspekte der Informatik Moritz Mühlhausen Prof. Marcus Magnor LaTeX Documents Further Reading Warning! The following slides are meant to give you a very superficial introduction. If you want

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

Excellent support for mathematical formatting. Automatically downloads/installs missing components as needed Updates somewhat frequently

Excellent support for mathematical formatting. Automatically downloads/installs missing components as needed Updates somewhat frequently Overview Why Use L A TEX? L A TEX lets you focus on the content and not how a document looks Excellent support for mathematical formatting Good bibliography management Acquiring L A TEX Windows Linux MiKTeX

More information

COMS 6100 Class note

COMS 6100 Class note COMS 6100 Class note Biala Toheeb A. 26 August, 2016 A short quiz was given to test if the students really studied the linux commands. The answers to the quiz are Q1. How do you create a directory named

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

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

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

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

An Introduction to LATEX

An Introduction to LATEX An Introduction to L A TEX Hands-on workshop University at Buffalo INFORMS Student Chapter October 26, 2016 Agenda Motivation & Intro to LATEX 1 Motivation & Intro to L A TEX Motivation Introduction Getting

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

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

Introduction to LaTeX. M&S Talk Series August 16 th, 2016 AH Sheikh

Introduction to LaTeX. M&S Talk Series August 16 th, 2016 AH Sheikh Introduction to LaTeX M&S Talk Series August 16 th, 2016 AH Sheikh What is LaTeX? LaTeX is pronounced lay-tech or lah-tech, not la-teks. LaTeX is a document preparation system for high-quality typesetting.

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

Part - I : Short Course Typing Text

Part - I : Short Course Typing Text Part - I : Short Course Sanjay Mishra Department of Mathematics Lovely Professional University Punjab, India June 14, 2012 Outline 1 Introduction The Keyboard Your First Note Lines too Wide More Text Features

More information