LaTeX An Introduction. November 2011CS A characterisation of LaTeX ● Very high quality typesetting – For traditional printed output ● Unrivalled.

Slides:



Advertisements
Similar presentations
Document preparation for project reports Rob Pooley
Advertisements

Html: getting started HTML is hyper text markup language. It is what web browsers look at on the Internet. HTML documents should be created in a simple.
Lesson 16 Enhancing Documents
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
SDT-Specific IT-INTRODUCTION IT at the IT-University Versioning LaTex TODAY.
CIS101 Introduction to Computing Week 05. Agenda Your questions Exam next week - Excel Introduction to the Internet & HTML Online HTML Resources Using.
McGraw-Hill Technology Education © 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Office Word 2003 Lab 3 Creating Reports and Tables.
CIS101 Introduction to Computing
Introduction to HTML 2006 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Introduction to HTML 2006 INT197B. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Introduction to HTML 2004 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
CS 173 Fall Introduction to LaTeX David and Lucas CS 173 Fall 2009 Written with significant references to Oetiker et al. “The Not So Short Introduction.
Chapter 12: Network Programming Desktop Publishing Translator models Latex Documentation Preparation Postscript programming language WYSIWIG Editors.
CIS101 Introduction to Computing Week 06. Agenda Your questions Excel Exam during second hour Our status after the snow day Introduction to the Internet.
LaTeX Tutorial. What is LaTeX? TeX is a typesetting system designed in 1978 to automate the production of high quality print using any type of computer.
With Alex Conger – President of Webmajik.com FrontPage 2002 Level I (Intro & Training) FrontPage 2002 Level I (Intro & Training)
1 Excel Lesson 3 Organizing the Worksheet Microsoft Office 2010 Introductory Pasewark & Pasewark.
Introduction to Nvu Jing Fu. What is nVu? Free web design and development tool WYSIWYG (/wiziwig/) software Other similar tools: Dreamweaver, Googlepages.
For AMS 200, 2009 Dept. of Applied Math & Statistics School of Engineering University of California Santa Cruz, CA A Very Short Introduction to LaTeX.
Adopted from: PRISM Brownbag Series June 9 th, 2009 Byungwon Woo.
Chapter 4 Fluency with Information Technology L. Snyder Marking Up With HTML: A Hypertext Markup Language Primer.
Introduction to LaTeX PRISM Brownbag Series June 9 th, 2009 Byungwon Woo.
Introduction to… About Tex & LaTeX What is TeX? What is LaTeX? Advantages - Disadvantages.
Amber Annett David Bell October 13 th, What will happen What is this business about personal web pages? Designated location of your own web page.
Introduction to Unix – CS 21 Lecture 16. Lecture Overview LaTeX History Running and creating LaTeX documents Documents and Articles Tables Lists Fonts.
Introduction to LaTeX Thomas Gorry. What is Latex?  A typesetting system used to produce professional looking documents.  Particularly good at handling.
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
June LaTeX " A typesetting package for formatting and creating documents. Created by L. Lamport based on TeX designed by D. Knuth. " Alphanumeric.
1 LaTeX For Dummies Mulugeta Gebregziabher Division of Biostatistics and Epidemiology MUSC April 4, 2011.
HTML: Hyptertext Markup Language Doman’s Sections.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
FIRST COURSE Word Tutorial 3 Creating a Multiple-Page Report.
McGraw-Hill Career Education© 2008 by the McGraw-Hill Companies, Inc. All Rights Reserved. Office Word 2007 Lab 3 Creating Reports and Tables.
SIGNewGrad: Intro to LaTeX
UoS Libraries 2011 EndNote X5 - basic graduate session.
The References Tab contains tools that help users to easily create references, table of contents, indexes, captions, citations, footnotes, endnotes and.
C151 Multiuser Operating Systems Introduction to LaTeX.
CSE470 Software Engineering Fall Tools - Overview LaTeX – Tool to create documents RCS – Revision Control System, to maintain multiple versions.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
1 2/16/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Intro to HTML and Basic Web Page Design.
Sébastien Le Roux. not What I am not going to talk about The explanations are in my HowTo ! Check my web IPCMS Basic tutorial to programming.
MS WORD INFORMATION TECHNOLOGY MANAGEMENT SERVICE Training & Research Division.
Introduction to HTML Dave Edsall IAGenWeb County Coordinator’s Conference June 30, 2007.
Department of Mathematics, Jazan University, Jazan.
LaTex -Computer scientist named Donald Knuth developed the program called Tex, in 1978.(mainly focused on formulae) -Later a mathematician and computer.
LaTeX Tutorial. What is LaTeX? TeX is a typesetting system designed in 1978 to automate the production of high quality print using any type of computer.
© 2004 The McGraw-Hill Companies, Inc. All rights reserved. The Advantage Series Microsoft Office Word 2003 CHAPTER 4 Printing and Web Publishing.
LATEX By GerardoVela 3/27/2015.
Formatting a Research Paper
HTML Basics.
Lesson 16 Enhancing Documents
With Microsoft FrontPage 2000
Lesson 16 Enhancing Documents
Computer Fundamentals
Creating a Home Page in HTML
Creating Accessible PDFs from Word Docs
Microsoft Office Introduction
By Rajyalakshmi Divi IIT Bombay
COMPSCI 111 / 111G An introduction to practical computing
Introduction to LaTeX David and Lucas CS 173 Fall 2009
LaTeX Tutorial.
LaTeX is not... rubber a Bill Gates product WYSIWYG (see) VooDoo
HTML Intro.
Benchmark Series Microsoft Word 2016 Level 2
A Very Short Introduction to LaTeX
Institution represented by the author(s)
Making Math Look Pretty – or How to Use LaTeX
Exploring Microsoft Word 2003
Presentation transcript:

LaTeX An Introduction

November 2011CS A characterisation of LaTeX ● Very high quality typesetting – For traditional printed output ● Unrivalled mathematical typesetting (ref)ref ● A standard for scientific publications ● Used by publishers ● Based on TeX (faq)faq

November 2011CS The production cycle ● Edit (plain text editor) ● Process (perhaps more than once) ● Preview (pdf, usually) ● Repeat as required

November 2011CS Editing ● plain text – any editor ● gedit, vim, notepad, gwd, whatever ● Like html in that you use markup – editor may “know” about the mark-up and help

November 2011CS Marking it up ● 2 aspects to creating the document – The content ● What you write, diagrams, pictures etc – marking up ● partially structural (headings etc) ● much presentational (bold, italics etc) ● The machine follows the instructions to produce the document

November 2011CS Process ● Processing may reveal typos or logical errors in your document – think of this as checking and quality control ● not a hassle – it's a good thing! ● You may need to process the document 2 or even 3 times – some things can't be known the first time through ● e.g. – table of contents with page numbers – “Page n of m” ● LaTeX squirrels such information away in a series of files with different extensions

November 2011CS Additional processing ● There is additional processing you might do – Make an index – Use a fully cross referenced bibliography – Spell check

November 2011CS Files ● “The” document is in a file with ending.tex ● This is processed to produce a printable file – Traditionally postscript in.ps, via.dvi – Now PDF in a.pdf file ● “By-product” files.log logs the processing.aux auxiliary file – other stuff.toc table of contents is maintained here.lof list of figures (if you asked for one)

November 2011CS File naming ● All files have same name (before the extension) – This is the way LaTeX works ● don’t try to change it ● mydoc.tex  mydoc.pdf – leaving mydoc.aux, mydoc.log etc. ● Don’t delete by-products until the end – They’re not a problem and they speed up the processing

November 2011CS Anatomy of LaTeX source ● Conventions – Characters with a special meaning ● $ & % # { } ● Of course, there are ways to get these if you need them – \command – {} and [] ● arguments (parameters) and options – environments ● begin and end

November 2011CS A simple example \documentclass{article} % Specifies the % document class \begin{document} % Start of text. \section{A Section Heading} This is a paragraph. This is a \emph{second} paragraph. \end{document} % End of document.

November 2011CS Simple example output ● The source is available – try itavailable

November 2011CS Big message ● Layout in the source has almost no effect on output – except that blank lines start a new paragraph ● Lay out the source for your convenience – Make it readable – Make it editable – You know about doing this by now for HTML, Java etc…

November 2011CS Commands ● Comes with most Linux/UNIX – Just use a command shell – Not with Ubuntu by default – easy to install (install the package tetex-common – and probably tetex-extra too) ● On Microsoft, use the “DOS” prompt – Utilities  Command Prompt – On Aber machines, but you'll have to install it if you want it at home ( ● pdflatex mydoc – Or pdflatex mydoc.tex ● latex mydoc – Produces.dvi – Must be further processed

November 2011CS Document classes ● Several available – article – report – book – letter ● Others can be written – Journals – Conferences ● Determines presentation ● Controls applicability of constructs – chapter? – abstract? ref

November 2011CS Paragraphs and headings ● Blank lines indicate new paragraph – \par command can be useful occasionally ● \section{title} – \subsection{title} ● \subsubsection{title} – \paragraph{title} ● \subparagraph{title} ● \chapter{title} ● \part{title} ● \appendix{title}

November 2011CS Some commands ● \pagestyle{plain} ● \pagestyle{headings} ● \pagestyle{empty} ● \LaTeX \TeX \LaTeXe ● \footnote{An interesting footnote}

November 2011CS Some environments ● itemize – Bulleted list (the UL of html) ● enumerate – Numbered list (the OL of html) ● Environments “nest” – These will cause other style bullets to be printed – according to the document class

November 2011CS A list example \documentclass{article} \begin{document} \begin{enumerate} \item Eins \item Zwei \begin{itemize} \item this \item is \item nested \end{itemize} \item Drei \end{enumerate} \end{document}

November 2011CS Lists example ● The source is availableavailable

November 2011CS Tables ● tabular environment ● Must specify columns and alignment – And vertical lines ● Cells separated by & ● Rows separated by \\ ● A command for horizontal lines – \hline

November 2011CS Table Example \documentclass{article} \begin{document} \begin{tabular}{|r|l|} \hline Header & Row \\ \hline \hline A & Silly \\ \hline tabular & structure \\ \hline with & some lines missing\\ \end{tabular} \end{document}

November 2011CS Table Example Output The source is availableavailable

November 2011CS The table environment ● The tabular environment merely creates an object which will be treated as a character (i.e. not nicely spaced). ● Use the table environment around it to place table neatly ● e.g. \begin{table}[h] ● h means “put table here” – t for top, b for bottom, p for page of floats – Default is tbp

November 2011CS Additional lessons from the examples ● Commands can have more than one argument ● Source code layout does not influence LaTeX – But it can make source hard to read ● Some things happen automatically – Surprising things need commands ● \backslash, \verb+~+ (not \~), same for ^ ● \^ (etc) used for accenting characters

November 2011CS Document titles and TOC ● \maketitle – Takes info from preamble ● \title{} ● \author{} ● \date{} – Or makes it up ● \date{} ● \tableofcontents – Generated – Needs 2 (or more) runs

November 2011CS Title and TOC example \documentclass{article} \title{The House} \author{A.G. Mason} \begin{document} \maketitle \tableofcontents \section{Roof} \subsection{Loft} \section{Upstairs} \section{Downstairs} \end{document}

November 2011CS Title and TOC example output The source is availableavailable

November 2011CS Inserting pictures, images etc ● \includegraphics{myimage.png} – Need to have \usepackage{graphicx} at the top of the file ● Also possible: \pdfimage ● Can do scaling, positioning etc. ● Google it for options

November 2011CS Running LaTeX ● Free ● Originally UNIX based – Now available for PCs and Macs – … ● MiKTeX (the Windows version) claims to be 100Mb (installed) - download is only about 23 Mb

November 2011CS Documentation ● “The Not So Short Introduction to LaTeX2e” – Or LaTeX2e in 90 minutes ● lshort – Comes with distribution ftp://ftp.tex.ac.uk/tex-archive/info/lshort/english/lshort.pdf IS machines have it at: E:\Programs\Tex\texmf\doc\guides\short-english\lshort.pdf (and I’ve linked it from the CS10110 main page anyway)linked ● Other languages available (see here)here ● See also

November 2011CS Recommended steps 1.Process the simple example Perhaps also the others 2.Read and process sample2e.texsample2e.tex A nice quick overview 3.Skim “The Not So Short Introduction to LaTeX2e Don’t try to read/learn it Ignore the maths (if not a maths student) 4.Do the practical!

November 2011CS A useful header section (just copy to the top of your own file) \documentclass[a4paper, 12pt]{article} % ******* Set normal page margins ******** \setlength{\oddsidemargin}{0in} \setlength{\evensidemargin}{0in} \setlength{\textwidth}{6.2in} \setlength{\topmargin}{-0.3in} \setlength{\textheight}{9.8in}

November 2011CS Other recommended reading: Get your own copy for Windows For Ubuntu Install package texlive-latex-base