Seminar Sam Panzer. Good Evening, and Welcome First, an overview of what these seminars will cover Topics: – What you need to get started – What LaTeX.

Slides:



Advertisements
Similar presentations
HTML: HyperText Markup Language Hello World Welcome to the world!
Advertisements

OMT II Mam Saima Gul. * Static web page * a web page with contents that remain fixed and unchanged once it has been created by the author Web server Client.
HTML Minute University Richard Fisher 10/1/2001 HTML FSA Training2 HTML Overview  HTML  HyperText Markup Language.
IT151: Introduction to Programming
1 Chapter 2 Introduction to Java Applications Introduction Java application programming Display ____________________ Obtain information from the.
Formulas in LATEX Esther Ezra. The math mode math environment: $, \( An in-text formula: $2(a+b)$, or \( 2(a+b) \) displaymath environment: $$, \[ Produces.
LaTeX for CIS 160. First, you need a document outline \documentclass{article} \usepackage{amsmath} \usepackage{fullpage} \include{prooftree} \include{mathmac}
CMT Programming Software Applications
23-Jun-15 HTML. 2 Web pages are HTML HTML stands for HyperText Markup Language Web pages are plain text files, written in HTML Browsers display web pages.
 2003 Prentice Hall, Inc. All rights reserved. Customized by Sana Odeh for the use of this class. 1 Introduction to Computers and Programming in JAVA.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Introduction to Array The fundamental unit of data in any MATLAB program is the array. 1. An array is a collection of data values organized into rows and.
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.
Word Processing Mathematics. Word Processing  More professional  Don’t use handwritten symbols  Don’t use poorly word processed symbols.
Geometric Sequences and Series Part III. Geometric Sequences and Series The sequence is an example of a Geometric sequence A sequence is geometric if.
Algorithm Design and Analysis (ADA)
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.
Introducing Java.
© The McGraw-Hill Companies, 2006 Chapter 1 The first step.
Introduction to LaTeX PRISM Brownbag Series June 9 th, 2009 Byungwon Woo.
College Algebra Fifth Edition James Stewart Lothar Redlin Saleem Watson.
Introduction to… About Tex & LaTeX What is TeX? What is LaTeX? Advantages - Disadvantages.
Math Basics & Diagrams Foundations of Algebra Unit 1 Lesson 1.
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.
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.
Mathematics Review Exponents Logarithms Series Modular arithmetic Proofs.
HTML history, Tags, Element. HTML: HyperText Markup Language Hello World Welcome to the world!
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.
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.
Copyright © Cengage Learning. All rights reserved.
A Basic Web Page. Chapter 2 Objectives HTML tags and elements Create a simple Web Page XHTML Line breaks and Paragraph divisions Basic HTML elements.
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
Text, not Word Processing Gordon J. Pace March 2006 First steps.
HTML: Hyptertext Markup Language Doman’s Sections.
Section 2.4. Section Summary Sequences. Examples: Geometric Progression, Arithmetic Progression Recurrence Relations Example: Fibonacci Sequence Summations.
 Pearson Education, Inc. All rights reserved Introduction to Java Applications.
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
C++ Basics C++ is a high-level, general purpose, object-oriented programming language.
LaTex By Wen Ying Gao.
MM150 Unit 3 Seminar Agenda Seminar Topics Order of Operations Linear Equations in One Variable Formulas Applications of Linear Equations.
Digital Image Processing Lecture 6: Introduction to M- function Programming.
C151 Multiuser Operating Systems Introduction to LaTeX.
Formatting Text with HTML. Objectives: Students will be able to: Define the structure of the document with block elements Format numbered, bulleted, and.
Information SKL for Graduate Students Instructors: Sina Mater 3 December 2010.
Divide and Conquer Faculty Name: Ruhi Fatima Topics Covered Divide and Conquer Matrix multiplication Recurrence.
1 CMSC 341 Math Review. 2 Exponents Identities (X A ) B = X AB X A * X B = X A+B X A / X B = X A-B X A + X B  X A+B.
1 2/16/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Intro to HTML and Basic Web Page Design.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
PROGRAMMING USING PYTHON LANGUAGE ASSIGNMENT 1. INSTALLATION OF RASPBERRY NOOB First prepare the SD card provided in the kit by loading an Operating System.
VNVe First computer lab Lector: Petr Veigend Brno University of Technology, Faculty of Information Technology Božetěchova 1/2, Brno - Královo Pole.
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
Department of Mathematics, Jazan University, Jazan.
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
MOAC Lesson 3.  From the HOME TAB you can change the capitalization of text using the change case icon in the font group.  Select the text, Home Tab,
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.
LATEX By GerardoVela 3/27/2015.
Intro to PHP & Variables
LaTeX Tutorial.
Introduction to LaTeX By Dan Burke.
Fill the screen challenge!
Geometric Sequences and Series
CSCI N317 Computation for Scientific Applications Unit 1 – 1 MATLAB
Basic usage and packages of TEX
A Very Short Introduction to LaTeX
Making Math Look Pretty – or How to Use LaTeX
ADVANCE FIND & REPLACE WITH REGULAR EXPRESSIONS
Presentation transcript:

Seminar Sam Panzer

Good Evening, and Welcome First, an overview of what these seminars will cover Topics: – What you need to get started – What LaTeX is (and what it isn’t) – A bit of history (if you’re interested) – Basic concepts – Writing simple documents With a special addendum for the CIS 160 proof tree templates

Start Your Browsers LaTeX is a fairly large system (a few hundred MB) First, download and install TeX Live from tl.zip (unless you’re on Linux) tl.zip Windows users, install the TeXNic Center from nicCenter/1.0%20Stable%20RC1/TXCSetup_1StableRC1.exe/download nicCenter/1.0%20Stable%20RC1/TXCSetup_1StableRC1.exe/download Mac users, install the TeXShop IDE from Linux users, install the texlive package

About LaTeX LaTeX is a document markup language – According to Wikipedia LaTeX documents describe the layout and content for the typesetting program TeX You describe the presentation of a document, and LaTeX makes it look pretty

A Bit of History LaTeX is a high-level front-end to the TeX typesetting system It was originally written in the early 1980s Many contemporary academic papers are typeset in LaTeX

LaTeX Input Three common types of input: – Commands Start with a backslash – Text Just typed! – Math Enclosed in dollar signs All LaTeX will be displayed in this font for this presentation

On Structure Each LaTeX document begins by stating which type of output it generates – Article, report, book, letter, slides Usually use article \documentclass{article} The contents of the document reside between \begin{document} and \end{document} All other examples are assumed to be between \begin{document} and \end{document}

A Simple Sample Latex Document \documentclass{article} \title{Evil Plans} \author{Sam Panzer} \begin{document} \maketitle Tonight, we take over the world! \end{document}

Commands As before, they start with backslashes – \noindent – Two backslashes start a new line Required arguments are placed in braces \textbf{Bold Text} – \emph{Italicized Text} – \hspace{3mm} Optional arguments go in brackets – \documentclass[twoside,10pt]{article} There is a command for just about anything! Check

Example, with commands \noindent \textbf{Homework 5} \\\noindent CIS 260 \hspace{5mm} Pf. Gallier Intuitionistic logic differs from classical logic in that proof-by-contradiction (\emph{RAA}) is disallowed.

Math Inline expressions are enclosed in dollar signs $f(x_1,x_2) = x_1^2 + 2x_2$ Results in Use double dollar signs to place an equation on its own line Carets (^) are used for superscripts, and underscores (_) for subscripts

Math II Common Commands – \frac{numerator}{denominator} – \sqrt{inside} – \sum_{subscript}^{superscript} – \int_{lower bound}^{upper bound}{integral} – \infty – \cdot – \leq and \geq – \( and \) – \Rightarrow – Any Greek letter is \lettername E.g. \pi, \Gamma For uppercase, capitalize the first letter – Unless the uppercase looks like English…

Math example \section{The Algebraic-Geometric Infinite Series} We often see series in the form $S = a+ ar + ar^2 +...,$ and are familiar with the formula for evaluating them, given that $|r| < 1.$ In this case, the series is slightly different - the numerators follow an algebraic series, and the denominators a geometric series. $$S = \frac{1}{1} + \frac{2}{4} + \frac{3}{16} + \frac{4}{64} +... = \sum_{k=0}^\infty{\frac{k + 1}{4^k}}$$ The trick used to solve a geometric series was to multiply the entire series by the common ratio, then subtract the result from the original series. Here, $$4S = 4 + \frac{2}{1} + \frac{3}{4} + \frac{4}{16} +... $$ Subtracting the original, we have reduced the original problem to a geometric series, $$4S - S = 4 + \frac{1}{1} + \frac{1}{4} + \frac{1}{16} +....$$ Finally, $$3S = 4 + \sum_{k=0}^\infty{\frac{1}{4^k}} = 4 + \frac{4}{3},$$ so $S = \frac{16}{9}$

Output

Setting up your math homework \documentclass{article} \usepackage{amsmath} \begin{document} \section{Problem 1} From Theorem 7.2, we know that $| |^2 \leq ||v||\cdot ||w||.$ \end{document}

Example math-heavy excerpt (Copied from an old homework) \section{The Fibonacci Numbers} $F_0 = 1, F_1 = 1, F_{n+2} = F_{n+1} + F_{n}$ if $n \geq 0.$ \vspace{3mm} \\\textbf{Base case for induction}: $n = 0$ Then $F_{n+2} = \binom{2}{0} + \binom{1}{1} + \binom{0}{2} = 2.$ According to the recursive definition, $F_2 = F_1 + F_0 = = 2.$ Inductive case: Assume the (complete) induction hypothesis, for all $n \geq m \geq 2,$ $$F_m = \sum_{k=0}^m \binom{m-k}{k},$$ we try to show that $$F_{n+1} = \sum_{k=0}^{n+1} \binom{n + 1 -k}{k}.$$ Consider $F_{n+1}.$ By the recursive definition of $F,$ we have $F_{n+1} = F_n + F_{n-1}.$ By the inductive hypothesis, we have that $$F_{n+1} = \sum_{k=0}^n\binom{n-k}{k} + \sum_{k=0}^{n-1}\binom{n-1-k}{k}.$$ Now recall that $\binom{-1}{n+1} = \binom{-1}{n} = 0,$ so we can add these into the summations. $$F_{n+1} = \sum_{k=0}^{n + 1}\binom{n - k}{k} + \sum_{k=0}^{n}\binom{n -1 -k}{k}.$$ To combine the summations, we remove the first item from the first summation then adjust the indices. $$F_{n+1} = \binom{n}{0} + \sum_{k=1}^{n + 1}\binom{n -k}{k} + \sum_{k=0}^{n}\binom{n - 1 -k}{k} = \binom{n}{0} + \sum_{k=1}^{n+1}\binom{n -k}{k} + \sum_{k=1}^{n + 1}\binom{n -k}{k - 1}.$$ Combining the summations and applying $\binom{k-1}{p} + \binom{k-1}{p-1} = \binom{k}{p},$ $$F_{n+1} = \binom{n}{0}+\sum_{k=1}^{n + 1} \binom{n - k + 1}{k} = \sum_{k=0}^{n + 1} \binom{n - k + 1}{k}$$ as desired.

Example Output

Some useful LaTeX tidbits LaTeX ignores single line breaks – You need a blank line to start a new paragraph LaTeX collapses whitespace – Multiple consecutive blank lines are treated exactly as a single blank line – Multiple spaces between words are handled as if they were a single space LaTeX ignores all characters on a line after it sees a % – This is called commenting – Useful for removing bits of work you don’t want to be shown but don’t want to delete Underscores (_) and carets (^) only affect the next character – Place everything that needs to be affected within braces E.g. $x^{-1} = a_1b_1$ results in

That’s all for now! This session covered the basics – Though some of the example code might be complicated I included extra slides for the CIS 160 people