Introduction to L A T E X

Similar documents
Introduction to L A TEX

David Helmbold, October 2005, Revised October 2007

Typing Mathematics. Darrin Doud

CSCM10 Research Methodology A Taster of L A TEX

Math 235: Introduction to LaTeX

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

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

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

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 Short L A TEX Introduction

A Sample L A TEX Document

Effective Programming Practices for Economists

My Mathematical Thesis

An Introduction to L A TEX

1 Obtaining LyX and L A TEX

Using L A TEX Tom Edgar

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

Become a L A TEX Guru

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

An Introduction to LATEX

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

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

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

LaTeX A Tutorial. Mohsen Alimomeni, 2010

A Brief Introduction to L A TEX

Latex Tutorial. CIS400 Senior Design 9/5/2013

L A TEX Primer. Randall R. Holmes. August 17, 2018

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

Introduction to Scientific Typesetting Lesson 1: Getting Started

Very Short Introduction to LaTeX

An introduction to L A TEX for students

Introduzione a LaTex. Fabrizio Messina

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

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

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

Guide to using L A TEX

LAT E X week 2: Basics for Writing a Document

Helen Cameron. A Brief Overview of LATEX

Written & Oral Presentation: Computer Tools

VERY VERY SHORT GUIDE TO LATEX

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

Introduction to L A TEX

Helen Cameron. A Brief Overview of LATEX

INSTALLING AND USING L A TEX

An Interactive Introduction to L A TEX

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

Getting Started in L A TEX

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

An Introduction to LATEX

1. The Joy of TEX. Check out this example!

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

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

Meeting One. Aaron Ecay. February 2, 2011

Assessments for CS students:

Learning LaTeX: The Basics

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

Latex Tutorial 1 L A TEX. 1.1 Text

Mikkel Madsen

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

A Brief Introduction to L A T E X

COMS 6100 Class note

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

Word Template Instructions

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

Introduction to MCS 220 and L A TEX

Report Writing with Lyx

L A T E X crash course

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

Typesetting with TEX


Course A, Part 1 Basic Formatting in L A TEX

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

Workshop P. Stallinga 16-X-2012

Dec. 27 th, 2010 University of Isfahan

Introduction to L A TEX for MCS-236

Learn how to [learn] LATEX

Typesetting in wxmaxima

Template and Tutorial for Math Modelers

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

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

Math 291: Lecture 2. Justin A James. Minnesota State University Moorhead web.mnstate.edu/jamesju/

L A TEX minicourse. dstowell, mag, sar, scannell,... September Typeset by FoilTEX

Introduction to LaTeX. Paul Fodor Stony Brook University

Introduction to Latex. A workshop by Dr. Ala Eshmawi

George Grätzer. Practical L A TEX

A Document Preparation System. User's Guide and Reference Manual. Leslie Lamport

L A TEX for Psychological Researchers

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

LaTeX. Information Literacy II EN(IL2) Course

Formatting with LaTeX

A Short Introduction to L A TEX

Homework # (Latex Handout) by Laura Parkinson

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

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

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

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

Math 395 Homework #1 Due Wednesday, April 12

LaTeX is essentially a markup language

Literate programming with R and L A TEX

Transcription:

L A T E X R. M. Department of Mathematics University of Kentucky 6 October 2008 / L A T E X

Outline

T E X T E X was begun by Donald Knuth in 1977 because he did not like the appearance of his book The art of computer programming, volume 1 when the type was reset. The language was more or less frozen in 1989, though development continues until today. T E X and its derivatives are still widely used for scientific content that contains mathematical formulas. You will write your dissertation using T E X. Working with T E Xwill give you some idea of how old folks worked with computers. Typically one writes a file using a text editor and compiles it by a command-line interface to produce high-quality typeset mathematics.

T E X T E X was begun by Donald Knuth in 1977 because he did not like the appearance of his book The art of computer programming, volume 1 when the type was reset. The language was more or less frozen in 1989, though development continues until today. T E X and its derivatives are still widely used for scientific content that contains mathematical formulas. You will write your dissertation using T E X. Working with T E Xwill give you some idea of how old folks worked with computers. Typically one writes a file using a text editor and compiles it by a command-line interface to produce high-quality typeset mathematics.

T E X T E X was begun by Donald Knuth in 1977 because he did not like the appearance of his book The art of computer programming, volume 1 when the type was reset. The language was more or less frozen in 1989, though development continues until today. T E X and its derivatives are still widely used for scientific content that contains mathematical formulas. You will write your dissertation using T E X. Working with T E Xwill give you some idea of how old folks worked with computers. Typically one writes a file using a text editor and compiles it by a command-line interface to produce high-quality typeset mathematics.

Features T E X is freely available. It is included in most Linux distributions. T E X includes a family of fonts that are available in most implementations and thus the result is independent of the computer where the document is produced. (Try sending an M$ Word document to your parents and watch the fonts disappear.) T E X includes a hyphenation algorithm that is written in fixed-point arithmetic so that the result is independent of the machine architecture. T E X includes a programming language that allows one to automate tedious tasks at the expense of some tedious programming. We may let other people write packages in this language for us to use.

Features T E X is freely available. It is included in most Linux distributions. T E X includes a family of fonts that are available in most implementations and thus the result is independent of the computer where the document is produced. (Try sending an M$ Word document to your parents and watch the fonts disappear.) T E X includes a hyphenation algorithm that is written in fixed-point arithmetic so that the result is independent of the machine architecture. T E X includes a programming language that allows one to automate tedious tasks at the expense of some tedious programming. We may let other people write packages in this language for us to use.

Features T E X is freely available. It is included in most Linux distributions. T E X includes a family of fonts that are available in most implementations and thus the result is independent of the computer where the document is produced. (Try sending an M$ Word document to your parents and watch the fonts disappear.) T E X includes a hyphenation algorithm that is written in fixed-point arithmetic so that the result is independent of the machine architecture. T E X includes a programming language that allows one to automate tedious tasks at the expense of some tedious programming. We may let other people write packages in this language for us to use.

Features T E X is freely available. It is included in most Linux distributions. T E X includes a family of fonts that are available in most implementations and thus the result is independent of the computer where the document is produced. (Try sending an M$ Word document to your parents and watch the fonts disappear.) T E X includes a hyphenation algorithm that is written in fixed-point arithmetic so that the result is independent of the machine architecture. T E X includes a programming language that allows one to automate tedious tasks at the expense of some tedious programming. We may let other people write packages in this language for us to use.

WinEdt WinEdt is a piece of M$ Windows software that provides a convenient shell for producing documents in L A T E X. WinEdt is available on the menu of Windows machines in the department. I do not think our license covers home use. A student license in $30. Visit http://www.winedt.com/. If you have a Linux Desktop, fire up a terminal and use pdflatex to compile and evince to view your document. The typical workflow for producing a document in L A T E X is to steal an example from someone else, edit in a text editor(not M$ Word), compile, preview the result, and repeat the edit, compile, preview cycle until done or tired.

WinEdt WinEdt is a piece of M$ Windows software that provides a convenient shell for producing documents in L A T E X. WinEdt is available on the menu of Windows machines in the department. I do not think our license covers home use. A student license in $30. Visit http://www.winedt.com/. If you have a Linux Desktop, fire up a terminal and use pdflatex to compile and evince to view your document. The typical workflow for producing a document in L A T E X is to steal an example from someone else, edit in a text editor(not M$ Word), compile, preview the result, and repeat the edit, compile, preview cycle until done or tired.

WinEdt WinEdt is a piece of M$ Windows software that provides a convenient shell for producing documents in L A T E X. WinEdt is available on the menu of Windows machines in the department. I do not think our license covers home use. A student license in $30. Visit http://www.winedt.com/. If you have a Linux Desktop, fire up a terminal and use pdflatex to compile and evince to view your document. The typical workflow for producing a document in L A T E X is to steal an example from someone else, edit in a text editor(not M$ Word), compile, preview the result, and repeat the edit, compile, preview cycle until done or tired.

Writing documents in the 21st century. We should endeavour to encode the meaning, rather then the format. If this is done well, L A T E X will let us use one source document and produce a webpage (with latex2html) or a pdf (with pdflatex). One may produce a test and solutions from the same source file. When you are writing your dissertation and your advisor asks you change notation, you should be able to do this by redefining your macros rather than by searching for every instance of a bit of notation.

Writing documents in the 21st century. We should endeavour to encode the meaning, rather then the format. If this is done well, L A T E X will let us use one source document and produce a webpage (with latex2html) or a pdf (with pdflatex). One may produce a test and solutions from the same source file. When you are writing your dissertation and your advisor asks you change notation, you should be able to do this by redefining your macros rather than by searching for every instance of a bit of notation.

Writing documents in the 21st century. We should endeavour to encode the meaning, rather then the format. If this is done well, L A T E X will let us use one source document and produce a webpage (with latex2html) or a pdf (with pdflatex). One may produce a test and solutions from the same source file. When you are writing your dissertation and your advisor asks you change notation, you should be able to do this by redefining your macros rather than by searching for every instance of a bit of notation.

Writing documents in the 21st century. We should endeavour to encode the meaning, rather then the format. If this is done well, L A T E X will let us use one source document and produce a webpage (with latex2html) or a pdf (with pdflatex). One may produce a test and solutions from the same source file. When you are writing your dissertation and your advisor asks you change notation, you should be able to do this by redefining your macros rather than by searching for every instance of a bit of notation.

L A T E Xand friends L A T E Xis a package that is written in T E X. L A T E X includes various constructs such as automatic numbering of equations, special macros for setting theorems, sections and chapters to automate the writing of longer documents. AMSLaTeX and AMSTeX are packages that include additional macros for setting mathematics. We will not discuss these today. I have never used AMSLaTeX and have not used AMSTeX for many years. I think I have a co-author who uses AMSTeX. Today s examples will be in L A T E X.

L A T E Xand friends L A T E Xis a package that is written in T E X. L A T E X includes various constructs such as automatic numbering of equations, special macros for setting theorems, sections and chapters to automate the writing of longer documents. AMSLaTeX and AMSTeX are packages that include additional macros for setting mathematics. We will not discuss these today. I have never used AMSLaTeX and have not used AMSTeX for many years. I think I have a co-author who uses AMSTeX. Today s examples will be in L A T E X.

L A T E Xand friends L A T E Xis a package that is written in T E X. L A T E X includes various constructs such as automatic numbering of equations, special macros for setting theorems, sections and chapters to automate the writing of longer documents. AMSLaTeX and AMSTeX are packages that include additional macros for setting mathematics. We will not discuss these today. I have never used AMSLaTeX and have not used AMSTeX for many years. I think I have a co-author who uses AMSTeX. Today s examples will be in L A T E X.

L A T E X the basics One or more spaces will be collapsed to one space. One or more blank lines indicates a new paragraph. The characters # $ % ˆ _ { } \ and the tilde have special meanings in T E X. The character is a special space in T E X. One may obtain this character using $\sim$. The general structure of a command or macro in L A T E X is \commandname[option1,option2,...] {argument1} Blocks of specially formatted text are called environments and have the structure \begin{environmentname}... \{environmentname}

L A T E X the basics One or more spaces will be collapsed to one space. One or more blank lines indicates a new paragraph. The characters # $ % ˆ _ { } \ and the tilde have special meanings in T E X. The character is a special space in T E X. One may obtain this character using $\sim$. The general structure of a command or macro in L A T E X is \commandname[option1,option2,...] {argument1} Blocks of specially formatted text are called environments and have the structure \begin{environmentname}... \{environmentname}

L A T E X the basics One or more spaces will be collapsed to one space. One or more blank lines indicates a new paragraph. The characters # $ % ˆ _ { } \ and the tilde have special meanings in T E X. The character is a special space in T E X. One may obtain this character using $\sim$. The general structure of a command or macro in L A T E X is \commandname[option1,option2,...] {argument1} Blocks of specially formatted text are called environments and have the structure \begin{environmentname}... \{environmentname}

L A T E X the basics One or more spaces will be collapsed to one space. One or more blank lines indicates a new paragraph. The characters # $ % ˆ _ { } \ and the tilde have special meanings in T E X. The character is a special space in T E X. One may obtain this character using $\sim$. The general structure of a command or macro in L A T E X is \commandname[option1,option2,...] {argument1} Blocks of specially formatted text are called environments and have the structure \begin{environmentname}... \{environmentname}

L A T E X the basics One or more spaces will be collapsed to one space. One or more blank lines indicates a new paragraph. The characters # $ % ˆ _ { } \ and the tilde have special meanings in T E X. The character is a special space in T E X. One may obtain this character using $\sim$. The general structure of a command or macro in L A T E X is \commandname[option1,option2,...] {argument1} Blocks of specially formatted text are called environments and have the structure \begin{environmentname}... \{environmentname}

L A T E X the basics One or more spaces will be collapsed to one space. One or more blank lines indicates a new paragraph. The characters # $ % ˆ _ { } \ and the tilde have special meanings in T E X. The character is a special space in T E X. One may obtain this character using $\sim$. The general structure of a command or macro in L A T E X is \commandname[option1,option2,...] {argument1} Blocks of specially formatted text are called environments and have the structure \begin{environmentname}... \{environmentname}

Mathematics in L A T E X A pair of $ signs or \(... \) delimits inline mathematics. Pairs of double $$ signs of \[... \] delimit displayed mathematics. Use a caret for superscripts. Example: $ aˆ{xy}$ produces a xy. Use an underscore _ for subscripts. Use \frac 1 2 to obtain the fraction 1 2. Almost any mathematical symbol you can imagine is available in L A T E X. Examples \alpha for α, \int for, \cup for.

Mathematics in L A T E X A pair of $ signs or \(... \) delimits inline mathematics. Pairs of double $$ signs of \[... \] delimit displayed mathematics. Use a caret for superscripts. Example: $ aˆ{xy}$ produces a xy. Use an underscore _ for subscripts. Use \frac 1 2 to obtain the fraction 1 2. Almost any mathematical symbol you can imagine is available in L A T E X. Examples \alpha for α, \int for, \cup for.

Mathematics in L A T E X A pair of $ signs or \(... \) delimits inline mathematics. Pairs of double $$ signs of \[... \] delimit displayed mathematics. Use a caret for superscripts. Example: $ aˆ{xy}$ produces a xy. Use an underscore _ for subscripts. Use \frac 1 2 to obtain the fraction 1 2. Almost any mathematical symbol you can imagine is available in L A T E X. Examples \alpha for α, \int for, \cup for.

Example \documentclass[12pt]{article} %%Read the manual for other options. \pagestyle{empty} %%Eliminates page numbers %%\input rmb_macros %%Collect your favorite macros in a %%separate file %\input amssym.def %\input amssym %\input mssymb %%Defines additional symbols

Example, continued \usepackage{graphics} %%Use to include pictures. %\newcommand{\comment}[1]{} %\newcommand{\sobolev}[2]{w^{#1,#2}} %\newcommand{\sobolev}[2]{l^#2_#1} %%Some examples of macros or new commands. \textwidth 6in \oddsidemargin 0.25in \topmargin-0.25in \textheight 8.5in %%Set margins, defaults are ok.

Example, continued \begin{document} \begin{flushleft} %%Paragraphs will not be indented in this %%environment {MA 999}\hfill %%\hfill forces following text %%to right margin {Name \rule {2 in}{0.01in}}\\ %%gives a line of length 2in and %%thickness 0.01in {Quiz 1}\hfill {\today} \medskip \end{flushleft}

Example, continued \begin{enumerate} %%Environment for ordered lists \item Find the value of the integrals $$ \int _0 ^ 1 x\sin(x^2)\, dx, \qquad \int _ 0 ^1 \sin(x)\cos(x)\,dx. %%\qquad and \, for spacing $$ \vfill %%Divides page evenly.

Example, continued \item A matrix with mis-matched delimiters and peculiar alignment $\left(\begin{array}{rcl} 1 & 2 & 44 \\ 321 & 22 &111 \end{array} \right $. %%r c or l gives right, center or left %%alignment in each column %%In practice, use either r or c in every %%column \vfill

Example, continued \item Some derivatives ${\displaystyle \frac {df}{dx} = f (x)}$. %%\displaystyle forces larger typesize. \vfill \item Find the limit, \[ \lim_{x\rightarrow\infty} ( \sqrt[3]{x^3+2x}-x)\] \vfill \end{enumerate} \end{document}

Some no-no s Use \, not. Use blackboard fonts on the blackboard and ordinary bold face on paper. Use underlining for handwritten or typewritten documents where italic is not available. Don t obsess over details.

Some no-no s Use \, not. Use blackboard fonts on the blackboard and ordinary bold face on paper. Use underlining for handwritten or typewritten documents where italic is not available. Don t obsess over details.

Some no-no s Use \, not. Use blackboard fonts on the blackboard and ordinary bold face on paper. Use underlining for handwritten or typewritten documents where italic is not available. Don t obsess over details.

References Wikibooks, LaTeX, http://en.wikibooks.org/wiki/latex Wikipedia, LaTeX, http://en.wikipedia.org/wiki/latex LaTeX: A Document Preparation System, 2nd edition, Leslie Lamport, Addison-Wesley. Center for the Study of L A T E X Information System (CSLIS), http://www.cslis.org/templates. For the example from this talk and a few other templates. A short introduction to TeX http://www.math.umn.edu/ garrett/ shortest/tex.txt

Assignment Write a quiz for the class you are teaching and on a separate sheet, give a brief statement of what you are trying to evaluate. Have a colleague criticize your quiz and objectives for readability, and appropriateness of the questions. Work on your resumé. You don t want to be here forever.

Questions? russell.brown@uky.edu or POT 741 or +1 859 257 3951