Chapter 5 More About LaTex. Packages A package, which takes the form of a file with a sty extension, can be used to alter formatting parameters, create.

Slides:



Advertisements
Similar presentations
Document preparation for project reports Rob Pooley
Advertisements

Some LaTeX features By Andreas Grondoudis 1. Contents This week we'll look at some TeX features Before specifics – Already uploaded on my website; the.
Chapter 8 Creating Style Sheets.
© 2010 Delmar, Cengage Learning Chapter 9: Using ActionScript.
The Web Warrior Guide to Web Design Technologies
JavaScript Part for Repetition Statement for statement Cpecifies each of the items needed for counter-controlled repetition with a control variable.
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 Fall 2000 Software Engineering B.J. Czerny Updated by J. Brown, A. Subramanian.
LaTeX 2e Basics CSE470 Spring 2000 Software Engineering B.J. Czerny Updated by Prasad.
A Guide to Oracle9i1 Advanced SQL And PL/SQL Topics Chapter 9.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Guide To UNIX Using Linux Third Edition
Word Lesson 14 Working with Long Documents Microsoft Office 2010 Advanced Cable / Morrison 1.
Word Lesson 15 Creating Indexes and Tables of Contents, Figures, and Authorities Microsoft Office 2010 Advanced Cable / Morrison 1.
COMPREHENSIVE Word Tutorial 10 Managing Long Documents.
© 2002 ComputerPREP, Inc. All rights reserved. Word 2000: Working with Long Documents.
For AMS 200, 2009 Dept. of Applied Math & Statistics School of Engineering University of California Santa Cruz, CA A Very Short Introduction to LaTeX.
Introduction to… About Tex & LaTeX What is TeX? What is LaTeX? Advantages - Disadvantages.
Fortran 1- Basics Chapters 1-2 in your Fortran book.
Introduction to LaTeX CS157b John Eagle. TeX TeX is a computer program created by Donald E. Knuth. It is aimed at typesetting text and mathematical formulae.
Chapter 2 Creating a Research Paper with References and Sources
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.
1 Performing Spreadsheet What-If Analysis Applications of Spreadsheets.
1 ADVANCED MICROSOFT WORD Lesson 17 – Creating Indexes and Tables of Contents, Figures, and Authorities Microsoft Office 2003: Advanced.
Chapter 3 – Part 1 Word Processing Writer for Linux CMPF 112 : COMPUTING SKILLS.
June LaTeX " A typesetting package for formatting and creating documents. Created by L. Lamport based on TeX designed by D. Knuth. " Alphanumeric.
Program Design and Coding
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Microsoft Visual Basic 2010 CHAPTER THREE Program Design and Coding.
Report Writing. Table of contents Your report should include a table of contents if longer than about 5-10 pages. This allows the reader to quickly find.
BRIEF A BRIEF Introduction to L A T E X For Physics Graduate Students Prof. L. S. Pinsky Physics Department University of Houston.
Working with References Microsoft Office Word 2007 Illustrated Complete.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Chapter 1 Review Chapter 2 Whatcha Gonna Do???
WHAT IS A DATABASE? A DATABASE IS A COLLECTION OF DATA RELATED TO A PARTICULAR TOPIC OR PURPOSE OR TO PUT IT SIMPLY A GENERAL PURPOSE CONTAINER FOR STORING.
McGraw-Hill Career Education© 2008 by the McGraw-Hill Companies, Inc. All Rights Reserved. Office Word 2007 Lab 3 Creating Reports and Tables.
Enhancing Forms with OLE Fields, Hyperlinks, and Subforms – Project 5.
Chapter 0 Getting Started. Objectives Understand the basic structure of a C++ program including: – Comments – Preprocessor instructions – Main function.
 A table is a structure of vertical columns and horizontal rows. Each column and row will have a heading. Heading 1Heading 2 Microsoft Word 2010 : Tables.
Introducing Python CS 4320, SPRING Lexical Structure Two aspects of Python syntax may be challenging to Java programmers Indenting ◦Indenting is.
Text processing Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section 12.1.
CSE470 Software Engineering Fall Tools - Overview LaTeX – Tool to create documents RCS – Revision Control System, to maintain multiple versions.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Key Applications Module Lesson 14 — Working with Tables Computer Literacy BASICS.
Lecture 3- Microsoft Word COE 201- Computer Proficiency.
Copyright 2002, Paradigm Publishing Inc. CHAPTER 25 BACKNEXTEND 25-1 LINKS TO OBJECTIVES Compiling a Table of Contents Compiling a Table of Contents Assigning.
Using Microsoft Office Word Assignment Layout. Target Create a Cover Page (Front Page) Create a Table of Contents Page Create a Table of Figures Page.
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.
Academic Computing Services 2007 Microsoft Word 2010 Publishing Long Documents This Guide will teach you how to work with long documents such as dissertations.
Formatting a Research Paper Lesson 10 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Word Microsoft Word 2013.
Department of Mathematics, Jazan University, Jazan.
Sébastien Le Roux.
Unit Six: Labels In this unit… Review Adding Text to Maps
Microsoft Word Illustrated
Variables and Arithmetic Operations
Formatting a Research Paper
Benchmark Series Microsoft Word 2016 Level 2
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall.
Using Cascading Style Sheets (CSS)
Computing in COBOL: The Arithmetic Verbs and Intrinsic Functions
Navya Thum January 30, 2013 Day 5: MICROSOFT EXCEL Navya Thum January 30, 2013.
Basic usage and packages of TEX
Signature: Microsoft Word 2003
Graphics in TeX CONTENTS Sung-Ju Kang Department Of Physics
A Very Short Introduction to LaTeX
Making Math Look Pretty – or How to Use LaTeX
Key Applications Module Lesson 14 — Working with Tables
Presentation transcript:

Chapter 5 More About LaTex

Packages A package, which takes the form of a file with a sty extension, can be used to alter formatting parameters, create new environments, and define producing (or redefine) commands.

Packages Many packages are available, covering tasks such as producing special boxes, formatting computer programs, and generating obscure mathematical symbols, in addition to adding extra features to commands like \verbatim and \cite.

Packages The packages amsfonts, graphics, and makeidx are mentioned elsewhere in this book. The command \usepackage, which may appear only in the preamble, tells LaTeX to load a package. Options are included in square braces.

Inputting Files It is often natural and convenient to prepare a document as a collection of separate files. Ex: creating a “root” file, say main.tex, in which the \input command is used.

Inputting Files The facility is useful for several reasons. 1. It lets you work with relatively small files, which are easier to edit. 2. It allows you to speed up the debugging phase by selectively including certain parts of a large document. 3. It gives you the chance to set up a collection of frequently arising \newcommand declaration that can be read into to all your documents.

Inputting Pictures In this book we focus on graphical files that are PostScript form. The dvips programs is to be used to convert from dvi to PS. In this case, the graphics package must be loaded with the dvips option; that is, \usepackage[dvips]{graphics} must appear in the preamble.

Inputting Pictures The command \includegraphics{pic.eps} will cause the picture contained in pic.eps to appear in the document. The second argument of the command \scalebox{...}{...}, the size of the picture may be scaled by a factor specified by its first argument.

Inputting Pictures It is common to present a picture as a figure, so that it can be captioned, labeled, and referenced. That can be done with figure. The figure environment creates a floating body as the table environment. (see Ch.2)

Inputting Pictures \begin{figure}[hp] \begin{center} \scalebox{0.3}{\includegraphics{pic.eps}} \end{center} \caption{An included picture.} \label{myfig} \end{figure}

Inputting Pictures \rotatebox{...}{...} allows pictures to be rotated The first argument is the amount of rotation in degrees, and the second is the \includegraphics command.

Making a Bibliography A bibliography can be created with the thebibliography environment. Similar to the list-making environments. The command \bibitem, whose argument is enclosed in curly braces, precedes each entry.

Making a Bibliography The argument specifies the key by which the entry can be cited, anywhere in the document, using the \cite command.

Making a Bibliography Example 1 The example shows that more than one key can be given to the \cite command. Multiple keys must be separated by commas. If text is enclosed in square braces before the main argument (in curly braces), then this text is added to the citation.

Making a Bibliography Note the second argument “ {99} ” in \begin{thebibliography}{99} This is required to give LaTeX an upper limit on the width of the labels. i.e., 1,2,…,99. If the number of entries was between 100 and 999 then we use \begin{thebibliography}{999}.

Making a Bibliography Example 2 It is possible to override the numerical labeling by including the optional extra argument of \bibtem. This optional argument is enclosed in square braces before the main argument and is used by LaTeX for the label.

Making an Index If you wish to make an index, like the one at the back of this book, LaTeX offers some helpful facilities. We assume here that you will use the program Makelndex, which is available over the Internet (see Appendix E).

Making an Index The first step in generating an entry in the index is to insert the \index command in the relevant location. This part of the page looks like...a mechanism for inserting comments\index{comments} into... It causes LaTeX to make a note of the page number, which can then be used for the index entry.

Making an Index To make sure that the correct page number appears in the index we leave no space between the word comments and the command \index{comments}. The % character is useful if you want to make your indexing commands stand out in the LaTeX file.

Making an Index For example,...a mechanism for inserting \index{comments}% comments into... Since LaTeX ignores everything that follows % on the same line, there is effectively no space between \index{comments} and comments.

Making an Index Subentries can also be created. We use...produce foreign accents\index{accents!foreign} and other... to get the corresponding index entry. The ! character starts a new level.

Making an Index Up to three levels are possible, as in Up to three levels% \index{index!subentry!level-three} are possible, as in... It is possible to have multiple entries, The \index{braces!curly}% \index{curly braces}% curly braces

Making an Index Specify a command of the form string1 determines the alphabetic position in the index, but string2 is used as the entry. For example, environment}

Making an Index To refer the reader from entry1 to entry2, use the command \index{ entry1 |see{ entry2 }}. For example, \index{full stop|see{period}} The | character can also be used to specify a range of pages: use \index{ entry |(} at the start of the range and \index{ entry |)} at the end.

Making an Index In order for your \index commands to produce the desired you must include the package makeidx.  Put \usepackage{makeidx} in the preamble.  \makeidx must also be included in the preamble.  Finally,put \printindex where the index is to appear—usually immediately before \end{document}

Making an Index In summary, after embedding the correct commands in your document, automatic index generation is a three-stage process:  LaTeX: create filename.idx  MakeIndex : creates filename.ind  LaTeX again: the dvi file will include your index