C151 Multiuser Operating Systems Introduction to LaTeX.

Slides:



Advertisements
Similar presentations
LaTeX tutorial Eileen Kraemer CSCI 6950 September 30 th, 2011.
Advertisements

Lesson 16 Enhancing Documents
Microsoft Word Objectives: Word processing using Microsoft Word
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.
School of Aeronautics and Astronautics Introduction to by Arun K. Subramaniyan
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.
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.
LaTeX tutorial Syed Shazli. Most of the material taken from Monash University Online material available from Googling…
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.
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.
Citation in Latex with Jabref Saeid Abolfazli Faculty of Computer Science and IT, University Malaya.
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
LaTeX Tutorial Fiona Shearer May 11th, 2004 Disclaimer added
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.
Intro to LaTeX WING meeting 12 Jan What’s LaTeX? >An alternative to using MS Word for writing reports and papers >Our target today: HYP Thesis.
IS1811 Multimedia Development for Internet Applications Lecture 4: Introduction to HTML Rob Gleasure
Chapter 3 – Part 1 Word Processing Writer for Linux CMPF 112 : COMPUTING SKILLS.
1 Lecture 4 A Brief Introduction to LaTeX Introduction to Information Technology Dr. Ken Tsang 曾镜涛
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.
BRIEF A BRIEF Introduction to L A T E X For Physics Graduate Students Prof. L. S. Pinsky Physics Department University of Houston.
Visualizing and Presenting1Söhn (SS 2008) Visualizing and Presenting in Research and Teaching Introduction to LaTeX Jan-Philipp Söhn Adapted from David.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
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
LaTex By Wen Ying Gao.
Text, not Word Processing Gordon J. Pace March 2006 Logical Organisation.
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.
The References Tab contains tools that help users to easily create references, table of contents, indexes, captions, citations, footnotes, endnotes and.
By: Ms. Abeer Helwa 1. WORD WEB APP 2 Word Web App is a limited version of Word, enabling you to edit, format, and share documents online. Word Web App.
CSE470 Software Engineering Fall Tools - Overview LaTeX – Tool to create documents RCS – Revision Control System, to maintain multiple versions.
Page Layout You can quickly and easily format the entire document to give it a professional and modern look by applying a document theme. A document theme.
Lecture 3- Microsoft Word COE 201- Computer Proficiency.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
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.
Department of Mathematics, Jazan University, Jazan.
 After completing this lesson, you will be able to:  Describe the page setup options.  Describe how to insert page numbers and page breaks in a document.
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 An Introduction. November 2011CS A characterisation of LaTeX ● Very high quality typesetting – For traditional printed output ● Unrivalled.
LATEX By GerardoVela 3/27/2015.
Microsoft Word Objectives: Word processing using Microsoft Word
Lesson 16 Enhancing Documents
Lesson 16 Enhancing Documents
By Rajyalakshmi Divi IIT Bombay
LaTeX Tutorial.
LaTeX is not... rubber a Bill Gates product WYSIWYG (see) VooDoo
Introduction to LaTeX David Squire
Basic usage and packages of TEX
A Very Short Introduction to LaTeX
Outline Basic English Information Inquiry Reading Technical Materials
Word Processing Software Photo credit: © 2007 JupiterImagesCorporation.
A high quality document preparation system
Making Math Look Pretty – or How to Use LaTeX
Microsoft Office Illustrated Fundamentals
Welcome To Microsoft Word 2016
Presentation transcript:

C151 Multiuser Operating Systems Introduction to LaTeX

What is LaTex 2 LaTeX is a document markup language and document preparation system.

Why LaTeX? 3 LaTeX Separate contents from style Word WYSIWYG

Why not MS Word?

Why LaTeX? 5 Portable and free Professionally crafted layouts are available The typesetting of mathematical formulae is supported in a convenient way Output: many different formats Users need only to learn a few simple commands, which specify the logical structure of a document Complex structures such as footnotes, references, table of contents, and bibliographies can be generated easily

Required Tools 6 Editor: TeXnic Winedt Input file: The input for LaTeX is a plain text file with extension “.tex” You can create it with any text editor. It contains: the text of the document and commands which tell LaTeX how to typeset the text. Compiler ( Standard installation for Linux Windows Mac

Output Formats.dvi Device Independent.psPost Script.pdfPDF.rtfRich Text Format.htmlHTML

Compile LaTeX Generate a dvi file: >latex file_name.tex Generate a pdf file >pdflatex file_name.tex

9 Documents Structure (1) Every LaTeX document must contain the following three components: \documentclass{article} \begin{document} \end{document}

Document Structure (2) Every input file starts with the command: \documentclass{...} When all the setup work is done, you start the body of the text with the command: \begin{document} Now you enter the text mixed with some useful LaTeX commands. At the end of the document you use the \end{document}

\documentclass[options]{class} First line of all LaTeX documents specifies the {type} of the document and the [stylesheet] used. book report article letter Ready templates: IEEETrans, ACM, etc. In general, required information is included in LaTeX commands in braces {}, while optional information is included in square brackets []. \documentclass[ieee]{article}

\documentclass{article} 12

\documentclass[twocolumn]{article} 13

\documentclass{report} 14

LaTeX Document Example (1) \documentclass{article} \begin{document} This is some sample text. \end{document}

LaTeX Document Example (2) \documentclass{article} \begin{document} During the 1960s, many large software development efforts encountered severe difficulties. Software schedules were typically late, costs greatly exceeded budgets and the finished products were unreliable. \vspace{10 mm} \noindent People began to realize that software development was a far more complex activity than they had imagined. \end{document}

LaTeX Document Example (2): result

LaTeX Document Example (3) To add a title to a document use \title and \maketitle \title defines the title and \maketitle inserts it into the document \maketitle must come after \begin{document} \maketitle usually comes before any other text \title must come before \maketitle To add an author and date and use \author and \date \documentclass{article} \begin{document} \title{Hello, World! In Latex} \author{Marc Corliss} \date{2/15/2006} \maketitle Hello, World!\\ \end{document}

LaTeX Document Example (3): result

20 Abstracts To create an abstract, place your text in an abstract environment, i.e., between \begin{abstract} and \end{abstract} commands. The abstract should come immediately after your \maketitle command, but before any \tableofcontents command.

Sections \section{Section Title} \subsection{Title} \subsubsection{Title}

LaTeX Document Example (4) \documentclass{article} \begin{document} \title{Hello, World! In Latex} \author{Marc Corliss} \date{2/15/2006} \maketitle \begin{abstract} This is example 4. \end{abstract} \section{Hello, World!} Hello Everyone!\\ \end{document}

LaTeX Document Example (4): result

Spaces Whitespace characters (e.g. blank, tab, single linebreak) are treated uniformly as “space” by LaTeX. Several consecutive whitespace characters are treated as one “space”. An empty line between two lines of text defines the end of a paragraph. Several empty lines are treated in the same way as one empty line.

Spaces \documentclass{article} \begin{document} It does not matter whether you enter one or several spaces after a word. An empty line starts a new paragraph. \end{document}. Editor view Document view

Special Characters The following symbols are reserved characters, that have a special meaning in LaTeX $ & % # _ { } ~ ^ \ Some of these characters can be used in your documents by adding a prefix backslash (escape character): \$ \& \% \# \_ \{ \} The other symbols (and many more!) can be printed with special commands in mathematical formulae.

LaTeX Commands LaTeX commands are case sensitive and start with a backslash \ \documentclass{article} \begin{document} This is \emph{emphasized} text. \end{document} Editor view Document view

Comments When LaTeX encounters a % character while processing an input file, it ignores the rest of the present line. This is useful for adding notes to the input file, which will not show up in the printed version. \documentclass{article} \begin{document} This text is processed. % A comment isn’t \end{document} Editor view Document view

Page Styles LaTeX supports three predefined header/footer combinations. These are known as page styles. The style parameter of the \pagestyle{style} command defines which one to use: plain prints the page numbers on the bottom of the page in the middle of the footer (default page style) headings prints the current chapter heading and the page number on each page header. empty - both header and footer empty

30 Hyphenation There are four hyphens in LaTeX : 1. - (a single dash) is for hyphenating words (two dashes) is for ranges of numbers (three dashes) is for an honest-to-goodness dash between words. 4. $-$ is a minus sign in math mode.

31 Hyphenation \documentclass{article} \begin{document} My cousin-in-law lived in Germany in ; he speaks French--- really, he does. His favorite number is $-2$. \end{document} Editor view Document view

32 The LaTeX Logo You can typeset the LATEX logo with the \LaTeX command. As with most commands, it consumes any space behind it, so if it isn't at the end of a sentence, use \LaTeX\ instead.

33 Appearance of Words \underline{phrase} to underline a phrase, \textbf{phrase} to print a phrase in boldface, and \emph{phrase} to italicize a phrase.

34 Centering Text By default, LaTeX will start all text at the left margin. If you want to center a title, a table, etc., surround what you want centered with the commands: \begin{center} and \end{center}.

LaTeX Example (5) \documentclass{article} \begin{document} \title{\LaTeX\ 1, 2, 3} \author{Liguo Yu} \maketitle \section{Introduction} \begin{center} This is an intruduction! \end{center} \section{Conclusion} Thanks for reading this \textbf{article}. \end{document}

LaTex Example (5): Result

37 Bulleted Lists To create a bulleted list, surround the information with a \begin{itemize} and an \end{itemize}, and begin each item with an \item. \documentclass{article} \begin{document} \begin{itemize} \item A bulleted item. \item Another bulleted item. \begin{itemize} \item A nested bulleted item. \end{itemize} \item You get the idea. \end{itemize} \end{document} Editor view Document view

38 Numbered Lists To create a numbered list, surround the information with a \begin{enumerate} and an \end{enumerate}, and begin each item with an \item. \documentclass{article} \begin{document} \begin{enumerate} \item A numbered item. \item Another numbered item. \item You get the idea. \end{enumerate} \end{document} Editor view Document view

Typesetting Mathematics LaTeX has a Math mode for typesetting mathematics. Within a paragraph, math mode is entered between $ characters, or by using the \begin{math} and \end{math} commands \documentclass{article} \begin{document} Add a squared to b squared to find c squared, e.g. $a^2 + b^2 = c^2$. It’s as easy as that! \end{document} Editor view Document view

Typesetting Mathematics Greek Symbols \alpha, \beta, \gamma Superscript, Subscript x^yx_yx_y^z Calculus \int_0^\infty\int{\int} \frac{\partial u}{\partial x}

Typesetting Mathematics x = \frac{-b \pm \sqrt{b^2-4ac} } {2a}

Figures \begin{figure} \includegraphics{sample.jpg} \caption{A sample figure.} \end{figure}

Example \documentclass{article} \usepackage[pdftex]{graphicx} \begin{document} \begin{figure} \centering \includegraphics{Figure1.jpg} \caption{Depiction of the production of kernel-based software} \end{figure} \end{document} Compile: pdflatex file_name Compile: pdflatex file_name

Result

Columns \begin{tabular}{|…|…|} \end{tabular} Rows & - Split text into columns \\ - End a row \hline - Draw line under row Two Columns l = automatically adjust size, left justify r = automatically adjust size, right justify p = set size e.g p{4.7cm} c = centre text Tabular

Example of table \documentclass{article} \begin{document} \begin{tabular}{|l|r|c|} \hline Date & Price & Size \\ \hline Yesterday & 5 & Big \\ \hline Today & 3 & Small \\ \hline \end{tabular} \end{document} Editor view Document view

Bibliographies Articles can be referred to in the text using the \cite command The details of the cited articles are stored in BibTeX format, in a “.bib” file. BibTeX resolves the citations in the LaTeX file and generates the required bibliography

Bibliographies Example entries from test.bib author ={N. Ahmed and K. Rao}, title ={Digital signal processing}, publisher ={Springer-Verlag}, year ={1975}, address ={New York}, author ={James Austin and A. Phantom and B. Nom}, title ={High Speed Neural Networks}, booktitle ={IEE Image Processing and Applications}, year ={1989}, pages ={28--32}, }

test.tex file \documentclass[12]{article} \begin{document} \title{Work Study 1, 2, 3} \author{Liguo Yu} \date{\today} \maketitle \section{Introduction} This is an intruduction! \section{Result} By far the most commonly used feature is presented by \cite{Aus1989} and \cite{Ahr1975}. \section{Conclusion} Thanks for reading this article. \bibliographystyle{abbrv} \bibliography{test} \end{document}

Compile LaTeX We need to compile.tex and.bib separately and combine the output together to generate a PDF file >latex test (compile.tex file) >bibtex test (compile.bib file) >pdflatex test (geberate.pdf file) Might need to run several rounds to successfully combine them

Result: test.pdf