Programming in R Very Short Introduction. Why Programming in R? Outline. Thomas Girke. October 1, 2010

Size: px
Start display at page:

Download "Programming in R Very Short Introduction. Why Programming in R? Outline. Thomas Girke. October 1, 2010"

Transcription

1 Very Short Introduction Thomas Girke October, Slide / Slide / Outline Why? Complete statistical package and programming language Efficient data structures make programming very easy Ease of implementing custom functions Powerful graphics Access to fast growing number of analysis packages Most widely used language in bioinformatics Is standard for data mining and biostatistical analysis Technical advantages: free, open-source, available for all OSs Slide 3/ Slide 4/

2 Outline How to Get Started? Control Structures Conditional Executions Loops Basic Matrix Calculations 3 Functions 4 Useful Utilities 5 System Commands 6 Writing and Executing R Scripts Choose your favorite text editor with syntax highlighting. Stick to it for the rest of your life! 3 Suggestions: Vim Emacs Many others 4 Find a problem and solve it by writing a script! 5 Implement an algorithm on your own. 6 Never perform any repetitive computer tasks manually again. Slide 5/ Slide 6/ Outline What Is L A TEX? Originally developed in the early 98s by Leslie Lamport. L A TEX is a document markup language and document preparation system for the TeX typesetting program. Developed for mathematicians, statisticians, engineers and computer scientists. High quality of typesetting for scientific articles. Programmable environment. Many efficient cross-referencing facilities for equations, tables, figures, bibliographies, etc. Slide 7/ Slide 8/

3 How Does It Work? Bibtex: The Ultimate Reference Management Tool Write in your favourite text editor, e.g.: Vim or Emacs. Install L A TEX distribution for your OS Windows: MiKTeX Linux: Latex Project Site Mac OS X: TexShop L A TEX manuals (very incomplete selection) List of Manuals on Latex Project Site The Not So Short Introduction to LaTeX Getting to grips with LaTeX Packages An almost complete list: Online TeX Catalogue Sample Latex file: example.tex Convert to PDF with command: pdflatex example.tex To include references from MyBibTex.bib database, the following command sequence needs to be executed: pdflatex example.tex; bibtex example; pdflatex example.tex Slide 9/ Slide / of BibTex Citations Outline Citation in parentheses (Grant et al., 6; Schwacke et al., 3; Miteva et al., 6) Citation of Grant et al. (6); Schwacke et al. (3); Miteva et al. (6) Extended citation (Grant et al., 6, J Chem Inf Model, 46, 9-98) Footnote citation with more detail (Grant et al., 6)... The reference list for these citations appears automatically at a defined position, here the end of the document. (Grant et al., 6, J Chem Inf Model) Slide / Slide /

4 R s Sweave Function Integrates R with Latex Structure of *.Rnw Hybrid File Sweave provides a flexible framework for mixing Latex and R code for automatic generation of scientific documents. It does this by identifying R code chunks - starting with <<>>= and ending - and replaces them with the corresponding R output in L A TEX format, e.g. commands, data objects, plots. The user organizes the hybrid code in a *.Rnw file, while the Sweave() function converts this file into a typical Latex *.tex file. A quick learning exercise: Download sample hybrid file Sweave-test-.Rnw Run in R command Sweave("Sweave-test-.Rnw") Convert generated Sweave-test-.tex to PDF with pdflatex Sweave-test-.tex Sweave User Manual Latex \Sexpr{pi} Latex Latex Latex Latex Latex Latex Slide 3/ Slide 4/ Convert *.Rnw to *.tex to *.pdf Code Chunk Options Create *.tex file > Sweave("mydoc.Rnw") Create R source file with code chunks (optional) > Stangle("mydoc.Rnw") 3 Gernerate PDF with bibliography > system("pdflatex mydoc.tex; bibtex mydoc; pdflatex mydoc.tex") Important options that can be included in code chunk start tag: <<>>= label: optional name for code chunk. echo: shows command if set to TRUE. Default is TRUE. fig: shows plots automatically if set to TRUE. Alternatively, one can use standard R code to save graphics to files and point to them in Latex source code. eval: if FALSE, the variables and functions in code chunk are not evaluated. prefix: if TRUE, generated file names have a common prefix. Slide 5/ Slide 6/

5 Printing R Commands and Output Including Tables with xtable() Beamer Slide Setting R Code Chunks Result in PDF > : \ begin {frame }[ containsverbatim ] > <<echo=true>>= > : [] Code Chunk Result in PDF > <<echo=false>>= > l i b r a r y ( xtable ) > xtable ( i r i s [ : 4, ] ) Sepal.Length Sepal.Width Petal.Length Petal.Width Species setosa setosa setosa setosa Slide 7/ Slide 8/ Including Graphics: Venn Diagram Code Including Graphics: Plot Venn Diagram Venn Diagram > source(" A > setlist5 <- list(a = sample(letters, 8), B = sample(letters, + 6), C = sample(letters, ), D = sample(letters, ), + E = sample(letters, 8)) > OLlist5 <- overlapper(setlist = setlist5, sep = "_", type = "vennsets") > counts <- sapply(ollist5$venn_list, length) > pdf("venn.pdf") > vennplot(counts = counts, ccol = c(rep(, 3), ), lcex =.5, + ccex = c(rep(.5, 5), rep(.6, 5),.5)) > dev.off() E B C null device D Unique objects: All = 6; S = 8; S = 6; S3 = ; S4 = ; S5 = 8 Figure: Venn Diagram Slide 9/ Slide /

6 Bibliography I Grant, J. A., Haigh, J. A., Pickup, B. T., Nicholls, A., Sayle, R. A., Sep-Oct 6. Lingos, finite state machines, and fast similarity searching. J Chem Inf Model 46 (5), URL Miteva, M. A., Violas, S., Montes, M., Gomez, D., Tuffery, P., Villoutreix, B. O., Jul 6. FAF-Drugs: free ADME/tox filtering of compound collections. Nucleic Acids Res 34 (Web Server issue), URL Schwacke, R., Schneider, A., van der Graaff, E., Fischer, K., Catoni, E., Desimone, M., Frommer, W. B., Flügge, U. I., Kunze, R., Jan 3. ARAMEMNON, a novel database for Arabidopsis integral membrane proteins. Plant Physiol 3 (), 6 6. URL Slide /

Programming in R. Very Short Introduction. Thomas Girke. October 1, Programming in R Slide 1/21

Programming in R. Very Short Introduction. Thomas Girke. October 1, Programming in R Slide 1/21 Programming in R Very Short Introduction Thomas Girke October 1, 21 Programming in R Slide 1/21 Programming in R LATEX Documents and References Sweave: R/Latex Hybrid Code for Reproducible Research Examples

More information

Introduction to typesetting with L A TEX

Introduction to typesetting with L A TEX Introduction to typesetting with L A TEX Tips and Tools for Writing a Bachelor/Master Thesis Hein Meling hein.meling@uis.no November 4th 2015 Hein Meling (Univ. of Stavanger) LATEX introduction Nov. 2015

More information

A Tour of Sweave. Max Kuhn. March 14, Pfizer Global R&D Non Clinical Statistics Groton

A Tour of Sweave. Max Kuhn. March 14, Pfizer Global R&D Non Clinical Statistics Groton A Tour of Sweave Max Kuhn Pfizer Global R&D Non Clinical Statistics Groton March 14, 2011 Creating Data Analysis Reports For most projects where we need a written record of our work, creating the report

More information

Latex Tutorial. CIS400 Senior Design 9/5/2013

Latex Tutorial. CIS400 Senior Design 9/5/2013 1 Latex Tutorial CIS400 Senior Design 9/5/2013 2 Outline Introducing TeX/LaTeX Benefits and potential difficulties Installation and use on Unix/Mac/Windows Compiling PDF documents from LaTeX Basic document

More information

LYX with Beamer and Sweave

LYX with Beamer and Sweave LYX with Beamer and Sweave Ziqian Zhou Department of Statistics University of Iowa February 21, 2012 Outline 1 Introduction to L A TEX and LYX 2 Basic LYX Walkthrough 3 Advanced Topics 4 LYX and Sweave

More information

How to Prepare Your Paper in L A T E X for IOE Graduate Conference 2017

How to Prepare Your Paper in L A T E X for IOE Graduate Conference 2017 Proceedings of IOE Graduate Conference, 2017 pp. 1 5 How to Prepare Your Paper in L A T E X for IOE Graduate Conference 2017 Jayandra Raj Shrestha a, Binod Kumar Bhattarai b, Arun Kumar Timalsina c a,

More information

What is LaTeX. Is a document markup language and document preparation system for the TeX typesetting program

What is LaTeX. Is a document markup language and document preparation system for the TeX typesetting program What is LaTeX LaTeX ( /ˈleɪtɛk/, /ˈleɪtɛx/, /ˈlɑːtɛx/, or /ˈlɑːtɛk/) Is a document markup language and document preparation system for the TeX typesetting program Refers only to the language, not to the

More information

Document Preparation Using L A TEX

Document Preparation Using L A TEX Document Preparation Using L A TEX 1 1 Department of Mathematics Michigan State University East Lansing, MI USA weil@math.msu.edu October 28, 2008 Before L A TEX Was TEX TEX is a professional typesetting

More information

L A TEX for psychological researchers

L A TEX for psychological researchers Kahoot! L A TEX for psychological researchers Lecture 1: Introducton Sacha Epskamp University of Amsterdam Department of Psychological Methods 27-01-2015 Contact Details Workshop website: http://sachaepskamp.com/latex-workshop

More information

(Yet Another) Introduction to L A TEX 2ε (V3)

(Yet Another) Introduction to L A TEX 2ε (V3) (Yet Another) Introduction to L A TEX 2ε (V3) Matteo Carrara August 30th, 2013 (Yet Another) Introduction to LATEX2ε (V3) 1 / 29 What is L A TEX 2ε? Typesetting system that is very suitable for producing

More information

Excellent support for mathematical formatting. Automatically downloads/installs missing components as needed Updates somewhat frequently

Excellent support for mathematical formatting. Automatically downloads/installs missing components as needed Updates somewhat frequently Overview Why Use L A TEX? L A TEX lets you focus on the content and not how a document looks Excellent support for mathematical formatting Good bibliography management Acquiring L A TEX Windows Linux MiKTeX

More information

An introduction to L A TEX for students

An introduction to L A TEX for students An introduction to L A TEX for students Christopher Hanusa February 17, 2011 Christopher.Hanusa@qc.cuny.edu http://people.qc.cuny.edu/chanusa/ > Talks Pros and Cons of L A TEX Why use L A TEX? Ideal for

More information

An Introduction to. Rado Ivanov CIS400 Senior Design Tutorial September 18, 2014

An Introduction to. Rado Ivanov CIS400 Senior Design Tutorial September 18, 2014 An Introduction to Rado Ivanov CIS400 Senior Design Tutorial September 18, 2014 Today's Outline Introducing TeX/LaTeX Benefits and potential difficulties Installation and use on Unix/Mac/Windows Compiling

More information

An Introduction to L A T E X

An Introduction to L A T E X An Introduction to L A T E X Robert Dyer Department of Computer Science Iowa State University rdyer@cs.iastate.edu August 27, 2008 Why Use L A T E X? L A T E X lets you focus on the content and not how

More information

Rongheng Lin 2/24/2006

Rongheng Lin 2/24/2006 NIEHS, Biostatistics Branch 2/24/2006 References http://www.ecst.csuchico.edu/ jacobsd/bib/formats/bibtex.html http://jabref.sourceforge.net The not so short introduction to L A TEX2e by Tobias Oetiker

More information

The nuts and bolts of Sweave/Knitr for reproducible research

The nuts and bolts of Sweave/Knitr for reproducible research The nuts and bolts of Sweave/Knitr for reproducible research Marcus W. Beck ORISE Post-doc Fellow USEPA NHEERL Gulf Ecology Division, Gulf Breeze, FL Email: beck.marcusepa.gov, Phone: 850 934 2480 January

More information

Reproducible research and knitr

Reproducible research and knitr Reproducible research and knitr Friedrich Schuster 1 February 24, 2013 1 Thanks to Yihui Xie, author of knitr. Friedrich Schuster () knitr February 24, 2013 1 / 30 Background, expectations Background:

More information

BIOST 561: R Markdown Intro

BIOST 561: R Markdown Intro BIOST 561: R Markdown Intro David Whitney November 3, 2016 R Markdown: The Basics The following information is readily available if you use Rstudio: Markdown is a simple formatting syntax for authoring

More information

blogr: R for blogs Shane M. Conway December 13, 2009

blogr: R for blogs Shane M. Conway December 13, 2009 blogr: R for blogs Shane M. Conway December 13, 2009 Abstract blogr is an R package to provide a standardized framework for online reproducible research through blogs. It aims to both simplify the blogging

More information

CSCE 222 Discrete Structures for Computing. LaTeX. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker

CSCE 222 Discrete Structures for Computing. LaTeX. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker CSCE 222 Discrete Structures for Computing LaTeX Dr. Hyunyoung Lee!!!!! Based on slides by Andreas Klappenecker 1 Tripitaka Koreana Palman Daejanggyeong ( Eighty-Thousand Tripitaka ) South Korean collection

More information

L A T E X crash course

L A T E X crash course L A T E X crash (for PhDs) 1 1 Research group on Computational Geo-Ecology Instituut voor Biodiversiteit en Ecosysteem Dynamica Universiteit van Amsterdam June 26, 2010 Outline 1 2 What is L A T E X? 3

More information

Introduction to Latex. A workshop by Dr. Ala Eshmawi

Introduction to Latex. A workshop by Dr. Ala Eshmawi Introduction to Latex A workshop by Dr. Ala Eshmawi Introduction TeX is essentially a Markup Language (like HTML, XML and RTF) TeX written by Donald Knuth in 70 s A revolution in typesetting Latex is an

More information

Generating reports. Steffen Durinck

Generating reports. Steffen Durinck Generating reports Steffen Durinck Traditional way of writing Analyze the data reports Copy results of the analysis in a report Copy results from report into paper to submit Workflow Report Easy to update

More information

Typesetting with TEX

Typesetting with TEX Typesetting with TEX Scientific typesetting made easy TEX (rhymes with blecchhh! ) is a technical typesetting system created by Donald Knuth of Stanford University. It is currently used by most physicists,

More information

Introduction into R. A Short Overview. Thomas Girke. December 8, Introduction into R Slide 1/21

Introduction into R. A Short Overview. Thomas Girke. December 8, Introduction into R Slide 1/21 Introduction into R A Short Overview Thomas Girke December 8, 212 Introduction into R Slide 1/21 Introduction Look and Feel of the R Environment R Library Depositories Installation Getting Around Basic

More information

Bioinformatics Workshop - NM-AIST

Bioinformatics Workshop - NM-AIST Bioinformatics Workshop - NM-AIST Day 2 Introduction to R Thomas Girke July 24, 212 Bioinformatics Workshop - NM-AIST Slide 1/21 Introduction Look and Feel of the R Environment R Library Depositories Installation

More information

Script for Interview about LATEX and Friends

Script for Interview about LATEX and Friends Script for Interview about LATEX and Friends M. R. C. van Dongen July 13, 2012 Contents 1 Introduction 2 2 Typography 3 2.1 Typeface Selection................................. 3 2.2 Kerning.......................................

More information

L A TEX Training Course Using L A TEX to write a thesis

L A TEX Training Course Using L A TEX to write a thesis L A TEX Training Course Using L A TEX to write a thesis Nicola Talbot and Joseph Wright 30th July 2010 1 What is L A TEX, and what is TEX? What are TEX and L A TEX? TEX is a typesetting application. It

More information

Introduction to LaTeX. Paul Fodor Stony Brook University

Introduction to LaTeX. Paul Fodor Stony Brook University Introduction to LaTeX Paul Fodor 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

More information

Building an R package

Building an R package Division of Biostatistics School of Public Health, University of Minnesota Steps Prepare your functions, example data sets Build package structure using package.skeleton() Edit DESCRIPTION file Edit NAMESPACE

More information

LaTeX packages for R and Advanced knitr

LaTeX packages for R and Advanced knitr LaTeX packages for R and Advanced knitr Iowa State University April 9, 2014 More ways to combine R and LaTeX Additional knitr options for formatting R output: \Sexpr{}, results='asis' xtable - formats

More information

Reproducible Research with R, L A TEX, & Sweave

Reproducible Research with R, L A TEX, & Sweave Reproducible Research with R, L A TEX, & Sweave Theresa A Scott, MS Department of Biostatistics theresa.scott@vanderbilt.edu http://biostat.mc.vanderbilt.edu/theresascott Theresa A Scott, MS (Biostatistics)

More information

Tutorial: Methods for Reproducible Research

Tutorial: Methods for Reproducible Research Tutorial: Methods for Reproducible Research Roger D. Peng Department Biostatistics Johns Hopkins Bloomberg School of Public Health ENAR 2009 Replication The ultimate standard for strengthening scientific

More information

Introduction. LaTeX (pronounced lay-tech ) is a professional document preparation system.

Introduction. LaTeX (pronounced lay-tech ) is a professional document preparation system. Introduction LaTeX (pronounced lay-tech ) is a professional document preparation system. LaTeX refers to the language in which documents are written. TeX is a computer program that uses LaTeX. Numerous

More information

Outline. Installing LaTeX. Opening TeXShop. Intro to LaTeX. Intro to LaTeX interface Working with text Tabbing and tables Figures Math and equations

Outline. Installing LaTeX. Opening TeXShop. Intro to LaTeX. Intro to LaTeX interface Working with text Tabbing and tables Figures Math and equations Outline UCLA Department of Statistics Statistical Consulting Center interface Working with text Tabbing and tables Figures Math and equations April 23, 2009 Installation Installing LaTeX Opening TeXShop

More information

Organizing research projects with an efficient open-source tool (emacs org-mode)

Organizing research projects with an efficient open-source tool (emacs org-mode) Organizing research projects with an efficient open-source tool (emacs org-mode) Feiming Chen October 23, 2018 Outline 1 Introduction 2 Emacs and Org-mode 3 How to Install? 4 A Few More Things Topic 1

More information

L A TEX Overview. Jiayi Liu. January 31, Colorado School of Mines

L A TEX Overview. Jiayi Liu. January 31, Colorado School of Mines 1 L A TEX Overview Jiayi Liu Colorado School of Mines January 31, 2017 Please refer to LATEX WikiBooks and ShareLaTeX.com Documentation for more details. 2 Brief History TEX ( Tech ) A low-level markup

More information

LATEX, BibTEX, and Friends. Robert Buels. Outline. What is LATEX. Using BibTEX LYX the graphical LATEX Managing your BibTEX references Further reading

LATEX, BibTEX, and Friends. Robert Buels. Outline. What is LATEX. Using BibTEX LYX the graphical LATEX Managing your BibTEX references Further reading LATEX, BibTEX, and Friends Outline Robert Buels What is LATEX Using LATEX Using BibTEX LYX the graphical LATEX Managing your BibTEX references Further reading Pronunciation TEX : tech Properly: like loch

More information

CSCM10 Research Methodology A Taster of L A TEX

CSCM10 Research Methodology A Taster of L A TEX CSCM10 Research Methodology A Taster of L A TEX Anton Setzer http://www.cs.swan.ac.uk/ csetzer/lectures/ computerscienceprojectresearchmethods/current/index.html October 22, 2017 WYSIWYG Systems WYSIWYG

More information

MATweave: Integration of MATLAB/Octave Code Inside L A TEX

MATweave: Integration of MATLAB/Octave Code Inside L A TEX MATweave: Integration of MATLAB/Octave Code Inside L A TEX Neil D. Lawrence neil@dcs.shef.ac.uk Sheffield Institute for Translational Neuroscience and Department of Computer Science University of Sheffield,

More information

WYSIWYG Systems. CSCM10 Research Methodology A Taster of L A TEX WYSIWYM. Advantages/Disadvantages of WYSIWYG Systems.

WYSIWYG Systems. CSCM10 Research Methodology A Taster of L A TEX WYSIWYM. Advantages/Disadvantages of WYSIWYG Systems. WYSIWYG Systems CSCM10 Research Methodology A Taster of L A TEX Anton Setzer http://www.cs.swan.ac.uk/ csetzer/lectures/ computerscienceprojectresearchmethods/current/index.html WYSIWYG = What You See

More information

Using LaTex and BibTex to Write Academic Documents. Ligang He Department of Computer Science University of Warwick

Using LaTex and BibTex to Write Academic Documents. Ligang He Department of Computer Science University of Warwick Using LaTex and BibTex to Write Academic Documents Ligang He Department of Computer Science University of Warwick Introduction In LaTex, a markup language is used to describe document structure and format,

More information

Lecture 1: Short summary of LaTeX basics

Lecture 1: Short summary of LaTeX basics Laura Konstantaki Lecture 1: Short summary of LaTeX basics Feel at ease with LaTeX Unless otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, which means

More information

Getting ready for L A TEX. Alexis Dimitriadis. Version: March 28, 2013

Getting ready for L A TEX. Alexis Dimitriadis. Version: March 28, 2013 Getting ready for L A TEX Alexis Dimitriadis Version: March 28, 2013 LaTeX is a great system, but it takes some work to learn. Unfortunately, it also takes some work to set up the necessary software. This

More information

Open Source for Academics: An Introduction to LaTeX and R

Open Source for Academics: An Introduction to LaTeX and R : An Introduction to LaTeX and R C. Gustav Helmers David Ubilava Benoît Delbecq SAEA 2010 Annual Meeting, February 6-9, 2010, Orlando, FL February 8, 2010 Outline Outline Using L A TEX Latex at work Homework

More information

Introduction to Bibliometrics and Tools for Organizing References. Uta Grothkopf ESO Library

Introduction to Bibliometrics and Tools for Organizing References. Uta Grothkopf ESO Library Introduction to Bibliometrics and Tools for Organizing References Uta Grothkopf ESO Library esolib@eso.org Astronomy evaluate? Possible measures Number of talks Invitations to conferences Students, graduations

More information

THIS IS AN INTRODUCTION TO. LaTeX. Introduction to Latex. University of Minnesota, November 7, 2016

THIS IS AN INTRODUCTION TO. LaTeX. Introduction to Latex. University of Minnesota, November 7, 2016 THIS IS AN INTRODUCTION TO LaTeX Introduction to Latex Jimmy Broomfield University of Minnesota, November 7, 2016 1 / Jimmy Broomfield Introduction to LaTeX 1/22 22 Outline Introduction Installation Getting

More information

The KBibTeX Handbook. Yuri Chornoivan

The KBibTeX Handbook. Yuri Chornoivan Yuri Chornoivan 2 Contents 1 Preface 6 1.1 Requirements........................................ 6 1.2 Intended Audience.................................... 6 2 Introduction 7 2.1 About KBibTeX.......................................

More information

WYSIWYG Systems. CSCM10 Research Methodology Lecture 4 (11/2/16): A Taster of L A TEX WYSIWYM. Advantages/Disadvantages of WYSIWYG Systems

WYSIWYG Systems. CSCM10 Research Methodology Lecture 4 (11/2/16): A Taster of L A TEX WYSIWYM. Advantages/Disadvantages of WYSIWYG Systems WYSIWYG Systems CSCM10 Research Methodology Lecture 4 (11/2/16): A Taster of L A TEX Anton Setzer http://www.cs.swan.ac.uk/ csetzer/lectures/ computerscienceprojectresearchmethods/current/index.html WYSIWYG

More information

Package patchsynctex

Package patchsynctex Type Package Package patchsynctex December 13, 2016 Title Communication Between Editor and Viewer for Literate Programs Version 0.1-4 Date 2016-12-12 Depends tools, stringr Enhances knitr, utils Description

More information

Dynamic Documents. Using knitr. Benjamin Hofner

Dynamic Documents. Using knitr. Benjamin Hofner Dynamic Documents Using knitr Benjamin Hofner benjamin.hofnerfau.de Institut für Medizininformatik, Biometrie und Epidemiologie (IMBE) Friedrich-Alexander-Universität Erlangen-Nürnberg Biometrisches Kolloquium

More information

CSCM10 Research Methodology A Taster of L A TEX

CSCM10 Research Methodology A Taster of L A TEX CSCM10 Research Methodology A Taster of L A TEX Anton Setzer http://www.cs.swan.ac.uk/ csetzer/lectures/ computerscienceprojectresearchmethods/current/index.html November 10, 2016 CSCM10 Lecture 4, 11/2/16:

More information

Introduzione a LaTex. Fabrizio Messina

Introduzione a LaTex. Fabrizio Messina Introduzione a LaTex Fabrizio Messina messina@dmi.unict.it www.dmi.unict.it/~fmessina Tex and LaTex TEX is a formatting program created by Donald E. Knuth from 1977. Typesetting text and mathematical formulae.

More information

An introduction to TeX. And other options for producing documents containing mathematics

An introduction to TeX. And other options for producing documents containing mathematics An introduction to TeX And other options for producing documents containing mathematics Robbie Robinson Department of Mathematics GWU Washington DC 20052 robinson@gwu.edu 1. What is TeX? Tex is: A typesetting

More information

Overview. Dynamic documents with R and L A TEX (while citing properly) Outline. Software for your Statistical Analysis (1) knitr.

Overview. Dynamic documents with R and L A TEX (while citing properly) Outline. Software for your Statistical Analysis (1) knitr. Overview Dynamic documents with R and L A TEX (while citing properly) Michael Höhle 1 1 Department of Mathematics Stockholm University, Sweden Kandidatarbete i matematisk statistik VT-14 Seminarium, 25

More information

Scripts define HOW. The report defines WHAT & WHY. Mikhail Dozmorov. Fall Mikhail Dozmorov Scripts define HOW Fall / 27

Scripts define HOW. The report defines WHAT & WHY. Mikhail Dozmorov. Fall Mikhail Dozmorov Scripts define HOW Fall / 27 Scripts define HOW The report defines WHAT & WHY Mikhail Dozmorov Fall 2016 Mikhail Dozmorov Scripts define HOW Fall 2016 1 / 27 Literate programming Let us change our traditional attitude to the construction

More information

An Introduction to. Andrew G. West, Jian Chang CIS400 Senior Design Tutorial September 15, 2009

An Introduction to. Andrew G. West, Jian Chang CIS400 Senior Design Tutorial September 15, 2009 An Introduction to Andrew G. West, Jian Chang CIS400 Senior Design Tutorial September 15, 2009 Today's Outline Introducing TeX/LaTeX Benefits and potential difficulties Installation and use on Unix/Mac/Windows

More information

Sweave User Manual. Friedrich Leisch and R-core October 16, 2017

Sweave User Manual. Friedrich Leisch and R-core October 16, 2017 Sweave User Manual Friedrich Leisch and R-core October 16, 2017 1 Introduction Sweave provides a flexible framework for mixing text and R code for automatic document generation. A single source file contains

More information

LaTeX. Information Literacy II EN(IL2) Course

LaTeX. Information Literacy II EN(IL2) Course LaTeX Information Literacy II EN(IL2) Course Previous Lecture Saving plots to file Customizing plots Bar and pie charts Today Introduction to Latex - Basic commands - Structure of the document - Mathematical

More information

LaTeX A Tutorial. Mohsen Alimomeni, 2010

LaTeX A Tutorial. Mohsen Alimomeni, 2010 LaTeX A Tutorial Mohsen Alimomeni, 2010 How to pronounce LaTeX? (Lah-tek, or Lay-tek) A typesetting program, not a word-processor Designed for producing beautiful books, thesis, papers, articles... (Springer

More information

LaTeX installation guide

LaTeX installation guide How LaTeX works? LaTeX installation guide First, we use a text editor (eg. Texmaker) to create a LaTeX document. Then, we run a LaTeX compiler (we'll be using MiKTeX). Finally, we need to use a viewer/previewer

More information

Introduction to L A TEX

Introduction to L A TEX Introduction to L A TEX Aravind Ranganathan Graduate Assistant Engineering Library University of Cincinnati r.aravind@gmail.com Workshop Objectives Introduction to L A TEX Hands-on Hello World! Basic Document

More information

The wiki2beamer example. October 19, 2012

The wiki2beamer example. October 19, 2012 The wiki2beamer example October 19, 2012 Welcome Welcome to the wiki2beamer example presentation. We will do our best to document and demonstrate all features of wiki2beamer in this file. It is not meant

More information

Introduction to LATEX

Introduction to LATEX Introduction to L A TEX Department of Statistics, UC Berkeley January 28, 2011 1 Why L A TEX? 2 Basics 3 Typing Math 4 BibTeX 5 More Why L A TEX? Professional typesetting tool offering great control Why

More information

Writing a Masters thesis. Conducting a literature study with modern online tools and services

Writing a Masters thesis. Conducting a literature study with modern online tools and services Writing a Masters thesis Conducting a literature study with modern online tools and services Outline 1. What is user experience? 2. The tools I used 3. SU library services 4. Lessons learned 5. Implications

More information

L A TEX- Advanced Topics

L A TEX- Advanced Topics L A TEX- Advanced Topics Morag Agmon June 30, 2009 Outline 1 Modular documents 2 Figures 3 Shortcuts and tricks 4 Slides and posters 5 MiKTeX and Technical Issues Outline 1 Modular documents 2 Figures

More information

Learning L A TEX. Patrick Lam

Learning L A TEX. Patrick Lam Learning L A TEX Patrick Lam setting up 1. download a TeX distribution (MiKTeX, MacTeX, etc.) 2. download an editor (Texmaker, WinEDT, XEmacs, etc.) 3. start a.tex file in editor 4. work only in the.tex

More information

Sweave User Manual. Friedrich Leisch R Version Introduction 2. 2 Noweb files 2

Sweave User Manual. Friedrich Leisch R Version Introduction 2. 2 Noweb files 2 Sweave User Manual Friedrich Leisch R Version 1.5.0 Contents 1 Introduction 2 2 Noweb files 2 3 Sweave files 3 3.1 A simple example..................................... 3 3.2 Sweave options......................................

More information

Writing. October 3, 2006

Writing. October 3, 2006 Writing October 3, 2006 Outline Style Outline Outline Style LaTeX Outline Style LaTeX Publishing Style The hard part......is to write in such a way that the reader feels that, behind the text, there is

More information

User Manual. ACM MAC Word Template. (MAC 2016 version)

User Manual. ACM MAC Word Template. (MAC 2016 version) User Manual ACM MAC Word Template (MAC 2016 version) By Aptara Technology P a g e 1 31 Contents 1. INTRODUCTION... 3 2. Prerequisites and Installation... 3 a. Software requirements... 3 b. Operating system

More information

Reproducible Research.. Why we love R & Bioconductor

Reproducible Research.. Why we love R & Bioconductor Reproducible Research.. Why we love R & Bioconductor Aedín Culhane aedin@jimmy.harvard.edu Boston Bioconductor Course, Oct 24/25 th http://bosbioc.wordpress.com/ My R Course Website http://bcb.dfci.harvard.edu/~aedin/

More information

Statistics Statistical Computing Software

Statistics Statistical Computing Software Statistics 135 - Statistical Computing Software Mark E. Irwin Department of Statistics Harvard University Autumn Term Monday, September 19, 2005 - January 2006 Copyright c 2005 by Mark E. Irwin Personnel

More information

An Interactive Introduction to L A TEX. Part 2: Structured Documents & More. Dr John D. Lees-Miller. writel A TEX.

An Interactive Introduction to L A TEX. Part 2: Structured Documents & More. Dr John D. Lees-Miller. writel A TEX. An Interactive Introduction to L A TEX Part 2: Structured Documents & More Dr John D. Lees-Miller writel A TEX February 27, 2013 Outline Structured Documents Title and Abstract Sections Labels and Cross-References

More information

Package patchdvi. June 9, 2015

Package patchdvi. June 9, 2015 Type Package Title Package to Patch.dvi or.synctex Files Version 1.9.1616 Author Duncan Murdoch Package patchdvi June 9, 2015 Maintainer Duncan Murdoch Functions to patch specials

More information

Recipes for presentations with beamer latex using emacs org-mode

Recipes for presentations with beamer latex using emacs org-mode Recipes for presentations with beamer latex using emacs org-mode Arne Babenhauserheide August 8, 2012 Outline Introduction Recipes Basic Configuration Thanks and license Usage (configure your emacs, see

More information

JOURNAL OF INTERNATIONAL ACADEMIC RESEARCH FOR MULTIDISCIPLINARY Impact Factor 1.393, ISSN: , Volume 2, Issue 3, April 2014

JOURNAL OF INTERNATIONAL ACADEMIC RESEARCH FOR MULTIDISCIPLINARY Impact Factor 1.393, ISSN: , Volume 2, Issue 3, April 2014 PESTIBASE : A STRUCTURE (2D & 3D) AND PROPERTY DATABASE OF ORGANIC INSECTICIDES USED IN CROPS AND IN SILICO ADME-TOX STUDIES OF THE DATABASE MOLECULES PARMITA CHOWDHURY* SAUROV MAHANTA, RINTU DAS** *National

More information

Reproducible research with Emacs org-mode

Reproducible research with Emacs org-mode 1 / 15 Reproducible research with Emacs org-mode Ivan Markovsky 2 / 15 Plan Problems we want to address Solution via Emacs org-mode Trying it out 3 / 15 Reporting computational results 1. setup and run

More information

Sweave and Beyond: Computations on Text Documents

Sweave and Beyond: Computations on Text Documents New URL: http://www.r-project.org/conferences/dsc-2003/ Proceedings of the 3rd International Workshop on Distributed Statistical Computing (DSC 2003) March 20 22, Vienna, Austria ISSN 1609-395X Kurt Hornik,

More information

Zotero for L A TEX Users

Zotero for L A TEX Users 1/24 The L A TEX Users burt@brandeis.edu Brandeis University March 7, 2019 2/24 The 3/24 Installing The Find the application at http://www.zotero.org for Mac Open the.dmg you downloaded and drag to the

More information

Weekly Discussion Sections & Readings

Weekly Discussion Sections & Readings Weekly Discussion Sections & Readings Teaching Fellows (TA) Name Office Email Mengting Gu Bass 437 mengting.gu (at) yale.edu Paul Muir Bass437 Paul.muir (at) yale.edu Please E-mail cbb752@gersteinlab.org

More information

An introduction to LaTeX

An introduction to LaTeX An introduction to LaTeX - a document preparation language Shaun Cole (from an original lecture by Cedric Lacey) You can find these notes and some LaTeX examples on my web page: http://astro.dur.ac.uk/~cole/intro_latex_pg

More information

University of Crete of Computer Science CS Internet Knowledge Management. BibTeX In OWL. Kartsonakis Efthimis Kriara Lito Papadakis Giannis

University of Crete of Computer Science CS Internet Knowledge Management. BibTeX In OWL. Kartsonakis Efthimis Kriara Lito Papadakis Giannis University of Crete Dpt. of Computer Science CS 566 - Internet Knowledge Management BibTeX In OWL Kartsonakis Efthimis Kriara Lito Papadakis Giannis Heraklion, 2008 1 Table of Contents Introduction...

More information

Helen Cameron. A Brief Overview of LATEX

Helen Cameron. A Brief Overview of LATEX A Brief Overview of L A TEX What Is L A TEX? L A TEX is a document preparation system designed by Leslie Lamport on top of Donald Knuth s TEX. Useful Websites There s a useful wikibook about L A TEX at

More information

The AES Convention Paper LATEX class Adam H. Lewenberg (October 18, 2008) 1

The AES Convention Paper LATEX class Adam H. Lewenberg (October 18, 2008) 1 1 Introduction The AES Convention Paper LATEX class Adam H. Lewenberg (October 18, 2008) 1 IMPORTANT CHANGE: Due to problems interacting with certain other L A TEXpackages, as of version 0.60 the AES Convention

More information

How to manage references and use your team bibliography database?

How to manage references and use your team bibliography database? How to manage references and use your team bibliography database? For Athena and Neuromathcomp team Contact: theodore.papadopoulo@inria.fr pierre.kornprobst@inria.fr (Athena) (Neuromathcomp) 08/2013 Motivation

More information

My Full-Length Title

My Full-Length Title My Full-Length Title X. Author1 1 Y. Author2 2 1 Department of Mathematics University of Author1 2 Department of Engineering University of Author2 Texas A&M University pre-reu program, 2012 Author1, Author2

More information

Reproducible Research with R and RStudio

Reproducible Research with R and RStudio The R Series Reproducible Research with R and RStudio Christopher Gandrud C\ CRC Press cj* Taylor & Francis Croup Boca Raton London New York CRC Press is an imprint of the Taylor & Francis Group an informa

More information

Power Editing: Hoxie Ackerman. April 1, Building a Productive Editing Environment for Yourself

Power Editing: Hoxie Ackerman. April 1, Building a Productive Editing Environment for Yourself : Building a Productive Editing Environment for Yourself Hoxie Ackerman UC Berkeley Department of Statistics Student Productivity Seminar April 1, 2011 Goals of This Talk Goals of This Talk 1 Spark interest

More information

Introduction to L A TEX beamer

Introduction to L A TEX beamer Introduction to L A TEX beamer Lukas Block, Nadja Maraun University of Paderborn June, 2017 Abstract You will learn what L A TEX is and how to use it for presentations. 2/34 Summary Introduction: L A TEX

More information

Using Sweave and patchdvi with Japanese text

Using Sweave and patchdvi with Japanese text Using Sweave and patchdvi with Japanese text Duncan Murdoch 27 6 8 The patchdvi package works with Sweave [? ] and document previewers to facilitate editing: it modifies the links that LATEX puts into

More information

Research Method and Report Writing Lecture 4: An Introduction to L A TEX

Research Method and Report Writing Lecture 4: An Introduction to L A TEX Research Method and Report Writing Lecture 4: An Introduction to L A TEX Farzaneh Abdollahi {Thanks to Hamed Rezaee} Department of Electrical Engineering Amirkabir University of Technology Fall 2012 Farzaneh

More information

Reports in AST2210. Introduction: The Why Why are we doing this exercise, what are our assumptions, what do we want to accomplish?

Reports in AST2210. Introduction: The Why Why are we doing this exercise, what are our assumptions, what do we want to accomplish? Reports in AST2210 1 Basic layout In scientific journals research is usually presented in the form of an article. Most commonly (though there will be variations) this means following a format consisting

More information

A Short L A TEX Introduction

A Short L A TEX Introduction A Short L A TEX Introduction Dr Will Hossack School of Physics & Astronomy tele: 50-5261 Will.Hossack@ed.ac.uk February 2016 What is L A TEX L A TEX(being Layman s-tex) is a text-formatting mark-up language,

More information

Workshop on LATEX 2ε. Asst. Prof. Dr. Kemal Bagzibagli Department of Economics. 20 May 2015

Workshop on LATEX 2ε. Asst. Prof. Dr. Kemal Bagzibagli Department of Economics. 20 May 2015 Workshop on LATEX 2ε Asst. Prof. Dr. Kemal Bagzibagli Department of Economics 20 May 2015 1 Outline 1 Introduction 2 Some L A TEX Features 3 Input File Structure 4 The Layout of the Document 5 Special

More information

LATEX Thesis Template. by Steve D. Sharples, MEng

LATEX Thesis Template. by Steve D. Sharples, MEng LATEX Thesis Template by Steve D. Sharples, MEng Thesis submitted to The University of Nottingham for the degree of Doctor of Philosophy, May 2003 Contents List of Figures 2 Abstract 3 Acknowledgements

More information

RefWorks for Historians. Alice Nelson

RefWorks for Historians. Alice Nelson RefWorks for Historians Alice Nelson alice.nelson@bodleian.ox.ac.uk Aims of this session To enable you to: Use the basic features of RefWorks; Import references from different sources; Manage your database

More information

Introduction to TEX/L A TEX UIUC Department of Mathematics Graduate Student Orientation Fall 2007

Introduction to TEX/L A TEX UIUC Department of Mathematics Graduate Student Orientation Fall 2007 Introduction to TEX/L A TEX UIUC Department of Mathematics Graduate Student Orientation Fall 2007 A.J. Hildebrand hildebr@math.uiuc.edu 8/20/2007 1 What is TEX? TEX is a program for high quality technical

More information

CTAN lion drawing by Duane Bibby \LaTeX and \BibTeX. HJ Hoogeboom 19 april 2013 Bachelorklas

CTAN lion drawing by Duane Bibby   \LaTeX and \BibTeX. HJ Hoogeboom 19 april 2013 Bachelorklas CTAN lion drawing by Duane Bibby http://www.ctan.org/lion/ \LaTeX and \BibTeX HJ Hoogeboom 19 april 2013 Bachelorklas Donald Knuth (TeX, 1978) Leslie Lamport (LaTeX) & Oren Patashnik (BibTeX, 1985) document

More information

COMS 6100 Class note

COMS 6100 Class note COMS 6100 Class note Biala Toheeb A. 26 August, 2016 A short quiz was given to test if the students really studied the linux commands. The answers to the quiz are Q1. How do you create a directory named

More information

Latex Manually Set Font Size For Tables

Latex Manually Set Font Size For Tables Latex Manually Set Font Size For Tables I would like to set my table to font 10pt. Here is my coding /begin(table)(h) /resizebox(/textwidth)(!)(% /begin(tabular)(/l/l/l/l/l/) /hline & A & B & C & D //

More information