Introduction to LaTeX. CSE 215, Foundations of Computer Science Stony Brook University

Similar documents
How to embed fonts in a PDF from LaTeX

How To Use L A T Ex On Pc Or Macbook Or Macintosh (Windows) With A L At Ex (Windows 3) On A Pc Or Ipo (Windows 2) With An Ipo Computer (Windows 4)

Dragan Jukić. Department of Mathematics, University of Osijek, Trg Ljudevita Gaja 6, HR Osijek, Croatia. Received ; accepted??

Multifactor Authentication and Session Support in OpenVPN

Software Tools 7 ( ; / $ 7 ( ; :<6,:<*RPJHYLQJHQ 9HUZHUNLQJYDQ/D7H; :<6,:<*YRRUEHHOG. College 9 & 10 - LaTeX 1

L A TEX Tips and Tricks

L A T E X Thesis Class for University of Colorado

APS Author Guide for REVTEX 4.1 (Version 1.0)

L A TEX for Beginners. Workbook

Notes on L A TEX. Jim Howie. October 14, 2013

L A TEX in a Nutshell

Use L A TEX and Cygwin on Windows Platform to Write Thesis

CUP Standard Designs. L A TEX2ε Style Guide for Authors. Cambridge TEX-to-type

Presentations Using L A TEX

Beginning L A TEX. Dan Parker and David Schwein. Spring 2015

Master Module SNET2 Seminar & Project Summer Term 2010

A Brief introduction into the world of TEX/L A TEX

(La)TeX Support for manuscript preparation. Conference Paper Management System

bibliographies using \LaTeX and \BibTeX CTAN lion drawing by Duane Bibby HJ Hoogeboom 2 april 2014 Bachelorklas

bibliographies using \LaTeX and \BibTeX CTAN lion drawing by Duane Bibby HJ Hoogeboom 15 april 2015 Bachelorklas

Reference Management: BibTeX and Beyond

(1) latex + dvipdfm (which is a DVI to PDF translator) or (2) pdflatex (a version of LaTeX that generates PDF output instead of DVI).

moresize: More font sizes with L A TEX

A Tutorial on Creating Presentations Using Beamer

Fun with Beamer. ...and HAPPY BIRTHDAY SHAWN! Tina Li, Thomas Graul, and Niranjan Balachandar. June 29, 2016

What is Beamer?! Introduction to Beamer Beamer is a LATEX class for creating slides for presentations. Commands for Header and the Title Page

L A TEX Presentations

John Burt Brandeis University March 11, 2015

The Title of a Yale University Doctoral. Dissertation

Dissertation Template for Princeton. University

1 Using CWEB with Microsoft Visual C++ CWEB INTRODUCTION 1

How to write a good (maths) Ph.D. thesis

A Sample ACM SIG Proceedings Paper in LaTeX Format

Producing Accessible Slide Presentations for Scientific Lectures: a Case Study for the Italian University in the Mac OS X Environment

Preparing graphics for IOP journals

Tips on Beamer, TikZ and BibTeX

R for Clinical Trial Reporting: Reproducible Research, Quality and Validation

OWrite One of the more interesting features Manipulating documents Documents can be printed OWrite has the look and feel Find and replace

A package for making sticky labels in L A TEX

TU/ePDFScreen. Presentations, Slides and Posters Marko Boon. 25th May /27. / department of mathematics and computer science

An Introduction to the WEB Style of Literate Programming

The Title of a TU Wien Report

chemscheme Support for chemical schemes

BLACKBOARD 9.1: Text Editor

Reverse Literate Programming

Information Technologies University of Delaware

A short manual for TEXworks

RefTEX User Manual. Support for LaTEX labels, references, citations and index entries with GNU Emacs Version 4.34 from by Carsten Dominik

ECDL / ICDL Word Processing Syllabus Version 5.0

LATEX Tutorials A PRIMER Indian TEX Users Group Trivandrum, India 2003 September

GNU TeXmacs: A free, structured, wysiwyg and technical text editor

Integrating LaTeX and Moodle Questionnaires

Help on Icons and Drop-down Options in Document Editor

2. Basic operations

Mass . General Use

Math into L A TEX. An Introduction to L A TEX and AMS-L A TEX

Local guide to BibLATEX

Fast track to HTML & CSS 101 (Web Design)

Lecture Notes in Computer Science: Authors Instructions for the Preparation of Camera-Ready Contributions to LNCS/LNAI/LNBI Proceedings

Department of Mathematics and Computer Science Eastern Illinois University 600 Lincoln Avenue Charleston, IL

SAPScript. A Standard Text is a like our normal documents. In Standard Text, you can create standard documents like letters, articles etc

Quick Guide to the Cascade Server Content Management System (CMS)

GRADUATE DEGREE REQUIREMENTS INSTRUCTIONS FOR DOCTORAL DISSERTATION AND MASTER S THESIS PREPARATION

Short notes on webpage programming languages

OpenOffice.org Writer

deskspace responsive web builder: Instructions

FORMATTING OVERVIEW GUIDELINES FOR YOUR THESIS OR DISSSERTATION FOR SUBMISSION TO THE GRADUATE SCHOOL

Creating Bibliography with LaTeX

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

The Journal of Transport and Land Use: Guidelines for Authors

L A TEX do s and don t s

A Guide to Presentations in L A TEX-beamer. Trinity University

Course: CSC 224 Internet Technology I (2 credits Compulsory)

PaperlessPrinter. Version 3.0. User s Manual

Contents 1. Introduction... 2

ACS ChemWorx Quick User Guide Created by: ACS ChemWorx

Current Page Location. Tips for Authors and Creators of Digital Content: Using your Institution's Repository: Using Version Control Software:

USENIX Example Paper

Preparing Your Thesis with Microsoft Word: How to use the Rensselaer Polytechnic Institute Template Files. Contents

XML. CIS-3152, Spring 2013 Peter C. Chapin

ACS ChemWorx User Guide

CONTENTM WEBSITE MANAGEMENT SYSTEM. Getting Started Guide

How To Write A Paper With The Entcs Macro Package

CREATING FORMAL REPORT. using MICROSOFT WORD. and EXCEL

MadCap Software. Import Guide. Flare 11

Clinical trials management on the internet II. Using LATEX, PostScript, and SAS to produce barcode label sheets

Technical, Legal, Business and Management Issues

Advanced Drupal Features and Techniques

OJS Design Brief. Part 1: Formatting the Web site s look and feel (CSS layout) 1) Preference of colors

Website Development Komodo Editor and HTML Intro

About webpage creation

Arbortext 6.1. Curriculum Guide

Banana is a native application for Windows, Linux and Mac and includes functions that allow the user to manage different types of accounting files:

LATEX curricula vitae with the CurVe class

Software User's Guide

Word 2007: Basics Learning Guide

Getting Started in Arbortext and Documentum. Created by Michelle Partridge Doerr April 21, 2009

Creating tables of contents and figures in Word 2013

ELFRING FONTS UPC BAR CODES

Writer Guide. Chapter 5 Printing, Exporting, Faxing, and ing

Transcription:

Introduction to LaTeX CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.edu/~cse215

LaTeX TeX is essentially a Markup Language (like HTML, CSS, JSON, XML and RTF) TeX written by Donald Knuth in 70 s A revolution in typesetting Latex is an extension of TeX Macro packages to make TeX easier to use 2

3 LaTeX High typeset quality Easy to include math formulas Latex is free Source file format is not bounded to a particular OS or platform Latex implementations exists for all platforms (Windows MikTex, Mac OsX, Linux) Web, e.g., https://www.sharelatex.com

Process to Create a Document Using LaTeX TeX input file file.tex Your source LaTeX document Run LaTeX program DVI file file.dvi Device independent output 4 Run Device Driver Output file file.ps or file.pdf Commands > pdflatex file.tex OR > latex file.tex > dvips file.dvi > ps2pdf file.ps

How to Setup LaTeX for Windows Download and install MikTeX http://www.miktex.org (also comes with a good editor) Install Ghostscript and Gsview http://pages.cs.wisc.edu/~ghost Install Acrobat Reader For Mac Users: TeXShop, itexmac, 5 Texmaker

LaTeX in the Cloud Make a free account at Sharelatex.com it also lets you save your latex sources in your Google Drive or Dropbox 6

LaTeX Start with a skeleton document: \documentclass{article} \begin{document} First document. This is a simple example, with no extra parameters or packages included. \end{document} The first line of code declares the type of document, in this case is a article. Then enclosed in the\begin{document} \end{document} tags you must write the text of your document. 7

LaTeX The preamble of a document lets you define the type of document you are writing, the language, the size of font \documentclass{article} \title{simple Example} \author{paul Fodor} \date{january 2016} \begin{document} \maketitle Hello world! \end{document} 8

LaTeX Basic formatting: abstract, paragraphs and newlines: \begin{abstract} This is a simple paragraph at the beginning of the document. \end{abstract} Two newlines start another paragraph. And I can brake\\ the lines \\and continue in a new line. 9

LaTeX Comments: sometimes it's necessary to add comments to your LATEX code for readability put a % before the comment and LATEX will ignore that text \documentclass{article} % HW document \begin{document} % Here begins the body of the document 10

LaTeX Reserved characters The following symbol characters are reserved by LATEX because they introduce a command and have a special meaning Character Function How to print it # Macro parameter \# $ Math mode \$ % Comment \% ^ Superscript (in math mode) \^{} or $\textasciicircum$ & Separate column entries in tables \& _ Subscript (in math mode) \_ { } Processing block \{ \} ~ Unbreakable space, use it whenever you want to leave a space which is unbreakable $\textasciitilde$ or \~{} 11 \ Starting commands, which extend until the first nonalphanumerical character $\textbackslash$ or $\backslash$

LaTeX LATEX allows two writing modes for mathematical expressions: the inline mode: $ $, \( \), or \begin{math} \end{math} In physics, the mass-energy equivalence is stated by the equation $E=mc^2$, discovered in 1905 by Albert Einstein. the displayed mode: \[ \], $$ $$, \begin{displaymath} \end{displaymath} or \begin{equation} \end{equation} The mass-energy equivalence is described by the famous equation $$E=mc^2$$ discovered in 1905 by Albert Einstein. 12

LaTeX Common maths symbols: \[ \int\limits_0^1 x^2 + y^2 \ dx \] \[ a_1^2 + a_2^2 = a_3^2 \] \[ \sum_{i=1}^{\infty} \frac{1}{n^s} = \prod_p \frac{1}{1 - p^{-s}} \] 13

LaTeX More examples: 14

Font size \tiny \scriptsize \footnotesize \small \normalsize \large \Large \LARGE \huge \Huge

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

Example of table \begin{tabular}{ l r c } \hline Date & Price & Size \\ \hline Yesterday & 5 & big \\ \hline Today & 3 & small \\ \hline \end{tabular} Date Price Size Yesterday 5 Big Today 3 Small

Standard Environments \begin{env_name} stuff \end{enc_name} Environment name (env_name) can be document, itemize, enumerate, tabular, etc. \begin{itemize} \item The first item \item The second item \end{itemize} \begin{enumerate} \item The first item \item The second item \end{enumerate}

Figures You can insert figures in pdf, jpg, eps, and other formats into your document. \begin{figure} \centering \includegraphics {name of the figure file} \caption{put the caption here} \end{figure} Multiple figures can be inserted using \subfigure 19

Cross Referencing LaTeX generates numbers for Theorem, Equation, Section, Figure and other environments automatically. You can access them with \label and \ref \section{introduction} \label{sec:intro}. In Section \ref{sec:intro}, we. 20

Reference and Citation The \thebibliography environment produces a bibliography or reference list. In the article style, this reference list is labeled "References"; in the report style, it is labeled "Bibliography". \begin{thebibliography} {widest-label} \bibitem[label]{cite_key}... \end{thebibliography} widest-label: Text that, when printed, is approximately as wide as the widest item label produces by the \bibitem commands. 21

Bibliography by hand \begin{thebibliography}{} \bibitem[come95]{come95} Comer, D. E., {\it Internetworking with TCP/IP: Principles, Protocols and Architecture}, volume 1, 3rd edition. Prentice-Hall, 1995. \end{thebibliography}

Bibliography using Bibtex Bibliography information is stored in a *.bib file, in Bibtex format. Include chicago package \usepackage{chicago} Set referencing style \bibliographystyle{chicago} Create reference section by \bibliography{bibfile with no extension}

Bibliography using Bibtex @book{come95, author= D. E. Comer, title={internetworking with TCP/IP: Principles, Protocols and Architecture}, publisher= Prentice-Hall, year=1995, volume=1, edition= Third }

Bibliography using Bibtex Citing references in text \cite{cuc98} = (Cuce 1998) \citen{cru98} = Crud (1998) \shortcite{tom98} = (Tom, et. al. 1998) Creating Bibtex Files Use Emacs with extensions. or copy Bibtex entries from bibliography database.