Introduction to LAT E X

Similar documents
Introduction to LAT E X

LaTeX A Tutorial. Mohsen Alimomeni, 2010

Introduzione a LaTex. Fabrizio Messina

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

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

L A TEX for Psychological Researchers

L A TEX. COMPSCI 111 / 111G Mastering Cyberspace: An introduction to practical computing. LaTeX. Development. Why?

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

An Interactive Introduction to L A TEX

Introduction to Scientific Typesetting Lesson 1: Getting Started

Math 235: Introduction to LaTeX

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

Getting Started with L A T E X for a Technical Document or Thesis

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

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

An Introduction to L A TEX

Getting started with Latex

A quick guide to L A TEX

Meeting One. Aaron Ecay. February 2, 2011

Helen Cameron. A Brief Overview of LATEX

Absolute L A TEX Beginner

Guide to using L A TEX

Helen Cameron. A Brief Overview of LATEX

Lecture 1: Short summary of LaTeX basics

COMS 6100 Class note

T E X and L A T E X Document preparation tools

An introduction to L A TEX for students

Introduction to L A TEX

Learning LaTeX: The Basics

Dec. 27 th, 2010 University of Isfahan

LaTeX. Information Literacy II EN(IL2) Course

Using L A T E X for scientific writing

Part - I : Short Course Typing Text

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

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

L A T E X Workshop. Bijulal D & Anu Thomas Industrial Engineering and Operations Research Indian Institute of Technology

Introduction to LATEX

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

An Introduction to LATEX

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

L A TEX minicourse. dstowell, mag, sar, scannell,... September Typeset by FoilTEX

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

Latex Tutorial 1 L A TEX. 1.1 Text

Introduction to LaTeX. Paul Fodor Stony Brook University

Effective Programming Practices for Economists

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.

Assessments for CS students:

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

A L A T E X quick start

Introduction to LATEX

LAT E X week 2: Basics for Writing a Document

A Grasshopper s Approach to L A TEX

Introduction to L A TEX

Become a L A TEX Guru

Introduction to LaTeX. Christoph Pickl

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

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

Introduction to L A T E X

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

LATEX Primer. 1 Introduction (Read Me)

Tools for Scientific Writing with LAT E X. Johan Carlson

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

Introduction to L A TEX beamer

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

A brief introduction to L A TEX

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

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

Typesetting in wxmaxima

Introduction to MCS 220 and L A TEX

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

David Helmbold, October 2005, Revised October 2007

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

Basic L A TEX. what is LaTeX?

LaTeX and Turing Machines. CS254 Chris Pollett Aug. 30, 2006.

Workshop P. Stallinga 16-X-2012

A Short Introduction to L A TEX

L A TEX for psychological researchers

GROUP ASSIGNMENT. L A TEX Assignment 1/3

An introduction to LaTeX

Learning L A TEX. Patrick Lam

Basic Text Formatting with L A T E X

WYSIWYG Systems. CSCM10 Research Methodology Lecture 4 (11/2/16): A Taster of L A TEX WYSIWYM. Advantages/Disadvantages of WYSIWYG Systems

Very Short Introduction to LaTeX

MATLAB for the Sciences

Introduction to L A TEX

Introduction to Latex. A workshop by Dr. Ala Eshmawi

L A TEX for Psychological Researchers

Formatting with LaTeX

CSCM10 Research Methodology A Taster of L A TEX

A Short L A TEX Introduction

GENERAL INFORMATION INSTRUCTIONS FOR MANUSCRIPT SUBMISSION

L A T E X Week 11, Other Document Classes

Introduction to L A TEX for MCS-236

Paul Gartside. March 2, 2013

COMS 6500 Notes. Ashlin Harris. 30 August MT vs. Alabama A&M this Saturday (3 September)

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

Outline. A Sneak Peek

Using L A TEX Tom Edgar

Typesetting with TEX

Course A, Part 1 Basic Formatting in L A TEX

Transcription:

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............................... 3 First Example........................................ 4 Adding a title/author.................................... 5 Typesetting: Spacing I................................... 6 Typesetting: Spacing II................................... 7 Typesetting: Formatting text............................... 8 Typesetting: Special characters.............................. 9 Layout: Sections....................................... 10 Layout: Lists......................................... 11 Layout: References..................................... 12 Layout: Footnotes and Bibliography........................... 13 RSI Papers: Setting Up................................... 14 RSI Papers: Using the Templates............................. 15 RSI Papers: Producing Output.............................. 16 Errors............................................. 17 Typesetting: The Hyphen and Its Friends........................ 18 Getting Help......................................... 19

What is LAT E X? Professional-quality typesetting program Standard in scientific communication Uses text-based commands to format \emph{this is very important.} This is very important. Flexible: can format letters, papers, even books Easy to effect changes to whole document 1 LAT E X command syntax LAT E X uses commands to indicate document styles, formatting, etc. Commands begin with backslash\: required arguments go in curly braces{ }, optional ones in square brackets[ ]. Many commands are given by\begin{foo}...\end{foo}, which format the text between them based onfoo. \begin{center} This text is centered. \end{center} \begin{equation} \alpha \times \beta = \gamma \end{equation} This text is centered. α β =γ (1) 2

Starting your LAT E X document \documentclass{ } specifies the type of document being written (article, report, etc.) and takes various options (font size, double spacing). \usepackage{ } loads various features to your document. \begin{document} \end{document} surrounds the text of the document. 3 First Example To begin, type athena% cd athena% emacs first.tex & Now put the following in your document: \documentclass{article} \begin{document} This is my first \LaTeX\ document. \end{document} 4

Adding a title/author \title{ } and\author{ } are used to specify the title and author of the paper. \maketitle then formats the title appropriately. \documentclass{article} \title{i is smart.} \author{george W. Bush} \begin{document} \maketitle This is my first \LaTeX\ document. \end{document} 5 Typesetting: Spacing I Any number of whitespace characters is treated as one space. Any number of blank lines is treated as a paragraph break. It does not matter whether you enter one or several spaces after a word. An empty line starts a new paragraph. It does not matter whether you enter one or several spaces after a word. An empty line starts a new paragraph. 6

Typesetting: Spacing II There are various ways to force LAT E X to create spaces: \ (backslash-space) and ~ force a space after a command: the latter prevents a linebreak (e.g.,in Section~2, we...) \\ forces a linebreak. \hspace{###} and\vspace{###} force horizontal and vertical spaces respectively, with size ### (a positive, rational number with units of length, e.g.,\hspace{0.5cm}). 7 Typesetting: Formatting text LAT E X is all about not worrying about formatting. But very occasionally it s useful to have different font attributes. Various font adjustments: This is \emph{emphasis}. This is \textbf{bold}. This is \texttt{teletype}. This is emphasis. This is bold. This is teletype. Various font sizes: This is \large{large}. This is \Large{Large}. This is \LARGE{LARGE}. This is large. This is Large. This is LARGE. 8

Typesetting: Special characters For quotes, use (two backquotes) and (two apostrophes) instead of". For single quotes, just use and. However, emacs does the Right Thing TM if you type", so you don t need to do anything special. % is the comment character. Use \% to insert a % in your document. If you just use%, LAT E X will ignore the rest of that line. Similarly,,$,#,&,{, and}all mean something special. Use things like\$ to put these in your document. 9 Layout: Sections You can define sections in your paper. \section{introduction} RSI is fun. \subsection{first Part} My mentor is nice. \subsection{second Part} I took a three-hour lunch break. \section{conclusion} This is the life. 10

Layout: Lists Use itemize to create bulleted lists and enumerate to create numbered lists: RSI kids do not RSI kids do not \begin{itemize} \item set things on fire. \item lose their room keys. \item terrorize MIT students. \end{itemize} My plan for this summer is to: \begin{enumerate} \item Do some research. \item Never call home. \item Get the highest zrsi count. \end{enumerate} set things on fire. lose their room keys. terrorize MIT students. My plan for this summer is to: 1. Do some research. 2. Never call home. 3. Get the highest zrsi count. 11 Layout: References LAT E X lets you refer to one part of the paper from another part. \section{foo} \label{sec:foo} Don t buy lots of Snapple on your mealcard to take to your rooms. It makes the admins angry. \section{bar} In Section~\ref{sec:foo}, we discussed how you shouldn t hoard lots of Snapple from Lobdell. This will replace the\ref command with foo s section number. You can\label almost anything, including sections, pictures, tables, and equations. 12

Layout: Footnotes and Bibliography For more casual references, use footnotes: At some point during the summer, the RSI students and the PROMYS~ \footnote{promys sucks, we beat them 30-3 a few years ago.} students will duke it out on the ultimate field. At some point during the summer, the RSI students and the PROMYS a students will duke it out on the ultimate field. a PROMYS sucks, we beat them 30-3 a few years ago. To refer to an outside source, cite it from your bibliography. Rumor has it that if you fall asleep in the lectures, you will be assigned to cleaning all the bathrooms in Simmons.\cite{ugolini} \begin{thebibliography}{99} \bibitem{ugolini} Ugolini, Dennis. The Art of Delegating Responsibility, {\it The Rickoid Gazette}, {\bf Vol. 19, No. 17}, 2005. \end{thebibliography} 13 RSI Papers: Setting Up You must do the following to work on your papers: athena% cp /mit/rsi/template/minipaper/* ~/MiniPaper athena% cp /mit/rsi/template/finalpaper/* ~/Paper Then: 1. Go to destination directory athena% cd ~/MiniPaper 2. Put text and formatting instructions into a text file (paper.tex) using emacs. 3. To spellcheck, you can use athena% ispell -t filename 14

RSI Papers: Using the Templates For your minipaper: Edit abstract.tex, biblio.tex, cover.tex (title), and paper.tex Do NOT modifymain.tex! 15 RSI Papers: Producing Output There are various output formats for your paper: Device independent (DVI) - standard output format of T E X Postscript (PS) - compiled version of document for printing Portable document format (PDF) - compressed version of document for sharing Creating Viewing Printing.dvi latex main.tex xdvi main.dvi dvips main.dvi.ps dvips main.dvi -o gv main.ps lpr main.ps.pdf pdflatex main.tex distill main.ps xpdf main.pdf Print fromxpdf 16

Errors Sometimes things will go wrong. When you get an error: Look for the line number.m-x goto-line in emacs will take you there. Hitxto stop the compiler. Hitreturn to tell the compiler to continue past the error. Your papers must compile cleanly when you submit them, without having to press return. 17 Typesetting: The Hyphen and Its Friends The hyphen character (-) is used to generate three distinct punctuation marks. Hyphen (in a compound word): just-, as inpath-homotopic. En-dash (in a numerical range):--, as in1984--2005. Em-dash (break in a sentence): ---, as in Yes---just not today or No---I just tested positive. That absent-minded TA threw pages 8--12 away---what a fool! That absent-minded TA threw pages 8 12 away what a fool! 18

Getting Help For frequently asked questions and answers, http://web.mit.edu/rsi/www/ and follow the help link. rsi-help zephyr class. Use thezrsihelp command. A student association known as SIPB also offers advice at http://www.mit.edu/sipb/docs.html. Its office is located just outside the w20-575 cluster. Also, SIPB s Inessential LAT E X, found at is a useful reference. /mit/sipb/doc/ilatex.ps, 19