1 Lecture 4 A Brief Introduction to LaTeX Introduction to Information Technology Dr. Ken Tsang 曾镜涛

Slides:



Advertisements
Similar presentations
Document preparation for project reports Rob Pooley
Advertisements

COE201 – Computer Proficiency Mr. Hamze Msheik
157A, Fall Semester 2006 Brent Turner. Presentation Contents: 1. What Is LaTeX? 2. History of LaTeX 3. LaTeX Use 4. Typesetting – HTML vs. LaTeX 5. LaTeX.
PZ14A Programming Language design and Implementation -4th Edition Copyright©Prentice Hall, PZ14A - Text processing Programming Language Design and.
Introduction to LaTeX CPS470 Software Engineering Fall 1998.
LaTeX 2e Basics CSE470 Spring 2000 Software Engineering B.J. Czerny Updated by Prasad.
Chapter 12: Network Programming Desktop Publishing Translator models Latex Documentation Preparation Postscript programming language WYSIWIG Editors.
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.
Android 4: Creating Contents Kirk Scott 1. Outline 4.1 Planning Contents 4.2 GIMP and Free Sound Recorder 4.3 Using FlashCardMaker to Create an XML File.
1 LaTeX Introduction Wenguang Wang Department of Computer Science University of Saskatchewan February 28, 2000.
For AMS 200, 2009 Dept. of Applied Math & Statistics School of Engineering University of California Santa Cruz, CA A Very Short Introduction to LaTeX.
Digital Imaging and Remote Sensing Laboratory R.I.TR.I.TR.I.TR.I.T R.I.TR.I.TR.I.TR.I.T Writing Large Documents with LaTeX and WinEdt Emmett Ientilucci.
Welcome to the 3-day Workshop on > Presented by Saeid Abolfazli Faculty of Computer Science and IT University Malaya 23,24, and.
Adopted from: PRISM Brownbag Series June 9 th, 2009 Byungwon Woo.
Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy.
Internet Skills An Introduction to HTML Alan Noble Room 504 Tel: (44562 internal)
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.
XP New Perspectives on Introducing Microsoft Office XP Tutorial 1 1 Introducing Microsoft Office XP Tutorial 1.
Introduction Why we do it? To disseminate research To report a new result; To report a new technique; To critique/confirm another's result. Each discipline.
Applications Software. Applications software is designed to perform specific tasks. There are three main types of application software: Applications packages.
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.
LATEXLATEX IPA – batch. LATEXLATEX  A document preparation system - pronounced as lay-tek  It is a markup and programming language created by.
LaTeX A Short Intro to Marco D. Santambrogio Politecnico di Milano Sala DEIB 2 Sept 2015 Ver. 2/9/15.
CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) 1CC510 – 2011.
Software. Generic Software  e.g. word processing, spreadsheet and database. – This simply implies that any of the dozens of spreadsheet packages, for.
Chapter 3 – Part 1 Word Processing Writer for Linux CMPF 112 : COMPUTING SKILLS.
Microsoft Word ITE115 Trisha Cummings. MsWord - Word Processing Program Allows you to create Letters, Envelopes, Mailing Labels, Memo’s , Fax’s.
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.
McGraw-Hill Career Education© 2008 by the McGraw-Hill Companies, Inc. All Rights Reserved. Office Word 2007 Lab 3 Creating Reports and Tables.
Microsoft® Excel Key and format dates and times. 1 Use Date & Time functions. 2 Use date and time arithmetic. 3 Use the IF function. 4 Create.
Text processing Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section 12.1.
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.
Unit #7 Charts Questions? Comments?. MS PPT 2007: Presentations Made Easy; Planning and Preparing PowerPoint allows you to create a professional presentation.
Lecture 3- Microsoft Word COE 201- Computer Proficiency.
Software AS Module Heathcote Ch. 22. Importance of Information  Information technology is fundamental to the success of any business  The information.
Microsoft Word 2013 is word processing software included in Microsoft Office Overview of Word Processing Document Formatting Techniques Academic.
Information SKL for Graduate Students Instructors: Sina Mater 3 December 2010.
Wikispaces in Education Tutorial ESA, Region 2 Mary Teply Marge Hauser.
+ Publishing Your First Post USING WORDPRESS. + A CMS (content management system) is an application that allows you to publish, edit, modify, organize,
R 賴威昇 Introduction 2. Why using LaTeX ? 3. LaTeX usage: ◦ Backbone ◦ Equation ◦ Figure ◦ Table ◦ BibTex 4. Compile 5. Conclusion.
Microsoft Word 2007 In the Library at York College, all Windows computers have Microsoft Word 2007.
Go to View > Master > Slide Master to insert your unit name here Author 1 | Author 2 | Author 3 (edit this list on View > Slide Master) Go to View > Slide.
Author 1 | Author 2 | Author 3 (edit this list via View > Slide Master) Insert your unit name via View > Slide Master Bullets in PowerPoint This paragraph.
Author 1 | Author 2 | Author 3 (edit this list on View > Slide Master) Go to View > Slide Master to insert your headship or centre name here This is an.
ICAD3218A Create User Documentation.  Before starting to create any user documentation ask ‘What is the documentation going to be used for?’.  When.
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.
Application software Word processing 1. Application software  Some types:  Document production:  Word-processing, desktop publishing, web page authoring.
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.
LATEX By GerardoVela 3/27/2015.
NGUYEN THI THANH NHA HMCL
LaTeX Tutorial.
LaTeX is not... rubber a Bill Gates product WYSIWYG (see) VooDoo
Word 2013 Microsoft Word® 2013 is a word processing application ideal for creating, editing, formatting and sharing professional-looking documents using.
Benchmark Series Microsoft Word 2016 Level 2
Basic usage and packages of TEX
A Very Short Introduction to LaTeX
Engineering Librarian
Word Processing Software Photo credit: © 2007 JupiterImagesCorporation.
Text processing Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section 12.1.
A high quality document preparation system
Making Math Look Pretty – or How to Use LaTeX
Welcome To Microsoft Word 2016
Presentation transcript:

1 Lecture 4 A Brief Introduction to LaTeX Introduction to Information Technology Dr. Ken Tsang 曾镜涛 Room E408 R9

2 What is TeX?  TeX is a typesetting system ( 排版系统 ) written by Donald E. Knuth in 1976, who says that it is “intended for the creation of beautiful books — and especially for books that contain a lot of mathematics”

3 How to Pronounce TeX?  The X is really the Greek letter Chi, and is pronounced by English-speakers like ‘k’. It definitely is not pronounced ‘ks’ (the Greek letter with that sound doesn’t look remotely like the Latin alphabet X)  The name comes from the Greek word for “art” or “craft” (“techni”), which is the root of the English word technology

4 What is LaTeX?  LaTeX is a free high-quality document processing system that is based on TeX  LaTeX was originally written by Leslie Lamport in 1980s

5  Lamport never announced how one he thought people should pronounce LaTeX How to Pronounce TeX?  A lot of people pronounce it “Lay TeX” or “Lah TeX”

6 Why LaTeX ?  It is the premier typesetting package in the world!  It's free!!!  It's available for many machines (Linux, Mac, Windows)  LaTeX files are ASCII Therefore, they are very portable  You can use the editor of your choice (Some people even use MS Word)

7 Why LaTeX ?  The typesetting is better especially the maths  Style changes are neater in LaTeX Style files for many periodicals exist Many MS Word users don't use styles or templates, so there's a limit to what they can do  LaTeX is extensible If you want a new feature, find a free add-on or write one yourself

8 Disadvantages  LaTeX encourages (almost insists on) structured writing and the separation of style from content This is not the way that many people (especially non-programmers) are used to working  Without a WYSIWYG (What You See Is What You Get), it's not always easy to find out how to do things

9 LaTeX vs MS Word  If you are writing a document with lots of maths, tables, cross-references, etc, and you need to format the document and bibliography to suit various publications, then LaTeX is clearly the best choice!  If your document contains many equations / figures / tables, MS Word easily runs out of memory and shows a nice blue screen of death or prints red crosses instead of your equations

10 LaTeX vs MS Word  LaTeX encourages authors not to worry too much about the appearance of their documents but to concentrate on getting the right content  LaTeX is based on the idea that it is better to leave document design to document designers, and to let authors get on with writing documents

11 “Hello World”  Suppose we want to produce the following document:

12 In MS Word  To produce this in most typesetting or word-processing systems, the author would have to decide what layout to use, so would select (say) 18pt Times Roman for the title, 12pt Times Italic for the name, and so on  This has two results: Authors wasting their time with designs A lot of badly designed documents!

13 In LaTeX \documentclass{article} \title{Introduction to LaTeX} \author{Bill Gates} \date{November 2007} \begin{document} \maketitle Hello world! \end{document}

14 Or In English  This document is an article  Its title is An Introduction to LaTex  Its author is Bill Gates  It is written in November 2007  The document consists of a title followed by the text Hello world!

15 LaTeX Features  Typesetting journal articles, technical reports, books, and slide presentations  Control over large documents containing sectioning, cross- references, tables and figures  Typesetting of complex mathematical formulas  Advanced typesetting of mathematics with AMS-LaTeX

16 LaTeX Features  Automatic generation of bibliographies and indexes  Multi-lingual typesetting  Inclusion of artwork, and process or spot color  Using PostScript or Metafont fonts

17 Obtaining LaTeX  Linux Your system distribution or vendor has probably provided a TeX system including LaTeX. Check your usual software source for a TeX package  MacOS X A full TeX system including LaTeX, called MacTeX, is available for installation with i-Installer  Windows Check out the proTeXt system; this allows you to install a full TeX system, including LaTeX, while reading about the basics of the installation Chinese TeX:

18 A Quick Start (1)  The LaTeX Source: reproduce the following text in any text-editor and save it as hello.tex \documentclass{article} \begin{document} Hello World! \end{document}

19 A Quick Start (2)  Generating the documents  Type the command: latex hello.tex  Various bits of info about LaTeX and its progress will be displayed.  If all went well, the last two lines displayed in the console will be: Output written on hello.dvi (1 page, xxx bytes) Transcript written on hello.log  This means that your source file has been processed and the resulting document is called hello.dvi, which takes up 1 page and xxx bytes of space.

20 A Quick Start (3)  Viewing the documents  LaTeX has now done its job, so we can view the output  The default format is DVI (device independent), of which viewers exist freely for most platforms  However, the chances are that you would prefer to have a postscript file or PDF  Fortunately, there exist tools that can convert DVI to PS (and PDF) easily

21 A Quick Start (4) To Convert the document into a postscript (PS) file  Type the command: dvips hello.dvi -o hello.ps  dvips is the utility that actually performs the conversion.  The first argument hello.dvi is the DVI file to be converted.  The -o argument says that you want the output to be saved as a file.  And the argument immediately after, hello.ps, is the name you wish to call it.

22 A Quick Start (5) To Convert the document into a PDF file  Type the command: dvipdf hello.dvi hello.pdf  Note that there is no -o with this command, because although the utilities look almost identical, they have slightly differing syntax)  If you already have a postscript version, then type: ps2pdf hello.ps hello.pdf  Now it is simply a matter of using your preferred PS or PDF viewer to see the output  What you should see at the top left of the page are the words Hello World! and at the bottom is the current page number. All in a standard times font

23 LaTeX Document Structure % A simple article to illustrate document % structure. \documentclass[12pt]{article} \usepackage{times} \begin{document} …… \end{document}

24  %: comments  \documentclass[12pt]{article} The type of document we want to produce: article Other classes that exist are book, report, thesis etc 12pt: the font  \usepackage{times} It tells Latex to utilise some external macros  \begin{document}  …  \end{document} LaTeX Document Structure

25 Top Matter  \title{How to Structure a \LaTeX{} Document}  \author{ Bill Gates\\ Computer Science and technology Program,\\ United International College,\\ Zhuhai, China\\ \date{\today}  \maketitle

26 Output

27 Abstract \begin{abstract} In this article, I shall introduce to you \LaTeX{}, a typesetting software that is much better than Microsoft Word. I shall discuss some of the fundamental topics in producing a structured document. This document itself does not go into much depth, but is instead the output of an example of how to implement structure. \end{abstract}

28 Output

29 Sectioning Commands  \section{Introduction} This section's content...  \section{Structure} This section's content... \subsection{Top Matter} This subsection's content... \subsubsection{Article Information}  This subsubsection's content...

30 Output

31 Bulleted List  \begin{itemize} \item \texttt{\textbackslash address} - The author's address. Use the new line command (\texttt{\textbackslash\textbackslash}) for line breaks. \item \texttt{\textbackslash thanks} - Where you put any acknowledgments. \item \texttt{\textbackslash } - The author's address. \item \texttt{\textbackslash urladdr} - The URL for the author's web page.  \end{itemize}

32 Output

33 The Bibliography  \begin{thebibliography}{9} \bibitem{lamport94} Leslie Lamport, \emph{\LaTeX: A Document Preparation System}. Addison Wesley, Massachusetts, 2nd Edition,  \end{thebibliography}

34 Citation  In the text,  This small document is designed to illustrate how easy it is to create a well structured document within \LaTeX\cite{lamport94}. You should quickly be able to see how the article looks very professional, despite the content being far from academic. Titles, section headings, justified text, textformatting etc., is all there, and you would be surprised when you see just how little markup was required to get this output.

35 Output

36 The Tabular Environment \begin{tabular}{ l c r } 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \\ \end{tabular} \begin{tabular}{|l|l|} \hline stuff & stuff \\ \hline \end{tabular}

37 Rows spanning multiple columns

38 Columns spanning multiple rows

39 Mathematics Environments  text formulae \begin{math}...\end{math} $...$  displayed formulae \begin{displaymath}...\end{displaymath} \[...]\ \begin{equation}...\end{equation}

40 Fraction

41 Powers and Indices

42 Roots

43 Matrices

44 Equations

45 Multi-lined equations

46 Summary  This lecture has given a very brief introduction to the facilities provided in LaTeX  There are many other features and packages that have not been covered  The best way to improve your LaTeX skills is to use it for ALL your assignments and papers!

47 References for Further Study     LaTeX: an introduction ( introduction.pdf)  The (Not So) Short Introduction to LaTeX2e ( archive/info/lshort/english/lshort.pdf)