Introduction to Unix – CS 21 Lecture 16. Lecture Overview LaTeX History Running and creating LaTeX documents Documents and Articles Tables Lists Fonts.

Slides:



Advertisements
Similar presentations
Introduction to HTML. A Web Page is.. An ASCII (text) file.. Whose filename ends with.htm or.html –index.html or cookie-recipe.htm Contains HTML tags.
Advertisements

HTML popo.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
ASHIMA KALRA.  WHAT IS HTML WHAT IS HTML  HTML TAGS HTML TAGS  FORMATTING TAGS FORMATTING TAGS.
HTML/XML XHTML Authoring. Creating Tables  Table: An arrangement of horizontal rows and vertical columns. The intersection of a row and a column is called.
Introduction to HTML Bent Thomsen Institut for Datalogi Aalborg Universitet.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
1 HTML Markup language – coded text is converted into formatted text by a web browser. Big chart on pg. 16—39. Tags usually come in pairs like – data Some.
Introduction to HTML CPS470 Software Engineering Fall 1998.
Marking Up With Html: A Hypertext Markup Language Primer
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.
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
PowerPoint Add formulae. Course contents Overview: Typing math formulae Lesson1: Type a simple formula Lesson2: Type a complex formula.
Computer Applications I Unit 3 Study Guide 1 Introduction to Formatting, Alignment and Page Setup.
Latex A document preparation system All academic staff in Computer Science publish their work using Latex – NOT Microsoft Word. Why? Note to self – press.
For AMS 200, 2009 Dept. of Applied Math & Statistics School of Engineering University of California Santa Cruz, CA A Very Short Introduction to LaTeX.
Welcome to the 3-day Workshop on > Presented by Saeid Abolfazli Faculty of Computer Science and IT University Malaya 23,24, and.
Chapter 4 Fluency with Information Technology L. Snyder Marking Up With HTML: A Hypertext Markup Language Primer.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
CHAPTER 1 GETTING STARTED WITH HTML. LEARNING OBJECTIVES How a Web browser downloads and processes an HTML page for display What is the purpose of a Web.
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… About Tex & LaTeX What is TeX? What is LaTeX? Advantages - Disadvantages.
HTML (HyperText Markup Language)
Introduction to LaTeX Thomas Gorry. What is Latex?  A typesetting system used to produce professional looking documents.  Particularly good at handling.
ACM 511 HTML Week -1 ACM 511 Course Notes. Books ACM 511 Course Notes.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
XP Mohammad Moizuddin Creating Web Pages with HTML Tutorial 1 1 New Perspectives on Creating Web Pages With HTML Tutorial 1: Developing a Basic Web Page.
XP 1 HTML Committed to Shaping the Next Generation of IT Experts. 01: Introduction to HTML.
CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) 1CC510 – 2011.
Just Enough HTML How to Create Basic HTML Documents.
IS1811 Multimedia Development for Internet Applications Lecture 4: Introduction to HTML Rob Gleasure
INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,
LaTeX (+ BibTeX) Tutorial
Computer Technology. Read the definition, think of the answer, then click to see if you are right. An application program which helps you create documents.
June LaTeX " A typesetting package for formatting and creating documents. Created by L. Lamport based on TeX designed by D. Knuth. " Alphanumeric.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
LEARNING HTML PowerPoint #1 Cyrus Saadat, Webmaster.
SIGNewGrad: Intro to LaTeX
Introducing Python CS 4320, SPRING Lexical Structure Two aspects of Python syntax may be challenging to Java programmers Indenting ◦Indenting is.
CS 111 – Oct. 4 Web design –HTML –Javascript Commitment: –This week, read sections 4.3 – 4.5.
Introduction to Computers 12/6/ BEGINNING HTML DESIGNING YOUR OWN WWW PAGES.
WEEK -1 ACM 262 ACM 262 Course Notes. HTML What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML.
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
1 2/16/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Intro to HTML and Basic Web Page Design.
CS 100 Introduction to Web Page Construction and HTML.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
XP 1 HTML Tutorial 1: Developing a Basic Web Page.
Lesson No : 8 Intro. to Word 2000,File mgmt, Editing, Formatting & print. Doc. CHBT-01 Basic Micro process & Computer Operation.
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.
Q.Nand1 HTML Creating an HTML Document Lesson 2. Q.Nand2 Overview Creating an HTML Document: –HTML syntax –Creating Basic Tags –Displaying Your HTML Files.
LATEX By GerardoVela 3/27/2015.
Word Processing.
Microsoft® Word 2010 Training
By Rajyalakshmi Divi IIT Bombay
Introduction to LaTeX David and Lucas CS 173 Fall 2009
LaTeX is not... rubber a Bill Gates product WYSIWYG (see) VooDoo
Computers and Scientific Thinking David Reed, Creighton University
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
A high quality document preparation system
Making Math Look Pretty – or How to Use LaTeX
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

Introduction to Unix – CS 21 Lecture 16

Lecture Overview LaTeX History Running and creating LaTeX documents Documents and Articles Tables Lists Fonts Math mode

LaTeX – What Is It? A general markup language LaTeX is a system that describes how documents should appear on paper Formatting Margins Section Headings Special characters

Other Examples Of Markup Languages HTML Hypertext markup language Used to describe how web pages appear A little bit of interpretation is still required and pages may look different on different browsers SGML Allows for the construction of special constructs

Where Did It Come From? TeX 1977 – Donald Knuth Low level formatting details Constructed to make mathematical books look good LaTeX 1980’s – Leslie Lamport A layer of abstraction on top of TeX

Why Not Just Use Word? Main reason: Bugs TeX has long had a bounty for serious bugs that no one can collect on Secondary reason: LaTeX does what you tell it to LaTeX doesn’t try to out-think you and put figures where it believes them to be best

O.K., How Does Latex Work? Latex works on plain text files that are annotated with commands Commands are of the form: \command{parameter} Example: \documentclass{article} Document class tells LaTeX what type of document you are creating Books have chapters, articles have sections, etc. Most common: article, book, letter, report, slides

What’s With The Braces? LaTeX uses the braces for grouping like parenthesis { text } is the same as simply text Commands inside braces (like changing fonts) only apply inside the braces Example: { \sf This is in a serif font } And this is not

What Does A LaTeX File Look Like?

How Do I Get A Printable Paper Out? Usage: latex document.tex This creates several files document.aux, document.log, document.dvi document.idx, document.toc, document.lof xdvi document.dvi Views the document dvips –o document.ps document.dvi

Example LaTeX Run

What To Do When Something Goes Wrong Latex will pop up with an error message whenever it encounters a problem Malformed or unknown command Simplest thing to do: Simply hit return and ignore whatever command LaTeX had problems with Alternative: type I followed by the correct command to replace the problem Example: I\end{document}

Sample Run With Problems

Example Latex File

Example Output dvi1.JPG

What Are Comments Doing In A Document? Might seem a little weird coming from using Word LaTeX can define new commands and can be confusing at times LaTeX is not a programming language like perl or awk

Normal Text All paragraphs of normal text are simply typed in without any commands. Spacing is not taken into account, and all spaces get reduced to one space Example: this is the same

Normal Text Example

Normal Text Output dvi2.JPG

Common Constructs Italics and Bolding Sectioning Lists Tables Footnotes Mathematical formulas

Italics And Bolding \emph{text to be emphasized} \bf Changes the font to a bolder font

Italic And Bolding Example

Sectioning Commands NameLevel \part \chapter0 \section1 \subsection2 \subsubsection3 \paragraph4 \subparagraph5

Section Example

Sectioning Output

Unnumbered Sections \section{Section Name} Always numbers the section You can change the format of sections numbers if you’d like \section*{Section Name} Will output an unnumbered section

Unnumbered Example

Unnumbered Output

Counters All sections have a counter associated with them You can adjust this counter if you’d like \addtocounter{name}{value} You can create your own counters \newcounter{name} \setcounter{name}{value}

Counter Example

Printing Out The Current Section Numbers “The” notation Will print out the current value of the counter associated \thechapter \thesection \thesubsection

Ordered And Unordered Lists Ordered lists are handled with the enumerate construct \begin{enumerate} \end{enumerate} Unordered lists are handled with the itemize construct \begin{itemize} \end{itemize} \item

List Example

List Output

Tables Tables are handled with the tabular environment \begin{tabular}{ FORMAT } \end{tabular} FORMAT determines how many columns are in the table and how text is arranged

Format Specifics | represents vertical lines Specific characters tell how to arrange text in the columns l = Left aligned c = Centered r = Right aligned

Table Internal Specifics & will separate columns \hline draws horizontal lines \\ ends a line

First Tabular Example

First Tabular Output

More Complex Tabular Example

Tabular Output

Footnotes Footnotes are handled with the \footnote construct \footnote{This is a footnote} Again, there is an automatic counter that keeps track of your footnotes on a section by section basis

Mathematical Constructs LaTeX was built on Tex, which was designed for easy representation of complex mathematical formulas A special mode for math formulas exists in LaTeX $Math mode$

Adding Accents

Accent Output

Greek Letters

Greek Letter Output

Relational Symbols

Relational Symbols Output

Various Math Symbols

Math Symbols Output

Superscripts and Subscripts In math mode: \sp{ } ^ as a shortcut \sb{ } _ as a shortcut

Complex Math Formula Example

Complex Math Formula Output

Vertical Skip And Horizontal Skip \vskip 0.2in \hskip 3in

When You Don’t Want Any Changes - Verbatim The verbatim environment will attempt to print out everything exactly as it appears \begin{verbatim} \end{verbatim} Spacing comes out just as typed in this mode

Next Time We will look a little more at LaTeX and examine the Make utility Quiz # 3 will be next Tuesday (March 8)