LaTeX Seminar III: Environments and More Advanced Mathematical Typesetting

Size: px
Start display at page:

Download "LaTeX Seminar III: Environments and More Advanced Mathematical Typesetting"

Transcription

1 LaTeX Seminar III: Environments and More Advanced Mathematical Typesetting Clifford E. Weil March 24, General Environments We have already encountered two environments. They are the document environment and the thebibliography environment. All environments begin with \begin{environment name} and end with \end{environment name} Each environment is designed to typeset a special structure and therefore comes with its own set of special symbols and in some cases, commands. We ll begin with some easy ones but ones that are used frequently. 1.1 Abstract The abstract environment is used to put an abstract at the beginning of a document. It always comes immediately after the \maketitle command. In the source file you type \begin{abstract} then the text of your abstract followed by \end{abstract} When the file is compiled LaTeX produces the word, Abstract centered just below the title, increases the margins and lowers the type size, typesets the abstract and then undoes all of the formatting changes it made. 1.2 Center Typing in the source file \begin{center} and then some text followed by \end{center} centers that text in the compiled file. 1

2 1.3 Quote Short quotes are simply put between quotation marks. But for longer ones use the same procedure as above. The actual quote is typeset with larger margins. 1.4 The List Environments There are three of these. They are: description, itemize and enumerate. For all three each item in the list begins with the command \item. The difference between the three lies in the amount each item is indented and how they are numbered. The numbering can be changed by using an optional argument. First the description environment will be demonstrated. \begin{description} \item This is the first item in the list. \item The second item in the list is somewhat longer and for that reason requires \item The third and last item is much shorter. \end{description} In the compiled file the above produces. This is the first item in the list. The second item in the list is somewhat longer and for that reason requires The third and last item is much shorter. Note the indentation conventions. These settings are what distinguishes the different list environments. To number the items, use the optional argument for the \item command. \begin{description} \item[i] This is the first item in the list. \item[\textmd{ii}] The second item in the list is somewhat longer and for that reason requires \item[iii] The third and last item is much shorter. \end{description} produces i This is the first item in the list. ii The second item in the list is somewhat longer and for that reason requires iii The third and last item is much shorter. Note how the command \textmd{ii} produces the label without bold. The itemize list environment differs from description in that items are begun with a and the indentations are different. In this case the optional argument has the effect of replacing the. For example 2

3 \begin{itemize} \item This is the first item in the list. \item[ii] The second item in the list is somewhat longer and for that reason requires \item[c] The third and last item is much shorter. \end{itemize} will produce This is the first item in the list. ii The second item in the list is somewhat longer and for that reason requires c The third and last item is much shorter. The most frequently used list environment is the enumerate environment. It is especially efficient when used with the enumerate package, which allows the user to easily select the numbering method. Here s an example. \begin{enumerate} \item This is the first item in the list. \item The second item in the list is somewhat longer and for that reason requires \item The third and last item is much shorter. \end{enumerate} will produce 1. This is the first item in the list. 2. The second item in the list is somewhat longer and for that reason requires 3. The third and last item is much shorter. To change the enumeration to say lettering in parentheses, type \begin{enumerate}[(a)] and the outcome will be (a) This is the first item in the list. (b) The second item in the list is somewhat longer and for that reason requires (c) The third and last item is much shorter. These list environments can be nested up to 4 levels deep. That is, an item in a list can itself be a list, and one of the items in that list can also be a list, etc. One word of caution. There shouldn t be a blank line before a list environment. Finally if none of these three list environments suit your purposes, you can define your own list environment. But doing so is an advanced topic. 3

4 2 Environments Used in Mathematical Typesetting 2.1 The Equation Environment This environment is for a mathematical formula which is only one line in length and for which a number is desired. For that reason it is best to include the \label command. A simple example is \begin{equation}\label{eq1} \{x\in \mathbb R; \sin x > 0 \text{ and } x>2\} \end{equation} will produce {x R; sin x > 0 and x > 2} (1) and consequently if you wish to refer to this equation later in the document, you need only type Recall \eqref{eq1}. and you will get Recall (1). 2.2 The Array Environment This is the prototype for many of the environments to follow. The command \begin{array} has one compulsory argument by which the number of columns in the array and their alignment are specified. For example \begin{array}{clrlc} says that the array will have 5 columns: the first will be centered, the second flush left, the third flush right the fourth flush left and the fifth centered. The columns in each row of an array are separated by the & sign and the end of a row is designated by \\. For Example typing $$\begin{array}{lcr} a+b+c & u+v & r+s+t\\ a-c & u-v+w &r-s\\ c-b+a+d &v-w &s-t \end{array}$$ produces a + b + c u + v r + s + t a c u v + w r s c b + a + d v w s t The & sign indicates the point of alignment and the \\ indicates the end of a row (or line). Note that there is no \\ at the end of the last row. These two symbols are used in the same way whenever they appear. The use of \\ to start a new line is used throughout LaTeX. You will see that many of the environments to follow use the same basic structure of the array environment. 4

5 2.3 The Cases Environment This environment is used to define a function using two or more cases. This example will demonstrate how the environment works. In the source file typing Let $$ f(x) = \begin{cases} 1&\text{if } x\in \mathbb R \text{ is rational} \\ 0&\text{otherwise.} \end{cases} $$ in the compiled file will produce Let { 1 if x R is rational f(x) = 0 otherwise. 2.4 The Matrix Environments There are five of these distinguished by what delimiters you wish to bound your matrix. The names of the five environments are matrix, pmatrix, bmatrix vmatrix and Vmatrix. In the first case there are no symbols around the matrix, in the second the matrix is enclosed in parentheses, in the third, by braces [ ], in the fourth, by vertical lines and in the fifth by double vertical lines. For example typing $\begin{pmatrix} 1 & 2 & 3 \\ 2 & 4 & 6 \\ 3 & 6 & 9 \end{pmatrix}$ produces The Assertion Environments These environments are used to state corollaries, definitions, lemmas, propositions, remarks, theorems etc. One environment for each type of assertion is made with the \newtheorem command. The package amsthm must be included in the \usepackage command in the preamble. Due to the many different but accepted numbering options used in technical articles, the process of creating these environments is rather complicated. The \newtheorem command has two compulsory arguments and two optional ones, but at most one of the optional ones is used in creating any one assertion environment. We begin with the simplest situation. Suppose the author wishes to have definitions, lemmas and theorems; each numbered separately; that is, Definition 1, Lemma 1, Definition 2, Theorem 1 etc. Here s what is typed in the preamble. \newtheorem{definition}{definition} \newtheorem{lemma}{lemma} 5

6 \newtheorem{theorem}{theorem} The name of the environment is in the first argument while the title that LaTeX will produce in in the second. This process creates three new environments: definition, lemma and theorem. In the source file the first time the author wishes to state a definition, type \begin{definition}\label{def1} followed by the statement of the definition and ended, of course, with \end{definition} For example in the document typing \begin{definition}\label{def1} A sequence ${a n}$ is bounded means there is a number $M$ such that for each $n$, $a n \le M$. \end{definition} produces Definition 1. A sequence {a n } is bounded means there is a number M such for each n, a n M. LaTeX automatically numbers the first definition as Definition 1. To refer to this definition later in the text, simply type By Definition \ref{def1} LaTeX automatically produces, By Definition 1. Next suppose the author wishes to state a Lemma. Type \begin{lemma}\label{lem1} followed by the statement of the lemma and ended with \end{lemma} This lemma is named Lemma 1. and when Lemma \ref{lem1} is typed in the source file, LaTeX inserts. Lemma 1. Next a theorem is to be stated by typing \begin{theorem}\label{th1} followed by the statement of the theorem and ended by \end{theorem} The correspond remarks made about definition and lemma above hold for theorem as well. The number assigned to Definition 1 would change if later the author decides to insert a definition before Definition 1, say one that is labeled \label{def0}. Then LaTeX will number the new first definition as Definition 1 and the previous Definition 1 becomes Definition 2. LaTeX also automatically changes these numbers where they are referred to later in the text. The next definition stated would logically be labeled def2 and would be called Definition 3 even if it occurs after say Lemma 4. Many readers find this numbering scheme confusing and prefer to have assertions numbered according to the order in which they occur in the article. To accomplish this goal in the preamble type \newtheorem{definition}{definition} \newtheorem{lemma}[definition]{lemma} \newtheorem{theorem}[definition]{theorem} 6

7 This process creates three new environments: definition, lemma and theorem just as before. Their use in the document is the same as before. The difference is that LaTeX numbers the assertions in the order that they appear in the article. So in the previous example with the new meaning for these environments, we would have Definition 1, Definition 2, Lemma 3 and Theorem 4. A combination of the two numbering schemes is possible as well. Suppose the definitions are to be numbered consecutively, but the other two: lemmas and theorems, are to be numbered according to their order of appearance. That goal is attained by typing in the preamble \newtheorem{definition}{definition} \newtheorem{lemma}{lemma} \newtheorem{theorem}[lemma]{theorem} In a long article containing several sections it s sometimes more convenient to number assertions according the section number. This is done by using the second optional argument. The easiest case is \newtheorem{definition}{definition}[section] \newtheorem{lemma}{lemma}[section] \newtheorem{theorem}{theorem}[section] which will number each assertion separately; that is, if we are dealing with Section 3, Definition 3.1, Lemma 3.1 and Theorem 3.1. To number them consecutively simply change the commands to \newtheorem{definition}{definition}[section] \newtheorem{lemma}[definition]{lemma} \newtheorem{theorem}[definition]{theorem} That minor change will result in assertions being numbered according to the order that they appear in a particular section. For example, then we could have, Definition 3.1, Lemma 3.2 and Theorem 3.3. The \newtheorem command also has what is called a version. The star simply means that no number is assigned. This version is useful for including the statement of a well known theorem that has a widely accepted name; for example Zorn s Lemma. Here is how to use this version. Again in the preamble type \newtheorem*{zl}{zorn s Lemma} and in the document where the author wishes to state Zorn s Lemma by name, type \begin{zl}\label{zl} followed by the statement of Zorn s Lemma and ending with \end{zl} Then LaTeX produces a theorem named, Zorn s Lemma but with no number. 2.6 The Proof Environment For assertions that require a proof the proof environment is provided. It is relative newcomer to the LaTeX family of environments. It doesn t appear in any of the manuals I ve suggested for these seminars. It begins with 7

8 \begin{proof} followed by the proof of the assertion and ending with \end{proof} The environment insert the word, Proof. at the beginning of the proof and puts the symbol (the widely accepted end-of-proof symbol) at the end of the last line in the proof. There is an optional argument which allows the user to begin the proof with a word or phrase other than the default one. For example \end{proof}[\textbf{proof of Main Theorem}] will begin the proof with Proof of Main Theorem. If the proof ends with an environment, the end of proof symbol will be put at the end of the following, otherwise blank, line. To avoid this, put the command \qedhere at the end of the last line of the environment. Then the symbol,, appears at the end of last line of the environment. 2.7 Environments Used in Multi-Lined Mathematical Expressions These environments are used when the mathematical expression to be typeset is too long to fit on one line. they require the amsmath package. The most frequently used of these is the align environment, which is a new environment replacing the older one called eqnarray. It is used when the multi-lined formula has logical points in the lines that should be aligned; for example a string of equalities. The following example comes from calculus. 1 cos 2x sin 2 x dx = dx (1) 2 = 1 (1 cos 2x) dx (2) 2 = 1 2 x 1 sin 2x + C 2 2 (3) = x sin x cos x + C. 2 2 (4) is obtained by typing \begin{align} \int\sin^{2}x\,dx&=\int\frac{1-\cos 2x}{2}\,dx\\ &=\frac{1}{2} x-\frac{\sin 2x}{2} + C\\ &=\frac{x}{2}-\frac{\sin x\cos x}{2} +C \end{align} Note that there is no \\at the end of the last line. To eliminate the numbers replace {align} by {align*}. Perhaps the author would like to have one number that refers to the entire argument. This can be done using the equation environment and the split environment. We ve already discussed the equation environment. The split environment works just like the align environment. 8

9 \begin{equation}\label{sin-squared} \begin{split} \int\sin^{2}x\,dx&=\int\frac{1-\cos 2x}{2}\,dx\\ &=\frac{1}{2}x-\frac{\sin 2x}{2} + C\\ &=\frac{x}{2}-\frac{\sin x\cos x}{2} +C \end{split} \end{equation} produces 1 cos 2x sin 2 x dx = dx 2 = 1 (1 cos 2x) dx 2 = 1 2 x 1 sin 2x + C 2 2 = x sin x cos x + C. 2 2 If alignment isn t called for, use the gather environment. It centers each of the lines and assigns each a number. To skip the numbers, use gather*. In the unstarred form of either align or gather, putting the command \nonumber at the end of a line but before the \\results in no number being placed at the end of the line. 2.8 The Tabbing and Tabular Environments These two environments weren t discussed in the seminar, but are included with the notes. As it s name indicates, the tabbing environment recreates the popular tab feature of typewriters. Here s how it works. The command \= sets a tab and the command\> moves to the next tab. To set the tabs, after typing\begin{tagging}, I suggest typing a line looking like this for, say three columns. XXXXXXXXXXXXX\=YYYYYYYYY\=ZZZZZZZZZZZZZZZZZZZZZZ\kill This sets the tabs or more precisely, the width of each of the three columns and the \kill produces no output. The second line actually begins the text for the columns. So the next two lines might be something line this. Entry 1 in column 1\>next entry\> Final entry in first line\\ Entry 1 in column 2\>next entry\> Final entry in second line\\ Continue in this fashion until you ve completed all lines. Then type \end{tabbing}. If the appropriate number op dummy characters have been inserted in the first line the result will look like this. Entry 1 in column 1 next entry Final entry in first line Entry 1 in column 2 next entry Final entry in second line (1) If it looks like this 9

10 Entry 1 in column next1 entry Entry 1 in column next2 entry Final entry in first line Final entry in second line not enough Xs were put in the first line. Go back and add some. To create tables with vertical and/or horizontal lines separating rows and columns and to position the text in columns, (flush right, flush left or centered) use the tabular environment. The starting command has a compulsory argument in which the number of columns and their individual alignment is determined. The format reminds one of the array environment. This multiplication table is produced by typing \begin{tabular}{ c c c c c c c c c c c }\hline &1&2&3&4&5&6&7&8&9\\ \hline 1&1&2&3&4&5&6&7&8&9\\ \hline 2&2&4&6&8&10&12&14&16&18\\ \hline 3&3&6&9&12&15&18&21&24&27\\ \hline \end{tabular}. As you probably guessed, the command \hline produces a horizontal line running the width of the table. 10

Just Enough L A TEX, Week 4

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

More information

Environments, Equations, and Tables

Environments, Equations, and Tables Environments, Equations, and Tables David Freund October 13, 2016 1 Environments In L A TEX, environments are sections of code delineated by \begin{stuff} and \end{stuff}. Most text formatting is done

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

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

Using L A TEX Tom Edgar

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

More information

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

CLV Manual. How to Use CLV L A TEX Style. Odié N. Gementera SPI Publisher Services

CLV Manual. How to Use CLV L A TEX Style. Odié N. Gementera SPI Publisher Services CLV Manual How to Use CLV L A TEX Style Odié N. Gementera SPI Publisher Services This article describes how to use the article class and CLV1 style with L A TEX to produce typeset papers based on Computer

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

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

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

Typesetting Text. Spring 2013 TEX-Bit #1 Math 406 Spring 2013 TEX-Bit #1 Math 406 Typesetting Text Whitespace characters, such as blank or tab, are treated uniformly as space by L A TEX. Several consecutive whitespace characters are treated as one space.

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

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

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

L A TEX Introduction. 1 Basic Resources: Melissa Desjarlais (amended by Dr. Dena Morton)

L A TEX Introduction. 1 Basic Resources: Melissa Desjarlais (amended by Dr. Dena Morton) L A TEX Introduction Melissa Desjarlais (amended by Dr. Dena Morton) Abstract We showcase some L A TEX typesetting. Additionally, we give resources for further exploration of typesetting mathematics and

More information

Tables, Lists and Matrices. MAT 218 Mathematical Computing. February 2, 2016

Tables, Lists and Matrices. MAT 218 Mathematical Computing. February 2, 2016 Tables, Lists and Matrices MAT 218 Mathematical Computing February 2, 2016 1 List Environments Before we get started, I want to point out two things I have in the preamble The first is that I am using

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

CSE 150: Notation Examples

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

More information

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

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

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

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

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

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

PHYS 87. Check that it works by typesetting the tripple ensted list of the pervious exercise.

PHYS 87. Check that it works by typesetting the tripple ensted list of the pervious exercise. PHYS 87 Exercises (October 30, 207):. Exercise: try typesetting this It doe snot work with beamer > The first entry here > Then the second > etc The first entry here Then the second etc Hint: Use \textgreater

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

Math 291: Lecture 5. Dr. Fagerstrom. Minnesota State University Moorhead web.mnstate.edu/fagerstrom

Math 291: Lecture 5. Dr. Fagerstrom. Minnesota State University Moorhead web.mnstate.edu/fagerstrom Math 291: Lecture 5 Dr. Fagerstrom Minnesota State University Moorhead web.mnstate.edu/fagerstrom fagerstrom@mnstate.edu February 15, 2018 Dr. Fagerstrom (MSUM) Math 291: Lecture 5 February 15, 2018 1

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

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 10/04/2013 Outline Last Week The L A TEX Language

More information

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

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

More information

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

Text typesetting guide

Text typesetting guide Text typesetting guide Carleton College L A TEX workshop Although L A TEX is best known for its mathematical typesetting, it is also very good at typesetting plain text. It offers a variety of features

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

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

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

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

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

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

Not-So-Frequently Asked Questions for L A TEX

Not-So-Frequently Asked Questions for L A TEX Not-So-Frequently Asked Questions for L A TEX Miles 2010 This document addresses more esoteric issues in L A TEX that have nonetheless actually arisen with the author. We hope that somebody will find it

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

L A TEX: Online module 9

L A TEX: Online module 9 L A TEX: Online module 9 Venkata Manem Univ. of Waterloo August 19, 2011 Venkata Manem (Univ. of Waterloo) LATEX: Online module 9 August 19, 2011 1 / 32 Topics to be covered Typeset lengthy equations Matrices

More information

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

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

More information

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

L A TEX and Basic Text Editing

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

More information

A GRADUATE STUDENT'S GUIDE TO LATEX AND AMS-LATEX

A GRADUATE STUDENT'S GUIDE TO LATEX AND AMS-LATEX DEPARTMENT OF MATHEMATICS TECHNICAL REPORT A GRADUATE STUDENT'S GUIDE TO LATEX AND AMS-LATEX DR. RAFAL ABLAMOWICZ FEBRUARY 2003 No. 2003-1 TENNESSEE TECHNOLOGICAL UNIVERSITY Cookeville, TN 38505 A Graduate

More information

Preparing Basic Manuscripts with L A TEX

Preparing Basic Manuscripts with L A TEX Preparing Basic Manuscripts with L A TEX Garrett Darl Lewis Department of Politics Princeton University March 24, 2015 Abstract This is an interactive document designed to introduce seminar participants

More information

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

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

More information

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

Illinois Wesleyan s Introduction to L A TEX

Illinois Wesleyan s Introduction to L A TEX Illinois Wesleyan s Introduction to L A TEX A guide for students brought to you by the Department of Mathematics Updated January 8, 2015 Contents 1 THE BEGINNING 2 2 SOME HISTORY 2 3 PROGRAMS USED 2 4

More information

Guide to L A TEX. Daniel M. Kane

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

More information

Paul Gartside. March 2, 2013

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

More information

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

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

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

Writing Mathematics in L A TEX by Example

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

More information

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

PHYS-4007/5007: Computational Physics

PHYS-4007/5007: Computational Physics PHYS-4007/5007: Computational Physics L A TEX Tutorial Learning the L A TEX Mark-up Language Log into your Linux account, open a terminal window, and change directory to your tex subdirectory. Now open

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

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

Interval Notation (mixed parentheses and brackets)

Interval Notation (mixed parentheses and brackets) With the Advanced View of the Canvas Equation Editor, you can input more complicated mathematical text using LaTeX, like matrices, interval notation, and piecewise functions. In case you don t have a lot

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

A Beginner s Guide to LATEX. Last Revised: August 21, 2013

A Beginner s Guide to LATEX. Last Revised: August 21, 2013 A Beginner s Guide to LATEX Last Revised: August 21, 2013 Thanks In the (ongoing) creation of this document, I ask a lot of people for feedback and input. Some of them are classmates (past or present)

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

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

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

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

Multiline math displays

Multiline math displays CHAPTER Multiline math displays This is, possibly, the most important chapter on AMS-IbTEX: a discussion of how to display math formulas on more than one line using the constructs provided by the amsmath

More information

Workshop: A Simple Introduction to L A TEX

Workshop: A Simple Introduction to L A TEX Workshop: A Simple Introduction to L A TEX Michael P. Fix Susanne Schorpp Georgia State University 142 October 2012 Outline 1 Introduction 2 The Basics 3 Typesetting Text 4 Typesetting Math 5 Tables and

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

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

4.7 Approximate Integration

4.7 Approximate Integration 4.7 Approximate Integration Some anti-derivatives are difficult to impossible to find. For example, 1 0 e x2 dx or 1 1 1 + x3 dx We came across this situation back in calculus I when we introduced the

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

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 the amsthm Package

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

More information

Using the amsthm Package

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

More information

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

A Brief Introduction to LaTeX

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

More information

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

Lecture slides for MA2730 Analysis I

Lecture slides for 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 Sciences bicom & Materials and Manufacturing Research Institute

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

Latex Tutorial 1 L A TEX. 1.1 Text

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

More information

Basic instructions for writing a paper

Basic instructions for writing a paper Basic instructions for writing a paper A paper must be written correctly in LaTeX 2e, i.e.: using \mathcal{} instead of \cal; \mathrm{} or \textrm{} instead of \rm etc. Please, use: \documentclass[reqno,b5paper]{amsart}

More information

Math 291: Lecture 4. Dr. Fagerstrom. Minnesota State University Moorhead web.mnstate.edu/fagerstrom

Math 291: Lecture 4. Dr. Fagerstrom. Minnesota State University Moorhead web.mnstate.edu/fagerstrom Math 291: Lecture 4 Dr. Fagerstrom Minnesota State University Moorhead web.mnstate.edu/fagerstrom fagerstrom@mnstate.edu February 8, 2018 Dr. Fagerstrom (MSUM) Math 291: Lecture 4 February 8, 2018 1 /

More information

NCSU Linguistics Eric Wilbanks & Jeff Mielke. November 21, An open-source typesetting language used for document mark-up

NCSU Linguistics Eric Wilbanks & Jeff Mielke. November 21, An open-source typesetting language used for document mark-up L A TEX Workshop NCSU Linguistics Eric Wilbanks & Jeff Mielke November 21, 2014 1 What is L A TEX? An open-source typesetting language used for document mark-up Used in conjunction with various TEXEditors

More information

L A TEX Seminar Fall Semester 2007

L A TEX Seminar Fall Semester 2007 L A TEX Seminar Fall Semester 2007 Clifford E. Weil Contents 1 Introduction. 3 2 The Basics of Commands. 3 2.1 Spaces.................................. 4 2.2 Hyphens................................ 5 2.3

More information

A quick guide to L A TEX

A quick guide to L A TEX A quick guide to L A TEX L A TEX is more of a programming language. The text you produce in your input file will look almost completely different from the final result in print. This requires knowledge

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

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

AXIOMS FOR THE INTEGERS

AXIOMS FOR THE INTEGERS AXIOMS FOR THE INTEGERS BRIAN OSSERMAN We describe the set of axioms for the integers which we will use in the class. The axioms are almost the same as what is presented in Appendix A of the textbook,

More information

Indian T E X Users Group

Indian T E X Users Group Indian T E X Users Group URL: http://www.river-valley.com/tug 4 On-line Tutorial on L A T E X The Tutorial Team Indian T E X Users Group, sjp Buildings, Cotton Hills Trivandrum 695014, india 2000 Prof.

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

EBESS and MESS Presents: Learn to LaTeX. Presented by Joshua Tambunan 13 February 2018

EBESS and MESS Presents: Learn to LaTeX. Presented by Joshua Tambunan 13 February 2018 EBESS and MESS Presents: Learn to LaTeX Presented by Joshua Tambunan 13 February 2018 Structure of the Night Basics of LaTeX Motivation What? Why? Structure of the Night Starting a document Commenting

More information

Typing Mathematics. Darrin Doud

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

More information

A Grasshopper s Approach to L A TEX

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

More information

looks slightly different when set in display style. (See next section).

looks slightly different when set in display style. (See next section). The remainder of this document is concerned with showing, in the context of an actual document, the L A TEX commands specifically available for denoting the structure of a proceedings paper, rather than

More information

Workshop on LaTeX. Outline. Muhammad Mostafa Monowar 11/13/2017

Workshop on LaTeX. Outline. Muhammad Mostafa Monowar 11/13/2017 Workshop on LaTeX Muhammad Mostafa Monowar Outline Part-1: Basics Part-2: How to Typeset a document? Part-3: Thesis Fundamentals Part-4: Creating Presentation 1 Part-1: Basics Why do I need LaTeX? Free

More information