Department of Mathematics, Jazan University, Jazan.

Slides:



Advertisements
Similar presentations
Introduction to FX Equation 4. The Basic Idea FX Equation is DIFFERENT. Most equation editors use a point and click interface that has you searching for.
Advertisements

Anne McGrath 16 th February  Review of what we have learned so far.  Angled brackets surround HTML tags.  The words between the angled brackets.
INSERT A SYMBOL Determine the Symbol to insert Determine the Symbol to insert Computer don’t just work with letters and numbers. In the global economy.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
Introduction to LaTeX CPS470 Software Engineering Fall 1998.
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.
McGraw-Hill Technology Education © 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Office Word 2003 Lab 3 Creating Reports and Tables.
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.
Chapter 10 Formatting a Document.
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.
PowerPoint Add formulae. Course contents Overview: Typing math formulae Lesson1: Type a simple formula Lesson2: Type a complex formula.
HTML: PART ONE. Creating an HTML Document  It is a good idea to plan out a web page before you start coding  Draw a planning sketch or create a sample.
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 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.
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.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy.
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.
ADOBE INDESIGN CS3 Chapter 2 WORKING WITH TEXT.
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.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
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.
LaTeX Tutorial Fiona Shearer May 11th, 2004 Disclaimer added
LATEXLATEX IPA – batch. LATEXLATEX  A document preparation system - pronounced as lay-tek  It is a markup and programming language created by.
LaTeX (+ BibTeX) Tutorial
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.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
BRIEF A BRIEF Introduction to L A T E X For Physics Graduate Students Prof. L. S. Pinsky Physics Department University of Houston.
Academic Writing Using LaTeX
Copyright 2006 South-Western/Thomson Learning Chapter 12 Tables.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
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
C151 Multiuser Operating Systems Introduction to LaTeX.
Introduction to LaTeX and Bibtex
Lecture 3- Microsoft Word COE 201- Computer Proficiency.
TABLE OF CONTENTS 2014 BasmahAlQadheeb. What is a report? A report is a clearly structured document that presents information as clearly as possible.
 The formatting applied to a document can affect: › How the reader interprets the document › How easily the document is read › The overall impression.
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.
R 賴威昇 Introduction 2. Why using LaTeX ? 3. LaTeX usage: ◦ Backbone ◦ Equation ◦ Figure ◦ Table ◦ BibTex 4. Compile 5. Conclusion.
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.
Marking Up with XHTML Tags describe how a web page should look
Microsoft Word Illustrated
By Rajyalakshmi Divi IIT Bombay
Introduction to LaTeX David and Lucas CS 173 Fall 2009
LaTeX Tutorial.
LaTeX is not... rubber a Bill Gates product WYSIWYG (see) VooDoo
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Basic usage and packages of TEX
A Very Short Introduction to LaTeX
Engineering Librarian
Outline Basic English Information Inquiry Reading Technical Materials
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
LaTeX A typesetting package for formatting and creating documents. Created by L. Lamport based on TeX designed by D. Knuth. Alphanumeric source files are.
The LaTeX Tutorial.
LaTeX Documents Document Body Preamble 8/3/2019 ARENA Tutorial - LaTeX
The LaTeX Tutorial.
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

Department of Mathematics, Jazan University, Jazan

 A computer program for typesetting text and mathematical formulas  Uses commands to create mathematical symbols  Need to compile the file in order to see the finished product

 Always begin with a backslash \  Case sensitive  Consist of letters only  Some have parameters  Square brackets [ ] after the command name are for optional parameters  Curly braces { } after the command name are for required parameters

 Can use lots of different programs to create a LaTeX file  All computers here use WinEdt  Need to begin by creating a new file

 LaTeX is available online for free at  WinEdt is also available online with a free 30 day trial period at

 Begins with a preamble (Preamble is where the overall construction of your document is listed)  \documentclass[options]{class}  class specifies the type of document to be created  Usually use article or amsart  Can also use slides or siamltex  options customizes the document class you are using  Can be used to set font size (10, 11, or 12 pt), set paper size, use one or two columns, etc.

 Begins with a preamble  \usepackage{package}  Packages add new features and commands to LaTeX  Common packages: amsmath, amssymb, graphicx  Can also define new commands in the preamble, specify page numbering, etc.

 Now we’re ready to begin the body of the text  \begin{document}  \begin{…} commands always need to be followed (eventually) by \end{…} commands  Enter the actual content here  \end{document}

 Click the “LaTeX ” or “PDF LaTeX” button on the top right  To view your file, click “DVI” or the Adobe Acrobat symbol  DVI stands for “ D e V ice I ndependent” – it’s basically a generic viewer  Can change between DVI, PDF, or PS files and document is automatically saved when you typeset it

.tex – input file, needs to be compiled .tex.bak – backup LaTeX file and is changed when document is typeset .dvi – DVI file which shows what your file looks like .log – log file, tells what happened the last time you compiled your document - Helpful to look at if there are errors and you don’t know why

 Mathematical text is placed between $  Math mode is normally displayed inline  Can make some expressions look funny  To display math mode in a larger font, use \displaystyle  Makes all symbols within $ larger  For text within math mode, use \text{…}  Math mode uses italics and no spaces between words

 Greek letters  $\pi$ for lowercase, $\Pi$ for uppercase  No command for $\Alpha$  Fractions  $\frac{numerator}{denominator}$  For a larger fraction, use \displaystyle

 Superscripts and Subscripts  $x^2$  $x_2$  Use curly braces to group items together  $x_{i_2}$ or $x_{min}$  Can have a superscript and a subscript on the same character  $x_i^3$

 Limits and Integrals  Probably want to use \displaystyle, otherwise they’ll look funny  $\displaystyle \lim_{x \to \infty} 3x$  $\displaystyle \int_0^2 x\, dx$  The \, gives a space between x and dx  Square roots  $\sqrt{x}$

 Displaying special characters  $\mathbb{R}$ or $\mathcal{R}$  Trignometric functions  $\sin$ or $\cos$  Math inequalities  $\le$ or $\ge$

 Quote marks  For left-hand quote marks, use ``  For right-hand quote marks, use ” or ’’  Comments  Use % at the beginning of any lines you want to comment out  Creating a space between two characters  \,  Creating a new line  \newline

 Many environments available in TeX  Used to help format parts of your document  Always need \begin{environment name} and \end{environment name}

 Itemize environment  \begin{itemize} and \end{itemize}  Creates an outline using bullet points  Items within the section are created by \item  Can nest itemize environments within one another

 Enumerate environment  \begin{enumerate} and \end{enumerate}  Creates an outline using numbers and letters  Items within a section are created by \item  Can nest enumerate environments within one another

 Centered environment  \begin{center} and \end{center}  To end a line within the environment, use \\

 Equation environment  \begin{equation} and \end{equation}  Automatically numbers equations, so mainly used when you need equations to be numbered  For no numbers, use equation*  Puts the equation in the center of the line  Can label equations by \label{name}  Centers equation on page  Do not need $ within equation environment

 Align environment  \begin{align} and \end{align}  For no numbers on all equations, use align*  For no numbers on some use \nonumber  Put & in front of the symbol in each line that you want aligned  End each line (except the last one) with \\  Do not need $ within align environment

 Especially used for matrices  Begin with left symbol for matrix  $\left[  Next, begin array environment  \begin{array}{lrc}  Tells how many columns you have and their alignment - left, right or center

 Specify the entries of the matrix  Separate the entries by &  End each row (except the last one) by \\  End the array  \end{array}  Create the right side symbol for the matrix  \right]$

 Can also have lines within arrays  Horizontal lines  Use \hline after each row that you want a line under  x^2 & 4x & 3 \\ \hline  Vertical lines  Put | between the columns that you want lines between  \begin{array}{lr|c}

 Basically the same as arrays  \begin{tabular}{lrc} and \end{tabular}  Can add lines in the same way that you do for arrays  For more info see pages of Getting Started with LaTeX

 Often used to import some other type of file (usually a.eps file ) into your document  Can generate graphics in LaTeX, but this is harder to do  Any imported file needs to be in the same directory as your main file  Also need to include the package graphicx in your preamble

 Begin the figure environment by \begin{figure}[placement]  placement is an optional argument that tells LaTeX where on the page you want the figure  Can be h (here), t (top), b (bottom), or p (on a separate page)  Put an ! before the placement if you really want the figure at that page location

 Include the file that you want  \includegraphics[display]{filename}  display is an optional parameter which allows you to change the appearance of your graphic  Can use the following parameters:  width, height, angle (rotates the graphic counterclockwise), scale (number between 0 and 1)  Changing width or height will preserve the aspect ratio

 Can create a caption for your figure  \caption[shortname]{longname}  shortname is displayed in the Table of Contents (if you create one)  longname is displayed below the figure  Captioning also automatically labels your figures  Can label your figure  \label{reference}  Allows you to refer to your figure later by using \ref{reference}

 End the figure environment  \end{figure}  May sometimes need to create a PostScript file instead of a PDF file in order to get graphics to display properly  More info on pages 38 – 40 of Getting Started with LaTeX

 \title[label]{actual title}  If you label your title, you’ll be able to reference it later  Can also label theorems, equations, figures, tables, etc.  \author{authors}  Need to put \maketitle after title and authors  \today  Gives the current date  Usually want this centered

 \thanks{…}  Creates a footnote with whatever is in the braces  Usually used after authors’ names for academic information  Abstract  Use \begin{abstract} and \end{abstract}  Keywords  Use \begin{keywords} and \end{keywords}  OR use \keywords{…}

 Papers should be divided into sections, subsections, etc.  Important commands:  \section{Title of section}  \subsection{…}  \subsubsection{…}  \paragraph{…}  \subparagraph{…}

 Bibliography  \begin{thebibliography}{number} and \end{thebibliography}  number is 9, 99, 999, etc.  Tells LaTeX how if you will be using only single-digit numbers, double-digit numbers, etc.  Use \bibitem{Label} to create a new reference  Label lets you reference that item elsewhere in the paper

 May want to reference a section, theorem, figure, example, etc. somewhere else in the document  To label a section  \section{Title}\label{Label for section}  To reference a section  \ref{Label for section}  Only gives the section number – you’ll need to type Section separately  To reference a bibliography item, use \cite{Label}

 \newtheorem{short name}{long name} is used to typeset “Theorems”, “Lemmas”, “Definitions” and similar structures  Short name is what you type  Long name is what is displayed on the page  The \newtheorem command is placed in the preamble of the document  Numbering is automatic

 For unnumbered theorems, use either command with \newtheorem*  * can be used in many environments for unnumbered items  May need to include the package amsthm in order to properly display theorems

 Typing some long commands over and over is not fun  Can define a new command that’s easier to type  Goes in preamble  \newcommand{newname}{oldname}  newname cannot be the name of an existing command