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

Similar documents
CSCM10 Research Methodology A Taster of L A TEX

CSCM10 Research Methodology A Taster of 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

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

Latex Tutorial. CIS400 Senior Design 9/5/2013

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

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

Introduzione a LaTex. Fabrizio Messina

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

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

LaTeX A Tutorial. Mohsen Alimomeni, 2010

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

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

Formatting with LaTeX

Math 235: Introduction to LaTeX

Dec. 27 th, 2010 University of Isfahan

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

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

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

Introduction to LATEX

Very Short Introduction to LaTeX

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

Helen Cameron. A Brief Overview of LATEX

David Helmbold, October 2005, Revised October 2007

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

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

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

How to get started in L A TEX

Introduction to L A TEX

L A T E X Week 11, Other Document Classes

Document Preparation Using L A TEX

Typing Mathematics. Darrin Doud

My Mathematical Thesis

Performance Op>miza>on

Using L A T E X for scientific writing

CTAN lion drawing by Duane Bibby \LaTeX and \BibTeX. HJ Hoogeboom 19 april 2013 Bachelorklas

Introduction to Latex. A workshop by Dr. Ala Eshmawi

Introduction to L A TEX

VERY VERY SHORT GUIDE TO LATEX

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

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

1 Introduction. 2 About L A TEX. Page 1(6) Why LATEX is used for review report typesetting within the TDB. project

Lecture 1: Short summary of LaTeX basics

epub WU Institutional Repository

Become a L A TEX Guru

L A TEX for psychological researchers

A brief introduction to L A TEX

Introduction to L A T E X

1 Obtaining LyX and L A TEX

LATEX TYPESETTING SYSTEM. CAAM 519, CHAPTER 3

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

SOFTWARE ARCHITECTURE 4. TEXT FORMATTING SYSTEM

The Honours Dissertation Class for L A TEX2e. Cara MacNish

Introducing Document Preparation with L A T E X

The KBibTeX Handbook. Yuri Chornoivan

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

A Short L A TEX Introduction

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

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

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

Getting started with Latex

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

A demonstration of the L A TEX2ε class file for Earthquake Engineering and Structural Dynamics

Introduction to L A TEX

A demonstration of the L A TEX2ε class file for the International Journal of Network Management

Statistics Statistical Computing Software

Mikkel Madsen

Introduction to L A TEX

Basic L A TEX. what is LaTeX?

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

COMS 6100 Class note

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

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

Square cells: an array cooking lesson

Introduction to MCS 220 and L A TEX

Helen Cameron. A Brief Overview of LATEX

AL A TEX Fledgling Struggles to Take Flight

A Demonstration of the L A TEX 2ε Class File for the Oxford University Press Ltd Journal. First Author 1 and Second Author 2.

Effective Programming Practices for Economists

An Introduction to LATEX

Introduction to LaTeX. Paul Fodor Stony Brook University

An Introduction to LATEX

GROUP ASSIGNMENT. L A TEX Assignment 1/3

A Latex Template for Independent Work Reports Version 2016v3

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

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

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

Typesetting with TEX

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

Word-to-L A TEX specification

A Short Introduction to L A TEX

How To Get Your Word Document. Ready For Your Editor

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

Note di Matematica instructions for authors

LaTeX. Information Literacy II EN(IL2) Course

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

Using L A TEX Tom Edgar

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

Transcription:

WYSIWYG Systems CSCM10 Research Methodology A Taster of L A TEX Anton Setzer http://www.cs.swan.ac.uk/ csetzer/lectures/ computerscienceprojectresearchmethods/current/index.html 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. October 22, 2017 CSCM10 Lecture 4, 11/2/16: LATEX 2/ 32 Advantages/Disadvantages of WYSIWYG Systems WYSIWYM 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. 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 3/ 32 CSCM10 Lecture 4, 11/2/16: LATEX 4/ 32

Advantages/Disadvantages of WYSIWYM Systems L A TEX 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. 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 5/ 32 Use of L A TEX for Reports and Dissertation Example CSCM10 Lecture 4, 11/2/16: LATEX 6/ 32 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. 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/examplewik CSCM10 Lecture 4, 11/2/16: LATEX 7/ 32 CSCM10 Lecture 4, 11/2/16: LATEX 8/ 32

Example L A TEXOutput \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/ 32 Example (Continued) L A TEXOutput CSCM10 Lecture 4, 11/2/16: LATEX 10/ 32 \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/ 32 CSCM10 Lecture 4, 11/2/16: LATEX 12/ 32

L A TEXOutput 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} L A TEXOutput CSCM10 Lecture 4, 11/2/16: LATEX 13/ 32 L A TEXOutput CSCM10 Lecture 4, 11/2/16: LATEX 14/ 32 CSCM10 Lecture 4, 11/2/16: LATEX 15/ 32 CSCM10 Lecture 4, 11/2/16: LATEX 16/ 32

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/ 32 \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/ 32 \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. \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 19/ 32 CSCM10 Lecture 4, 11/2/16: LATEX 20/ 32

\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. \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 21/ 32 CSCM10 Lecture 4, 11/2/16: LATEX 22/ 32 Example (Continued) \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 \begin{align} \end{align} Example of an environment. There are many environments in L A TEX. CSCM10 Lecture 4, 11/2/16: LATEX 23/ 32 CSCM10 Lecture 4, 11/2/16: LATEX 24/ 32

Example (Continued) 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. 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 25/ 32 L A TEX under Windows BibTex CSCM10 Lecture 4, 11/2/16: LATEX 26/ 32 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. BibTex allows to create your bibliography automatically from a BibTex file, in which bibliography entries are listed in a database like syntax. Publishers and many authors provide BibTex entries for many publication. Google scholar can be adjusted through settings to provide BibTeX entries - however there usually need a lot of adjustments. CSCM10 Lecture 4, 11/2/16: LATEX 27/ 32 CSCM10 Lecture 4, 11/2/16: LATEX 28/ 32

Example BibTeX entry Example BibTeX entry @book{kopka2003guide, title={guide to {L}a{T}a{X}}, author={kopka, H. and Daly, P.W.}, edition={4}, year={2003}, publisher={addison-wesley} } Some Books CSCM10 Lecture 4, 11/2/16: LATEX 29/ 32 We wrote {L}a{T}a{X}, because BibTeX puts by default everything in lowercase in titles, except for the first character. By using {L} one forces L to be taken as a capital letter. Many more fields available, many are optional. Fields vary depending on the type. Here type is book as indicated by @book. Examples of types are article, misc, unpublished, inproceedings, proceedings, PhDthesis, and many more. This item can now be cited using \cite{kopka2003guide}. BibTeX entries are stored in a file with extension.bib The bibliography is incorparted into your LaTeX document by using the commands: \bibliographystyle{abbrvnat} \bibliography{bibtexfilename} There are many different bibliographystyles available. bibtexfilename is the name of your BiBTeX file. CSCM10 Lecture 4, 11/2/16: LATEX 30/ 32 More Documentation Helmut Kopka, Partrick W. Daly: Guide to LaTeX (Tools and Techniques for Computer Type Settings. Addision-Wesley 4th edition, 2003. Leslie Lamport: LaTeX: A document prperation system. User s guide and Reference manual. Addison Wesley, 1994. Frank Mittelbach, Michel Goossens: The Latex companion. Addison Wesley, 2nd Edition, 2004. Michel Goossens, Frank Mittelbach: The Latex Graphics companion. Addison Wesley, 2nd Edition, 2007. 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/ computerscienceprojectresearchmethods/current/index.html CSCM10 Lecture 4, 11/2/16: LATEX 31/ 32 CSCM10 Lecture 4, 11/2/16: LATEX 32/ 32