Typesetting with TEX

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

Latex Tutorial. CIS400 Senior Design 9/5/2013

An introduction to TeX. And other options for producing documents containing mathematics

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

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

Introduction to L A TEX for MCS-236

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

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

Written & Oral Presentation: Computer Tools

My favorite LaTex distribution is TexLive. You can download TexLive free TUG, the Tex Users Group, at

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

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

Introduction to LaTeX. Paul Fodor Stony Brook University

Electronic Production Guidelines

An Introduction to L A T E X

David Helmbold, October 2005, Revised October 2007

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

Effective Programming Practices for Economists

An introduction to L A TEX for students

Introduzione a LaTex. Fabrizio Messina

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

Very Short Introduction to LaTeX

A Short L A TEX Introduction

Math 395 Homework #1 Due Wednesday, April 12

Report Writing with Lyx

Introduction to L A TEX

Introduction to Scientific Typesetting Lesson 1: Getting Started

Introduction to MCS 220 and L A TEX

A LAT E X Tutorial. Evangelos Milios. March 15, 2004

LaTeX A Tutorial. Mohsen Alimomeni, 2010

Style template and guidelines for SPIE Proceedings

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

My Mathematical Thesis

Department of Engineering

Bibliographies in L A T E X

Writing Guidelines for

Appendix B: Latex survival guide

Introduction to typesetting with L A TEX

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

L A TEX: Online module 2

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

Mikkel Madsen

Helen Cameron. A Brief Overview of LATEX

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

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

An introduction to LaTeX

An Introduction to L A T E X

Instructions for Typesetting Manuscripts Using L A TEX

A. Configuring Citavi

Latex Tutorial 1 L A TEX. 1.1 Text

Typing Mathematics. Darrin Doud

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.

A brief introduction to L A TEX

An Introduction to LATEX

Tools for Scientific Writing with LAT E X. Johan Carlson

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

How to get started in L A TEX

Remarks on common mistakes

Lecture 1: Short summary of LaTeX basics

An Introduction to L A TEX

Introduction to L A T E X

2. Unlock the Customization Features: The Edit Button Click the "Edit" button on the Dashboard Home Page to unlock the customization features.

An Interactive Introduction to L A TEX

CSCM10 Research Methodology A Taster of L A TEX

Semantics. Doug Arnold (L A TEX for Linguists) September 25, 2007

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

Report Title. Author Name. January 15, Abstract

Introduction to L A TEX

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


Word-to-L A TEX specification

LaTeX. Information Literacy II EN(IL2) Course

Homework # (Latex Handout) by Laura Parkinson

Formatting with LaTeX

An Introduction to LATEX

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

Introduction to Math in LaTeX

Assessments for CS students:

Version List of tables Tbl. 5.1 Additional fonts... 5 Tbl Types of index entries... 10

Writing. October 3, 2006

For proceedings contributors: general submission procedures and formatting guidelines for L A TEX2E users

Contents. Foreword. Examples of GeoGebra Applet Construction 1 A Straight Line Graph... 1 A Quadratic Graph... 6 The Scalar Product...

In another markup scheme it will be like as given hereunder:

Introduction to LATEX

Style template and guidelines for SPIE Proceedings

INSTALLING AND USING L A TEX

GENERAL INFORMATION INSTRUCTIONS FOR MANUSCRIPT SUBMISSION

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

Creating Your Paper or Thesis With LYX

A Short Introduction to L A TEX

Interdisciplinary Journal of Best Practices in Global Development Final Manuscript Preparation Guidelines

Manuscript Title. with Forced Linebreak. Ann Author a) and Second Author b) Authors institution and/or address This line break forced with \\

The AES Convention Paper LATEX class Adam H. Lewenberg (October 18, 2008) 1

Kristoffer H. Rose. Version /01/07

Helen Cameron. A Brief Overview of LATEX

Detailed Format Instructions for Authors of the SPB Encyclopedia

Introduction to LAT E X

Introduction to L A TEX

CODING STYLE. Contents 1. List of style comments 1 2. Other chapters 3 References 5

Transcription:

Typesetting with TEX Scientific typesetting made easy TEX (rhymes with blecchhh! ) is a technical typesetting system created by Donald Knuth of Stanford University. It is currently used by most physicists, mathematicians, and computer scientists, and many astronomers. TEX is capable of correctly typesetting complicated mathematical expresions, with proper alignment of all elements: D = ρ ɛ B = 0 E = 1 B c t H = D t + J This is no mere processing of words. (1a) (1b) (1c) (1d) 15 February 2005 Typesetting with TEX 1

The TEX Process xdvi Manuscript File tex or latex Device Independent File dvips PostScript dvi2pdf PDF File 1. Text, equations, formatting instructions, etc.. are all entered into a manuscript file, myfile.tex. 2. This is run through tex or latex (the TEX engine and macros) to produce a Device Independent file, myfile.dvi 3. The DVI file is processed through an output filter. You can view it on the screen (with xdvi), convert it to a PostScript file myfile.ps (with dvips) or convert it to a PDF file myfile.pdf (with dvi2pdf or dvips ps2pdf) 15 February 2005 Typesetting with TEX 2

Typesetting: The Finer Points Typesetting is more complex than word processing, but for regular text (no equations) typesetting is easy if you keep a few subtle points in mind: A new paragraph is signaled in TEX by a blank line. The entire paragraph is typeset at one time, with optimal line breaks chosen to make the entire paragraph look good. Quotation marks are more complicated: You should use left and right single quotes twice to get left and right quotation marks. Use a single dash for a short hyphen, -, a double dash for a regular hyphen,, and a triple dash for a long hyphen. Diacritical marks are created with special control characters. For example, typeset the words façade and coördinates with fa\c cade and co\"ordinates. Examples are shown in the file story.tex. 15 February 2005 Typesetting with TEX 3

Symbols, Subscripts, Superscripts Mathematics text is typeset differently. Variables are typeset in italics, with different spacing. Mathematics in the body of a text must therefore be enclosed in math quotes, which are dollar signs, $. Math symbols are indicated by a control word name, which begins with a backslash, (eg. $\alpha$ and $\Omega$ produce α and Ω). Subscripts are indicated with an underscore _, while superscripts are indicated with a circumflex ^. Grouping is indicated with curly brackets { and }. To get Yl m (θ 1, φ ) you type: $Y_l^m(\theta_1,\phi^\prime)$ To get G µν = g µν R + 1 4 R µν type: $G_{\mu\nu} = g_{\mu\nu} R + {1 \over 4} R_{\mu\nu}$ 15 February 2005 Typesetting with TEX 4

Displayed Equations Long equations, or important equations, are set off from the text as displayed equations. To get a displayed equation you double the math quotes. To get this: ψ 1 ψ 2 = Y m l (θ 1, φ 1 ) Y m l (θ 2, φ 2 ) 2π dω you would type this: $$ \langle \psi_1\vert \psi_2 \rangle = \int_{-\infty}^\infty { Y_l^m(\theta_1,\phi_1) Y_l^m(\theta_2,\phi_2) \over \sqrt{2\pi} } \, d\omega $$ 15 February 2005 Typesetting with TEX 5

Maxwell s Equations D = ρ ɛ B = 0 E = 1 B c t H = D t + J Maxwell s equations, nicely aligned, are produced by typing: $$ \eqalign{ \nabla \cdot \vec D &= {\rho \over \epsilon} \cr \nabla \cdot \vec B &= 0 \cr \nabla \times \vec E &= - {1 \over c} {\partial \vec B \over \partial t} \cr \nabla \times \vec H &= \phantom{-} {\partial \vec D \over \partial t} + \vec J \cr} $$ 15 February 2005 Typesetting with TEX 6

Macro Definitions TEX is extendable by defining new control words as macros. For example: \def\sph#1{y_l^m(\theta_{#1},\phi_{#1})} The argument #1 is replaced with whatever argument you give to the macro. So you can produce by typing: ψ 1 ψ 2 = Y m l (θ 1, φ 1 )Yl m (θ 2, φ 2 ) dω $$ \langle \psi_1\vert \psi_2 \rangle = \int_{-\infty}^\infty \Sph{1} \Sph{2} \, d\omega $$ Large collections of pre-defined macros are called formats. REVTEX and TEXsis are examples of special formats for physicists. 15 February 2005 Typesetting with TEX 7

EPS Figures Drawings and figures can be included in the document if they are in an Encapsulated PostScript file (ie, an.eps file). In Plain TEX you need to use the macro file epsf.tex, like so: \input epsf.tex. \line{\epsfxsize=\hsize\epsfbox{tex-process.eps}} In LaTEX you use the graphix style package, like so: \usepackage{graphicx}. \includegraphics[width=\columnwidth]{lat96fig2} (There is a bit more to it if you also want captions, figure numbers, etc..., but not much. See the file modlab.tex for examples.) 15 February 2005 Typesetting with TEX 8

Citations and References A utility program called BIBTEX makes it easy to manage citations and references: 1. You collect one or more bibliography files (eg. mylist.bib) containing a list of fields (title, author, journal, etc..) for each work that you might wish to cite. Each item is identified by a unique key. For example: @book{bevington1969, title = {Data Reduction and Error Analysis for the Physical Sciences}, author = {Philip R. Bevington}, edition = {First}, publisher = {McGraw Hill}, year = {1969} } 15 February 2005 Typesetting with TEX 9

2. In your text, when you wish to cite a work, you simply say \cite{key}. Each new work gets a new citation number. 3. At the end of the manuscript file you put \bibliography{mylist} This names the bibliography file (ie, mylist.bib) and it is also where the list of references will appear. 4. When you run TEX, the citations are added to an auxiliary file, myfile.aux. You then run the BIBTEX program, which collects the citations, selects the references from the bibliography file, and outputs the list of references as myfile.bbl. 5. When you run TEX again the list of references (in myfile.bbl) is inserted at the end of your document (where you put the \bibliography). You only need to run BIBTEX again if you add, delete, or re-arrange references. 15 February 2005 Typesetting with TEX 10

TEX Distributions On Windows PC s you want to get MikTEX, which collects together both the TEX engine and all available macros, a DVI displayer, and dvips. Go to www.miktex.org to get it A good front-end is WinEDT. On MacOSX get TEXShop for the front end, and II2.dmg for the TEX engine and macros. [Better instructions on the web sometime soon.] On Linux TEX has been packaged by Thomas Escher as tetex. This is the TEX engine and macros, output filters (xdvi, dvips, etc.) and other tools. Use your favorite editor (emacs, vi, nedit) as the front-end. These all come with Red Hat Linux. There is also a front-end system called Lyx. 15 February 2005 Typesetting with TEX 11

TEX for Physicists For LaTEX there is a class of macros called REVTEX which is used by the American Institute of Physics to typeset their journals (eg. Physical Review, Physical Review Letters, and Reviews of Modern Physics). Authors are encouraged to submit computer manuscripts using REVTEX. For Plain TEX the equivalent is TEXsis (see www.texsis.org) For the Vassar Journal of Modern Physics there is a style file called vjmp.sty. 15 February 2005 Typesetting with TEX 12