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

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

Introduction to LaTeX. Paul Fodor Stony Brook University

David Helmbold, October 2005, Revised October 2007

Very Short Introduction to LaTeX

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

Introduction to L A TEX

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

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

Helen Cameron. A Brief Overview of LATEX

Latex Tutorial. CIS400 Senior Design 9/5/2013

The Honours Dissertation Class for L A TEX2e. Cara MacNish

Formatting with LaTeX

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.

An introduction to LaTeX

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

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

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

LaTeX, automata,computability, and notation. CS154 Chris Pollett Jan. 25, 2006.

Typesetting with TEX

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

Helen Cameron. A Brief Overview of LATEX

Document Preparation Using L A TEX

CSCM10 Research Methodology A Taster of L A TEX

An introduction to LaTeX

Introduzione a LaTex. Fabrizio Messina

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

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

CSCE 222 Discrete Structures for Computing. LaTeX. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker

Basic L A TEX. what is LaTeX?

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

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

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

Typing Your University of Georgia Thesis With L A TEX: Frequently Asked Questions

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

Lecture 1: Short summary of LaTeX basics

Learn LaTeX in 30 Minutes. A. LOTFI School of Science and Technology Nottingham Trent University

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

An Introduction to LATEX

An Introduction to L A T E X

Introduction to LATEX

The Joys of LAT E X. Vadim Ponomarenko. introducing the world s standard typesetting language.

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

A Short L A TEX Introduction

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

Creating Your Paper or Thesis With LYX

L A TEX presentations with Prosper

VERY VERY SHORT GUIDE TO LATEX

HOW TO TYPESET THESES. Using iiscthesis style for LAT E X

Introduction to L A TEX

Document Preparation Word Processors

How to get started in L A TEX

Guidelines for ETNA manuscripts 1

COMS 6100 Class note

Word-to-L A TEX specification

Literate programming with R and L A TEX

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

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

A TEMPLATE THESIS/DISSERTATION USING THE UTSATHESIS PACKAGE. WEINING ZHANG (TO BE REPLACED BY YOUR OWN NAME), M.Sc.

Introduction to Latex. A workshop by Dr. Ala Eshmawi

Assessments for CS students:

Learning L A TEX. Patrick Lam

Workshop P. Stallinga 16-X-2012

Dec. 27 th, 2010 University of Isfahan

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

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

LYX with Beamer and Sweave

CTAN lion drawing by Duane Bibby \LaTeX and \BibTeX. HJ Hoogeboom 19 april 2013 Bachelorklas

Praktische Aspekte der Informatik. Moritz Mühlhausen Prof. Marcus Magnor

Department of Engineering

The KBibTeX Handbook. Yuri Chornoivan

Typing Mathematics. Darrin Doud

Introduction to LATEX

L A TEX for Philosophers

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 TEX

1 Article-based theses and dissertations

LATEX and Beamer. L A TEX and Beamer. Software Freedom Day, Indian Statistical Institute, Kolkata. September 16, 2011.

Thomas E. Price Lance Carnes. L A TEX Quick Start. A first guide to document preparation. Published by Personal TEX, Inc.

An Introduction to L A TEX

LATEX Thesis Template. by Steve D. Sharples, MEng

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

What is L A T E X? Dan Yasaki. June 4, 2018 REU at Elon University. UNC Greensboro. Dan Yasaki What is LAT E X? 1 / 22

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

Introducing Document Preparation with L A T E X

An introduction. C.D. Emmery & M.M. van Zaanen. October 22, Tilburg University

GROUP ASSIGNMENT. L A TEX Assignment 1/3

Introduction to L A T E X

Including Graphics in L A TEX Files

The ohio-etd template for Electronic Theses and Dissertations at Ohio University

Introduction to L A TEX

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

My Mathematical Thesis

Absolute L A TEX Beginner

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

Using L A T E X for scientific writing

Bibliographies in L A T E X

LATEX. Leslie Lamport. Digital Equipment Corporation. Illustrations by Duane Bibby. v ADDISON-WESLEY

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

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

Transcription:

A LAT E X Tutorial Evangelos Milios March 15, 2004

What is LAT E X LAT E X is a typesetter. processor. It is not WYSIWYG. It is not a word Author specifies the structure of the document symbolically (in a mark-up language), without worrying about the formatting (like XML) LAT E X takes care of the formatting of the document according to the specified document style LAT E X files are text files, with mark-up for sectioning, equations, tables and figures. 1

Why is LAT E X better than Microsoft Word for theses and papers? Professional quality typesetting of documents, and, in particular, equations Automatic numbering and crossreferencing of references figures and tables equations sections and pages 2

Document style change from thesis to conference or journal paper is more or less trivial. Baseline font size change is trivial, and scales headings and equations, too. Automatic placement of floating objects (figures and tables) Equations are not graphics. text. They are an integral part of the

Automatic generation of table of contents list of figures list of tables index Archival: LAT E X files can be processed and printed decades later. LAT E X files cannot be corrupted! De facto standard for publishing scientific documents, especially medium-to-large ones. WYSIWYG products running on top of LAT E X exist, but they are expensive (US$450/single user). See: http://www.mackichan.com/ products Scientific Word.

The LAT E X process Option 1 (open source): The LAT E X file is processed with latex to generate a DVI file The DVI file is processed with dvips to generate a Postscript file The Postscript file can be: previewed using Ghostview printed converted to pdf format using command ps2pdf or Acrobat Distiller. Option 2: The LAT E X file is processed with pdflatex to produce a pdf file directly. 3

The LAT E X process File.tex Latex or File.dvi File.dvi Latex or File.dvi Pdflatex Bibtex Pdflatex (x2) File.bbl File.aux Dvips & ps2pdf File.ps Refs.bib File.pdf User provides: File.tex, Refs.bib Files using latex: File.dvi, File.bbl, File.aux, File.ps Printable file: File.ps or convert to pdf via ps2pdf(unix) or Acrobat Distiller (Win)) Files using pdflatex: File.bbl, File.aux, File.pdf 4

How to get started with LAT E X Get hold of a thesis or paper in LAT E X Use it as a template Use MikTeX for Windows gnuemacs LAT E X editing mode on Unix, and the latex, bibtex, dvips, ps2pdf or pdflatex, bibtex commands 5

A very simple LAT E X file From Getting Started with L A T E X, by David R. Wilkins http://www.maths.tcd.ie/~dwilkins/latexprimer/index.html \documentclass[12pt]{article} \begin{document} The foundations of the rigorous study of \emph{analysis} were laid in the nineteenth century, notably by the mathematicians Cauchy and Weierstrass. Central to the study of this subject are the formal definitions of \emph{limits} and \emph{continuity}. Let $D$ be a subset of $\bf R$ and let $f \colon D \to \mathbf{r}$ be a real-valued function on $D$. The function $f$ is said to be \emph{continuous} on $D$ if, for all $\epsilon > 0$ and for all $x \in D$, there exists some $\delta > 0$ (which may depend on $x$) such that if $y \in D$ satisfies \[ y - x < \delta \] then \[ f(y) - f(x) < \epsilon. \] One may readily verify that if $f$ and $g$ are continuous functions on $D$ then the functions $f+g$, $f-g$ and $f.g$ are continuous. If in addition $g$ is everywhere non-zero then $f/g$ is continuous. \end{document} 6

And the file after typesetting The foundations of the rigorous study of analysis were laid in the nineteenth century, notably by the mathematicians Cauchy and Weierstrass. Central to the study of this subject are the formal definitions of limits and continuity. Let D be a subset of R and let f: D R be a real-valued function on D. The function f is said to be continuous on D if, for all ɛ > 0 and for all x D, there exists some δ > 0 (which may depend on x) such that if y D satisfies then y x < δ f(y) f(x) < ɛ. One may readily verify that if f and g are continuous functions on D then the functions f + g, f g and f.g are continuous. If in addition g is everywhere non-zero then f/g is continuous. 7

Figures (photographs or diagrams) in LAT E X Must be in encapsulated postscript (eps) (for latex) or pdf or jpeg format (for pdflatex) Diagrams can be generated with a drawing program that can export into encapsulated postscript, e.g. CorelDraw, Dia, Powerpoint (Windows), Xfig (Unix), or print into pdf format. Eps file is included into a LAT E X file using includegraphics Size and orientation can be adjusted with includegraphics Example: Previous Figure made in CorelDraw, exported into eps/pdf, included in latex file as: \includegraphics[scale=0.7]{./latexprocessing} latex will use the eps version, pdflatex will use the pdf version. 8

Structure of a LAT E X file: preamble \documentclass[12pt]{article} \pagestyle{plain} \usepackage{graphicx} % include macros for including eps or pdf figure files \usepackage{setspace} \onehalfspacing %\newcommand{\comment}[1]{ {\tiny {#1} } } % show comments, for editing \newcommand{\comment}[1]{ } %hide comments, for final version \long\def\invis#1{} % make text invisible \begin{document}} \title{blah Blah...} \author{ {\em Student name, Evangelos Milios}\\ Faculty of Computer Science, {\tt \{eem\}@cs.dal.ca}} \date{} \maketitle % no date % make the title page here \begin{abstract} blah, blah,... \end{abstract} 9

Structure of a LAT E X file: body \section{introduction} \label{introduction} blah, blah,... In Section \ref{bodyofwork},... In Section \ref{discussion}... \section{body of work} \label{bodyofwork} blah, blah,... \section{discussion} \label{discussion} \paragraph{acknowledgements} blah, blah,... \bibliographystyle{plain} \bibliography{reference} % reference.bib contains the references \appendix \section{my code} \section{excruciating details about my experiments} \tableofcontents \end{document} 10

References Placed in a bibliography file (.bib) Each reference has a key Cited in the text by \cite{key} Bibliography section constructed and formatted automatically Items are numbered and correct numbers are placed in the text automatically 11

Example of a bib file @BOOK{Lewis1998, AUTHOR = "H. Lewis and C. Papadimitriou", TITLE = "Elements of the Theory of Computation", PUBLISHER = "Prentice-Hall", YEAR = "1998", ADDRESS = "Upper Saddle River, NJ 07458" } @ARTICLE{Muslea2001, AUTHOR = "I. Muslea and S. Minton and C. Knoblock.", TITLE = "Hierarchical Wrapper Induction for Semistructured Information Sources", JOURNAL = "Journal of Autonomous Agents and Multi-Agent Systems", VOLUME = "4", YEAR = "2001", PAGES = "93-114" } Other types are available, too: INBOOK, TECHREPORT, INPRO- CEEDINGS,... 12

Slides in LAT E X Recommended when you have equations and figures already in LAT E X (simple cutting and pasting between slides and thesis/paper) The slides class: Formats appropriately for slides No floating bodies (figure, table) Allows colours and overlays Powerpoint-like effects are possible. For Display, convert to pdf format and use Acrobat. 13

History of LAT E X T E X was created by Donald Knuth in the late seventies. LAT E X was written by Leslie Lamport as a more or less self-contained set of macros for T E X in the early eighties (1983). At the same time (early eighties), the American Mathematical Society developed AMS-T E X, causing a split in the mathematical community. In 1990, the AMS introduced AMS-LAT E X, splitting the community even further. LAT E X2e was introduced in 1993, unifying LAT E X and AMS-LAT E X. In 1995, the AMS released version 1.2 of AMS-LaTeX built on top of LAT E X2e. Just what is T E X? http://www.tug.org/whatis.html 14

Summary When to use LAT E X? For a scientific document such as a thesis, textbook, monograph, or paper For a document with a complex structure, bibliography and cross-references that will be revised several times When typesetting of professional quality is required Any document that you want to be able to read many years later 15

When not to use LAT E X? For a letter or short memo of a short lifespan For a short document with a simple structure and few and simple, or no, equations Foreign language support may be limited. There is support for greek, arabic (arabtex), and Chinese. What is LAT E X not good at? Very small selection of fonts Lack of control over the precise layout of the document (if you need it).

References 1. Tim Love: Why LAT E X?, September 2000, University of Cambridge, Department of Engineering http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/latex_advocacy.html (compares LAT E X, Microsoft Word and Framemaker). 2. Allin Cottrell: Word Processors: Stupid and Inefficient, June 1999, http://www.ecn.wfu.edu/~cottrell/wp.html 3. Leslie Lamport: A Document Preparation System, LAT E X: User s Guide and Reference Manual, Addison-Wesley, 1986. 16