Skip to content

Commit d4b4967

Browse files
committed
varia
1 parent 432e4f1 commit d4b4967

File tree

5 files changed

+73
-66
lines changed

5 files changed

+73
-66
lines changed

teach/stats/r4a/2025/index-part1.qmd

+6-5
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,15 @@ A <img src='https://raw.githubusercontent.com/zoometh/thomashuet/master/img/app-
132132

133133
::: {.column width="30%"}
134134

135-
<img src='https://raw.githubusercontent.com/zoometh/thomashuet/master/img/inst-inrap-archeozoologie-ex3.jpg' style='height: 350px;vertical-align: middle;'>
135+
<img src='https://raw.githubusercontent.com/zoometh/thomashuet/master/img/inst-inrap-archeozoologie-ex3.png' style='height: 350px;vertical-align: middle;'>
136136

137137
:::
138138

139-
<small>L'archéozoologie &copy; Inrap</small>
140139

141140
:::
142141

142+
<small>L'archéozoologie &copy; Inrap</small>
143+
143144

144145

145146
### Academy
@@ -420,7 +421,7 @@ etc.
420421

421422
::::
422423

423-
424+
# Narrative parts {data-background-color=#add8e6}
424425

425426
## Markdown syntax {#text}
426427

@@ -1018,7 +1019,7 @@ Footnotes numbering are automatically updated/incremented
10181019

10191020
### Variables
10201021

1021-
Variables calculated inside the <span class="r-code">code chunks</span> ...
1022+
Variables calculated inside the <span class="r-code">code chunks</span>
10221023

10231024
<div class="div-code">
10241025
<small>code chunk</small>
@@ -1034,7 +1035,7 @@ data("Handaxes")
10341035
number.of.axes <- nrow(Handaxes)
10351036
```
10361037

1037-
... can be called in the <span class="r-text">narrative parts</span>
1038+
can be called in the <span class="r-text">narrative parts</span>
10381039

10391040
<div class="div-text">
10401041
<small>narrative part</small>

teach/stats/r4a/2025/index-part2.qmd

+33-20
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pagetitle: "Report with R Markdown - part 2"
3333
footer: "Report with R Markdown - R4Rchaeologists <img src='https://raw.githubusercontent.com/zoometh/thomashuet/master/teach/www/logo.png' style='height: 35px;vertical-align: middle;'> Università di Pisa, Jan 2025 - <em>presented by </em> Thomas Huet"
3434
---
3535

36-
# Code chunks
36+
# Code chunks {data-background-color=#EBEBEB}
3737

3838
## Code chunks {#chunks}
3939

@@ -282,7 +282,7 @@ knitr::include_graphics(fibula)
282282

283283
\
284284

285-
# YAML
285+
# YAML {data-background-color=#FFCCCB}
286286

287287

288288
## YAML {#yaml}
@@ -300,6 +300,7 @@ date: '2023-02-05'
300300
```
301301
</div>
302302

303+
\
303304

304305
```{=html}
305306
<script src="https://gist.github.com/zoometh/d1b4945d1c16f853a7888ede03c4807d.js"></script>
@@ -309,37 +310,50 @@ date: '2023-02-05'
309310

310311
## Dates
311312

313+
:::: {.columns}
314+
315+
::: {.column width="50%"}
316+
312317
<div class="div-yaml">
313318
<small>header YAML</small>
314319
```{.yml code-line-numbers="4"}
315320
---
316321
title: "temp"
317322
output: pdf_document
318-
date: "'r format(Sys.time(), '%D')'"
323+
date: "'r format(Sys.time(),'%D')'"
319324
---
320325
```
321326
</div>
322327

323-
`r format(Sys.time(), '%D')`
328+
`r format(Sys.time(),'%D')`
329+
330+
:::
324331

332+
::: {.column width="50%"}
325333

326334
<div class="div-yaml">
327335
<small>header YAML</small>
328336
```{.yml code-line-numbers="4"}
329337
---
330338
title: "temp"
331339
output: pdf_document
332-
date: "'r format(Sys.time(), '%d %B %Y')'"
340+
date: "'r format(Sys.time(),'%d %B %Y')'"
333341
---
334342
```
335343
</div>
336344

337-
`r format(Sys.time(), '%d %B %Y')`
345+
`r format(Sys.time(),'%d %B %Y')`
346+
347+
:::
348+
349+
::::
350+
351+
338352

339353
::: {.callout-warning}
340354
Here the <notes>`</notes> quote has been changed to a <notes>'</notes> quote for display purpose
341355
:::
342-
\
356+
343357

344358
## Output
345359

@@ -389,7 +403,8 @@ output:
389403

390404
## References
391405

392-
Locate the bibliographic file (e.g. [`references.bib`](https://github.com/zoometh/thomashuet/blob/main/teach/stats/r4a/2025/references.bib)).
406+
Locate the bibliographic file (e.g. [`references.bib`](https://github.com/zoometh/thomashuet/blob/main/teach/stats/r4a/2025/references.bib)), here in the same folder as the `.Rmd` file.
407+
393408

394409
<div class="div-yaml">
395410
<small>header YAML</small>
@@ -403,18 +418,10 @@ bibliography: references.bib
403418
```
404419
</div>
405420

406-
Here in the same folder as the `.Rmd` file.
407-
408-
409-
```{=html}
410-
<iframe width="1000" height="400" src="https://bookdown.org/yihui/rmarkdown/html-document.html#html-document" title="YAML for R Markdown"></iframe>
411-
```
412-
413-
see [Xie <em>et al.</em>](https://bookdown.org/yihui/rmarkdown/html-document.html#html-document) [-@Xie18]
414421

415422
\
416423

417-
# More HTML
424+
# More HTML {data-background-color=#FFFF00}
418425

419426

420427
## Styling
@@ -489,7 +496,7 @@ Use a <img src='https://raw.githubusercontent.com/zoometh/thomashuet/master/img/
489496
```
490497
<small><https://github.com/zoometh/thomashuet/blob/main/teach/stats/r4a/styles.css></small>
491498

492-
This file is called inside the <span class="r-yaml">YAML header</span> of the document:
499+
This file is called inside the <span class="r-yaml">YAML header</span> of the document, here in the same folder as the `.Rmd` file.
493500

494501
<div class="div-yaml">
495502
<small>header YAML</small>
@@ -512,7 +519,7 @@ pagetitle: Report with R Markdown
512519
```
513520
</div>
514521

515-
Here in the same folder as the `.Rmd` file. Do:
522+
Do:
516523

517524
<div class="div-text">
518525
<small>narrative part</small>
@@ -550,7 +557,7 @@ Customize with CSS like this <notes>**dodgerblue** background</notes>.
550557

551558
:::
552559

553-
# Advanced publishing
560+
# Advanced publishing {data-background-color=#008000}
554561

555562

556563
## Interactivity
@@ -652,6 +659,12 @@ output: html_document
652659
```
653660
</div>
654661

662+
```{=html}
663+
<iframe width="1000" height="400" src="https://bookdown.org/yihui/rmarkdown/html-document.html#html-document" title="YAML for R Markdown"></iframe>
664+
```
665+
666+
see [Xie <em>et al.</em>](https://bookdown.org/yihui/rmarkdown/html-document.html#html-document) [-@Xie18]
667+
655668
## PDF
656669

657670
::: {.panel-tabset}

teach/stats/r4a/2025/site/index-part1.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -530,10 +530,11 @@ <h2>Why authoring with R Markdown?</h2>
530530
</div><div class="column" style="width:40%;">
531531
<p><img src="https://raw.githubusercontent.com/zoometh/thomashuet/master/img/inst-inrap-archeozoologie-ex2.jpg" style="height: 350px;vertical-align: middle;"></p>
532532
</div><div class="column" style="width:30%;">
533-
<p><img src="https://raw.githubusercontent.com/zoometh/thomashuet/master/img/inst-inrap-archeozoologie-ex3.jpg" style="height: 350px;vertical-align: middle;"></p>
534-
</div><p><small>L’archéozoologie © Inrap</small></p>
533+
<p><img src="https://raw.githubusercontent.com/zoometh/thomashuet/master/img/inst-inrap-archeozoologie-ex3.png" style="height: 350px;vertical-align: middle;"></p>
535534
</div>
536535
</div>
536+
<p><small>L’archéozoologie © Inrap</small></p>
537+
</div>
537538
<div id="tabset-2-2">
538539
<p><span class="r-md">R Markdown</span> is often enough for academic reporting. It supports:</p>
539540
<ul>

0 commit comments

Comments
 (0)