Non-linear: Come back and forth between coauthors, updating with updated results
Copy and pasting results is error prone!
Non-linear: Come back and forth between coauthors, updating with updated results
Copy and pasting results is error prone!
Formatting, reference citing, adding figures can be cumbersome
Non-linear: Come back and forth between coauthors, updating with updated results
Copy and pasting results is error prone!
Formatting, reference citing, adding figures can be cumbersome
Depending on the area, we are mostly used to MS Office, Google docs and similar for collaborative writing
Non-linear: Come back and forth between coauthors, updating with updated results
Copy and pasting results is error prone!
Formatting, reference citing, adding figures can be cumbersome
Depending on the area, we are mostly used to MS Office, Google docs and similar for collaborative writing
In some areas, researchers use LATEX but it has a learning curve
Write as we analyze
Integrate code and text: Literate programming (Knuth 1984)
Write as we analyze
Integrate code and text: Literate programming (Knuth 1984)
Facilitate coauthors revision
Write as we analyze
Integrate code and text: Literate programming (Knuth 1984)
Facilitate coauthors revision
Update if there are changes
Write as we analyze
Integrate code and text: Literate programming (Knuth 1984)
Facilitate coauthors revision
Update if there are changes
Allow citing, formatting and submitting
Write as we analyze
Integrate code and text: Literate programming (Knuth 1984)
Facilitate coauthors revision
Update if there are changes
Allow citing, formatting and submitting
Do you use already a reference manager?
Do you use .bib
and know how to create one?
Do you know about rmarkdown?
Do you know how to cite from .bib
in markdown?
Do you know about LATEX?
Do you use LATEX locally or using Overleaf?
Do you use git
to version control your writing process?
Document preparation system with high typographic quality
Text files with .tex
extension. Output format: PDF
Document preparation system with high typographic quality
Text files with .tex
extension. Output format: PDF
Text files: can be used with version control such as git
Document preparation system with high typographic quality
Text files with .tex
extension. Output format: PDF
Text files: can be used with version control such as git
Deals correctly with math, scientific, algebraic notation
Document preparation system with high typographic quality
Text files with .tex
extension. Output format: PDF
Text files: can be used with version control such as git
Deals correctly with math, scientific, algebraic notation
Typesetting (pagination, figure posititoning, general formatting)
Document preparation system with high typographic quality
Text files with .tex
extension. Output format: PDF
Text files: can be used with version control such as git
Deals correctly with math, scientific, algebraic notation
Typesetting (pagination, figure posititoning, general formatting)
LATEX files can be submitted directly to some journals + dissertation templates in many institutions
Document preparation system with high typographic quality
Text files with .tex
extension. Output format: PDF
Text files: can be used with version control such as git
Deals correctly with math, scientific, algebraic notation
Typesetting (pagination, figure posititoning, general formatting)
LATEX files can be submitted directly to some journals + dissertation templates in many institutions
text
__bold__
and **bold**
superscript^2^
~~strikethrough~~
[link](www.rstudio.com)
# Heading 1
## Heading 2
+ unnumbered list
+ unnumbered list
1. numbered list
1. numbered list
And all html commands!
<center> </center>
You can hide text <!-- with html comments -->
You can hide text
Documentation: https://github.com/ThinkR-open/remedy
Installs as an RStudio addin
You can modify the keyboard shortcuts
Tools > Modify keyboard shortcuts
ctrl + b
-> boldctrl + i
-> italicctrl + k
-> linkctrl + 1
-> h1 (level 1 header)ctrl + 2
-> h1 (level 2 header)ctrl + r
-> insert chunk
Native markdown: 
HTML: <img src ---->
Native markdown: 
HTML: <img src ---->
LATEX: \includegraphics{}
Native markdown: 
HTML: <img src ---->
LATEX: \includegraphics{}
For all formats: knitr::include_graphics(/figs/fig.png)
(inside a chunk)
Native markdown: 
HTML: <img src ---->
LATEX: \includegraphics{}
For all formats: knitr::include_graphics(/figs/fig.png)
(inside a chunk)
fig.alt =
parameterFormat
| name1 | name2 | name3 |
|:-----:|:-----:|:-----:|
| text1 | text2 | text3 |
| text1 | text2 | text3 |
Result
name1 | name2 | name3 |
---|---|---|
text1 | text2 | text3 |
text1 | text2 | text3 |
Format
| name1 | name2 | name3 |
|:-----:|:-----:|:-----:|
| text1 | text2 | text3 |
| text1 | text2 | text3 |
Result
name1 | name2 | name3 |
---|---|---|
text1 | text2 | text3 |
text1 | text2 | text3 |
knitr::kable()
Format
| name1 | name2 | name3 |
|:-----:|:-----:|:-----:|
| text1 | text2 | text3 |
| text1 | text2 | text3 |
Result
name1 | name2 | name3 |
---|---|---|
text1 | text2 | text3 |
text1 | text2 | text3 |
knitr::kable()
Save citations, publication files (optional), assist in the citation and bibliographies
Zotero, Mendeley, EndNote, Reference Manager
Save citations, publication files (optional), assist in the citation and bibliographies
Zotero, Mendeley, EndNote, Reference Manager
To cite in LATEX and markdown: BibTeX, File format: .bib
Save citations, publication files (optional), assist in the citation and bibliographies
Zotero, Mendeley, EndNote, Reference Manager
To cite in LATEX and markdown: BibTeX, File format: .bib
## @Manual{,## title = {vegan: Community Ecology Package},## author = {Jari Oksanen and F. Guillaume Blanchet and Michael Friendly and Roeland Kindt and Pierre Legendre and Dan McGlinn and Peter R. Minchin and R. B. O'Hara and Gavin L. Simpson and Peter Solymos and M. Henry H. Stevens and Eduard Szoecs and Helene Wagner},## year = {2020},## note = {R package version 2.5-7},## url = {https://CRAN.R-project.org/package=vegan},## }
Reference storage and management in a local app
A browser extension downloads citation and PDF if available
Reference storage and management in a local app
A browser extension downloads citation and PDF if available
A connector for MS Word and LibreOffice
Reference storage and management in a local app
A browser extension downloads citation and PDF if available
A connector for MS Word and LibreOffice
A citation styles repository: Zotero style repository. File extension: .csl
Reference storage and management in a local app
A browser extension downloads citation and PDF if available
A connector for MS Word and LibreOffice
A citation styles repository: Zotero style repository. File extension: .csl
A site that creates citations from URL or DOI https://zbib.org/
Reference storage and management in a local app
A browser extension downloads citation and PDF if available
A connector for MS Word and LibreOffice
A citation styles repository: Zotero style repository. File extension: .csl
A site that creates citations from URL or DOI https://zbib.org/
A way to create bibliographies in .bib
BiBTex, Zotero(BetterBibTex
), and Mendeley: create .bib
for each collection, keeps updated
refs.bib
and style.csl
in /citation
folder include .bib
and .csl
in the YAML header:bibliography: ../citation/refs.bib
csl: ../citation/nature.csl
With refs.bib
and style.csl
in /citation
folder include .bib
and .csl
in the YAML header:
bibliography: ../citation/refs.bib
csl: ../citation/nature.csl
Cite format: @name_word_year
(check in the reference manager for the citation key)
With refs.bib
and style.csl
in /citation
folder include .bib
and .csl
in the YAML header:
bibliography: ../citation/refs.bib
csl: ../citation/nature.csl
Cite format: @name_word_year
(check in the reference manager for the citation key)
[@dignazio_data_2020]
-> (D'Ignazio & Klein 2020)@dignazio_data_2020
-> D'Ignazio & Klein (2020)[@noble_algorithms_2018, @dignazio_data_2020]
-> (Noble 2018, D'Ignazio & Klein 2020)With refs.bib
and style.csl
in /citation
folder include .bib
and .csl
in the YAML header:
bibliography: ../citation/refs.bib
csl: ../citation/nature.csl
Cite format: @name_word_year
(check in the reference manager for the citation key)
[@dignazio_data_2020]
-> (D'Ignazio & Klein 2020)@dignazio_data_2020
-> D'Ignazio & Klein (2020)[@noble_algorithms_2018, @dignazio_data_2020]
-> (Noble 2018, D'Ignazio & Klein 2020)Default: the bibliography is added at the end of the text, but can be placed anywhere with: <div id="refs"></div>
.bib
in Mendeley.bib
in ZoteroCreate the collection
You can download directly from the internet, even Amazon
Click to save
In the app, BetterBibTex creates the key
Export the collection
BetterBibTeX - keep updated!
the .bib is a text file
download citation styles
bookdown create whole books from several .Rmd
pagedown templates for thesis, CVs, in html
rticles: LATEX templates, accepted by journals (plos, Elsevier, Frontiers, etc.) only PDF!
remotes::install_github("rstudio/rticles")rticles::journals()
Resist the temptation to create a single document mixing text and code (Don't do things just because you can)
Resist the temptation to create a single document mixing text and code (Don't do things just because you can)
Scripts and outputs in separate folders than documents
Several chapters - several folders, don't write in a single .Rmd
Resist the temptation to create a single document mixing text and code (Don't do things just because you can)
Scripts and outputs in separate folders than documents
Several chapters - several folders, don't write in a single .Rmd
Don't choose formats too early but don't leave this to the end
R Markdown: The Definitive Guide https://bookdown.org/yihui/rmarkdown/
R markdown cookbook: https://bookdown.org/yihui/rmarkdown-cookbook/
https://rmarkdown.rstudio.com https://bookdown.org/yihui/rmarkdown/interactive-documents.html
Keyboard shortcuts
↑, ←, Pg Up, k | Go to previous slide |
↓, →, Pg Dn, Space, j | Go to next slide |
Home | Go to first slide |
End | Go to last slide |
Number + Return | Go to specific slide |
b / m / f | Toggle blackout / mirrored / fullscreen mode |
c | Clone slideshow |
p | Toggle presenter mode |
t | Restart the presentation timer |
?, h | Toggle this help |
Esc | Back to slideshow |