SlideShare una empresa de Scribd logo
1 de 29
Descargar para leer sin conexión
Reproducible research with LATEX + R
(for PhD students)
Tomislav Hengl
ISRIC — World Soil Information, Wageningen University
In Wageningen, 26 September 2013
Outline I
Important points
Disclaimer
The programme
Reproducible research is beautiful!
Software in use
Web-services of interest
What is TEX?
TEX philosophy
What is LATEX?
LATEX versus MS Word
Comparison
Literature
In Wageningen, 26 September 2013
What you need to know about me
I am not really familiar with TEX programming (I never
developed any LATEX package).
LATEX has a steep learning curve.
I also still use Google docs and MS Word (e.g.to write short
documents).
LATEX comes (as any GNU) without any warranty.
In Wageningen, 26 September 2013
The course programme (1)
Block 1 (2 hours)
Introduction to TEX (philosophy, history).
Installation of software and first steps.
Common LATEX commands (graphics, tables, BibTEX, math).
Generate your first document with LATEX.
In Wageningen, 26 September 2013
The course programme (2)
Block 2 (2 hours)
Collaborative writing using LATEX— the DropBox approach.
Collaborative writing using LATEXon-line LATEXeditors
(ShareLaTeX, LaTeXLab)
Finding the right template for a PhD thesis
Writing a PhD thesis with LATEX(tips and tricks).
In Wageningen, 26 September 2013
The course programme (3)
Block 3 (2 hours)
Reproducible research — why? how? where?
Combining R and LATEXcode -> Sweave.
Preparing presentations using the Beamer package.
Converting LATEXdocs to MS Word and HTML.
In Wageningen, 26 September 2013
What is reproducible research?1
Ideally, each paper submitted for publication that contains some
type of statistical analysis or summaries of results should allow for
checking / validation.
Anybody should be able to reproduce your results. . . of course —
this is one of the main principles of science! But most of the
articles you find (>95%) do not satisfy the reproducibility principle!
Science is still largely based on trust and authorities.
1
https://en.wikipedia.org/wiki/Reproducibility
In Wageningen, 26 September 2013
Kligl & Bates (2011)
In Wageningen, 26 September 2013
Reproducible research is beautiful!
In Wageningen, 26 September 2013
Another example: JSS
In Wageningen, 26 September 2013
See also: UG4A
In Wageningen, 26 September 2013
Another leitmotif of this course: collaboration
The best papers are the ones written through creative team
work — creative brainstorming and discussion!
But how to collaborate on LATEXdocuments?
And how to monitor progress? (or“who do I turn on
track-changes in LATEX?!”)
In Wageningen, 26 September 2013
Software
You should have installed these already!
MikTEX (LATEX engine);
WinEdt (TEX editor);
(recommended) a number of WinEdt plugins:
JabRef — references editor;
BibTEX menu — WinEdt menu for references;
MathType — Equation editor;
R-Sweave — full WinEdt–R integration;
optional: Scientific Word — the commercial programme for
producing LATEX documents under Windows; word2tex — a
shareware programme that converts MS WORD documents to
LATEX.
In Wageningen, 26 September 2013
Websites (on-line services)
You can make an account and test things out
On-line TEXeditor: https://www.sharelatex.com;
Shared documents: http://DropBox.com;
Annotation of PDF docs: http://a.nnotate.com;
On-line equation editors;
In Wageningen, 26 September 2013
TEX history I
In 1978, Donald Knuth (one of the most famous and well
respected computer scientists) embarked on a project to
create a typesetting system, called TEX (pronounced ‘tech’),
after being disappointed with the quality of his acclaimed The
Art of Programming series.
TEXis an abbreviation of τ χνη (TEXNH — techn¯e), Greek
for both“art”and“craft”, which is also the root word of
‘technical’2.
Around 10 years later, he froze the language after originally
anticipating spending a single year!
In Wageningen, 26 September 2013
TEX history II
In the mid-80s Leslie Lamport created a set of macros that
abstracted away many of the complexities (this allowed for a
simpler approach for creating documents, where content and
style were separate). This extension became LATEX
(pronounced ‘lay-tech’);
MiKTEX (pronounced ‘mick-tech’) is an up-to-date
implementation of TEX and related programs for Windows.
2
https://en.wikipedia.org/wiki/TeX
In Wageningen, 26 September 2013
LATEXis not latex!
=
In Wageningen, 26 September 2013
TEX philosophy
Donald Knuth designed TEXwith two main goals in mind:
1. (perfectionism) to allow anybody to produce high-quality
books using a reasonably minimal amount of effort, and
2. (continuity) to provide a system that would give exactly the
same results on all computers, now and in the future.
The creator“offers monetary awards to people who find and report
a bug in TEX. The award per bug started at $2.56 (one
‘hexadecimal dollar’) and doubled every year until it was frozen at
its current value of $327.68. . . recipients have been known to
frame their check as proof that they found a bug in TEXrather than
cashing it.”
In Wageningen, 26 September 2013
What is LATEX?
essentially a markup language;
analogous to HTML with CSS;
programming environment with many contributed packages
and styles;
renders the content into a document (PDF);
the code must be error-free from the beginning till the end!
otherwise you do not see any PDF.
In Wageningen, 26 September 2013
Who is it for?
Anybody writing anything maths related will not find a richer
and better quality system.
Anybody planning to write research articles, PhD or MSc
thesis and make professional and stable overheads;
If you are in academia, you really ought to be using it!
Even WikiPedia uses LATEX for rendering any formulas that
appear on their site.
See also: “LATEX isn’t for everyone but it could be for you”by
Andy Roberts.
In Wageningen, 26 September 2013
Why TEX?
. . . portability, lightness, security;
it is easier than XML (and has less bugs);
it is for free
it is one of the most sophisticated digital typographical
systems in the world (MS Word is not a press software!);
You can get LATEX to do just about anything you can think of!
(it’s just a question of time / effort)
In Wageningen, 26 September 2013
TEX saves time
focus on content, let LATEX bother about the layout;
the software takes care of the actual typesetting, structuring,
numbering, referencing and cross-referencing, indexing and
page formatting;
compile documents in PDF (export to HTML, RTF);
hyphenation, typesetting, fine-tuned control;
In Wageningen, 26 September 2013
LATEX versus MS Word
MS Word
WYSIWYG world;
XML;
nonstandard styles;
not-suited for large
(collaborative)
documents;
compatibility problems
(MS Word 97, 2000, XP,
2003, 2007);
LATEX
code world;
TEX language;
standard styles;
suited for large
collaborative documents;
the syntax staid the same
ever since the beginning!
. . .and the winner is. . .
In Wageningen, 26 September 2013
MS Word
MS Word does in fact have a similar Styles feature (but people
don’t often know it exists).
Microsoft has a software to prepare documents for press —
Microsoft Office Publisher, but even this can not be compared with
e.g.Adobe InDesign (do you have money to use this software?)
In Wageningen, 26 September 2013
TEX versus MS Word3
3
http://www.pinteric.com/miktex.html
In Wageningen, 26 September 2013
TEX versus MS Word
Andy Roberts’ Laws on Word:
1. Likelihood of a crash is directly proportional to the importance
of a document.
2. Likelihood of a crash is inversely proportional to the time left
before its deadline.
3. Likelihood of a crash is directly proportional to the duration
since you last saved.
4. Likelihood of you throwing your computer out of the window
is directly proportional to the number of times Clippy pops up.
5. That’s enough laws for now. . .
See also: “LATEX vs.MS Word”
In Wageningen, 26 September 2013
Literature
Lamport, L., 1994. LATEX: A Document Preparation System.
Addison-Wesley, 291 p.
Oetiker, T. 2008. The (Not So) Short Introduction to LATEX2e.
self-published, 155 p.
Talbot, N.L.C. 2013. Using LaTeX to Write a PhD Thesis,
Dickimaw LATEXSeries
LATEX on wikibooks.
http://en.wikibooks.org/wiki/LaTeX
In Wageningen, 26 September 2013
Layout galleries
The TEX showcase;
Page and chapter headings by Vincent Zoonekynd;
LATEX font catalogue;
Text Processing using LATEX by University of Cambridge
Copernicus publications (HESS);
In Wageningen, 26 September 2013
LATEX to HTML/KML
convert your LATEX document to HTML (install TtH);
install some KML editor (or use WinEdt);
Put the slides as HTML in the description field;
to get some idea what you can do with KML, look at the
KML interactive sampler and/or Google Earth Outreach;
You can also convert from LATEX document to Wiki (e.g.using
this Python script);
In Wageningen, 26 September 2013

Más contenido relacionado

Destacado

Support Vector Machine
Support Vector MachineSupport Vector Machine
Support Vector MachinePutri Wikie
 
Integrating R, knitr, and LaTeX via RStudio
Integrating R, knitr, and LaTeX via RStudioIntegrating R, knitr, and LaTeX via RStudio
Integrating R, knitr, and LaTeX via RStudioAaron Baggett
 
Msc Proposal Presentation
Msc Proposal PresentationMsc Proposal Presentation
Msc Proposal PresentationLighton Phiri
 
Latex Certificate
Latex CertificateLatex Certificate
Latex CertificateRakesh Jana
 
Introduction to LaTeX (For Word users)
 Introduction to LaTeX (For Word users) Introduction to LaTeX (For Word users)
Introduction to LaTeX (For Word users)Guy K. Kloss
 
Back propagation network
Back propagation networkBack propagation network
Back propagation networkHIRA Zaidi
 
Perceptron (neural network)
Perceptron (neural network)Perceptron (neural network)
Perceptron (neural network)EdutechLearners
 
Support vector machine
Support vector machineSupport vector machine
Support vector machineMusa Hawamdah
 
Artificial Neural Networks Lect5: Multi-Layer Perceptron & Backpropagation
Artificial Neural Networks Lect5: Multi-Layer Perceptron & BackpropagationArtificial Neural Networks Lect5: Multi-Layer Perceptron & Backpropagation
Artificial Neural Networks Lect5: Multi-Layer Perceptron & BackpropagationMohammed Bennamoun
 
How to make boxed text with LaTeX
How to make boxed text with LaTeXHow to make boxed text with LaTeX
How to make boxed text with LaTeXVesa Linja-aho
 
The Back Propagation Learning Algorithm
The Back Propagation Learning AlgorithmThe Back Propagation Learning Algorithm
The Back Propagation Learning AlgorithmESCOM
 
Agriculture and Big Data
Agriculture and Big DataAgriculture and Big Data
Agriculture and Big DataUIResearchPark
 
backpropagation in neural networks
backpropagation in neural networksbackpropagation in neural networks
backpropagation in neural networksAkash Goel
 
2.5 backpropagation
2.5 backpropagation2.5 backpropagation
2.5 backpropagationKrish_ver2
 

Destacado (20)

Support Vector Machine
Support Vector MachineSupport Vector Machine
Support Vector Machine
 
Integrating R, knitr, and LaTeX via RStudio
Integrating R, knitr, and LaTeX via RStudioIntegrating R, knitr, and LaTeX via RStudio
Integrating R, knitr, and LaTeX via RStudio
 
Msc Proposal Presentation
Msc Proposal PresentationMsc Proposal Presentation
Msc Proposal Presentation
 
Backpropagation algo
Backpropagation  algoBackpropagation  algo
Backpropagation algo
 
Latex Certificate
Latex CertificateLatex Certificate
Latex Certificate
 
Lecture 9 Perceptron
Lecture 9 PerceptronLecture 9 Perceptron
Lecture 9 Perceptron
 
Introduction to LaTeX (For Word users)
 Introduction to LaTeX (For Word users) Introduction to LaTeX (For Word users)
Introduction to LaTeX (For Word users)
 
Back propagation network
Back propagation networkBack propagation network
Back propagation network
 
Perceptron (neural network)
Perceptron (neural network)Perceptron (neural network)
Perceptron (neural network)
 
Support vector machine
Support vector machineSupport vector machine
Support vector machine
 
Artificial Neural Networks Lect5: Multi-Layer Perceptron & Backpropagation
Artificial Neural Networks Lect5: Multi-Layer Perceptron & BackpropagationArtificial Neural Networks Lect5: Multi-Layer Perceptron & Backpropagation
Artificial Neural Networks Lect5: Multi-Layer Perceptron & Backpropagation
 
Perceptron
PerceptronPerceptron
Perceptron
 
Support Vector Machine
Support Vector MachineSupport Vector Machine
Support Vector Machine
 
How to make boxed text with LaTeX
How to make boxed text with LaTeXHow to make boxed text with LaTeX
How to make boxed text with LaTeX
 
The Back Propagation Learning Algorithm
The Back Propagation Learning AlgorithmThe Back Propagation Learning Algorithm
The Back Propagation Learning Algorithm
 
Agriculture and Big Data
Agriculture and Big DataAgriculture and Big Data
Agriculture and Big Data
 
backpropagation in neural networks
backpropagation in neural networksbackpropagation in neural networks
backpropagation in neural networks
 
Support Vector machine
Support Vector machineSupport Vector machine
Support Vector machine
 
2.5 backpropagation
2.5 backpropagation2.5 backpropagation
2.5 backpropagation
 
Msc Thesis - Presentation
Msc Thesis - PresentationMsc Thesis - Presentation
Msc Thesis - Presentation
 

Similar a Latex crash course

Write effectlively in late x
Write effectlively in late xWrite effectlively in late x
Write effectlively in late xC-CORE
 
Concurrency Issues in Object-Oriented Modeling
Concurrency Issues in Object-Oriented ModelingConcurrency Issues in Object-Oriented Modeling
Concurrency Issues in Object-Oriented ModelingIRJET Journal
 
Progress in semantic mapping - NKOS
Progress in semantic mapping - NKOSProgress in semantic mapping - NKOS
Progress in semantic mapping - NKOSAntoine Isaac
 
The Plague Doctor: A Promising Cure for the Window Plague
The Plague Doctor: A Promising Cure for the Window PlagueThe Plague Doctor: A Promising Cure for the Window Plague
The Plague Doctor: A Promising Cure for the Window PlagueRoberto Minelli
 
OSCON 2013: Using Cascalog to build an app with City of Palo Alto Open Data
OSCON 2013: Using Cascalog to build an app with City of Palo Alto Open DataOSCON 2013: Using Cascalog to build an app with City of Palo Alto Open Data
OSCON 2013: Using Cascalog to build an app with City of Palo Alto Open DataPaco Nathan
 
Using Cascalog to build an app with City of Palo Alto Open Data
Using Cascalog to build an app with City of Palo Alto Open DataUsing Cascalog to build an app with City of Palo Alto Open Data
Using Cascalog to build an app with City of Palo Alto Open DataOSCON Byrum
 
MEX Vocabulary - A Lightweight Interchange Format for Machine Learning Experi...
MEX Vocabulary - A Lightweight Interchange Format for Machine Learning Experi...MEX Vocabulary - A Lightweight Interchange Format for Machine Learning Experi...
MEX Vocabulary - A Lightweight Interchange Format for Machine Learning Experi...Universität Leipzig
 
Software for paper formatting
Software for paper formatting Software for paper formatting
Software for paper formatting salonibansal21
 
latex document for IT workshop Lab . B.Tech
latex document for IT workshop Lab . B.Techlatex document for IT workshop Lab . B.Tech
latex document for IT workshop Lab . B.TechSandhya Gandham
 
Scales02WhatProgrammingLanguagesShouldWeTeachOurUndergraduates
Scales02WhatProgrammingLanguagesShouldWeTeachOurUndergraduatesScales02WhatProgrammingLanguagesShouldWeTeachOurUndergraduates
Scales02WhatProgrammingLanguagesShouldWeTeachOurUndergraduatesHans Ecke
 
Academic Reference Management.pdf
Academic Reference Management.pdfAcademic Reference Management.pdf
Academic Reference Management.pdfKayla Smith
 

Similar a Latex crash course (20)

Chap01 scr
Chap01 scrChap01 scr
Chap01 scr
 
Write effectlively in late x
Write effectlively in late xWrite effectlively in late x
Write effectlively in late x
 
Concurrency Issues in Object-Oriented Modeling
Concurrency Issues in Object-Oriented ModelingConcurrency Issues in Object-Oriented Modeling
Concurrency Issues in Object-Oriented Modeling
 
Progress in semantic mapping - NKOS
Progress in semantic mapping - NKOSProgress in semantic mapping - NKOS
Progress in semantic mapping - NKOS
 
Inroduction to Latex
Inroduction to LatexInroduction to Latex
Inroduction to Latex
 
The Plague Doctor: A Promising Cure for the Window Plague
The Plague Doctor: A Promising Cure for the Window PlagueThe Plague Doctor: A Promising Cure for the Window Plague
The Plague Doctor: A Promising Cure for the Window Plague
 
OSCON 2013: Using Cascalog to build an app with City of Palo Alto Open Data
OSCON 2013: Using Cascalog to build an app with City of Palo Alto Open DataOSCON 2013: Using Cascalog to build an app with City of Palo Alto Open Data
OSCON 2013: Using Cascalog to build an app with City of Palo Alto Open Data
 
Using Cascalog to build an app with City of Palo Alto Open Data
Using Cascalog to build an app with City of Palo Alto Open DataUsing Cascalog to build an app with City of Palo Alto Open Data
Using Cascalog to build an app with City of Palo Alto Open Data
 
MEX Vocabulary - A Lightweight Interchange Format for Machine Learning Experi...
MEX Vocabulary - A Lightweight Interchange Format for Machine Learning Experi...MEX Vocabulary - A Lightweight Interchange Format for Machine Learning Experi...
MEX Vocabulary - A Lightweight Interchange Format for Machine Learning Experi...
 
14 Late X
14 Late X14 Late X
14 Late X
 
Scale2016
Scale2016Scale2016
Scale2016
 
Semantics and Web 3.0
Semantics and Web 3.0Semantics and Web 3.0
Semantics and Web 3.0
 
Software for paper formatting
Software for paper formatting Software for paper formatting
Software for paper formatting
 
STA312 Lec1
STA312 Lec1STA312 Lec1
STA312 Lec1
 
latex document for IT workshop Lab . B.Tech
latex document for IT workshop Lab . B.Techlatex document for IT workshop Lab . B.Tech
latex document for IT workshop Lab . B.Tech
 
Scales02WhatProgrammingLanguagesShouldWeTeachOurUndergraduates
Scales02WhatProgrammingLanguagesShouldWeTeachOurUndergraduatesScales02WhatProgrammingLanguagesShouldWeTeachOurUndergraduates
Scales02WhatProgrammingLanguagesShouldWeTeachOurUndergraduates
 
LATEX.ppt
LATEX.pptLATEX.ppt
LATEX.ppt
 
Introduction to LaTeX
Introduction to LaTeXIntroduction to LaTeX
Introduction to LaTeX
 
Ad507
Ad507Ad507
Ad507
 
Academic Reference Management.pdf
Academic Reference Management.pdfAcademic Reference Management.pdf
Academic Reference Management.pdf
 

Más de Tomislav Hengl

Introducing GSIF (seminar at Lamont campus)
Introducing GSIF (seminar at Lamont campus)Introducing GSIF (seminar at Lamont campus)
Introducing GSIF (seminar at Lamont campus)Tomislav Hengl
 
Poster "Global Soil Information Facilities"
Poster "Global Soil Information Facilities"Poster "Global Soil Information Facilities"
Poster "Global Soil Information Facilities"Tomislav Hengl
 
A statistical assessment of GDEM using LiDAR data
A statistical assessment of GDEM using LiDAR dataA statistical assessment of GDEM using LiDAR data
A statistical assessment of GDEM using LiDAR dataTomislav Hengl
 
Hengl & Reuter poster at Geomorphometry.org/2011
Hengl & Reuter poster at Geomorphometry.org/2011Hengl & Reuter poster at Geomorphometry.org/2011
Hengl & Reuter poster at Geomorphometry.org/2011Tomislav Hengl
 
Open Soil Profiles - testbed data portal for storing soil profile data
Open Soil Profiles - testbed data portal for storing soil profile dataOpen Soil Profiles - testbed data portal for storing soil profile data
Open Soil Profiles - testbed data portal for storing soil profile dataTomislav Hengl
 
Worldgrids.org: building global covariates for automated mapping
Worldgrids.org: building global covariates for automated mappingWorldgrids.org: building global covariates for automated mapping
Worldgrids.org: building global covariates for automated mappingTomislav Hengl
 
Global soilmap at_afsis_hengl
Global soilmap at_afsis_henglGlobal soilmap at_afsis_hengl
Global soilmap at_afsis_henglTomislav Hengl
 
Spatial interpolation comparison
Spatial interpolation comparisonSpatial interpolation comparison
Spatial interpolation comparisonTomislav Hengl
 
DSM training - preparing auxiliary data
DSM training - preparing auxiliary dataDSM training - preparing auxiliary data
DSM training - preparing auxiliary dataTomislav Hengl
 

Más de Tomislav Hengl (13)

Introducing GSIF (seminar at Lamont campus)
Introducing GSIF (seminar at Lamont campus)Introducing GSIF (seminar at Lamont campus)
Introducing GSIF (seminar at Lamont campus)
 
Poster "Global Soil Information Facilities"
Poster "Global Soil Information Facilities"Poster "Global Soil Information Facilities"
Poster "Global Soil Information Facilities"
 
A statistical assessment of GDEM using LiDAR data
A statistical assessment of GDEM using LiDAR dataA statistical assessment of GDEM using LiDAR data
A statistical assessment of GDEM using LiDAR data
 
Hengl & Reuter poster at Geomorphometry.org/2011
Hengl & Reuter poster at Geomorphometry.org/2011Hengl & Reuter poster at Geomorphometry.org/2011
Hengl & Reuter poster at Geomorphometry.org/2011
 
SAGA GIS 2.0.7
SAGA GIS 2.0.7SAGA GIS 2.0.7
SAGA GIS 2.0.7
 
GSIF utilities
GSIF utilitiesGSIF utilities
GSIF utilities
 
Open Soil Profiles - testbed data portal for storing soil profile data
Open Soil Profiles - testbed data portal for storing soil profile dataOpen Soil Profiles - testbed data portal for storing soil profile data
Open Soil Profiles - testbed data portal for storing soil profile data
 
Drupal course hengl
Drupal course henglDrupal course hengl
Drupal course hengl
 
Worldgrids.org: building global covariates for automated mapping
Worldgrids.org: building global covariates for automated mappingWorldgrids.org: building global covariates for automated mapping
Worldgrids.org: building global covariates for automated mapping
 
Global soilmap at_afsis_hengl
Global soilmap at_afsis_henglGlobal soilmap at_afsis_hengl
Global soilmap at_afsis_hengl
 
Spatial interpolation comparison
Spatial interpolation comparisonSpatial interpolation comparison
Spatial interpolation comparison
 
DSM training - preparing auxiliary data
DSM training - preparing auxiliary dataDSM training - preparing auxiliary data
DSM training - preparing auxiliary data
 
R crash course
R crash courseR crash course
R crash course
 

Último

Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdfssuserdda66b
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 

Último (20)

Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 

Latex crash course

  • 1. Reproducible research with LATEX + R (for PhD students) Tomislav Hengl ISRIC — World Soil Information, Wageningen University In Wageningen, 26 September 2013
  • 2. Outline I Important points Disclaimer The programme Reproducible research is beautiful! Software in use Web-services of interest What is TEX? TEX philosophy What is LATEX? LATEX versus MS Word Comparison Literature In Wageningen, 26 September 2013
  • 3. What you need to know about me I am not really familiar with TEX programming (I never developed any LATEX package). LATEX has a steep learning curve. I also still use Google docs and MS Word (e.g.to write short documents). LATEX comes (as any GNU) without any warranty. In Wageningen, 26 September 2013
  • 4. The course programme (1) Block 1 (2 hours) Introduction to TEX (philosophy, history). Installation of software and first steps. Common LATEX commands (graphics, tables, BibTEX, math). Generate your first document with LATEX. In Wageningen, 26 September 2013
  • 5. The course programme (2) Block 2 (2 hours) Collaborative writing using LATEX— the DropBox approach. Collaborative writing using LATEXon-line LATEXeditors (ShareLaTeX, LaTeXLab) Finding the right template for a PhD thesis Writing a PhD thesis with LATEX(tips and tricks). In Wageningen, 26 September 2013
  • 6. The course programme (3) Block 3 (2 hours) Reproducible research — why? how? where? Combining R and LATEXcode -> Sweave. Preparing presentations using the Beamer package. Converting LATEXdocs to MS Word and HTML. In Wageningen, 26 September 2013
  • 7. What is reproducible research?1 Ideally, each paper submitted for publication that contains some type of statistical analysis or summaries of results should allow for checking / validation. Anybody should be able to reproduce your results. . . of course — this is one of the main principles of science! But most of the articles you find (>95%) do not satisfy the reproducibility principle! Science is still largely based on trust and authorities. 1 https://en.wikipedia.org/wiki/Reproducibility In Wageningen, 26 September 2013
  • 8. Kligl & Bates (2011) In Wageningen, 26 September 2013
  • 9. Reproducible research is beautiful! In Wageningen, 26 September 2013
  • 10. Another example: JSS In Wageningen, 26 September 2013
  • 11. See also: UG4A In Wageningen, 26 September 2013
  • 12. Another leitmotif of this course: collaboration The best papers are the ones written through creative team work — creative brainstorming and discussion! But how to collaborate on LATEXdocuments? And how to monitor progress? (or“who do I turn on track-changes in LATEX?!”) In Wageningen, 26 September 2013
  • 13. Software You should have installed these already! MikTEX (LATEX engine); WinEdt (TEX editor); (recommended) a number of WinEdt plugins: JabRef — references editor; BibTEX menu — WinEdt menu for references; MathType — Equation editor; R-Sweave — full WinEdt–R integration; optional: Scientific Word — the commercial programme for producing LATEX documents under Windows; word2tex — a shareware programme that converts MS WORD documents to LATEX. In Wageningen, 26 September 2013
  • 14. Websites (on-line services) You can make an account and test things out On-line TEXeditor: https://www.sharelatex.com; Shared documents: http://DropBox.com; Annotation of PDF docs: http://a.nnotate.com; On-line equation editors; In Wageningen, 26 September 2013
  • 15. TEX history I In 1978, Donald Knuth (one of the most famous and well respected computer scientists) embarked on a project to create a typesetting system, called TEX (pronounced ‘tech’), after being disappointed with the quality of his acclaimed The Art of Programming series. TEXis an abbreviation of τ χνη (TEXNH — techn¯e), Greek for both“art”and“craft”, which is also the root word of ‘technical’2. Around 10 years later, he froze the language after originally anticipating spending a single year! In Wageningen, 26 September 2013
  • 16. TEX history II In the mid-80s Leslie Lamport created a set of macros that abstracted away many of the complexities (this allowed for a simpler approach for creating documents, where content and style were separate). This extension became LATEX (pronounced ‘lay-tech’); MiKTEX (pronounced ‘mick-tech’) is an up-to-date implementation of TEX and related programs for Windows. 2 https://en.wikipedia.org/wiki/TeX In Wageningen, 26 September 2013
  • 17. LATEXis not latex! = In Wageningen, 26 September 2013
  • 18. TEX philosophy Donald Knuth designed TEXwith two main goals in mind: 1. (perfectionism) to allow anybody to produce high-quality books using a reasonably minimal amount of effort, and 2. (continuity) to provide a system that would give exactly the same results on all computers, now and in the future. The creator“offers monetary awards to people who find and report a bug in TEX. The award per bug started at $2.56 (one ‘hexadecimal dollar’) and doubled every year until it was frozen at its current value of $327.68. . . recipients have been known to frame their check as proof that they found a bug in TEXrather than cashing it.” In Wageningen, 26 September 2013
  • 19. What is LATEX? essentially a markup language; analogous to HTML with CSS; programming environment with many contributed packages and styles; renders the content into a document (PDF); the code must be error-free from the beginning till the end! otherwise you do not see any PDF. In Wageningen, 26 September 2013
  • 20. Who is it for? Anybody writing anything maths related will not find a richer and better quality system. Anybody planning to write research articles, PhD or MSc thesis and make professional and stable overheads; If you are in academia, you really ought to be using it! Even WikiPedia uses LATEX for rendering any formulas that appear on their site. See also: “LATEX isn’t for everyone but it could be for you”by Andy Roberts. In Wageningen, 26 September 2013
  • 21. Why TEX? . . . portability, lightness, security; it is easier than XML (and has less bugs); it is for free it is one of the most sophisticated digital typographical systems in the world (MS Word is not a press software!); You can get LATEX to do just about anything you can think of! (it’s just a question of time / effort) In Wageningen, 26 September 2013
  • 22. TEX saves time focus on content, let LATEX bother about the layout; the software takes care of the actual typesetting, structuring, numbering, referencing and cross-referencing, indexing and page formatting; compile documents in PDF (export to HTML, RTF); hyphenation, typesetting, fine-tuned control; In Wageningen, 26 September 2013
  • 23. LATEX versus MS Word MS Word WYSIWYG world; XML; nonstandard styles; not-suited for large (collaborative) documents; compatibility problems (MS Word 97, 2000, XP, 2003, 2007); LATEX code world; TEX language; standard styles; suited for large collaborative documents; the syntax staid the same ever since the beginning! . . .and the winner is. . . In Wageningen, 26 September 2013
  • 24. MS Word MS Word does in fact have a similar Styles feature (but people don’t often know it exists). Microsoft has a software to prepare documents for press — Microsoft Office Publisher, but even this can not be compared with e.g.Adobe InDesign (do you have money to use this software?) In Wageningen, 26 September 2013
  • 25. TEX versus MS Word3 3 http://www.pinteric.com/miktex.html In Wageningen, 26 September 2013
  • 26. TEX versus MS Word Andy Roberts’ Laws on Word: 1. Likelihood of a crash is directly proportional to the importance of a document. 2. Likelihood of a crash is inversely proportional to the time left before its deadline. 3. Likelihood of a crash is directly proportional to the duration since you last saved. 4. Likelihood of you throwing your computer out of the window is directly proportional to the number of times Clippy pops up. 5. That’s enough laws for now. . . See also: “LATEX vs.MS Word” In Wageningen, 26 September 2013
  • 27. Literature Lamport, L., 1994. LATEX: A Document Preparation System. Addison-Wesley, 291 p. Oetiker, T. 2008. The (Not So) Short Introduction to LATEX2e. self-published, 155 p. Talbot, N.L.C. 2013. Using LaTeX to Write a PhD Thesis, Dickimaw LATEXSeries LATEX on wikibooks. http://en.wikibooks.org/wiki/LaTeX In Wageningen, 26 September 2013
  • 28. Layout galleries The TEX showcase; Page and chapter headings by Vincent Zoonekynd; LATEX font catalogue; Text Processing using LATEX by University of Cambridge Copernicus publications (HESS); In Wageningen, 26 September 2013
  • 29. LATEX to HTML/KML convert your LATEX document to HTML (install TtH); install some KML editor (or use WinEdt); Put the slides as HTML in the description field; to get some idea what you can do with KML, look at the KML interactive sampler and/or Google Earth Outreach; You can also convert from LATEX document to Wiki (e.g.using this Python script); In Wageningen, 26 September 2013