CSCM10 Research Methodology A Taster of L A TEX

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

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.

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

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

Introduzione a LaTex. Fabrizio Messina

Math 235: Introduction to LaTeX

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

Formatting with LaTeX

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

Typing Mathematics. Darrin Doud

Introduction to L A T E X

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

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

Performance Op>miza>on

Document Preparation Using L A TEX

Introduction to Scientific Typesetting Lesson 1: Getting Started

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

Dec. 27 th, 2010 University of Isfahan

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

VERY VERY SHORT GUIDE TO LATEX

A Short L A TEX Introduction

A brief introduction to L A TEX

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

L A TEX for psychological researchers

L A T E X Week 11, Other Document Classes

Introduction to L A TEX

Introduction to L A TEX

Introduction to Latex. A workshop by Dr. Ala Eshmawi

SOFTWARE ARCHITECTURE 4. TEXT FORMATTING SYSTEM

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

Very Short Introduction to LaTeX

1 Obtaining LyX and L A TEX

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

Getting started with Latex

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

How To Get Your Word Document. Ready For Your Editor

LaTeX A Tutorial. Mohsen Alimomeni, 2010

LaTeX. Information Literacy II EN(IL2) Course

Using L A T E X for scientific writing

An Introduction to LATEX

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

Become a L A TEX Guru

COMS 6100 Class note

Lecture 1: Short summary of LaTeX basics

Basic L A TEX. what is LaTeX?

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

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

Introduction to MCS 220 and L A TEX

MathType. Check with Design Science for site license pricing if order is greater then 5 units

Using L A TEX Tom Edgar

David Helmbold, October 2005, Revised October 2007

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

A LAT E X Tutorial. Evangelos Milios. March 15, 2004

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

Helen Cameron. A Brief Overview of LATEX

An Introduction to LATEX

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

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

Report Writing with Lyx

Absolute L A TEX Beginner

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

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

epub WU Institutional Repository

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

Introduction to LaTeX. Paul Fodor Stony Brook University

Outline. A Sneak Peek

Getting Started in L A TEX

Word-to-L A TEX specification

Mikkel Madsen

Introduction to LATEX

Introduction to L A TEX

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

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

Introduction to L A TEX

My Mathematical Thesis

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

Typesetting with TEX

INSTALLING AND USING L A TEX

Helen Cameron. A Brief Overview of LATEX

Why do I need LaTeX? What is LaTeX? Where can I get LaTeX? How can I use LaTeX? Who can help me with LaTeX? Why What Where How Who

Introduction to typesetting with L A TEX

LATEX, BibTEX, and Friends. Robert Buels. Outline. What is LATEX. Using BibTEX LYX the graphical LATEX Managing your BibTEX references Further reading

Meeting One. Aaron Ecay. February 2, 2011

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

A Brief Introduction to L A TEX

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

Introduction to L A TEX for MCS-236

Part - I : Short Course Typing Text

Introducing Document Preparation with L A T E X

TUTORIAL 10: ARRAYS AND MATRICES. 1. Welcome. Hello. My name is Dr. Christopher Raridan (Dr. R). I want to welcome you to the L A TEX Tutorial Series.

L A TEX for Philosophers

L A TEX for Psychological Researchers

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

The LYX Tutorial. by Mohammed M. Kadhum

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

Introduction. LaTeX (pronounced lay-tech ) is a professional document preparation system.

A Short Introduction to L A TEX

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

Transcription:

CSCM10 Research Methodology A Taster of L A TEX Anton Setzer http://www.cs.swan.ac.uk/ csetzer/lectures/ computerscienceprojectresearchmethods/current/index.html November 10, 2016 CSCM10 Lecture 4, 11/2/16: LATEX 1/ 28

WYSIWYG Systems WYSIWYG = What You See Is What You Get. What you type in can be seen directly on the screen. Microsoft Office Word is the main example of a WYSIWYG system. CSCM10 Lecture 4, 11/2/16: LATEX 2/ 28

Advantages/Disadvantages of WYSIWYG Systems WYSIWYG systems are relatively easy to use. In WYSIWYG systems typesetting to be done by the user. Problem: most users are not professional type setters. In most systems (e.g. Word) you can see only the output, but not the formatting information. Difficult to detect that one headline is in 11 pt and another in 12 pt, or one headline in one font, and another in a slightly different font. Therefore output is usually inconsistent. Usually output not of printable quality. Programming is difficult, definition of macros restricted and difficult. CSCM10 Lecture 4, 11/2/16: LATEX 3/ 28

WYSIWYM WYSIWYM = What You See Is What You Mean. Instead of doing the typesetting directly the user says: This is a headline. This is a section title. This text is normal text. This is a mathematical formula Main examples: TEXand L A TEX. CSCM10 Lecture 4, 11/2/16: LATEX 4/ 28

Advantages/Disadvantages of WYSIWYM Systems Steeper learning curve. Separation of output from input, therefore what you write needs to be compiled into text. Can create text in print quality. Many publishers print articles typeset in L A TEX directly, or after adding their own generic macros. User sees all formatting information and can therefore produce very uniform text. Programmable using macros. Development of macro packages for many purposes. In L A TEX macro packages e.g. for chess, for typesetting proofs, chemical formulas exist. These slides are typeset in L A TEX. CSCM10 Lecture 4, 11/2/16: LATEX 5/ 28

L A TEX TEX developed by Donald Knuth in order to typeset a new version of his books The art of Computer Programming. L A TEX (for Lamport-T E X) developed by Laslie Lamport in order to make a more user friendly version of TEX. L A TEX is essentially a macro package on top of TEX. CSCM10 Lecture 4, 11/2/16: LATEX 6/ 28

Use of L A TEX for Reports and Dissertation Reports and dissertations can be written using any text processing system. Use of L A TEX will in many cases give you an advantage because of the much higher quality of the output. Many lecturers (but not all) use L A TEX, especially for scientific publishing. They might help you with L A TEX. CSCM10 Lecture 4, 11/2/16: LATEX 7/ 28

Example The following shows an example of L A TEX code (split into 3 codes) plus the output. For ease of presentation after each code piece the final output (which is only produced after running latex on the whole code) is shown. The source for this file is available from the webpage for the lectures by Anton Setzer for this module or here: http://www.cs.swan.ac.uk/ csetzer/lectures/ computerscienceprojectresearchmethods/current/latex/examplew CSCM10 Lecture 4, 11/2/16: LATEX 8/ 28

Example \documentclass[12pt]{article} \usepackage{amsmath} \title{\latex} \author{anton Setzer \thanks{dept. of Computer Science, Swansea University, Singleton Park, Swansea SA1 4PZ, UK. Email: {\tt a.g.setzer@swan.ac.uk}. This article is based on the example in Wikipedia, http://en.wikipedia.org/wiki/latex}} \date{7 October 2011} \newcommand{\role}{{r\^{o}le}} \begin{document} \maketitle CSCM10 Lecture 4, 11/2/16: LATEX 9/ 28

L A TEXOutput CSCM10 Lecture 4, 11/2/16: LATEX 10/ 28

Example (Continued) \LaTeX{} is a document preparation system for the \TeX{} typesetting program. It offers programmable desktop publishing features and extensive facilities for automating most aspects of typesetting and desktop publishing, including numbering and cross-referencing, tables and figures, page layout, bibliographies, and much more. \LaTeX{} was originally written in 1984 by Leslie Lamport and has become the dominant method for using \TeX; few people write in plain \TeX{} anymore. The current version is \LaTeXe. \LaTeX{} plays an important \role{} in publishing scientific articles in Science. % This is a comment; it will not be shown % in the final output. CSCM10 Lecture 4, 11/2/16: LATEX 11/ 28

L A TEXOutput CSCM10 Lecture 4, 11/2/16: LATEX 12/ 28

L A TEXOutput CSCM10 Lecture 4, 11/2/16: LATEX 13/ 28

Example (Continued) % The following shows a little of the typesetting power % of LaTeX: \begin{align} E &= mc^2 \\ m &= \frac{m 0}{\sqrt{1-\frac{v^2}{c^2}}} \end{align} \end{document} CSCM10 Lecture 4, 11/2/16: LATEX 14/ 28

L A TEXOutput CSCM10 Lecture 4, 11/2/16: LATEX 15/ 28

L A TEXOutput CSCM10 Lecture 4, 11/2/16: LATEX 16/ 28

Running L A TEX csetzer@csltas2: > latex examplewikipedia.tex latex examplewikipedia.tex This is pdftex, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) entering extended mode (./examplewikipedia.tex LaTeX2e <2009/09/24> Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, nohyphenation, farsi, arabic, croatian, bulgarian, ukrainian, russian, czech, slovak, danish, dutch, finnish... lots of more output... Output written on examplewikipedia.dvi (1 page, 2364 bytes) Transcript written on examplewikipedia.log. csetzer@csltas2: > xdvi examplewikipedia.dvi & CSCM10 Lecture 4, 11/2/16: LATEX 17/ 28

More Details \documentclass[12pt]{article} Standard Header of a Latex file. 12pt = font size article = style (Article is suitable for reports. There are lots of other styles. Style book is the simplest style for dissertations. There are many more fancy ones.) \usepackage{amsmath} Loads package amstmath. Rich package for mathematics, here used for command \frac. Lots of packages are available. \title{\latex} Defines the title. \LaTeX{} is a macro typesetting L A TEX. \author{anton Setzer Starts defining the author (note { not closed yet) CSCM10 Lecture 4, 11/2/16: LATEX 18/ 28

More Details \thanks{dept. of Computer Science, Swansea University, Singleton Park, Swansea SA1 4PZ, UK. Email: {\tt a.g.setzer@swan.ac.uk}. This article is based on the example in Wikipedia, http://en.wikipedia.org/wiki/latex}} Footnote added to author. {\tt } type sets this part in type writer font. Second } finishes definition of author. \date{7 October 2011} Defines the date. CSCM10 Lecture 4, 11/2/16: LATEX 19/ 28

More Details \newcommand{\role}{{r\^{o}le}} Defines a macro. From now on \role will expand to {r\ˆ{o}le}. Curly brackets will be used to group text but will not be printed. \ˆ{o} typesets ô There are macros for defining lots and lots of special symbols. http://www.tug.org/tex-archive/info/symbols/comprehensive/ Macros can have parameters as well. CSCM10 Lecture 4, 11/2/16: LATEX 20/ 28

More Details \begin{document} Start of the content of the document. \maketitle Puts title, author, date at this position. Without this command no title, author, date will occur in the document. CSCM10 Lecture 4, 11/2/16: LATEX 21/ 28

More Details \LaTeX{} is a document preparation system for the \TeX{} typesetting program. It offers This is standard text to be typeset. Aligning the text done by the system. Line breaks in the text create only space between words. Double line breaks creates a paragraph (Equivalently one can use the macro \par). Several blanks, tabs, line breaks are the same as a single space (except for double line breaks). \TeX{} typesets TEX. CSCM10 Lecture 4, 11/2/16: LATEX 22/ 28

More Details \LaTeX{} plays an important \role{} in publishing Here the user defined macro \role{} typeset as rôle is used. {} here makes sure that there is a blank after L A TEXand after rôle. Spaces after a macro are ignored. % This is a comment; it will not be shown Everything in a a line after % is a comment CSCM10 Lecture 4, 11/2/16: LATEX 23/ 28

Example (Continued) \begin{align} \end{align} Example of an environment. There are many environments in L A TEX. CSCM10 Lecture 4, 11/2/16: LATEX 24/ 28

Example (Continued) \begin{align} & \\ & \\ \end{align} Environment align typesets several formulae, which are numbered as (1), (2) consecutively. Content of an align environment is mathematical text. L A TEX and TEX have a text mode and a formula mode. In formula mode different macros (usually for creating mathematical text) are used. In mathematical text all blanks are ignored. Mathematical text is where the full power of L A TEX/TEXis shown. Seems to be the easiest system for typesetting formulae. \\ separates lines in mathematical text (can be used for ordinary text as well). Symbols & mark positions to be aligned. CSCM10 Lecture 4, 11/2/16: LATEX 25/ 28

Example (Continued) cˆ2 Typesets c 2 in mathematical text. m 0. Typesets m 0 in mathematical text. \frac{ }{ } Type sets a fraction. Note that we can nest fractions. \sqrt{ } Typesets. \end{align} End of align environment. \end{document} End of the document. Text after this will be ignored. CSCM10 Lecture 4, 11/2/16: LATEX 26/ 28

L A TEX under Windows Use any text editor. Recommended: Emacs or XEmacs. MikTeX is a L A TEX compiler for Windows. For viewing dvi files use the included YAP dvi-viewer. For postscript use GhostScript + GSView. See for instance http://www.pinteric.com/miktex.html on how to use L A TEX under Windows. Other onlinetools avilable e.g. ShareLatex. CSCM10 Lecture 4, 11/2/16: LATEX 27/ 28

More Documentation Lots of documentation on L A TEX (tutorials, userguides etc) available online. Links available on the module home page at http://www.cs.swan.ac.uk/ csetzer/lectures/ researchmethodology/16/index.html CSCM10 Lecture 4, 11/2/16: LATEX 28/ 28