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

Size: px
Start display at page:

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

Transcription

1 Intro to LATEX I 1 1 POLS/CSSS 510, 2012 Intro to LATEX I 1 / 32

2 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

3 The Complaint This sucks and is hard. What makes L A TEX better than MS Word or Open Office? Why should I bother to learn this? Intro to LATEX I 3 / 32

4 The Pitch There are aesthetic and non-aesthetic motivations. L A TEX is: A typesetting program = pretty (look up Knuth) Allows you to easily write mathematical and statistical tables and make them easy to read Serves as a shibboleth. It signals to other academics that you are technically savvy and highly functional with a computer It is easy to get caught up in the minutiae of L A TEX. Try not to. Use it as a tool, and embrace rather than fight the constraints. Intro to LATEX I 4 / 32

5 LATEX as a Computer Program L A TEX is a programming language. Like R you need to tell it which packages you are using before it tries to run your code. You see this in your default template When you run your code you are doing what in computer science is known as compiling. There are different compilers! For now, try to stick to pdflatex. This means when you save your images make them PDFs! When you use bibtex you need to compile multiple times. More on this another time Intro to LATEX I 5 / 32

6 Error Messages There are terminal and non-terminal compiling errors. Typical terminal errors are because you have not ended something. Hunting this down can be annoying! L A TEX error messages help. But often finding your coding errors is best done using standard debugging techniques Non-terminal errors often you will have math code outside of math mode or other such errors. In this case, your document will still compile. Beware of symbols that have meaning to L A TEX as a programming language. These can ruin compiling. Most typical is the % sign. Make sure to write \%!. If you think a symbol may be causing problems, check online Intro to LATEX I 6 / 32

7 Doc Basics The backslash ( \ ) tells L A TEX to expect computer code rather than regular text Your script will be divided up into three basic sections 1 Preamble 2 Content 3 Postscript (we ignore this for now) Intro to LATEX I 7 / 32

8 Preamble Many things can go in the preamble. For now we can think of four things. 1 Telling L A TEX the type of document you want. Generally this will be an article \documentclass{article} but it could also be a beamer or a book 2 Some basic setup that happens before your document, which tells L A TEX what packages to use This generally involves calls to \usepackage{} 3 Some other setup items like the line spacing you might want (e.g., \linespread{1.5} gives you 1.5 spacing 4 Instructions to bibtex about formatting your references. Perhaps more on this another time. Intro to LATEX I 8 / 32

9 Contents Documents start with \begin{document} and end with \end{document} In between, put all the wonderful thoughts you have. In the beginning beyond basic text your documents will include three basic types of code: 1 Floats which are images (often graphs) placed within your text 2 Tables which are generally of regressions but could be simple crosstabs 3 Lists which is another way of saying bullet points or ordered lists (often numbered) We will treat these in order a little later... Intro to LATEX I 9 / 32

10 Content Commands L A TEX has its bold and italics equivalents those these can be manipulated in a much more sophisticated way. For now, we will learn three text manipulations 1 \textbf{} which stand for bold font 2 \emph{} which stands for emphasis and in default produces italics 3 \texttt{} which stands for typewriter text and produces...well, what you think it does Try to produce I love typesetting because it helps me with data Intro to LATEX I 10 / 32

11 Sections L A TEX has its equivalents of headers which are sections These can be numbered or unnumbered or numbered the default is numbered. When you don t want numbers include a *. So \section{my Section} vs. \section*{my Section} You can also have different levels by adding the word sub. So you get \subsection{my subsection} Try for yourself. Intro to LATEX I 11 / 32

12 Intro to Floats The concept of a float comes from typesetting You want images to be places seamlessly within the text. Figure: A gull nicely floated Intro to LATEX I 12 / 32

13 Code Float: Code Here is the code: \begin{figure} [!h] \begin{center} \includegraphics[scale=.3]{wrapfig.png} \end{center} \end{figure} How would I make the float bigger? Or justified it to the right? Could anyone figure out how to rotate it? Can anyone go online and figure out how to cross-reference using the \label Intro to LATEX I 13 / 32

14 Code Float Figure: A smaller crooked gull Intro to LATEX I 14 / 32

15 Code Float II Here is the code for the crooked gull \begin{figure} [!h] \begin{flushright} \caption{a smaller crooked gull} \label{gull} \includegraphics[ angle = 34, totalheight=0.5\textheight] {wrapfig.png} \end{flushright} \end{figure} Intro to LATEX I 15 / 32

16 A Note on Float Placement The good thing about floats is we have lots of control... The bad things is that L A TEX is not that smart and often puts things in the wrong place So what do we do? After begin{figure}, we have regular non-curly braces. This tells L A TEX about the placement of the float. You can learn more about this later, but for most of your homework assignments, you want your figure exactly where the text is. One way to ensure this is with the float package \usepackage{float} and use begin{figure} [H] There are other commands as well, however.. Intro to LATEX I 16 / 32

17 Referencing Floats One you have labeled your floats with \label you can reference it in the text. You you do this by using the \ref command I was referring to the gull in Figure ~\ref{gull} I was referring to the gull in Figure 1 Intro to LATEX I 17 / 32

18 Intro to Tables As we saw, the key to tables is exporting them from R. Use apsrtable and xtable It will be useful to understand some other basic things about tables let s look at one... Intro to LATEX I 18 / 32

19 Sample Table Table: This is a table reporting regression results. (Intercept) (3.24) (3.22) (0.09) education (0.39) (0.35) (0.01) income (0.00) (0.00) (0.00) women (0.03) N R adj. R Resid. sd Intro to LATEX I 19 / 32

20 Sample Table \begin{table}[!ht] \begin{center} \caption{this is a table reporting regression results.} \begin{tabular}{lccc} \hline (Intercept) & ^* & ^* & 2.63 ^* \\ & (3.24) & (3.22) & (0.09) \\ education & 4.19 ^* & 4.14 ^* & 0.09 ^* \\ & (0.39) & (0.35) & (0.01) \\ income & 0.00 ^* & 0.00 ^* & 0.00 ^* \\ & (0.00) & (0.00) & (0.00) \\ women & & & \\ & (0.03) & & \\ $N$ & 102 & 102 & 102 \\ $R^2$ & 0.80 & 0.80 & 0.70 \\ adj. $R^2$ & 0.79 & 0.79 & 0.70 \\ Resid. sd & 7.85 & 7.81 & 0.22 \\ \hline \end{tabular} \end{center} \end{table} Intro to LATEX I 20 / 32

21 Sample Table What if we want this? Table: This is a table reporting regression results. (Intercept) (3.24) (3.22) (0.09) education (0.39) (0.35) (0.01) income (0.00) (0.00) (0.00) women (0.03) N R adj. R Resid. sd Intro to LATEX I 21 / 32

22 \frametitle{sample Table} \textbf{what if we want this?} \begin{table}[!ht] \begin{center} \caption{this is a table reporting regression results.} \begin{tabular} { r r r r } \hline (Intercept) & ^* & ^* & 2.63 ^* \\ & (3.24) & (3.22) & (0.09) \\ \hline education & 4.19 ^* & 4.14 ^* & 0.09 ^* \\ & (0.39) & (0.35) & (0.01) \\ \hline income & 0.00 ^* & 0.00 ^* & 0.00 ^* \\ & (0.00) & (0.00) & (0.00) \\ \hline women & & & \\ & (0.03) & & \\ \hline $N$ & 102 & 102 & 102 \\ \hline $R^2$ & 0.80 & 0.80 & 0.70 \\ \hline adj. $R^2$ & 0.79 & 0.79 & 0.70 \\ \hline Resid. sd & 7.85 & 7.81 & 0.22 \\ \hline \end{tabular} \end{center} \end{table} Intro to LATEX I 22 / 32

23 Key tips In MS Word and other programs we waste a lot of time making the perfect list. Particularly in the beginning, try not to fight the defaults for list environments As you get better, online help is very good with making the perfect list Intro to LATEX I 23 / 32

24 Itemize \begin{itemize} is L A TEX s way of saying start making a list. Add an item to a list by simply typing \item Like with floats and tables we close with \end{itemize} Try making a list Intro to LATEX I 24 / 32

25 Enumerate \begin{enumerate} is L A TEX s way of saying start making an ordered (often numerical) list. It works exactly like itemize, so let s add complexity... how would we make a nested list? Intro to LATEX I 25 / 32

26 Math Pitch Often we want to write statistical equations. How can we do this? Use very clunky field codes in Word Pay money for Word add ons Write everything by hand Use L A TEX Note that L A TEX users can (and often do) use Latex notation to write math in s. Very handy to know because can represent almost anything without special characters (h/t Chris Adolph). Intro to LATEX I 26 / 32

27 Basic Math Modes There are two basic math modes In-line text mode to write that f (x) = x 2 + e 2 within a sentence L A TEX knows your are in this mode when you type a single dollar sign on either side of the questions $y = x$ Separate line mode to present an equation on a separate line y = β 0 + β 1 + β β n + ε L A TEX knows your are in this mode when you type a double dollar sign on either side of the questions $$y = x$$ Try for yourselves without using any subscripts or superscripts! Intro to LATEX I 27 / 32

28 Subscripts and Superscripts These will be the tools you use most often in statistics The caret ( ^) tells L A TEX you want a superscript and the underscore ( _ ) tells L A TEX you want a subscript Typing $x^2$ into L A TEX yields x 2 and $x_2$ yields x 2 How would you get x 2x? $x^{2^x}$ Try the following X e5x2 $X^{e^{5{x^2}}}$ and $a_{ij}$ and the matrix format a ij Intro to LATEX I 28 / 32

29 Greek For many of the characters used in math L A TEX is intuitive You need to know the name of the character and enter math mode Lowercase letters are written in all lowercase letters (e.g., $\gamma$ yields γ for uppercase letters, you need to capitalize the first letter $\Gamma$ yields Γ Try µ,ν,τ,σ,ξ,υ,ℸ Intro to LATEX I 29 / 32

30 More Math What if you want to include a variable named after a word, like PartyID? If you put it in an equation, it comes out in ugly spaced italics. Instead, use \mathrm{} around PartyID, like so: \begin{equation} \mathrm{votechoice}_i = \beta_0 + \beta_1 \mathrm{partyid}_i + \varepsilon_i \end{equation} VoteChoice i = β 0 + β 1 PartyID i + ε i (1) Note the use of \begin{equation} Try writing your own equation Intro to LATEX I 30 / 32

31 More Math Modes There are lots of different ways to show your math equations. we just saw \begin{equation} we can also have \begin{eqnarray} To make an array of equations VoteChoice i = β 0 + β 1 PartyID i + ε i (2) VoteChoice i = β 0 + β 1 PartyID i + β 2 Ethnic i + ε i (3) Intro to LATEX I 31 / 32

32 Feedback?? Intro to LATEX I 32 / 32

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

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

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

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

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

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

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

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

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

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

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

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

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

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

L A TEX for Psychological Researchers

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

More information

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

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

More information

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

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

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

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

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

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

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 A very quick look at typesetting documents Dr. Amal Almohisen (based on slides by Andrei Gurtov ) Introduction Essentially a Markup Language (like

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

L A TEX Workshop. Don Brower

L A TEX Workshop. Don Brower L A TEX Workshop Don Brower 2016-5-11 1. TEX and L A TEX. L A TEX is a typesetting system which makes it easy to create typographically sophisticated documents. It also has a challenging, unintuitive interface.

More information

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

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

More information

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

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

More information

Homework # (Latex Handout) by Laura Parkinson

Homework # (Latex Handout) by Laura Parkinson 1 Latex Homework # (Latex Handout) by Laura Parkinson Latex helps you make your homework pretty. It makes us happy when you use it. The best way to learn is by example, so here are some examples of pretty

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

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

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

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

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

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

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

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

Dec. 27 th, 2010 University of Isfahan

Dec. 27 th, 2010 University of Isfahan Lt Latex Introduction It ti Adapted from Latex Workshop [1] Dr. Bahman Zamani Dec. 27 th, 2010 University of Isfahan Overview What is Latex? Why Latex? Why not Latex? How to InstallLatex? Where to Start?

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

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

L A TEX 101. John Gardner and Alex Yuffa. May 2, How does L A TEX work? Exercise... 4

L A TEX 101. John Gardner and Alex Yuffa. May 2, How does L A TEX work? Exercise... 4 L A TEX 101 John Gardner and Alex Yuffa May 2, 2008 Contents 1 Introduction 2 2 What is L A TEX? 3 3 How does L A TEX work? 3 3.1 Exercise...................................... 4 4 Getting L A TEX 4 4.1

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

A Short Introduction to L A TEX

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

More information

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

L A TEXInstallation and Introduction

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

More information

Course A, Part 1 Basic Formatting in L A TEX

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

More information

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

Student Learning Service: Introduction to Latex

Student Learning Service: Introduction to Latex Student Learning Service: Introduction to Latex Dr Morgiane Richard, Oana Matei and Florin Nedelea m.richard@abdn.ac.uk Student Learning Service Updated June 2018 Richard, Matei, Nedelea (U.of Aberdeen)

More information

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

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

More information

LaTeX is essentially a markup language

LaTeX is essentially a markup language Dept of Civil & Environmental Engineering LaTeX is essentially a markup language g You provide LaTeX with a text based document that is part text, part code (kind of like a simple HTML) LaTeX does all

More information

A Brief Introduction to L A TEX

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

More information

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

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

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

More information

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

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

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

This is the LYX Beamer Template

This is the LYX Beamer Template This is the LYX Beamer Template With Trivial Edits by Paul Johnson F. Author 1 S. Another 2 1 Department of Computer Science University of Somewhere 2 Department of Theoretical Philosophy University of

More information

Introduction to L A TEX

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

More information

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

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

Introduction to L A TEX

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

More information

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

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

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

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

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

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

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

Pimp your thesis: a minimal introduction to L A T E X.

Pimp your thesis: a minimal introduction to L A T E X. 1 / 20 Pimp your thesis: a minimal introduction to L A T E X. Maarten Bransen IC/TC, U.S.S. Proton March 20, 2018 2 / 20 What is L A T E X? Most word processors you may be used to (i.e. Microsoft Word,

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

Researcher Development Unit: Introduction to Latex

Researcher Development Unit: Introduction to Latex Researcher Development Unit: Introduction to Latex Dr Morgiane Richard and Ana Ciocarlan m.richard@abdn.ac.uk Centre for Academic Development Academic Year 2016-2017 M. Richard, A. Ciocarlan (U.of Aberdeen)

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

A Short L A TEX Introduction

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

More information

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

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

More information

Introduction to L A TEX

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

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

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

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

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

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

Introduction to LATEX

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

More information

Introduction to LaTeX. 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

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

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

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

LaTeX: Scientific Document Writing

LaTeX: Scientific Document Writing 2 nd November, 2017 LaTeX: Scientific Document Writing Dr. Anurag Prakash Sunda DST INSPIRE Faculty Dept. of Chemistry, School of Chemical Sciences and Pharmacy Central University of Rajasthan www.apsunda.com

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

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

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

More information

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

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

More information

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