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

Similar documents
LaTeX A Tutorial. Mohsen Alimomeni, 2010

A Brief Introduction to L A TEX

L A TEX for Psychological Researchers

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

Introduction to L A TEX

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

Introduction to L A TEX

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

Introduction to LaTeX. Paul Fodor Stony Brook University

Introduction to LATEX

L A TEX for Psychological Researchers

Formatting with LaTeX

Using L A TEX Tom Edgar

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

Math 235: Introduction to LaTeX

David Helmbold, October 2005, Revised October 2007

LaTeX. Information Literacy II EN(IL2) Course

Guide to using L A TEX

Introduzione a LaTex. Fabrizio Messina

Introduction to L A T E X

Basic L A TEX. what is LaTeX?

VERY VERY SHORT GUIDE TO LATEX

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

Typing Mathematics. Darrin Doud

Helen Cameron. A Brief Overview of LATEX

Introduction to Latex. A workshop by Dr. Ala Eshmawi

An introduction to L A TEX for students

A Grasshopper s Approach to L A TEX

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

Document Preparation Using L A TEX

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

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

L A TEX Workshop. Don Brower

simpletex Documentation

Become a L A TEX Guru

An Interactive Introduction to L A TEX

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

1 Obtaining LyX and L A TEX

Assessments for CS students:

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

Effective Programming Practices for Economists

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

LAT E X week 2: Basics for Writing a Document

Introduction to L A T E X

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

Helen Cameron. A Brief Overview of LATEX

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

Latex Tutorial. CIS400 Senior Design 9/5/2013

COMS 6100 Class note

An Introduction to L A TEX

An Introduction to LATEX

Workshop P. Stallinga 16-X-2012

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

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

An Introduction to L A TEX

LATEX Workshop. Yi Liu Chen SUNY Geneseo PRISM Math Club. February 6, Wordmark Reversed Geneseo Wordmark Style Guide 4

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

THIS IS AN INTRODUCTION TO. LaTeX. Introduction to Latex. University of Minnesota, November 7, 2016

Learn how to [learn] LATEX

Learning LaTeX: The Basics

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

GROUP ASSIGNMENT. L A TEX Assignment 1/3

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

Introduction to L A TEX

A quick guide to L A TEX

Introduction to LATEX

A Short L A TEX Introduction

A Short Introduction to L A TEX

A L A T E X quick start

Dec. 27 th, 2010 University of Isfahan

Typesetting Text. Spring 2013 TEX-Bit #1 Math 406

Introduction to LaTeX. M&S Talk Series August 16 th, 2016 AH Sheikh

Introduction to L A TEX

T E X and L A T E X For the Uninitiated

Introduction to L A TEX

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.

L A T E X Tutorial. Wanmin Liu August. Department of Mathematics The Hong Kong University of Science and Technology

L A TEX From The Ground Up

An Introduction to L A T E X

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

LaTeX Seminar III: Environments and More Advanced Mathematical Typesetting

An Introduction to L A T E X

T E X and L A T E X Document preparation tools

INSTALLING AND USING L A TEX

MATLAB for the Sciences

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

Using L A T E X for scientific writing

INTRODUCTION TO L A TEX

Introduction to LAT E X

Introduction to L A TEX

Basics. Options. Commands

Getting started with Latex

Getting Started in L A TEX

Document Preparation Word Processors

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

An introduction to LaTeX

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

Introducing Document Preparation with L A T E X

L A TEX. A computer system for typesetting documents

Transcription:

A Very Brief Introduction to L A T E X MAT 3535 Wm C Bauldry BauldryWC Spring Semester, 2006 Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 1 / 19

Topics 1 Background 2 Basic Documents Entering Text Entering Mathematics Including Graphics 3 L A T E X 2ε in Math Sciences at Appalachian A First Document 4 Selected References Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 2 / 19

The Creators of T E X and L A T E X T E X was created by Donald Knuth of Stanford U in the late 1970 s. L A T E X was begun by Leslie Lamport in the mid 1980 s at DEC. Development continues with the L A T E X3 Project. Donald Knuth with the Spokeslion of the T E X Users Group Leslie Lamport of Microsoft Research Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 3 / 19

Meet L A T E X L A T E X is For logical, not WYSIWYG, composing A free, open-source system Easily extensible Typesets mathematics Automatic numbering of equations, chapters, sections, etc. Automatic table of contents, bibliography, index, etc. Automatic cross referencing Available for all platforms Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 4 / 19

Basic L A T E X Document The basic L A T E X document has two parts: Preamble Declarations and definitions The class: article, book, report, etc. L A T E X packages to load Body Document source Example (Simple L A T E X Document) \documentclass{article} \usepackage{times} \begin{document} \section{first Section} Hello World. \end{document} 1 First Section Hello World. Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 5 / 19

Text in L A T E X Plain text is typed directly; white-space and tabs are compressed and adjusted according to T E X s typography rules. Part, chapter, section, subsection commands are used for logical divisions. They are entered as in \section{name of section}. Other environments also use similar commands. The main command formats are: 1 \command{text} 2 \begin{environment} text \end{environment} Example \emph{emphasized text} \begin{center} centered text \end{center} emphasized text centered text Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 6 / 19

Text Style Examples Example \texttt{typewriter font} \textsf{san serif font} \textbf{bold face text} Typewriter font San serif font Bold face text \textcolor{blue}{text in color} Text in color Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 7 / 19

Simple List Examples Example Numbered list: \begin{enumerate} \item First item \item Second item \end{enumerate} Bulleted list: \begin{itemize} \item First item \item Second item \end{itemize} 1. First item 2. Second item First item Second item Lists can be nested independent of type. Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 8 / 19

Special Characters There are a number of special characters in T E X. Symbol T E X Usage To print as text # argument \# $ math mode \$ & tab stop \& % comment \% { open delimiter \{ } close delimiter \} nonbreaking space \textasciitilde subscript (math) \ ˆ superscript (math) \textasciicircum \ escape character \textbackslash Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 9 / 19

Math in L A T E X There are two basic modes for mathematics: inline and display. Enter inline math, math in the line, by typing opening and closing $ signs as in $xˆ2$ to have x 2. Enter displayed math, expressions on their own line, by typing an opening \[ and a closing \] as in \[xˆ3.\] to have x 3. Display math can be numbered automatically by using the equation environment. E.g., \begin{equation} xˆ4.\end{equation} gives x 4. (1) Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 10 / 19

Mathematics Definitions Fraction Entered as $\frac{num}{den}$. dy dx is $\frac{dy}{dx}$ Root Entered as $\sqrt{x}$ or $\sqrt[n]{x}$; e.g., x 3 x is $\sqrt{x}\sqrt[3]{x}$ Superscript A caret gives superscripts. The expression t 2 e t2 is entered as $tˆ2 eˆ{-tˆ2}$ Subscript An underscore gives subscripts. The expression x 2 n+1 is given by $x {n+1}ˆ2$ Function Most standard functions have L A T E X definitions; e.g., sin(x) is entered as $\sin(x)$ Operator The standard operators are done similarly; e.g., lim f (x) is entered as $\lim f(x)$ See the L A T E X Reference sheet and L A T E X math and comparison sheet. Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 11 / 19

Mathematics Examples Example \[fˆ\prime(x) = \lim {h\rightarrow 0} \frac{f(x+h)-f(x)}{h}\] f (x) = lim h 0 f (x + h) f (x) h \[\Gamma(z) = \int 0ˆ\infty xˆ{z-1} eˆ{-x} dx \] Γ(z) = 0 x z 1 e x dx \[fˆ{(n)}(z) = \frac{n!}{2\pi i} \oint \gamma \frac{f(\zeta)}{(\zeta-z)ˆ{n+1}} d\zeta\] f (n) (z) = n! f (ζ) dζ 2πi (ζ z) n+1 γ Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 12 / 19

Including Graphics Images are easy to add to a L A T E X document. There are many methods to insert a graphic file. One of the easiest ways (with pdfl A T E X) is to use the graphicx package and the command \includegraphics[width=value]{file name}. The T E XShop L A T E X template automatically sets this method up. The figure at the right is from: \includegraphics[width=0.4\linewidth]{lion.jpg} Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 13 / 19

Maple Plot Example Example (Chebyshev Polynomials) The first 5 Chebyshev orthogonal polynomials are T 0 = 1, T 1 = x, T 2 = 2x 2 1, T 3 = 4x 3 3x, T 4 = 8x 4 8x 2 + 1 The polynomials oscillate between 1 and 1 on the interval [ 1, 1]. Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 14 / 19

Maple Plot Example Source Example (Chebyshev Polynomials Example Source) \begin{example}[chebyshev Polynomials] The first $5$ Chebyshev orthogonal polynomials are \[ T 0 = 1, T 1 = x, T 2 = 2xˆ2-1, T 3 = 4xˆ3-3x, T 4 = 8xˆ4-8xˆ2+1 \] These polynomials oscillate between $-1$ and $1$ on the interval $[-1,1].$ \centerline{ \includegraphics[width=1.5in]{chebyshev.jpg} } \end{example} Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 15 / 19

L A T E X 2ε with Mac OS X in Math Sciences We use Gerben Wierda s i-installer to install and maintain tetex, Thomas Esser s T E X distribution, for the basic system. 1 The front-end we use is Richard Koch s TeXShop. To get started: Launch TeXShop. A new window comes up. Choose Latex Template from the Templates pop-up menu. TeXShop will fill in a new document ready for you to start typing. 1 Math Sciences also has a license for OzT E X Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 16 / 19

A First L A T E X Document Choose a standard document class: article, amsart, report, or book \documentclass{article} Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 17 / 19

A First L A T E X Document Choose a standard document class: article, amsart, report, or book \documentclass{article} Add the title and your personal information \title{article in \LaTeX!} \author{yogi Berra} Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 17 / 19

A First L A T E X Document Choose a standard document class: article, amsart, report, or book \documentclass{article} Add the title and your personal information \title{article in \LaTeX!} \author{yogi Berra} Start the document \begin{document} Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 17 / 19

A First L A T E X Document Choose a standard document class: article, amsart, report, or book \documentclass{article} Add the title and your personal information \title{article in \LaTeX!} \author{yogi Berra} Start the document \begin{document} And begin typing... \maketitle The celebrated quadratic formula, shown in Equation \ref{quadform}, was known in verbal form (for many cases) to the Babylonians. The formula is \begin{equation} \label{quadform} x = \frac{-b \pm \sqrt{bˆ2-4 a c}}{2a} \end{equation} Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 17 / 19

A First L A T E X Document (cont.) End the document with \end{document} Click Typeset once. Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 18 / 19

A First L A T E X Document (cont.) End the document with \end{document} Click Typeset once. Compare with the picture below. Click Typeset again. What changed? Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 18 / 19

References There is a huge collection of reference material, both books and online, available for L A T E X. Guide to L A T E X 2ε Helmut Kopka et al The L A T E X Companion Frank Mittelbach et al Math Into L A T E X - George Grätzer The Not So Short Introduction to L A T E X 2ε Tobias Oetiker et al User s Guide for amsmath Google s list of L A T E X tutorials Wm C Bauldry (BauldryWC) A Very Brief Introduction to LAT E X MAT 3535 Spring Semester, 2006 19 / 19