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

Similar documents
An Introduction to LATEX

Introduzione a LaTex. Fabrizio Messina

LaTeX A Tutorial. Mohsen Alimomeni, 2010

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

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

Formatting with LaTeX

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

Using L A T E X for scientific writing

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

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

Lecture 1: Short summary of LaTeX basics

L A TEX for Psychological Researchers

VERY VERY SHORT GUIDE TO LATEX

Latex Tutorial. CIS400 Senior Design 9/5/2013

CS 189 L A TEX and Linux: Document Layout and Organization

1 Obtaining LyX and L A TEX

David Helmbold, October 2005, Revised October 2007

COMS 6100 Class note

Introduction to Latex. A workshop by Dr. Ala Eshmawi

GROUP ASSIGNMENT. L A TEX Assignment 1/3

An introduction to L A TEX for students

Introduction to L A TEX

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

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

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

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

Helen Cameron. A Brief Overview of LATEX

Guide to using L A TEX

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

Math 235: Introduction to LaTeX

Helen Cameron. A Brief Overview of LATEX

Written & Oral Presentation: Computer Tools

Tools for Scientific Writing with LAT E X. Johan Carlson

Become a L A TEX Guru

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

NOTES ON MATHEMATICAL TYPING

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

LaTeX. Information Literacy II EN(IL2) Course

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

A Short L A TEX Introduction

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

Basic L A TEX. what is LaTeX?

Introduction to LAT E X

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

Introduction to L A T E X

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

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

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. Andrew G. West, Jian Chang CIS400 Senior Design Tutorial September 15, 2009

L A TEX for Psychological Researchers

Introduction to L A TEX

A Brief Introduction to L A TEX

Introduction to L A TEX

Introduction to LAT E X

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

Assessments for CS students:

An Interactive Introduction to L A TEX

Introduction to LaTeX. Paul Fodor Stony Brook University

Very Short Introduction to LaTeX

Introduction to MCS 220 and L A TEX

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

Getting Started with L A TEX

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

Introduction to L A TEX

Useful L A TEX Commands

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

Introduction to Scientific Typesetting Lesson 1: Getting Started

Learn how to [learn] LATEX

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

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

CSCM10 Research Methodology A Taster of L A TEX

Workshop P. Stallinga 16-X-2012

Learning LaTeX: The Basics

Introduction to L A TEX for MCS-236

Meeting One. Aaron Ecay. February 2, 2011

Using L A TEX Tom Edgar

The LYX Tutorial. by Mohammed M. Kadhum

Part - I : Short Course Typing Text

A L A T E X quick start

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

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

Introduction to L A TEX

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

LYX with Beamer and Sweave

Word-to-L A TEX specification

L A TEX Class Holiday Inn Fisherman s Wharf San Francisco, CA July Cheryl Ponchin Sue DeMerritt

Getting started with Latex

Researcher Development Unit: Introduction to Latex

How to Prepare Your Paper in L A T E X for IOE Graduate Conference 2017

My Mathematical Thesis

Introduction to L A TEX

L A TEX From The Ground Up

Learning L A TEX. Patrick Lam

Mikkel Madsen

An Introduction to L A TEX

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

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

GENERAL INFORMATION INSTRUCTIONS FOR MANUSCRIPT SUBMISSION

A Short Introduction to L A TEX

Transcription:

The Name of the Game An to L A TEX Iryna Schlackow Mathematical Institute This talk and other useful L A TEX-related information is available at http://www.maths.ox.ac.uk/help/faqs/latex/ TEX is a computer program created by Donald E. Knuth. It is aimed at typesetting text and mathematical formulae. Knuth started working on it in 1977, and TEX as we use it today was released in 1982. TEX is renowned for being extremely stable and virtually bug free. The version number of TEX is converging to π and is now at 3.1415926. TEX is pronounced Tech, with a ch as in the German Ach. In an ASCII environment, TEX becomes TeX. May 21, 2009 The Name of the Game Why L A TEX? L A TEX is a TEX macro package which enables authors to typeset and print their work at the highest typographical quality, using a predefined, professional layout. L A TEX was originally written by Leslie Lamport in 1980s, and its current version, L A TEX 2ε, was released in 1994. L A TEX (LaTeX in an ASCII environment) is pronounced Lay-tech or Lah-tech. L A TEX 2ε (LaTeX2e) is pronounced Lay-tech two e. The typesetting of mathematical formulae is supported in a convenient way. Complex structures (footnotes, cross-references, bibliography) can be generated easily. Professionally crafted predefined layouts are available so that users only need to learn a few commands that specify the logical structure of a document. It is easy to superimpose another document style, designed by a publisher, on a L A TEX file. Many scientific journals accept manuscripts in L A TEX only. TEX is free and highly portable. Therefore the system runs on almost any hardware and software platform available.

Why L A TEX? L A TEX vs WYSIWYG Systems L A TEX is built on a programming language and is therefore extensible. Free add-on packages exist for many typographical tasks not directly supported by basic L A TEX: customised class styles for scientific journals, presentation class styles, packages for writing CVs and cover letters, packages for music typesetting, packages for writing linguistic papers, Any disadvantages? Not (traditionally) a WYSIWYG system. WYSIWYG systems (Word) The output is precisely what you type in. ( 1 2 3 4 ) The document layout is specified by means of visual design. You may spend too much time fiddling with fonts and margins. The document is likely to have little or inconsistent structure. L A TEX (traditional approach) You type in L A TEX code which needs to be compiled to produce the final output. \left(\begin{array}{ll} 1 & 2 \\ 3 & 4 \end{array}\right) A suitable layout is chosen by L A TEX once the logical structure of the document has been specified. It is very hard to write unstructured and disorganised documents in L A TEX. L A TEX vs WYSIWYG Systems Scientific Word is a L A TEX-based WYSIWYG system for Windows. LyX is a WYSIWYM system for Linux, Unix, Mac OS X and MS Windows. Every L A TEX input file possesses a certain structure. You start with specifying what sort of document you intend to write \documentclass[options]{class} This is followed by the preamble where you can include commands influencing the style of the whole document or load packages adding new features to the L A TEX system When all the setup work is done you start the body of the text. \begin{document} Now you enter the text mixed with L A TEX commands. At the end of the document you add \end{document} Anything that follows this command will be ignored by L A TEX.

L A TEX Editors Once the L A TEX file is compiled, an output file is produced. It can be a.dvi or a.pdf file: if the file is compiled with the latex command, it usually a.dvi file, if the file is compiled with the pdflatex command, it usually a.pdf file. Many L A TEX editors can produce both.dvi and.pdf files. L A TEX Editor (LEd) is a very good free editor for Windows. built-in DVI viewer which provides two-way navigation between the source text and the preview page, built-in spellchecker, descriptive hints, command completion, easy navigation between labels and references, bibliography items and citations, related opening and closing parentheses are highlighted with the same colour, user-friendly interface. L A TEX Editors The \documentclass command \documentclass[options]{class} WinEdt is a commercial editor for Windows. Other L A TEX editors include TeXnikCenter (for Windows), itexmac2 (for Mac OS X), Kile, TeXmaker (runs on Unix, Mac OS X), Emacs (runs on most systems). Document classes: article, book, letter, beamer,... Options (need to be separated by commas): 10pt, 11pt, 12pt, a4paper, twoside, landscape, fleqn,... For example, the command \documentclass[11pt, twoside, a4paper]{article} instructs L A TEX to typeset the document as an article with a base font size of 11pt, and to produce a layout suitable for double side printing on A4 paper.

Preamble Special Characters The preamble tells L A TEX which packages to use. \usepackage[options]{package} Examples of packages include amsmath, amsthm, color. The preamble also defines the style of the document. You can change margins, width or height of text, indentation,... \setlength{\textheight}{600pt} \addtolength{\textwidth}{-1cm} \setlength{\parindent}{0pt} The following symbols are reserved characters that have a special meaning in L A TEX and, when entered directly in text, will coerce L A TEX to do things you did not intend $ & % # { } ˆ \ You can produce these characters in the text. For $, &, %, #,, { and } type a backslash \ in front of them. For, ˆ and \ you need to use special commands. L A TEX Commands Macros L A TEX commands are case-sensitive and consist of a backslash \ followed by a string of letters, or exactly one non-letter (e.g. a special character). Commands may have no arguments, mandatory arguments, which are input in braces { }, optional arguments, which are input in square brackets [ ]. For example, \framebox[3in]{in \LaTeX, you can write in \textit{italic}.} In L A TEX, you can write in italic. You can define your own commands using the following command: \newcommand{name}[num]{definition} For example, in order to produce L we need to type x \frac{\partial L}{\partial x} whereas if we put the following line in the preamble \newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}} it is enough to type \pd{l}{x} If the command name is already defined, use \renewcommand. E.g. \renewcommand{\leq}{\leqslant} replaces with.

Sections The following sectioning commands are available for the article class: \section, \subsection, \subsubsection, \paragraph, \subparagraph. \section{title} or, if the title is too long, \section[title for the table of contents]{a longer title, shown in the text} To create a table of contents, use the \tableofcontents command. To create an unnumbered section that does not appear in the table of contents, use the starred versions of the commands. \section*{title} Environments Environments are building blocks of a L A TEX file. Each declaration of environment has the following syntax \begin{environment} text \end{environment} Examples include \begin{center}... \end{center}, \begin{document}... \end{document}, \begin{enumerate}... \end{enumerate}. Environments can be nested within each other as long as the correct nesting order is maintained: \begin{aaa}... \begin{bbb}... \end{bbb}... \end{aaa} Lists To produce a bullet point list, use the itemize environment. To produce a numbered list, use the enumerate environment. Each item of a list begins with the \item command. \begin{enumerate} \item[label (optional)] \item[label (optional)] \end{enumerate} To change the default style of numbering, redefine the commands \labelenumi, \labelenumii, \labelenumiii, \labelenumiv that provide styles for the four allowed levels of nesting. E.g. \renewcommand{\labelenumi}{\alph{enumi}} \renewcommand{\labelenumii}{(\roman{enumii})} put in the preamble (inside an enumeration environment) produce lists numbered A, B, C... for the first level and (i), (ii), (iii)... for the second level. The change will be applied to the whole document (to this specific enumeration environment). Mathematics Mathematical text within a paragraph is entered between $ and $, e.g., $\alpha=\sum {i=1}^n \beta^i$ α = n i=1 βi. To insert an equation on a separate line, write \[... \] or \begin{displaymath}... \end{displaymath}, e.g. \[ \alpha = \sum {i=1}^n \beta^i \] n α = β i. To produce in line formulae with \displaymath layout, use $\displaystyle...$ instead of $...$, e.g. from the example n above we get α = β i. i=1 To number your equation, use the equation environment instead of the displaymath one. i=1

Vertically Aligning Equations For formulae running over several lines or simultaneous equations use the eqnarray environment, e.g. \begin{eqnarray} \alpha & = & 7+x \\ \beta+\gamma & = & \int {0} {\infty} p(x) {\rm d}x \end{eqnarray} α = 7 + x (1) β + γ = 0 p(x)dx. (2) You can align the equations about any symbol. To produce unnambered equations, use the eqnarray* environment. To not number only certain equations in an array, insert the command \nonumber. Cross-references L A TEX provides the following commands for cross-referencing: \label{marker}, \ref{marker}, \eqref{marker} and \pageref{marker}. For example, \begin{thm} \label{thm:one plus one} \begin{equation} \label{eqn:one plus one} 1 + 1 = 2. \end{equation} \end{thm} Let us now prove equation \eqref{eqn:one plus one} from Theorem \ref{thm:one plus one}. Theorem 1. 1 + 1 = 2. (1) Let us now prove equation (1) from Theorem 1. Other L A TEX features In fact, all this was just the tip of the iceberg. With L A TEX you can do much more: easily generate complex structures such as footnotes, fancy headers, title pages or bibliographies; produce vertically aligned material, e.g. tables or matrices; produce diagrams; manipulate counters; insert graphics (and even movies); write text in various languages; insert hyperlinks into the output pdf documents; change layout of the whole document as well as individual sections/pages/lines, Let L A TEX do as much of your work as possible. Make use of labels and cross-references, enumeration environments, sectioning commands, array environments, macros.

Distinguish between italic and roman fonts in math mode. Compare 1 0 e inx cosnxdx = 1 for n = 0 and 1 e inx cos nxdx = 1 for n = 0. 0 Use roman alphabet for non-mathematical symbols, differential d, exponential e and complex i, functions like sin, cos, log etc. (for these you need to use the backslash version, i.e. write \cos instead of cos). Add punctuation after equations and inside enumeration environments. Differentiate between - hyphen X-ray, en-dash pages 1 12, Cauchy Schwartz inequality, and em-dash a punctuation dash like this. How many authors does the Birch Swinnerton-Dyer conjecture have? Do not use for quotation marks. Instead type two ` (grave accent) for opening quotation marks, and two (vertical quote) for closing quotation marks. Don t be frustrated if something doesn t work out Google is always there to help you!