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

Slides:



Advertisements
Similar presentations
Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
Advertisements

DOCUMENT TYPES. Digital Documents Converting documents to an electronic format will preserve those documents, but how would such a process be organized?
HTML popo.
Microsoft Word 2013 An Overview. Your Environment Quick Access Toolbar Customizable toolbar for one-click shortcuts Tabs Backstage View Tools located.
Cleveland State University EEC 414/503, ESC 720 Writing in Electrical and Computer Engineering Lecture 13 Technical Typesetting with LaTeX Dan Simon.
An introduction to LaTeX And other options for producing documents containing mathematics.
157A, Fall Semester 2006 Brent Turner. Presentation Contents: 1. What Is LaTeX? 2. History of LaTeX 3. LaTeX Use 4. Typesetting – HTML vs. LaTeX 5. LaTeX.
Introduction to Jeroen Buijs.
Introduction to LaTeX CPS470 Software Engineering Fall 1998.
Word Processing Mathematics. Word Processing  More professional  Don’t use handwritten symbols  Don’t use poorly word processed symbols.
Lecture 5 Word Processing. ©1999 Addison Wesley Longman5.2 Text Editors Utility program for creating and modifying text files. Do not embed control characters,
School of Aeronautics and Astronautics Introduction to by Arun K. Subramaniyan
CS 173 Fall Introduction to LaTeX David and Lucas CS 173 Fall 2009 Written with significant references to Oetiker et al. “The Not So Short Introduction.
Chapter 12: Network Programming Desktop Publishing Translator models Latex Documentation Preparation Postscript programming language WYSIWIG Editors.
Developing a Basic Web Page with HTML
PDFs & Dorsetforyou.com Laura Hall Senior Website Officer
PowerPoint Add formulae. Course contents Overview: Typing math formulae Lesson1: Type a simple formula Lesson2: Type a complex formula.
LaTeX Tutorial. What is LaTeX? TeX is a typesetting system designed in 1978 to automate the production of high quality print using any type of computer.
Saeid Abolfazli, Faculty of Computer Science and IT, University Malaya Malaysia.
Latex A document preparation system All academic staff in Computer Science publish their work using Latex – NOT Microsoft Word. Why? Note to self – press.
1 LaTeX Introduction Wenguang Wang Department of Computer Science University of Saskatchewan February 28, 2000.
An Introduction to Microsoft Word. Microsoft Word This program allows you to type letters, papers, reports and even books. It is available through the.
For AMS 200, 2009 Dept. of Applied Math & Statistics School of Engineering University of California Santa Cruz, CA A Very Short Introduction to LaTeX.
Welcome to the 3-day Workshop on > Presented by Saeid Abolfazli Faculty of Computer Science and IT University Malaya 23,24, and.
Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy.
Introduction to LaTeX PRISM Brownbag Series June 9 th, 2009 Byungwon Woo.
Software All parts of the computer people can NOT touch, such as programs, files, documents and any other data.
Communication of Scientific Results in Advanced Labs at San Francisco State University ALTC – July 2009 James Lockhart Physics & Astronomy Dept. San Francisco.
.  Entertain  Inform  Educate  Blogs  Sell  Date  Gamble  Religion.
Muhammad Asad University of Engineering and Technology(UET), Taxila, Pakistan ITC Lab 05.
Introduction to Unix – CS 21 Lecture 16. Lecture Overview LaTeX History Running and creating LaTeX documents Documents and Articles Tables Lists Fonts.
Using a Template to Create a Resume and Sharing a Finished Document
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
LATEXLATEX IPA – batch. LATEXLATEX  A document preparation system - pronounced as lay-tek  It is a markup and programming language created by.
An Introduction to Microsoft Word. Microsoft Word This program allows you to type letters, papers, and other documents. This program allows you to type.
June LaTeX " A typesetting package for formatting and creating documents. Created by L. Lamport based on TeX designed by D. Knuth. " Alphanumeric.
1 LaTeX For Dummies Mulugeta Gebregziabher Division of Biostatistics and Epidemiology MUSC April 4, 2011.
Academic Writing Using LaTeX
Working with References Microsoft Office Word 2007 Illustrated Complete.
McGraw-Hill Career Education© 2008 by the McGraw-Hill Companies, Inc. All Rights Reserved. Office Word 2007 Lab 3 Creating Reports and Tables.
File Formats Different applications (programs) store data in different formats. Applications support some file formats and not others. Open…, Save…, Save.
LATEX B. R. Chandavarkar, Wireless Information Networking Group (WiNG), CSE Dept., NITK, Surathkal.
Seminar Sam Panzer. Good Evening, and Welcome First, an overview of what these seminars will cover Topics: – What you need to get started – What LaTeX.
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
The References Tab contains tools that help users to easily create references, table of contents, indexes, captions, citations, footnotes, endnotes and.
Page Layout You can quickly and easily format the entire document to give it a professional and modern look by applying a document theme. A document theme.
Information SKL for Graduate Students Instructors: Sina Mater 3 December 2010.
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
Duxbury 11.3 Braille Translation Software Gaeir Dietrich Director High Tech Center Training Unit of the California Community Colleges.
Sébastien Le Roux. not What I am not going to talk about The explanations are in my HowTo ! Check my web IPCMS Basic tutorial to programming.
ITL conference 2003 Putting Your Content on a Diet Using rich online media without download woes.
1 Programming and problem solving in C, Maxima, and Excel.
LaTex -Computer scientist named Donald Knuth developed the program called Tex, in 1978.(mainly focused on formulae) -Later a mathematician and computer.
Reference Management Module I: Introduction By Rehema Chande-Mallya(PhD)
LaTeX Tutorial. What is LaTeX? TeX is a typesetting system designed in 1978 to automate the production of high quality print using any type of computer.
LATEX By GerardoVela 3/27/2015.
NGUYEN THI THANH NHA HMCL
Software for scientific calculations
COMPSCI 111 / 111G An introduction to practical computing
Introduction to LaTeX David and Lucas CS 173 Fall 2009
LaTeX Tutorial.
Introduction to LaTeX By Dan Burke.
LaTeX is not... rubber a Bill Gates product WYSIWYG (see) VooDoo
Benchmark Series Microsoft Word 2016 Level 2
ICT Word Processing Lesson 1: Introduction to Word Processing
A Very Short Introduction to LaTeX
A high quality document preparation system
An Introduction to Microsoft Word
Presentation transcript:

An introduction to LaTeX And other options for producing documents containing mathematics

Robbie Robinson Department of Mathematics GWU Washington DC

1. What is TeX?

Tex is: ► A typesetting system for professional quality scientific documents. ►...especially those containing a lot of mathematical symbols. ► Runs on multiple platforms. ► Comes in PlainTeX, LaTex, AMS-LaTeX, etc.

Origin ► Written by Stanford University computer scientist Donald Knuth. ► … was as unhappy about how publishers typeset his papers, ► …studied traditional typesetting and printing, ► …built a lot of expert knowledge into TeX.

Pronunciation ► Name comes from Greek  ► Means both art and technology. ► Rhymes with “ belch ”…. ► Does not rhyme with “ sex ” ! ► However: LaTeX is sometimes pronounced “ lay-tex ” (as in a type of rubber).

What does TeX consist of? ► A language and software. ► Knuth ’ s part TeX, plus packages (like LaTex) ► Knuth ’ s ultimate version of the TeX program was released in ► Knuth: “ There will be no more changes. ” ► The TeX Book (1986) ultimate TeX language reference. ► Other Knuth books: on the program, fonts, etc.

2. LaTeX and other packages

Ancient history & lagacy ► TeX is a primitive typesetting engine (by Knuth) that is programmable. ► Programs can be put together into packages. ► These define dialects and styles. ► With the final version of the TeX program, Knuth released “ PlainTex ”, and the “ Vanilla ” style.

More history: AMS-TeX… ► Released in early 1980's by AMS. ► Based on Knuth ’ s Vanilla style. ► Improvements:  handling very complex math formulas.  additional math oriented fonts. ► Developed by Michael Spivak. ► The Joy of TeX (1982 … )

Still more history: LaTeX… ► Released in mid 1980 ’ s ► written by Leslie Lamport, of Digital Equipment Co. ► LaTeX: A documant preparation system (1986) ► Upgrade of Knuth ’ s basic TeX language, independent of AMS-TeX.

Innovations in LaTeX ► Automatic numbering of theorems and equations. ► A better “ mark-up ” system (e.g., environments). ► A Pascal-like style. ► A greater variety of document types article,book, etc.) ► … still more fonts.

Current State of the Art ► LaTeX-2  (Frank Mittelbach, et al) ► AMS-LaTeX as LaTeX-2  package. ► Knuth’s TeX program replaced with PDFLaTex program. ► Easy to install distributions for Windows, Mac, Linux (all open source). ► TeXworks GUI for all platforms. ► Many useful packages, styles, and auxiliaries:  BibTeX, graphics, Beamer, etc.

Distributions. ► Microsoft Windows: MikTeX  (use the “Basic Installer”). ► Mac OS X: MacTeX  (install MacTeX.pkg). ► Linux (or any Unix): TeX-Live  (It’s probably best to install via your Linux distributions implementation of dpkg or RPM rather than from here.).

GUI Front Ends ► TeXworks (all platforms)  TeXShop (Mac), WinEdt (Windows) ► GNU Emacs with AUCTeX package (for the hardcore hacker in you…).

References ► More Math into Latex by George A. Gratzer, (4 th ed 2007) Edition/dp/ Edition/dp/ Edition/dp/ ► Math into LaTeX by George A. Gratzer (1993) ftp://ftp.tex.ac.uk/tex-archive/info/mil/mil.pdf ftp://ftp.tex.ac.uk/tex-archive/info/mil/mil.pdf ► LaTeX by Wikibooks.org ► TUG (TeX Users Group)

3. Using TeX

Mark-up ► LaTeX is a markup language, (like HTML, the language of the www). ► You type an ASCII (text) file with the extension ".tex”. ► You do not worry about formatting. You leave it to LaTeX (as in HTML where you leave formatting to the browser). ► TeX formats according to the style you are using.

Ideology ► “ Logical Document Design ” as opposed to “WYSIWYG” (what you see is what you get) ► Common to TeX and HTML. ► User describes logical role of each part of the document. ►... not how to place items on the page!  Of course some adjustment is often necessary at the end…

Logical Document Design in TeX ► To emphasize text, you type: Emphasize this! {\em Emphasize this!} ► What you will (probably) get:

How do you demand italics? Italicize this! {\it Italicize this!} ► What you (should) get:

► {\bf … } for boldface, ► {\rm … } for Roman (not italics or bold) ► {\tt … } for teletype. ► {\sc … } for “ small caps ”. Font control in La-TeX.

4. Typing Mathematics.

More TeX v.s. HTML ► In TeX the big thing is mathematics.  Inside your document, all formulas are typeset in math mode. ► There is display math and inline math. ► Variables in italics, numbers in Roman, lots of math symbols!  In contrast, text is set in text mode. ► Default font is Roman.

Example ► Math mode Inline: equations between $ ’ s An inline equation x 2 –x–1 = 0 appears in this line. An inline equation $x^2-x-1=0$ appears in this line. ► You will get (approximately) LaTeX decides where to break lines, pages, etc.

Knuth ’ s poor choice of delimiters ► TeX violates a common custom of notation: Delimiters should come in left and right pairs. $x^2-x-1=0$ violates this.

LaTeX corrects Knuth ► Allows \( x^2-x-1=0 \) for inline math. ► But most people still use $x^2-x-1=0$. ► LaTeX also allows \[ x^2-x-1=0 \] for display math. ► But I prefer a LaTeX feature called environments:

Here is a displayed equation \begin{equation} \label{eq:fib} x^2-x-1=0, \end{equation} and it has a number. Display equation environment in LaTeX: Here is a displayed equation (1.1)x 2 –x–1 = 0, and it has a number!

Solving the quadratic equation (\ref{eq:fib}) we get the Golden Mean. Later, you can refer to the label… Solving the quadratic equation (1.1) we get the Golden Mean.

Here is a displayed equation \begin{equation*} x^2-x-1=0, \end{equation*} without a number. You can also display without a number… Here is a displayed equation x 2 –x–1 = 0, without a number!

For all $\epsilon>0$ there exists $\delta$ so that if $|x-y|<\delta$ then $|f(x)-f(y)|<\epsilon$. Greek letters: For all  > 0 there exists  > 0 so that if |x - y| <  then |f(x) - f(y)| < . Spelled out as “control sequences”.

Given a bounded sequence $x_1,x_2,\dots$, there exists a convergent subsequence $x_{i_1},x_{i_2},\dots$. Subscripts and superscripts These use “ ^ ” and “ _ ”. Nesting is allowed with { } Given a bounded sequence x 1, x 2,…, there exists convergent subsequence.

If $f$ is in $L^2[0,1]$ and \begin{equation*} f_n=\frac{1}{2\pi} \int_0^{2\pi} f(x)e^{i n x}\,dx \end{equation*} then $||f||^2_2=\Sum_0^\infty |f_n|^2$. Integrals, and sums If f is in L 2 [0,2  ] and then.

\begin{thm}\label{th:fw} The equation $A^n+B^n=C^n$ has no integer solutions for $n>2$. \end{thm} \begin{proof} See the margins. \end{proof} Theorem-like environments Theorem 1.1. The equation A n +B n =C n has no integer solutions for n>2. Proof. See the margins. □

5. Document structure.

Starting and finishing ► LaTeX requires (at least a few) special lines at the beginning and end of a document. \documentclass[12pt]{amsart} \begin{document} Put your text here... \end{document}

Partitioning your document \documentclass[12pt]{amsart} \title{Hello world} \author{Robbie Robinson} \begin{document} \maketitle \section{Introduction} Put your text here… \section{The main result} Put your text here… \subsection{Some comments} Put your text here… \end{document}

Adding packages and macros \documentclass[12pt]{amsart} \usepackage{amsmath,amssymb,amsfonts} \usepackage{graphicx} … \begin{document} … \end{document} These packages ass fonts and symbols. And allow for the insertion of graphics.

Adding Comments \documentclass[12pt]{amsart} \begin{document} % Hi Steve. This is my latest draft. % What do you think? Put your text here… \end{document} Anything after a % on a line is a comment.

Other useful things to do ► Insert graphics (pdf preferred, but can take eps or bitmapped graphics too) ► Bibliography  Manually  With BibTeX  In LaTeX itself ► Index or table of contents All of the above are demonstrated somewhere in the sample LaTeX files

6. The LaTeX workflow

The TeXworks window

Choose “Syntax Coloring” in “Format”

Choose “pdfLaTeX” and GO

Errors (need to be fixed)

(Finally) the result

Run twice or more ► LaTeX is a 1 pass processor. Information about cross-referencing, etc. requires a second pass. ► With indexes, BibTeX bibliographies, etc., more passes may be necessary ► Errors and warnings. Take them all seriously

The perils of artificial intelligence ► LaTeX (and TeX) “want” to do things their way. ► As hard as it is to believe at first, their way is usually better then your way (Knuth studied 500 years of printing tradition). ► You can always force LaTeX to do what you want, but it can be difficult to do.

7. Useful Programs Now and on the horizon

Graphics ► Use graphicx package (see examples) ► pdf, Posescript (vector graphics preferred)  Mathematica*, Maple*, Matlab* (Maxima, Sage, Octave, Scilab, GNUplot)  Inkscape, llustrator*,ghostview, Acrobat* ► jpeg, tiff (bitmapped)  Your camera or phone, web downloads, Windows paint*  Photoshop*, Gimp, Irfanview (for Windows) * = $$$ (these cost money)

Bibtex ► Supports.bib format for bibliographic citations. ► Entries downloadable from MathSciNet (AMS math reviews online). ► References are automatically labeled. ► You can make master bibliography which can be reused.

WYSIWYG ► Scientific Workplace (Word, Notebook) (commercial) ► LyX (open source) ► MathType (add on Math editor for Microsoft Office) ► TeXpoint & MyTeXpoint (inset LaTeX in powerpoint)

Beamer ► A LaTeX alternative to Powerpoint.  (Not what I used here…) ► Can include text, math symbols and graphics. Some animation possible. ► Allows “easy” conversion between research paper (in LaTeX) and research talk. ► See the examples…

8. The last word Now and on the horizon

Advice ► Easy to get started. With time, professional results can be obtained. Be patient… ► Copy other LaTeX documents!  Using LaTeX is programming (hacking). ► Ask professors or other students for help. ► Use Google/Bing search to find answers (e.g., “LaTeX symbols”, etc.). ► Try things and see what happens….

Computer literacy for math students ► LaTeX including graphicx, BibTeX & Beamer ► Mathematica or Maple, and Matlab (if at all applied) or free altenatives  Maxima and Sage; Octave or SciLab; Python ► Drawing program like Inkscape (Illustrator) ► MathSciNet ► Linux and/or Unix (in addition to Windows, MacOS, etc.)