Introduction to Scientific Typesetting Lesson 1: Getting Started

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

Getting ready for L A TEX. Alexis Dimitriadis. Version: March 28, 2013

Meeting One. Aaron Ecay. February 2, 2011

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

My Mathematical Thesis

Introduction to L A TEX

Introduction to Scientific Typesetting Lesson 5: The Structure of a Document

Introduzione a LaTex. Fabrizio Messina

Written & Oral Presentation: Computer Tools

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

Latex Tutorial. CIS400 Senior Design 9/5/2013

Dec. 27 th, 2010 University of Isfahan

Introduction to L A TEX for MCS-236

Introduction to LAT E X

Introduction to L A TEX

Using L A T E X for scientific writing

An Introduction to. Andrew G. West, Jian Chang CIS400 Senior Design Tutorial September 15, 2009

Writing. October 3, 2006

Introduction to LAT E X

Absolute L A TEX Beginner

Part - I : Short Course Typing Text

Document Preparation Using L A TEX

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

Karlen Communications Importing/Exporting Styles in Word. Karen McCall, M.Ed.

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

Introduction to MCS 220 and L A TEX

Effective Programming Practices for Economists

Getting started with Latex

LaTeX. Information Literacy II EN(IL2) Course

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

CSCM10 Research Methodology A Taster of L A TEX

Basic Text Formatting with L A T E X

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

CSCM10 Research Methodology A Taster of L A TEX

WYSIWYG Systems. CSCM10 Research Methodology A Taster of L A TEX WYSIWYM. Advantages/Disadvantages of WYSIWYG Systems.

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

Introduction to L A TEX

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet.

Helen Cameron. A Brief Overview of LATEX

A Short L A TEX Introduction

Guidelines & Instructions for Manuscript Preparation

LaTeX A Tutorial. Mohsen Alimomeni, 2010

Helen Cameron. A Brief Overview of LATEX

A Sample L A TEX Document

Lesson 1A - First Java Program HELLO WORLD With DEBUGGING examples. By John B. Owen All rights reserved 2011, revised 2015

Word 2007/10/13 1 Introduction

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

Creating Your Paper or Thesis With LYX

Math 291: Lecture 2. Presented by Prof. James for Prof. Fagerstrom

Introduction to Scientific Typesetting Lesson 7: Graphics and Floats

Guide to using L A TEX

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

L A TEX for psychological researchers

Math 291: Lecture 2. Justin A James. Minnesota State University Moorhead web.mnstate.edu/jamesju/

Introduction to L A T E X

Getting to Grips with L A T E X. Andrew Roberts

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

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

L A TEX: Eh? What is it, what isn t it, who cares? Andy Caird. LATEX: Eh? p.1/13

HTML/CSS Lesson Plans

1. The Joy of TEX. Check out this example!

How to approach a computational problem

Math 235: Introduction to LaTeX

TeXnicCenter v1 Beta Frank Van Puyvlde ICT for Research K.U.Leuven

Typesetting with TEX

An Introduction to L A TEX

Programming in ROBOTC ROBOTC Rules

EDITING & PROOFREADING CHECKLIST

A brief introduction to L A TEX

Script for Interview about LATEX and Friends

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

Without savetrees. An Example Document

Mr G s Java Jive. #11: Formatting Numbers

COMS 6100 Class note

LATEX, BibTEX, and Friends. Robert Buels. Outline. What is LATEX. Using BibTEX LYX the graphical LATEX Managing your BibTEX references Further reading

Introduction to L A T E X

Java Programming Fundamentals - Day Instructor: Jason Yoon Website:

Typesetting Tips. Put your best type forward.

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

Course A, Part 1 Basic Formatting in L A TEX

Analyzing PDFs with Citavi 6

Getting Started. Excerpted from Hello World! Computer Programming for Kids and Other Beginners

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

The first time you open Word

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

L A T E X crash course

Intro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming

Boise State University. Getting To Know FrontPage 2000: A Tutorial

Introduction to Cascade Server (web content management system) Logging in to Cascade Server Remember me Messages Dashboard Home

Introduction to typesetting with L A TEX

Imagery International website manual

CSCU9B2 Practical 1: Introduction to HTML 5

A Short Guide To Preparing Your Files for ebookit.com s Free epub Conversion Service

Touring the Mac. S e s s i o n 3 : U S E A N APPLICATION

HOUR 18 Collaborating on Documents

Grade Point Scales Standard Honors AP/College A B C D F Sample file

Dynamic Document Generation in Stata

Introduction to Latex. A workshop by Dr. Ala Eshmawi

Stylesheet Studies in the Linguistic Sciences: Illinois Working Papers

Transcription:

Introduction to Scientific Typesetting Lesson 1: Getting Started Ryan Higginbottom January 5, 2012 1

Our First The Structure of a L A T E X Our First L A T E X The Structure of a L A T E X 2

The Weaknesses of Word The History of The Strengths of The Weaknesses of What is? L A T E X Our First The Structure of a 3

The Weaknesses of Word The Weaknesses of Word The History of The Strengths of The Weaknesses of What is? Our First WYSIWYG programs combine composition and typesetting most Word users don t know much may lose logical structure of a document bibliographies, cross-references, figure labels must be completed by hand different versions mean compatibility issues cost! The Structure of a Even worse... Word is terrible at math! 4

The History of L A T E X The Weaknesses of Word The History of The Strengths of The Weaknesses of What is? Our First The Structure of a T E X Donald Knuth, 1978 (frozen in 1989) frustrated at result of Art of Computer Programming, realized high quality digital typesetting system was necessary L A T E X Leslie Lamport, early 1980s (manual published in 1986) needed macro package on top of T E X has become the standard 5

The Strengths of L A T E X The Weaknesses of Word The History of The Strengths of The Weaknesses of What is? Our First The Structure of a portability and compatibility text files! very flexible cost (free!) consistency throughout document allows you to focus on content automation of tedious tasks (cross-references, bibliographies, etc.) radical, global changes can be implemented consistently with very little work decision-making about formatting can be left to an expert (or not) 6

The Weaknesses of L A T E X The Weaknesses of Word The History of The Strengths of undeniable learning curve complex formatting may occasionally take more time than a word processor (e.g., tables) The Weaknesses of What is? Our First The Structure of a 7

What is L A T E X? The Weaknesses of Word The History of The Strengths of The Weaknesses of What is? Our First The Structure of a L A T E X is a markup language think HTML all work is done in text files L A T E X then processes this file in its entirety and decides how best to typeset the document the output is either a device-independent file (DVI) or a PDF; a DVI can be converted easily to postscript (.ps) or PDF You must remember that L A T E X is not a word processor! Don t expect it to behave like one. 8

Our First Setting up MikTeX TeXnicCenter The Text of Our First File Congratulations! Our First L A T E X The Structure of a 9

Setting up MikTeX Our First Setting up MikTeX TeXnicCenter The Text of Our First File Congratulations! The Structure of a The first thing we need to do is set the proper paper size within MikTeX. (The default is A4, which is a size used more in Europe than the U.S.) 1. Find the MikTeX 2.9 folder from the Start menu. 2. Choose Maintenance, then Settings. 3. In the middle of the window, set Letter to be the default paper size. (Note: do not choose the lettersize option.) You ll want to do this when you install MikTeX on your machine too. 10

TeXnicCenter Our First Setting up MikTeX TeXnicCenter The Text of Our First File Congratulations! The Structure of a TeXnicCenter is a free text editor that has very tight integration with L A T E X. It was dormant for a while, but development has recently resumed. 1. Open TeXnicCenter from the Start Menu. 2. You ll have to tell TeXnicCenter where to look for the L A T E X files. For this computer lab, the location is: C:\Program Files (x86)\miktex 2.9\miktex\bin 11

The Text of Our First File Our First Setting up MikTeX TeXnicCenter The Text of Our First File Congratulations! The Structure of a 1. Create a new document. \documentclass{article} \begin{document} Hello, world! \end{document} 2. Save your document. (You might want 1 document per folder.) 3. Make sure that LaTeX=>DVI is in the build box. 4. Build your document. (Ctrl + F7 or use mouse.) 5. View your document. (F5 or use mouse.) 12

Congratulations! Our First Setting up MikTeX Congratulations! TeXnicCenter The Text of Our First File Congratulations! The Structure of a 13

Our First When Things Aren t Perfect Finding The Structure of a 14

When Things Aren t Perfect Our First When Things Aren t Perfect Finding The Structure of a are written on a log file. TeXnicCenter displays this at the bottom of the window. Type this it will produce an error. \documentclass{article} \begin{document} \includegraphics{globe.eps} Hello, world! \end{document} 15

Finding Our First When Things Aren t Perfect Finding The Structure of a You should see the following at the bottom of your window: LaTeX-Result: 1 Error(s), 0 Warning(s), 0 Bad Box(es), 1 Page(s) 1. Press F9. 2. TeXnicCenter will take you to the error and try to explain it. (Sometimes this is difficult to understand, but you ll get the hang of it.) aren t always fatal, but sometimes they are. 3. You may occasionally need to pay attention to the Warnings, but not usually. 16

Our First The Structure of a Structure The Basic Rules The Structure of a L A T E X 17

Structure Our First Here s the basic idea: \documentclass{article} Preamble The Structure of a Structure The Basic Rules \begin{document} Hello, world! \end{document} Body Everything before\begin{document} is called the preamble. Everything in the document environment is called the body. 18

The Basic Rules Our First The Structure of a Preamble This is where you tell L A T E X how you want your document handled. A book? An article? Margins? Etc. (We will discuss preamble commands a lot.) Structure The Basic Rules Body This is where the text of your document goes. 19

Our First The Structure of a Special Characters Spaces in the Source File Periods More with Periods 20

Special Characters Our First The Structure of a Special Characters Spaces in the Source File Periods More with Periods Remember, L A T E X is not a word processor! Everything after % on a line is called a comment and will not show up. This can be really helpful in making notes to yourself! Other special characters: # $ & ˆ \ { } This means that if you want to produce these characters, you need some special code. For example, type \& in order to see: &. There will be a list of the commands needed for this in one of the documents on Sakai. 21

Spaces in the Source File Our First The Structure of a Special Characters Spaces in the Source File Periods More with Periods Two or more spaces in text are the same as one. Within the body of document, the following give the same output: Additionally, Hello world! Hello world! A tab or end-of-line character is the same as a space. A blank line indicates the end of a paragraph. Two or more blank lines are the same as one. Spaces at the beginning of a line are ignored. Don t get carried away with the freedom this offers. It is important to maintain the readability of your source file! 22

Periods Our First The Structure of a Special Characters Spaces in the Source File Periods More with Periods Rule: A period after a capital letter signifies an abbreviation or an initial. Every other period signifies the end of a sentence. This rule works most of the time. Follow-up Rule: If an abbreviation does not end with a capital letter and is not the last word in the sentence, then follow the period with an interword space (\ ) or a tie ( ). Examples:...birds like ducks, geese, etc.\ are my favorite... Dr.~Smith told me that I had a cavity... 23

More with Periods Our First The Structure of a Special Characters Spaces in the Source File Periods More with Periods Another Rule: If a capital letter is followed by a period and is at the end of a sentence, precede the period with\@. Make sure to take your vitamin C\@. It will help you fight your cold. Last Period Rule: Add thin space (\,) or no space within strings of initials and be consistent. R.\,S. Higginbottom R.S. Higginbottom 24

Our First The Structure of a Environments 25

Environments Our First The Structure of a Environments Anything between \begin{name} and \end{name} is called the content of the environment. Then name would be the name of the environment. We ve already seen one environment: the document environment! The body of the article is the content of the document environment. We ll discuss some text environments shortly. 26

Our First The Structure of a Environments Usual syntax for a command is: \commandname[options]{argument} Arguments are mandatory; options are optional. Note that arguments are enclosed in braces, options (or optional arguments) are enclosed in brackets. An example: \includegraphics[rotate=90]{globe.eps} 27

Our First The Structure of a Quotation Marks Dashes More on Dashes Practice 28

Quotation Marks Our First The Structure of a You ll need the left-quote button (usually the same button as the tilde) and the right-quote button to make quotations. Where do we go? Where do we go? If you need both, you might want to separate them: She asked, Where do we go? \, Quotation Marks Dashes More on Dashes Practice 29

Dashes Our First The Structure of a Quotation Marks Dashes There are three lengths. hyphen Type this with a single dash: type: see: third-world country third-world country en dash This is used for number ranges (and other things). Type with two dashes type: office hours are 3--4 see: office hours are 3 4 More on Dashes Practice 30

More on Dashes Our First The Structure of a em dash This is used to mark an abrupt change in thought or to add emphasis. Type this with three dashes: type: see: an aside---like this one---can be distracting an aside like this one can be distracting Other examples of em dashes: You are the friend the only friend who offered to help. Never have I met such a lovely person before you. I wish you would oh, never mind. Quotation Marks Dashes More on Dashes Practice Examples taken from http://www.grammarbook.com/punctuation/dashes.asp. 31

Practice Our First Look at the example.pdf file posted on Sakai and take some time to reproduce it using L A T E X. I ll be available to help you if needed. Pay attention to the details! The Structure of a Quotation Marks Dashes More on Dashes Practice 32