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

Similar documents
VERY VERY SHORT GUIDE TO LATEX

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

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

Introduzione a LaTex. Fabrizio Messina

LaTeX A Tutorial. Mohsen Alimomeni, 2010

COMS 6100 Class note

Helen Cameron. A Brief Overview of LATEX

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

Assessments for CS students:

Dec. 27 th, 2010 University of Isfahan

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

An Introduction to LATEX

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

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

Introduction to LaTeX. Paul Fodor Stony Brook University

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

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

Helen Cameron. A Brief Overview of LATEX

Getting started with Latex

How to get started in L A TEX

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

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

Using L A T E X for scientific writing

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

Latex Tutorial. CIS400 Senior Design 9/5/2013

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

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

Basics. Options. Commands

Become a L A TEX Guru

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

Math 235: Introduction to LaTeX

Introduction to L A TEX

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

Using L A TEX Tom Edgar

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

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

Introduction to L A T E X

A brief introduction to L A TEX

Introduction to Latex. A workshop by Dr. Ala Eshmawi

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

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

LaTeX. Information Literacy II EN(IL2) Course

Learn how to [learn] LATEX

L A TEX for Psychological Researchers

LaTeX Seminar III: Environments and More Advanced Mathematical Typesetting

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

L A TEX examples. a b c a b c b b a c b c c b a. This table was typeset with the following commands.

Very Short Introduction to LaTeX

Introduction to Scientific Typesetting Lesson 1: Getting Started

An Introduction to L A TEX

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

LAT E X week 2: Basics for Writing a Document

David Helmbold, October 2005, Revised October 2007

Formatting with LaTeX

A Brief Introduction to L A TEX

Tables, Lists and Matrices. MAT 218 Mathematical Computing. February 2, 2016

MATLAB for the Sciences

GROUP ASSIGNMENT. L A TEX Assignment 1/3

A L A T E X quick start

Introduction to L A TEX

An Introduction to LATEX

Getting Started with L A TEX

LATEX Seminar Week 2 Jonathan Blair & Evan Ott. Document classes, basic math formatting, basic pictures, tables and matrices

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

Introduction to LATEX

Intro to LaTeX Workshop

Basic L A TEX. what is LaTeX?

CSCM10 Research Methodology A Taster of L A TEX

Introduction to LAT E X

WYSIWYG Systems. CSCM10 Research Methodology A Taster of L A TEX WYSIWYM. Advantages/Disadvantages of WYSIWYG Systems.

Lecture 3-Introduction to Latex (II)

INTRODUCTION TO L A TEX

A Short Introduction to L A TEX

A Short L A TEX Introduction

CSCM10 Research Methodology A Taster of L A TEX

Introduction to L A TEX

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

Introduction to L A TEX

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

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

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

Introduction to LaTeX. Christoph Pickl

Introduction to L A TEX beamer

L A TEX for Psychological Researchers

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

Introduction to LATEX

WHAT IS L A TEX? LaTeX (pronounced lay-tek or lah-tek ) is a language created for the purpose of typesetting text and mathematical formulas.

L A TEX Course at ICT School

Workshop: A Simple Introduction to L A TEX

INTRODUCTION TO L A TEX WHAT IS L A TEX?

Getting Funky: Headers, Tables, Abstracts etc.

The Honours Dissertation Class for L A TEX2e. Cara MacNish

Introduction to LAT E X

Introduction to L A T E X

L A TEX Workshop. An Introduction to L A TEX. Rakesh Jana Research Scholar Department of Mathematics IIT Guwhati

B.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University : Advanced Applications of MS-Office

Professional outputs with ODS LATEX

Course A, Part 1 Basic Formatting in L A TEX

LA T EX is a Document Preparation System which is useful for the preparation of all Abstract kinds of reports. It is particularly suited, but not limi

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

Transcription:

LaTeX Began as TeX, in 1982 (Knuth). Purely a typesetting tool. LaTeX added macros, maintaining TeX as it s typesetting engine (Lamport). Now maintained by Frank Mittlebach. For an interesting interview, see: http://www.freesoftwaremagazine.com/articles/mittelbach_interview

Typesetting We are accustomed to What You See Is What You Get (WYSIWYG) tools such as this Powerpoint presentation. WYSIWYG seldom results in an aesthetically pleasing publication.

Advantages (from http://www.ctan.org/tex- archive/info/lshort/english/lshort.pdf) Professionally crafted layouts are available, which make a document really look as if printed. The typesetting of mathematical formulae is supported in a convenient way. Users only need to learn a few easy-to-understand commands that specify the logical structure of a document. They almost never need to tinker with the actual layout of the document. Even complex structures such as footnotes, references, table of contents, and bibliographies can be generated easily.

Advantages (from http://www.ctan.org/tex- archive/info/lshort/english/lshort.pdf) Free add-on packages exist for many typographical tasks not directly supported by basic LaTeX. For example, packages are available to include PostScript t graphics or to typeset t bibliographies conforming to exact standards. Many of these add-on packages are described in The LaTeX Companion. LaTeX encourages authors to write well-structured texts, because this is how LaTeX works by specifying structure. TeX, the formatting engine of LaTeX2e, is highly portable and free. Therefore the system runs on almost any hardware platform available.

Disadvantages (from http://www.ctan.org/tex- archive/info/lshort/english/lshort.pdf) LaTeX does not work well for people who have sold their souls... Although some parameters can be adjusted within a predefined document layout, the design of a whole new layout is difficult and takes a lot of time. It is very hard to write unstructured and disorganized documents. Your hamster might, despite some encouraging first steps, never be able to fully grasp the concept of Logical Markup. (From another source: There are two major classes of text markup: logical and physical. Logical markup indicates the role of a text segment, such as being more important than normal text or being a citation. Physical markup is an instruction to present text t in a particular a manner, such as using a font of some specific kind or underlining. )

Howtostart start Need LaTeX available for your system. Input: an ASCII file. Output: t an aesthetically ti pleasing typeset document. Components of a LaTeX input file: Preamble, including a specification of the document class (or type), specification of non-default document settings (margins, etc.), requests for inclusion i of other nonstandard d packages (must be available locally). Document body.

Mathematics and Example Statistics Input \documentclass{article} \usepackage{graphics} \setlength{\oddsidemargin}{0in} \setlength{\textwidth}{6.0in} \setlength{\textheight}{10in} \setlength{\topmargin}{-0.5in} \begin{document} \setlength{\parindent}{0in} \setlength{\parskip}{2ex} \begin{center} {\bf \Large STAT 6550 -- SPRING 2014 Homework 1 \vspace{2ex} \normalsize Due Tuesday February 4th} \end{center} \raggedright \vspace{2ex} \begin{enumerate} \item Obtain documentation for \LaTeX\ -- select something that you can use as a fairly comprehensive desk reference. Specify in your homework write-up what you have selected and why.

Example Input (continued) Mathematics and Statistics \item Obtain and install \LaTeX\ on your own computer, or identify another point of access to \LaTeX\ (e.g., in a student computing lab). Briefly describe where you will use \LaTeX, including the machine, platform, the front-end (editing) program, and where you obtained the source code for installation (if you installed \LaTeX\ yourself). \item Turn in a solution for the following problem: Suppose that $X \sim \mathrm{binomial}(n,p)$. {\bf (a)} Show that the maximum likelihood estimator (MLE) of $p$ is $\hat{p}=x/n$. {\bf (b)} Show that the MLE attains the Cramer-Rao lower bound. {\bf (c)} If $n=10$ and $X=5$, plot the log likelihood function. Use software to obtain this plot, and include the plot in the body of your solution. \end{enumerate} \end{document}

Example Output Mathematics and Statistics

LaTeX Resources TeX Users Group (TUG) http://www.tug.org Comprehensive TeX Archive Network http://www.ctan.org MiKTeX (TeX for Windows) http://www.miktex.org WinEdt (commercial front-end interface for editing TeX documents in Windows) http://www.winedt.com

LaTeX Resources (continued) Free documentation: The Not So Short Introduction to LaTeX2e http://www.ctan.org/tex-archive/info/lshort/english/lshort.pdf t /t hi /i /l h t/ li h/l h t More free documentation: A Gentle Introduction More free documentation: A Gentle Introduction http://ctan.tug.org/tex-archive/info/gentle/gentle.pdf

Creating a Document Specify the document class (with options). Specify settings. Begin document. Include text. End document. Running the document through TeX (without errors) yields a.dvi file, which must be viewed in some sort of dvi window.

Some basic types : The Document Class Article (far and away the most common what I use 99.9% of the time). Book Slides (for presentations) Letter

Settings Before beginning the document, specify parameters corresponding to: Margins Page size Size of text body Header and footer locations Information about titles, dates, etc. (See the handout regarding parameters for page settings.)

Characters in the Input File Upper and lowercase letters, and the ten digits (recall that in ASCII, the letter O is distinguishable from the digit zero 0. Sixteen punctuation characters:. : ;,?! ` ( ) [ ] - / * @ Ten special characters (used only in LaTeX commands): # $ % & ~ _ ^ \ { } The characters + = < > are used mainly in math formulas, although + and = can be used in regular text.

Special Environments/Tools: Displayed Text Quotes: \begin{quote} and \end{quote}. Descriptive lists (like glossaries): \begin{description} and \end{description}. Each item is specified using the \item[name] Description here. Lists (like bullet items): \begin{list} and \end{list}. Each item prefixed with \item. Lists can be nested. Numbered lists: \begin{enumerate} and \end{enumerate}. Each item prefixed with \item.

Math Example This following text (imbedded in a document) results in the output shown on the following page. The bootstrap p-value is obtained by resampling from the reference set, $\Gamma$, of all $2 \times 4$ tables with column sums equal to 10. Under $H_{0}$ the probability of observing any $\xb \in \Gamma$ is \begin{equation} f_{\pi}(\xb) = \prod_{j=1}^{4} {4} {10 \choose x_{j}}\pi {j}}\pi^{x_{j}}{j}} (1 - \pi)^{10- x_{j}} \, \label{eq:binexact} \end{equation} a product of four binomial probabilities. It is not possible to resample tables From $\Gamma$ with probabilities given by (\ref{eq:binexact}) because $\pi$, the Bernoulli probability i under $H_{0}$, $ is unknown. We can, however, replace $\pi$ with \[ \hat{\pi} = \frac{5}{40} \, \] the maximum likelihood estimate (mle) under the null hypothesis. The bootstrap p-value is then evaluated by resampling tables from $\Gamma$ with probabilities given by \begin{equation} f_{\hat{\pi}}(\xb_{j}) {j}) = \prod_{j=1}^{4} {10 \choose x_{j}}\hat{\pi}^{x_{j}} (1 - \hat{\pi})^{10-x_{j}} \. \label{eq:binboot} \end{equation}

Math Example: Result

Special Environments/Tools: Tables Delimited with \begin{tabular} and \end{tabular}. Number of columns is specified up-front, with argument to. For example, \begin{tabular}[lcr] b specifies that we will have three columns: the first left-justified, the second centered, and the third right-justified. Within each row, columns are separated by the & symbol. A row is completed by using the command \\ for a new line.

This: Tables Example \begin{tabular}{ l ccc c }\hline \multicolumn{5}{ c }{Stratum 1: Women using O.C. Aged 25-29} \\ \hline & \multicolumn{3}{ c }{Cigarettes Smoked (per day)} & \\ \cline{2-4} \multicolumn{1}{ c }{Disease Status} & \multicolumn{1}{ c}{none} & \multicolumn{1}{c}{1to 24} & \multicolumn{1}{c }{more than 24} & \multicolumn{1}{c }{Total} \\ \hline M.I. & 0 & 1 & 3 & 4 \\ Control & 25 & 25 & 12 & 62 \\ \hline \end{tabular} produces this:

Special Environments/Tools: Pictures and Graphics Particularly in scientific documents, inclusion of plots or charts is generally required. A graphics package is required, included at the beginning of the document with something like \include{graphics} (this package is included with generally all versions, although system-dependent variations exist it allows inclusion of postscript and encapsulated postscript files). To include a plot at some point in the document, one might use something like \includegraphics[options]{filename here}. } The picture environment (delimited with \begin{picture} and \end{picture}) allow one to draw shapes in the document.

Special Environments/Tools: Bibliography Requires a database file of citations, formatted in a special way: @ARTICLE{CMS, AUTHOR = "Corcoran, C. and Mehta, C. and Senchaudhuri, P.", TITLE = "Power Comparisons for Tests of Trend in Dose-Response Studies", JOURNAL = "Statistics in Medicine", VOLUME = "19", PAGES = "3037-3050", YEAR = "2000" } Given this.bib file, one can easily include citations in the text t via the \cite{cms} command. Must follow a series of steps to achieve proper formatting. Wide variety of journal-specific styles are available.