Skip to content

Commit b7f23cf

Browse files
committed
delete notebook
1 parent 99b9cef commit b7f23cf

File tree

3 files changed

+507
-7
lines changed

3 files changed

+507
-7
lines changed

55cdf6acf54f7e6e

Lines changed: 0 additions & 1 deletion
This file was deleted.

quarto-eth-phd-thesis.qmd

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Ensure the following are installed:
4444
Directly using Quarto from the the terminal:
4545

4646
```{bash}
47+
#| eval: false
4748
quarto use template blenback/quarto-eth-phd-thesis
4849
```
4950

@@ -54,6 +55,7 @@ Once you do that you can render from within the directory.
5455
Or by cloning the repository
5556

5657
```{bash}
58+
#| eval: false
5759
git clone https://github.com/YOUR_USERNAME/quarto-eth-phd-thesis.git
5860
cd quarto-eth-phd-thesis
5961
```
@@ -67,12 +69,14 @@ Open the `quarto-eth-phd-thesis.Rproj` file in RStudio to access the full projec
6769
From the RStudio console or terminal:
6870

6971
```{bash}
72+
#| eval: false
7073
quarto render
7174
```
7275

7376
## 🗂️ Project Structure
7477

7578
```{bash}
79+
#| eval: false
7680
quarto-eth-phd-thesis/
7781
├── bibliography.bib # BibTeX file for references
7882
├── _book/ # Output directory for rendered book
@@ -136,6 +140,7 @@ quarto-eth-phd-thesis/
136140
I use the `.Rprofile` to load R packages rather than specifying packages within individual `.qmd` files or `.R` scripts as the .Rprofile is called prior to rendering each file. Add any additional packages you require here.
137141

138142
```{bash}
143+
#| eval: false
139144
#load packages
140145
packs<-c("ggplot2", "knitr", "kableExtra", "ggthemes", "stringr")
141146
@@ -150,6 +155,7 @@ Also in the `.Rprofile` are some functions to streamline uniform styling of figu
150155
For tables the `thesis_tbl()` function sets options for `knitr::kbl()` and `kableExtra::kable_styling()` to produce booktabs style tables, with center aligned content and bold column titles:
151156

152157
```{bash}
158+
#| eval: false
153159
thesis_tbl <- function(x, escape, ltable = FALSE) {
154160
x %>%
155161
kbl(digits = 3,
@@ -172,7 +178,7 @@ thesis_tbl <- function(x, escape, ltable = FALSE) {
172178
An example of applying this function is included in `chapters/paper-01-qmd`:
173179

174180
```{bash}
175-
#| tbl-pos: H
181+
#| eval: false
176182
177183
#load csv of allocation parameter summary statistics
178184
Calibration_summary <- read.csv("chapters/paper-01/data/Validation_summary.csv")
@@ -189,6 +195,7 @@ Calibration_summary %>%
189195
For figures the function `theme_publication()` sets a custom `ggplot2` theme:
190196

191197
```{bash}
198+
#| eval: false
192199
#' theme_publication
193200
#'
194201
#' custom ggplot2 theme to apply to all plots
@@ -236,6 +243,7 @@ theme_thesis <- function(
236243
In addition the `.Rprofile` contains a series of functions for producing custom continuous and discrete color palettes with the base set of colors specified within the function `thesis_color()`:
237244

238245
```{bash}
246+
#| eval: false
239247
thesis_color <- function(...) {
240248
241249
thesis_colors <- c(
@@ -271,6 +279,7 @@ thesis_color <- function(...) {
271279
These color palettes can be applied using defined `ggplot2::scale_color_*` and `ggplot2::scale_fill_*` methods. An example of applying the `theme_thesis()` and `scale_color_thesis()` functions is provided in `chapters/paper-01/paper-01-figs.R:`
272280

273281
```{bash}
282+
#| eval: false
274283
p <- ggplot(mtcars, aes(x = wt, y = mpg, color = factor(cyl))) +
275284
geom_point(size = 3) +
276285
labs(
@@ -287,7 +296,7 @@ p <- ggplot(mtcars, aes(x = wt, y = mpg, color = factor(cyl))) +
287296

288297
The template allows you to add a coverpage using the [`quarto_titlepages`](https://nmfs-opensci.github.io/quarto_titlepages/) extension. The cover page YAML options are set in in `index.qmd`:
289298

290-
``` yaml
299+
```{yaml}
291300
---
292301
format:
293302
pdf:
@@ -326,7 +335,7 @@ Here I have set the title and subtitle using the extension options but you could
326335

327336
The ETH doctoral regulations stipulate that the thesis must include a translation of the summary or abstract into one of the Swiss national languages (following the English version). I have added a seperate `.qmd` file to include this and YAML key for specifying the translation of summary in `_quarto.yml`:
328337

329-
``` yaml
338+
```{yaml}
330339
---
331340
summarytitle: Zusammenfassung
332341
---
@@ -336,7 +345,7 @@ summarytitle: Zusammenfassung
336345

337346
To create the standard ETH title page for thesis I have adapted an [existing LaTeX template](https://github.com/tuxu/ethz-thesis/blob/master/frontbackmatter/titlepage.tex) with the relevant lines included in `ETH-thesis-template.cls`. Rather than directly editing the LaTeX I have defined YAML keys in `partials/title.tex` so that the fields can be filled directly in `_quarto.yml`:
338347

339-
``` yaml
348+
```{yaml}
340349
---
341350
titlepage-title: "Your thesis title"
342351
titlepage-author: "Jane Doe"
@@ -362,7 +371,7 @@ Which results in the title page being rendered as:
362371

363372
In the template I have included typical chapters such as the Introduction, State of the Art, Structure, Synthesis and an example of chapter based on a published paper (`chapters/paper-01-qmd`). Each chapter is a separate `.qmd` file and you can include/exclude them, or add additional chapters, using the `chapters` YAML key in `_quarto.yml`:
364373

365-
``` yaml
374+
```{yaml}
366375
book:
367376
date: last-modified
368377
chapters:
@@ -394,6 +403,7 @@ The code for this is included in `chapters/paper-01/paper-01.qmd` and it uses th
394403
My preferred method of preparing figures for Quarto documents is to produce and save them via dedicated R scripts rather than directly within the `.qmd` files themselves. This R script is then sourced directly at the head of the respective `.qmd` file to ensure the most up to date figures are used and the images are then included for each figure as in `paper-01.qmd`:
395404

396405
```{bash}
406+
#| eval: false
397407
#source the script that prepares all the figures
398408
source("chapters/paper-01/paper-01-figs.R")
399409
@@ -408,7 +418,7 @@ I do this because I find that when I have multiple figures with quite lengthy co
408418

409419
`endmatter/references.qmd` places a div to ensure that all references for all chapters are placed in this section:
410420

411-
``` {bash}
421+
``` {bash}
412422
::: {#refs}
413423
:::
414424
```

0 commit comments

Comments
 (0)