COMP496/901: Academic Presentation and Writing Skills Using LaTeX

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

Introduzione a LaTex. Fabrizio Messina

LaTeX A Tutorial. Mohsen Alimomeni, 2010

VERY VERY SHORT GUIDE TO LATEX

LaTeX. Information Literacy II EN(IL2) Course

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

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

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

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

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

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

Using L A T E X for scientific writing

Formatting with LaTeX

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

Introduction to L A TEX

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

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

Pimp your thesis: a minimal introduction to L A T E X.

Getting started with Latex

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

An Interactive Introduction to L A TEX

Introduction to LATEX

Introduction to LAT E X

COMS 6100 Class note

Absolute L A TEX Beginner

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

Introduction to LAT E X

Basic L A TEX. what is LaTeX?

Helen Cameron. A Brief Overview of LATEX

An Introduction to L A TEX

Introduction to LaTeX. Christoph Pickl

Very Short Introduction to LaTeX

David Helmbold, October 2005, Revised October 2007

A Short L A TEX Introduction

Introduction to LaTeX. Paul Fodor Stony Brook University

L A TEX for Psychological Researchers

Helen Cameron. A Brief Overview of LATEX

An Introduction to LATEX

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

Introduction to L A TEX beamer

Math 235: Introduction to LaTeX

An Introduction to LATEX

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

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

Guide to using L A TEX

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

How to get started in L A TEX

CS 189 L A TEX and Linux: Document Layout and Organization

Outline. A Sneak Peek

LAT E X week 2: Basics for Writing a Document

An introduction to L A TEX for students

An Introduction to L A T E X

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.

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

Latex Tutorial. CIS400 Senior Design 9/5/2013

Lab1: Communicating science

Workshop: A Simple Introduction to L A TEX

A brief introduction to L A TEX

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

1. Welcome. (1) Hello. My name is Dr. Christopher Raridan (Dr. R). (3) In this tutorial I will introduce you to the amsart documentclass.

Introduction to Scientific Typesetting Lesson 1: Getting Started

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

Introduction to L A T E X

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

A Brief Introduction to L A TEX

Lecture 1: Short summary of LaTeX basics

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

Workshop P. Stallinga 16-X-2012

Effective Programming Practices for Economists

LATEX TYPESETTING SYSTEM. CAAM 519, CHAPTER 3

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. Rado Ivanov CIS400 Senior Design Tutorial September 18, 2014

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

Introduction to LATEX

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

Tools for Scientific Writing with LAT E X. Johan Carlson

Learning LaTeX: The Basics

CSCM10 Research Methodology A Taster of L A TEX

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

Lecture 3-Introduction to Latex (II)

GROUP ASSIGNMENT. L A TEX Assignment 1/3

Mikkel Madsen

L A TEX for psychological researchers

Meeting One. Aaron Ecay. February 2, 2011

L A TEX From The Ground Up

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

PRISM Introduction to L A TEX

Introduction to L A TEX for MCS-236

Introduction to L A TEX

Introduction to L A TEX

L A TEX for Psychological Researchers

L A TEX Workshop. Don Brower

Introduction to Latex. A workshop by Dr. Ala Eshmawi

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

Dec. 27 th, 2010 University of Isfahan

A quick guide to L A TEX

Getting ready for L A TEX. Alexis Dimitriadis. Version: March 28, 2013

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

L A TEX - First Class

Transcription:

COMP496/901: Academic Presentation and Writing Skills Using LaTeX Robert Dale Robert.Dale@mq.edu.au 1

Acknowledgements These slides borrow heavily from similar material by: Jan-Philipp Söhn David Squire Tobias Oetiker 2

Agenda The Principles of Declarative Formatting The Basics of Formatting in LaTeX Some Highlights LaTeX You Need To Know 3

Starting Points LaTeX is a typesetting system, not a word processor It is most suited to producing scientific and mathematical documents of high typographical quality The focus is on specifying what your text is, now how it should look: that s someone else s job 4

Author, Book Designer, and Typesetter: The Traditional Model The author gives manuscript to a publishing company. A book designer from the publishing company decides the layout of the document (column width, fonts, and so on). The book designer writes her instructions into the manuscript and gives it to a typesetter. The typesetter typesets the book according to these instructions. 5

Author, Book Designer, and Typesetter: Intelligent Design A human book designer tries to find out what the author had in mind when he or she wrote the text. She decides on the formatting of chapter headings, citations, examples, formulae, and so on based on her professional knowledge and the contents of the manuscript. 6

Author, Book Designer, and Typesetter: Using Technology LaTeX takes the role of the book designer and uses TeX as its typesetter. But LaTeX is only a relatively dumb program, so it needs more guidance. The author has to provide additional information which describes the logical structure of her work. This information is written into the text in the form of LaTeX commands. This is very different from the popular WYSIWYG approach you find in Word and other word processors. 7

The Pitfalls of Layout Design With WYSIWYG systems, authors often generate aesthetically pleasing documents with very little, or inconsistent, structure. LaTeX prevents such formatting errors by forcing the author to declare the logical structure of the document. LaTeX uses the logical structure to choose the most suitable layout. Logical mark-up also improves the portability of documents: journals can use stylesheets to translate the logical mark-up into their in-house layout style. 8

Some Typographic Issues Justification Orphans (have a future but no past) Widows (have a past but no future) 9

Advantages of LaTeX over WYSIWYG Professionally crafted layouts are available The typesetting of mathematical formulae is supported in a convenient way Users need only to learn a few simple commands, which specify the logical structure of a document; they almost never need to tinker with the physical layout of the document 10

Advantages of LaTeX over WYSIWYG Complex structures such as footnotes, references, table of contents, and bibliographies can be generated easily For many typographical tasks not directly supported by basic LaTeX, there are free add-on packages LaTeX encourages authors to write well-structured texts LaTeX is highly portable and free 11

Disadvantages of LaTeX over WYSIWYG What you see is not what you get. But is this really a disadvantage? Why are you thinking about layout instead of content? 12

Agenda The Principles of Declarative Formatting The Basics of Formatting in LaTeX Some Highlights LaTeX You Need To Know 13

A Minimal LaTeX File \documentclass{article} \begin{document} Hello world! \end{document} 14

LaTeX Input Files The input for LaTeX is a plain ASCII text file You can create it with any text editor It contains the text of the document commands which tell LaTeX how to typeset the text: Spaces Special characters LaTeX commands Comments 15

Spaces Whitespace characters (e.g. blank, tab, a single linebreak) are treated uniformly as space by LaTeX Several consecutive whitespace characters are treated as one space An empty line between two lines of text defines the end of a paragraph Several empty lines are treated in the same way as one empty line It does not matter whether you enter one of several spaces after a word. An empty line starts a new paragraph. It does not matter whether you enter one or several spaces after a word. An empty line starts a new paragraph. 16

Special Characters The following symbols are reserved characters: they either have a special meaning in LaTeX, or are not available in all the fonts $ & % # _ { } ~ ^ \ Some of these characters can be used in your documents by adding a prefix backslash: $ & % # _ { } \$ \& \% \# \_ \{ \} The other symbols (and many more!) can be printed with special commands in mathematical formulae or as accents 17

LaTeX Commands: Format LaTeX commands are case sensitive and take one of two formats: They start with a backslash \ and have a name consisting only of letters; command names are terminated by a space, a number or any other non-letter. They consist of a backslash and exactly one special character. 18

LaTeX Commands: Whitespace LaTeX ignores whitespace after commands. If you want to get a space after a command, you have to put either {} and a blank or a special spacing command after the command name. I read that Knuth divides people working with TeX into TeXnicians and TeXperts. Today is March 25th, 2004. I read that Knuth divides people working with \TeX{} into \TeX{}nicians and \TeX perts. Today is \today. 19

LaTeX Commands: Specifying Arguments Some commands take a parameter which has to be given between curly braces { } after the command name Some commands support optional parameters which are added after the command name in square brackets [ ] This is italicized text. This is \textit{italicized} text. 20

Comments When LaTeX encounters a % character while processing an input file, it ignores the rest of the present line This is useful for adding notes to the input file, which will not show up in the printed version This text is processed. This text is processed. % A comment isn t 21

Input File Structure: The Preamble When LaTeX2e processes an input file it expects it to follow a certain structure. Every input file starts with the command: \documentclass{...} This specifies what sort of document you intend to write (article, letter, book and so on) After that, you can include global style commands or you can load packages which add new features to the LaTeX system. To load a package you use the command: \usepackage{...} 22

Input File Structure: The Body When all the setup work is done, you start the body of the text with the command: \begin{document} Now you enter the text mixed with some useful LaTeX commands At the end of the document you use the \end{document} command, which tells LaTeX to finish. Anything which follows this command will be ignored by LaTeX 23

A Simple Example \documentclass[a4paper,11pt]{article} \usepackage{latexsym} \author{h.~partl} \title{minimalism} \begin{document} \maketitle \tableofcontents \section{start} Here begins my lovely article \ldots \section{end} \ldots{} and here it ends. \end{document} 24

Agenda The Principles of Declarative Formatting The Basics of Formatting in LaTeX Some Highlights LaTeX You Need To Know 25

Typesetting Mathematics LaTeX has a special mode for typesetting mathematics, called math mode. Within a paragraph, math mode is entered between $ characters, or by using the \begin{math} and \end{math} commands To find the square of the hypotenuse, add a squared to b squared to find c squared, e.g. 2 2 2 a b c. It s as easy as that! To find the square of the hypotenuse, add a squared to b squared to find c squared, e.g. $a^2 + b^2 = c^2$. It s as easy as that! 26

Typesetting Maths: Referring to Equations In a scholarly article or thesis, you will often want to number equations and refer to them in the text This is done using theequation environment, and the commands\label and\ref: it is clear that e > 0. (1) From Equation 1 it follows that... \ldots it is clear that \begin{equation} \epsilon > 0. \label{eq:eps} \end{equation} From Equation~\ref{eq:eps} it follows that \ldots 27

Including Graphics LaTeX2e includes a standard package for including PostScript graphics in your document. Load it using \usepackage{graphics} An example that shows a figure being included: \begin{figure}[ht] \begin{center} \includegraphics[width=140mm]{mypic.ps} \end{center} \caption{an example of a figure} \label{fig:example} \end{figure} 28

Bibliographies: Citations Articles can be cited in the text using the \cite command: By far the most commonly used feature is colour (e.g. [1,2,3]), usually computed in a colour space thought to be perceptually accurate (e.g. HSV [3] or CIE [4]. By far the most commonly used feature is colour (e.g.\ \cite{nbe1993,jav1996,smc1996a}), usually computed in a colour space thought to be ``perceptually accurate'' (e.g.\ HSV \cite{smc1996a} or CIE \cite{stl1997}). The details of the cited articles are stored in BibTeX format, in a.bib file BibTeX resolves the citations in the LaTeX file and generates the required bibliography 29

Bibliographies: BibTeX Entries @book{ahr1975, author = {N. Ahmed and K. Rao}, title = {Orthogonal transforms for digital signal processing}, publisher = {Springer-Verlag}, year = {1975}, address = {New York}, } @inproceedings{aus1989, author = {James Austin and A. Phantom and Also Phantom}, title = {High Speed Invariant Recognition Using Adaptive Neural Networks}, booktitle = {IEE 3rd International Conference on Image Processing and its Applications}, year = {1989}, pages = {28--32}, abstract = {A method is described which...}, } 30

Agenda The Principles of Declarative Formatting The Basics of Formatting in LaTeX Some Highlights LaTeX You Need To Know 31

Running LaTeX on the Command Line >latex test.tex This will create several files: File test.aux test.log test.dvi Contents the auxiliary file that LaTeX will use in subsequent passes to resolve references to figures, tables, citations etc. a log file that contains information about the LaTeX run the DeVice Independent output file: this is the typeset document, ready for conversion to postscript or other printable formats 32

Structuring Your Document \chapter{ } \section{ } \subsection{ } \subsubsection{ } Using \label and \ref to refer to sections by number Unnumbered versions of the above environments Switching to appendices 33

List Environments \begin{itemize} \item \end{itemize} Also: enumerate description 34

Tables and the Tabular Environment 35

Floats Figures Tables Referring to figures and tables 36

More Information Check out the following links: For using LaTeX and setting up a LaTeX environment: http://www.ics.mq.edu.au/~rdale/resources/latex/index.html For general info on using LaTeX and other related material: http://www.ics.mq.edu.au/~rdale/resources/writingnotes/index.html 37