An introduction to L A TEX for students

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

Getting started with Latex

LaTeX A Tutorial. Mohsen Alimomeni, 2010

Introduction to LATEX

LaTeX. Information Literacy II EN(IL2) Course

L A TEX Tutorial. 1 Introduction. 2 Running L A TEX. J. E. Rice. May 2010

Helen Cameron. A Brief Overview of LATEX

Math 235: Introduction to LaTeX

COMS 6100 Class note

Helen Cameron. A Brief Overview of LATEX

L A TEX Overview. Jiayi Liu. January 31, Colorado School of Mines

Introduction to LATEX

Assessments for CS students:

Using L A TEX Tom Edgar

Become a L A TEX Guru

Learn how to [learn] LATEX

Introduction to L A T E X

Introduction to LaTeX. Paul Fodor Stony Brook University

An Interactive Introduction to L A TEX

An Introduction to L A TEX

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

L A TEX for Psychological Researchers

Outline. Installing LaTeX. Opening TeXShop. Intro to LaTeX. Intro to LaTeX interface Working with text Tabbing and tables Figures Math and equations

An Introduction to L A T E X

Learning L A TEX. Patrick Lam

Introduction to L A TEX beamer

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

Guide to using L A TEX

Latex Tutorial 1 L A TEX. 1.1 Text

Introduction to L A TEX

Introduction to MCS 220 and L A TEX

An Interactive Introduction to L A TEX. Part 1: The Basics. John Lees-Miller. writel A TEX

Introduction to L A TEX

Introduction to L A TEX

Learning LaTeX: The Basics

An Introduction to L A TEX

Introduction to Latex. A workshop by Dr. Ala Eshmawi

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

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

Introduction to L A TEX

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

Intro to LaTeX Workshop

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

Typesetting with L A TEX: The Basics 1

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

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

L A TEX for Psychological Researchers

Using L A TEX. A numbered list is just that a collection of items sorted and labeled by number.

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

A Short L A TEX Introduction

INSTALLING AND USING L A TEX

Introduction to L A TEX

A brief introduction to L A TEX

An introduction to LaTeX

TUTORIAL 5: LIST ENVIRONMENTS. 1. Welcome. (1) Hello. My name is Dr. Christopher Raridan (Dr. R).

L A TEX. The Logo. Introduction to L A TEX. Overview. Primary Benefits. Kinds of Documents. Bill Slough and Andrew Mertz

Student Learning Service: Introduction to Latex

Introduction to LAT E X

An Introduction to L A T E X

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

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

A Brief Introduction to LaTeX

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

An Introduction to LATEX

The Name of the Game. An Introduction to LATEX. Why L A TEX? The Name of the Game

Mikkel Madsen

Introduzione a LaTex. Fabrizio Messina

L A TEX- Advanced Topics

An Introduction to LATEX

Paul Gartside. March 2, 2013

LAT E X week 2: Basics for Writing a Document

Mikkel Madsen

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

L A TEXInstallation and Introduction

Typing Mathematics. Darrin Doud

Introduction to L A TEX for MCS-236

Introduction to L A TEX

VERY VERY SHORT GUIDE TO LATEX

MATLAB for the Sciences

1. Welcome. (1) Hello. My name is Dr. Christopher Raridan (Dr. R). (3) In this tutorial I will introduce you to the amsart documentclass.

Outline Getting started Editing. LA TE X introduction. Kyle Rawlins. February 26, 2009

1 Different Document Classes

Workshop on LATEX 2ε. Asst. Prof. Dr. Kemal Bagzibagli Department of Economics. 20 May 2015

Introduction to LAT E X

PRISM Introduction to L A TEX

Latex Tutorial. CIS400 Senior Design 9/5/2013

A Beginner s guide to L A TEX for CSCA67/MATA67. Kohilan Mohanarajan

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

David Helmbold, October 2005, Revised October 2007

Abstract A quick intro by examples to the document preparation language L A TEX.

How does L A TEX work?

LATEX Workshop. Yi Liu Chen SUNY Geneseo PRISM Math Club. February 6, Wordmark Reversed Geneseo Wordmark Style Guide 4

Introduction to LaTex 2ε. Based on The Not So Short Introduction to LaTeX 2ε by Tobias Oetiker et al., April 2001

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

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

My Full-Length Title

Dec. 27 th, 2010 University of Isfahan

Introduction to L A TEX

An introduction to LaTeX

Effective Programming Practices for Economists

Transcription:

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 typesetting mathematics. Automatic numbering and citations! Gives the user control of page formatting. Separates the writing of content from the formatting. Free to use; support of the open source community. The output is a pdf; readable by all. It s standard. It s pretty. When NOT to use L A TEX: Creating flyers. When you have only text. (No figs, tables, eqns, references) If you don t want to be in charge of the formatting.

Typesetting Mathematics 9 1 ( yx 5 + e xy) dx y 1 n 2 = π 6 a 2 + b 2 n=1 αβγδ ω ABC Z ABC Z (A B) C =(A C) (B C) ( )( ) 1 2 1 0 3 4 3 1 = ( ) 5 2 9 4

Automatic numbering I am able to reference theorems, figures, and equations even if their numbers change. Theorem 1. Iamatheorem. Proof. Some pretty, distracting equations: { z if z 0 z = z if z < 0 z =14x 7y (1) 10x =17y (2) By Equations (1) and (2), we have proved Theorem 1.

Structure of a.tex file Always begins with \documentclass Next, import necessary packages. Insert user-created commands. File content starts with \begin{document} To break into sections, use \section and \subsection Use%towritecommentsortohelp with the visual structure. File content ends with \end{document}

Typing text and using fonts To type text, type normally; extra whitespace does not matter. To go to a new paragraph, skip a line. Use a pair of left quotes to open a quote; use a pair of right quotes to close. The following characters are reserved: # $ % & ˆ {}><\ \ is what tells L A TEX that you are entering a command. % is for entering comments. $ is for writing in math mode. For fonts, surround the text you wish with braces and insert \bf (bold), \em (emphasized), \rm (roman), \tt (fixed width), as in {\bf Hello} to produce Hello.

Including equations L A TEX excels at integrating the writing of mathematics into text. To include math symbols or equations inline, use $ to begin and to end; for example, type $a 1^2 + b 1^2$ to get a 2 1 + b2 1. Certain symbols everyone uses: 10 $\sqrt{10}$ 10 1 $\int {1}ˆ{10}$ n=1 $\sum {n=1}ˆ\infty$ 1 n 2 $\frac{1}{nˆ2}$ α $\alpha$... $\hdots$; alsouseful $\cdots$ and $\vdots$ Each mathematician has their own symbol needs; either peruse tables of symbols or use Detexify (detexify.kirelabs.org)

Referencing equations, figures, theorems Alternatively, create equations on their own lines using \begin{equation} and \end{equation}, asin \begin{equation} \frac{a}{b}+1=\frac{a+b}{b} \end{equation} a b +1= a + b b (3) Include a \label{name} to reference it later with \ref{name}. Same goes with defining figures and theorems: \begin{figure} (figure here) \label{fig:name1} \end{figure} \begin{theorem} (theorem here) \label{thm:name2} \end{theorem}... Figure \ref{fig:name1} exhibits Theorem \ref{thm:name2}...

Lists and Tables Lists are pretty simple; use itemize (bullets) or enumerate (numerals). 1. Item 1. 2. Item 2. Item 2a. Item 2b. \begin{enumerate} \item Item 1. \item Item 2. \begin{itemize} \item Item 2a. \item Item 2b. \end{itemize} \end{enumerate} Tables are pretty complicated; use tabular.

Miscellaneous To include graphics, use the package epsfig or graphicx. \epsfig{figure=residual4.eps,height=1in} 3 Residual Plot 2 1 2 4 6 8 10 x 1 2 3 Tousecolor,usethepackagexcolor. For example, {\color{red} xcolor}. To organize citations, use BibTEX To create slide shows, use Beamer LaTeX integrates with the editor emacs.

Installation So you re hooked! How to get L A TEX foryourself? On a Mac Distribution: MacTeX (tug.org/mactex/) Viewer: TeXShop (texshop.org) On a PC Distribution: MiKTeX (miktex.org) Viewer: TeXnicCenter (texniccenter.org) On Linux Like everything else, it s possible.

Tips and help This is one academic exercise where I say: PLAGIARIZE! Read other people s files to see what they do; then copy. Search the web! Example: latex tabular Helpful reference sheets (condensed): Typing Math: Short Math Guide for L A TEX ftp://ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf Find symbols: detexify.kirelabs.org or search. Helpful for getting started (some reading): http://www.tug.org/begin.html www.ctan.org/tex-archive/info/mil/mil.pdf

Let s get hands on! 1. Download Empty.tex and NotEmpty.tex from my website. 2. Open each using TeXShop on your computer. 3. Start typing. 4. When you want to see the output, click on the Typeset button or click Cmd-S (save) Cmd-T (typeset). 5. This will pop up a small window which runs the latex command, and (if you have no errors), will pop up a window with the output in pdf format. 6. If you have errors, you need to decode them, fix them, and typeset again. (often: mismatched {}or misspelled command)