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

Similar documents
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

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

Introduction to L A TEX

Introduzione a LaTex. Fabrizio Messina

Latex Tutorial 1 L A TEX. 1.1 Text

Introduction to Latex. A workshop by Dr. Ala Eshmawi

LaTeX A Tutorial. Mohsen Alimomeni, 2010

L A TEX for Psychological Researchers

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

The Honours Dissertation Class for L A TEX2e. Cara MacNish

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

Introduction to LaTeX. Paul Fodor Stony Brook University

L A TEX From The Ground Up

Basic L A TEX. what is LaTeX?

Introduction to LATEX

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

An Introduction to L A T E X

David Helmbold, October 2005, Revised October 2007

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

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

LaTeX. Information Literacy II EN(IL2) Course

CS 189 L A TEX and Linux: Displaying Text

Introduction to LAT E X

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

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

Introduction to LaTeX. Christoph Pickl

Helen Cameron. A Brief Overview of LATEX

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

Introduction to L A TEX beamer

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

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

Formatting with LaTeX

Helen Cameron. A Brief Overview of LATEX

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

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

L A TEX-cursus 5th e session: thesis in L A TEX

Introduction to LAT E X

PHYS-4007/5007: Computational Physics

simpletex Documentation

Introduction to L A TEX

L A TEX Class Holiday Inn Fisherman s Wharf San Francisco, CA July Cheryl Ponchin Sue DeMerritt

VERY VERY SHORT GUIDE TO LATEX

A Brief Introduction to L A TEX

Creating Your Paper or Thesis With LYX

Tools for Scientific Writing with LAT E X. Johan Carlson

An introduction. C.D. Emmery & M.M. van Zaanen. October 22, Tilburg University

Effective Programming Practices for Economists

Latex Tutorial. CIS400 Senior Design 9/5/2013

Lecture 3-Introduction to Latex (II)

UNIX Writing Tools Primer for CS Graduate Students: Ispell, L A TEX, BibTex, Xfig, GNUPLOT, XV, etc.

Overview. Dynamic documents with R and L A TEX (while citing properly) Outline. Software for your Statistical Analysis (1) knitr.

Getting started with Latex

Learning L A TEX. Patrick Lam

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

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

Using L A T E X for scientific writing

Typesetting Technical Reports Using LaTeX

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

An introduction to L A TEX for students

LearningLatex. % This file walks you through some basic things with LaTex % Thanks to Patrick Lam and Maya Sen for letting me borrow their materials

Guide to using L A TEX

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

Absolute L A TEX Beginner

Workshop: A Simple Introduction to L A TEX

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

Course A, Part 1 Basic Formatting in L A TEX

CSCM10 Research Methodology A Taster of L A TEX

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

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.

Assessments for CS students:

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.

Introduction to. Research Seminar System Analysis. Florian Kragulj

L A TEX Workshop. Don Brower

An Interactive Introduction to L A TEX

Introduction to L A TEX

Introduction to L A TEX

Citation guide. Carleton College L A TEX workshop. You don t have to keep track of what sources you cite in your document.

Introduction to LATEX

INTRODUCTION TO L A TEX

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

An Introduction to L A TEX

L A TEX for Psychological Researchers

GNU Emacs as a Front End to L A TEX

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

Document Preparation Word Processors

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

Introduction to L A TEX

A Short Introduction to L A TEX

A quick guide to L A TEX

Dec. 27 th, 2010 University of Isfahan

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

Very Short Introduction to LaTeX

Note for the LaT E X version of this Document

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

A Quick L A TEX Primer

LAT E X week 2: Basics for Writing a Document

A L A T E X quick start

L A TEX for psychological researchers

Introduction to L A TEX

Transcription:

T E X and L A T E X Document preparation tools This lecture adds to the previous introduction to L A T E X, introduces BibT E X and looks at creating larger documents. Last time... The first session introduced: advantages and disadvantages of L A T E X the software available in the School: L A T E X, xdvi and dvipdf a simple document structure in L A T E X including titlepages, sections, paragraphs, new lines and footnotes creating tables in L A T E X figures in L A T E X 2 - TeX and LaTeX - 2 1 1

This time... More syntax of L A T E X More on fonts, centring, itemizing, etc Bibliographies, including making a bibliography database using BibT E X and various citation styles Creating multi-file documents with an index appendices 2 - TeX and LaTeX - 2 2 Spaces For those use to WYSIWYG, spaces in L A T E X are confusing. Space, tab and end-of-line are treated end of word. Lots of space = one space. Space after \ commands is ignored - hence use (e.g.) \LaTeX{} likes 2 - TeX and LaTeX - 2 3 2

A very short introduction to the math mode A principal claim for L A T E X is that is sets mathematical expressions very well. L A T E X is, by default, in text mode. You have to switch into and out of math mode using: the characters $ $ for maths in text; the commands \[ \] for maths on a separate line. 2 - TeX and LaTeX - 2 4 Simple examples: A very short introduction to the math mode \[\alpha, A, \gamma, \Gamma, \mathbb{n}, \emptyset\] In text $e=mc^2$ and $\frac{1}{2n-1}$. 2 - TeX and LaTeX - 2 5 3

Controlling fonts: \textrm{ } \textit{ } \textbf{ } \textsc{ } Fonts in L A T E X2ε These can be embedded: \textit{\textbf{ }} 2 - TeX and LaTeX - 2 6 Centring An example of a L A T E X environment: Centring centres: \begin{center} Some text to be centred \end{center} 2 - TeX and LaTeX - 2 7 4

Verbatim Another example of a L A T E X environment: Verbatim is a way of getting text to appear exactly as you type, e.g. for outputting program text: \begin{verbatim} type Termptr = ^Term; \end{verbatim} 2 - TeX and LaTeX - 2 8 Itemizing and enumerating Getting a list of items is simple: \begin{itemize} \item First item \item Middle item \item Last item \end{itemize} 2 - TeX and LaTeX - 2 9 5

Itemizing and enumerating Changing to a numbered list involves changing itemize to enumerate. \begin{enumerate} \item First item \item Middle item \item Last item \end{enumerate} 2 - TeX and LaTeX - 2 10 Referencing and references - 1 It is essential to support your writing by reference to background material: to show where you have used other people s ideas (i.e. to avoid plagiarism); to direct the reader to greater detail than you can give; to give authority to what you are writing about. 2 - TeX and LaTeX - 2 11 6

Referencing and references - 2 Referencing is: some kind of link from your text to a list of references or bibliography e.g. Vancouver system Harvard system 2 - TeX and LaTeX - 2 12 Referencing and references - 3 A reference the things you refer to. A reference list can includes your references and other items you think useful to your reader. 2 - TeX and LaTeX - 2 13 7

Referencing and references in L A T E X Referencing commands are inserted in the L A T E X document. The reference list or bibliography is held in a separate file or files. (This allows you to collect lots of references about a topic and use the same list for lots of papers.) The two are linked when you run L A T E X to form your.dvi document. 2 - TeX and LaTeX - 2 14 Making a BibT E X file References are held in BibT E X files. These can be created very easily using emacs which provides BibT E X templates. A BibT E X template consists of a label showing what type of item you are describing (e.g. Book, ); a unique citation tag (Name:Year:ABC); a list of data items. 2 - TeX and LaTeX - 2 15 8

Making a BibT E X file Alternatively, you can use a reference manager that includes BibT E X - e.g. JabRef 2 - TeX and LaTeX - 2 16 Adding a reference list - 1 Prepare a.bib file. This can be done in emacs, which includes extra menus to provide you with templates. @Book{sharp65, author = {J.R. Sharp}, title = {Some fundamentals}, publisher = {Deutsch}, year = {1965}, } 2 - TeX and LaTeX - 2 17 9

Making references When a reference is placed in some text, it is necessary to include a command, e.g.: This is a document with a reference to \cite{doc1} and is very short \cite{doc2}. 2 - TeX and LaTeX - 2 18 What to add to your L A T E X text To make L A T E X pick-up the bibliography file, you need to add two commands to your L A T E X file (e.g. in a file called bibtex_doc.bib): \begin{document} < text > \bibliographystyle{plain} \bibliography{bibtex_doc} \end{document} 2 - TeX and LaTeX - 2 19 10

Inbuilt styles - plain Reference Reference list 2 - TeX and LaTeX - 2 20 Running BibT E X - 1 Getting L A T E X and BibT E X to produce a document can seem alarming until you are used to it. L A T E X has to find out what references need to be included BibT E X needs to form the references required L A T E X needs to add the reference list to the end of the document L A T E X needs to form the references from the text to the reference list to the end of the document 2 - TeX and LaTeX - 2 21 11

Running BibT E X - 2 Thus it is not surprising that it may be necessary to execute the following series of commands to obtain a final document: unix> latex filename.tex unix> bibtex filename unix> latex filename.tex unix> latex filename.tex (*) unix> dvips filename.dvi unix> lpr Prothko filename.ps 2 - TeX and LaTeX - 2 22 Other built-in bibliography styles - unsrt (plain without sorting) Reference Reference list 2 - TeX and LaTeX - 2 23 12

Other built-in bibliography styles - alpha (very popular with computer scientists) Reference Reference list 2 - TeX and LaTeX - 2 24 Changing styles It is possible to use style files to set up the presentation of the whole document including the references. This has been done in the document associated with this lecture. It uses chicago.sty package declared in the document preamble; chicago bibliography style declared just before the bibliography. 2 - TeX and LaTeX - 2 25 13

The Chicago style (very popular with journals) Reference Reference list 2 - TeX and LaTeX - 2 26 Multi-file documents It is often more convenient to work on a larger document in smaller sections. For instance, a report or thesis can be developed in single chapters. L A T E X will automatically set page numbers, references, etc, and it s possible to print out single chapters as if in a larger book. 2 - TeX and LaTeX - 2 27 14

Multi-file documents main file The main file is essentially like a normal L A T E X document but with file names instead of text: \documentclass[cup6a]{cupbook} % preamble \begin{document} \tableofcontents \listoffigures \listoftables \include{cclp_chapter1} \include{cclp_chapter2} \end{document} 2 - TeX and LaTeX - 2 28 Multi-file documents sub-files Each sub-file looks like a normal L A T E X with the preamble missing: \chapter{bodies} \label{chap_bodies} The forms of CHR rules have been introduced and the function of the guard described. 2 - TeX and LaTeX - 2 29 15

Four parts to this process: Adding indexes Load an indexing package: \usepackage{makeidx} Add a command to make the index: \makeindex Add one or more index entries: \index{chr rules!bodies} Output the index: \printindex 2 - TeX and LaTeX - 2 30 Adding appendices Slightly different from indexes: Load an appendix package: \usepackage{appendix} Create your appendices (like another chapter) Insert the appendices like chapters: \renewcommand{\appendixpagename}{appendix } \appendix \appendixpage \include{cclp_appendix1} 2 - TeX and LaTeX - 2 31 16