SIGNewGrad: Intro to LaTeX

Slides:



Advertisements
Similar presentations
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
Advertisements

Lecture 8 Introduction to Latex. Introduction TeX is essentially a Markup Language (like HTML, XML and RTF) TeX written by Donald Knuth in 70´s –A revolution.
Microsoft Word 2013 An Overview. Your Environment Quick Access Toolbar Customizable toolbar for one-click shortcuts Tabs Backstage View Tools located.
COE201 – Computer Proficiency Mr. Hamze Msheik
Review #
DAY 26: CHAPTER 2 – DOCUMENT PRESENTATION CHAPTER 3 - COLLABORATION AND RESEARCH Akhila Kondai November 18, 2013.
Microsoft Word Objectives: Word processing using Microsoft Word
Introduction to LaTeX CPS470 Software Engineering Fall 1998.
McGraw-Hill Technology Education © 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Office Word 2003 Lab 3 Creating Reports and Tables.
School of Aeronautics and Astronautics Introduction to by Arun K. Subramaniyan
PYP002 Intro.to Computer Science Microsoft Word1 Lab 06 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.
How to Open Microsoft Word Click Start Click All Programs Click Microsoft Office Click Microsoft Word 2013.
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.
HTML Notes Chapters 1--6 Codes used in creating HTML documents are called tags. Tags are always enclosed in left ( ) angle brackets. Tags can be upper.
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.
Paragraph and Page Formatting in Word Graham Seibert Copyright 2006 This is a segment of the draft version of a large syllabus. I need your feedback to.
Introduction to… About Tex & LaTeX What is TeX? What is LaTeX? Advantages - Disadvantages.
Introduction to Latex A very quick look at typesetting documents Andrei Gurtov (based on Troy D. Milner and Simon Cuce slides)
Introduction to Unix – CS 21 Lecture 16. Lecture Overview LaTeX History Running and creating LaTeX documents Documents and Articles Tables Lists Fonts.
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.
Microsoft® Office 2007 Word Chapter 2: MC-Quiz: Creating a Research Paper.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
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 A Short Intro to Marco D. Santambrogio Politecnico di Milano Sala DEIB 2 Sept 2015 Ver. 2/9/15.
Chapter 3 – Part 1 Word Processing Writer for Linux CMPF 112 : COMPUTING SKILLS.
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.
Creating documents 09/18/13 Introduction to Latex.
McGraw-Hill Career Education© 2008 by the McGraw-Hill Companies, Inc. All Rights Reserved. Office Word 2007 Lab 3 Creating Reports and Tables.
IWorks Pages. Word Processing  Software that is designed for the entry, editing, and printing of documents.  Mac Version = iWorks Pages  As with Microsoft.
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.
Typing and Formatting a Research Paper WORD 2013.
C151 Multiuser Operating Systems Introduction to LaTeX.
Chapter 3 Automating Your Work. It is frustrating when you have to type the same passage of text repeatedly. For example your name and address. Word includes.
Microsoft Word Notes. Justified To justify your typing: –Highlight the information –Choose format –Paragraph –Use the dropdown menu next to alignment.
Lecture 3- Microsoft Word COE 201- Computer Proficiency.
Microsoft Word 2010 Chapter 2 Creating a Research Paper with Citations and References.
R 賴威昇 Introduction 2. Why using LaTeX ? 3. LaTeX usage: ◦ Backbone ◦ Equation ◦ Figure ◦ Table ◦ BibTex 4. Compile 5. Conclusion.
Lesson No : 8 Intro. to Word 2000,File mgmt, Editing, Formatting & print. Doc. CHBT-01 Basic Micro process & Computer Operation.
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.
DAY 25: WORD CHAPTER Rohit March 28,
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.
Vereniging voor Technische Physica workshop 2016.
Exploring Microsoft Word 2003
Procedures for the “bibFile”
By Rajyalakshmi Divi IIT Bombay
Introduction to LaTeX David and Lucas CS 173 Fall 2009
LaTeX Tutorial.
Introduction to LaTeX By Dan Burke.
LaTeX is not... rubber a Bill Gates product WYSIWYG (see) VooDoo
A Very Short Introduction to LaTeX
Outline Basic English Information Inquiry Reading Technical Materials
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.
Welcome To Microsoft Word 2016
Presentation transcript:

SIGNewGrad: Intro to LaTeX Ben Breech breech@cis.udel.edu http://www.cis.udel.edu/~breech/signewgrad-fall07

What is LaTeX Based on TeX Markup language for documents hard to use (like prog. in assembly) Markup language for documents You write. LaTeX typesets LaTeX compiles your document Each letter/word/sentence/paragraph is a box. LaTeX arranges the boxes. Commands and environments instruct LaTeX to change layout LaTeX is case sensitive

Running LaTeX doc.tex latex doc.dvi pdflatex dvipdf dvips doc.pdf doc.ps

Commands Change layout of text Format: Command names are only letters \command[opt_arg1]{req_arg1} Command names are only letters Command ends with last {} or non-letter (exception: some commands have special -* form) May need empty {} for spacing if command has no args

Environments Affects all text within env Conveniently hides tons of commands Format: \begin{name}[opts]{args} % text… \end{name}

Example Document [ex1.tex] Sets doc. type \documentclass{article} % comments in LaTeX start with a %. anything after it is ignored. % this section is the preamble.. \begin{document} This is the first paragraph. For \LaTeX, a paragraph is a continuous sequence of lines, ending with a blank line. This means you can put one word per line if you wish and \LaTeX{} will treat the text as one paragraph. This is the second paragraph. Just put in here to show how paragraphs separate. \end{document} class type preamble body

Example Document [ex1.pdf] Notice margins. Designed for typesetters Add \usepackage{fullpage} in preamble to get 1.0” margins Spacing between words/paragraphs 1 space = 10 spaces = 100 spaces, etc Paragraph is contiguous text separated by blank lines

Sectioning Commands Let you break document into sections Each section has running counter (e.g., section 1, section 2, section 2.3.4) Commands: \section{title}, \subsection{title}, \subsubsection{title} Others available depending on style file

Sectioning Examples \section{Top Level Section} \subsection{2nd Level Section} % second \subsection not shown \subsubsection{3rd Level Section} \paragraph{Paragraph.}

Labels and references \label{string} after sectioning command to save a label \ref{string} where you want number for section with label string May want ~\ref{string} ~ = non-breakable space \pageref{string} -- gives page number where section with label string appears

Example Document \section{Labels and References} \label{sec:lab-ref} % other stuff cut out… For example, in section~\ref{sec:tls}, we discussed sectioning commands. Section~\ref{sec:3rd-ls} was a 3rd level section. In section~\ref{sec:lab-ref}, we discussed labels and references.

Lists Bulleted Lists: Enumerated Lists (automatically counted): \begin{itemize} \item First item. \end{itemize} Enumerated Lists (automatically counted): \begin{enumerate} \item \label{it1} This is the first item. \end{enumerate}

Font Styles Change appearance of text Forms: \texttt{TeleType text} \textbf{BoldFace text} \textsl{Slanted text} \textit{ITalicized text.} \textrm{RoMan} \textsc{Small Caps} \textsf{Sans Serif}

Font Sizes Affect everything after until end of current text block (e.g. } or \end{}) {\tiny really small } {\scriptsize next smallest} {\footnotesize size used in footnotes} {\small smaller than normal } {\normalsize regular sized text} {\large larger than normal } {\Large larger } {\LARGE larger still } {\huge very large } {\Huge extremely large}

Math Mode In normal text, $math formula$ In displayed math mode, \begin{displaymath} math formula \end{dispalymath} \begin{equation} math formula \end{equation} Equation adds an equation number in ()

Math Examples (text mode) superscripts (^) -- x^2 + y^2 subscript (_) -- x_i + y_i \sqrt{x^2_i + y_i^2} \frac{x}{y} Greek letters -- \alpha, \beta, \pi, \Pi, \sum_{i=0}^n i (different in display mode)

Math Examples (equation) Finally, here's a more complicated equation. The Ackermann function $A$ is defined as, \begin{equation} \label{eq:ack-def} A (m, n) = \left\{ \begin{array}{ll} n + 1 & \mathrm{if}\ m = 0 \\ A (m - 1, 1) & \mathrm{if }\ m > 0 \mathrm{\ and\ } n = 0 \\ A (m - 1, A (m, n - 1)) & \mathrm{if}\ m > 0 \mathrm{\ and\ } n > 0 \end{array} \right. \end{equation} Creates a { big enough to match what follows. \mathrm to make if appear as normal text Array env. (just like a table) Matching right . = don’t print anything \[space] to force a space here

Math Examples (equation) (equation number was removed. See example.pdf) (If you’re bored, compute A (4, 3))

Floating Environments Certain environments can “float” Do not appear exactly where you put them LaTeX moves them for better placement Can be frustrating if LaTeX picks bad spot Tables/Figures are most common

Tables \begin{table} \centering \begin{tabular}{|l|c|r|} \hline Table template one letter/column l = left justify r = right justify c = center | = draw vert. Bar between two cols \begin{table} \centering \begin{tabular}{|l|c|r|} \hline left justified & center justified & right justified \\ \hline\hline row 2, col 1 & row 2, col 2 & row 2 col 3 \\ row 3, col 1 & & \\ \end{tabular} \caption{Example Table} \label{tab:ex} \end{table} Start table & separate columns Table body \\ ends each row Caption & label \hline draws horizontal line between rows

Tables

Paper Citations Place \cite{key} where you want citation to appear key is unique citation key generates reference label at that spot Need to add special bibliography environment with papers DON’T BOTHER! USE BibTeX instead!

BibTeX BibTeX manages citations Add following to body of your doc \bibliographstyle{type} type = style (plain, abbrv, alpha) Other styles available (see natbib) \bibliography{bib-files} bib-files are your BibTeX files with citations This command appears where you the bibliography (usually end of document)

Example Bib File @String{cl = "Computer Languages"} Define string abbreviation @String{cl = "Computer Languages"} @Article{ChaitinEA-CL81, title={Register Allocation Via Coloring}, author={G.J. Chaitin and Auslander, M.A. and Chandra, A.K. and Cocke, J. and Hopkins, M.E. and Markstein, P.W.}, journal=cl, volume={6}, number={1}, pages={47--57}, year={1981} } Citation key for \cite BibTeX entry for article. Authors separated by and

BibTeX Examples Create document: latex doc.tex bibtex doc Since I’m out of time, see examples in Example.tex Example.pdf Ex.bib

Other Resources Books Web “A Guide to LaTeX2e”, Kopka and Daly “LaTeX: A Document Preparation System”, Lamport Web http://www.ctan.org Google (tons of pages provide help on LaTeX)

Other Resources AucTeX - major mode for Emacs http://www.gnu.org/software/auctex LyX - “GUI” for LaTeX http://www.lyx.org Various packages Subfig, natbib, algorithms,epsfig