Skip to content

Commit

Permalink
Add dedication (#121)
Browse files Browse the repository at this point in the history
* Add dedication

* add newline at end of index

* Revert igraph version

* Unified brief dedication

* Add dedication

* add newline at end of index

* Revert igraph version

* Unified brief dedication

* Capitalize Git

Co-authored-by: Isabella Velásquez <[email protected]>

* Dedicate with emphasis!

---------

Co-authored-by: Isabella Velásquez <[email protected]>
  • Loading branch information
szimmer and ivelasq authored Apr 16, 2024
1 parent 66674a4 commit f7dcc4c
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ RawData/LAPOP_2021/
# ignore complete NCVS data files due to DUA
RawData/NCVS_2021/ICPSR_38429/
osf_dl/*.rds
latex/before_body_ded.tex
2 changes: 1 addition & 1 deletion 14-ambarom-vignette.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ covid_educ_ests
Finally, to view the results for all countries, we can use the {gt} package to construct Table \@ref(tab:ambarom-covid-ed-der-tab).

```{r}
#| label ambarom-covid-ed-gt
#| label: ambarom-covid-ed-gt
covid_educ_ests_gt <- covid_educ_ests %>%
gt(rowname_col = "Country") %>%
cols_label(
Expand Down
2 changes: 1 addition & 1 deletion _output.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ bookdown::gitbook:
bookdown::pdf_book:
includes:
in_header: latex/preamble.tex
before_body: latex/before_body.tex
before_body: latex/before_body_ded.tex
after_body: latex/after_body.tex
keep_tex: true
dev: "cairo_pdf"
Expand Down
20 changes: 20 additions & 0 deletions index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,23 @@ print_gt_book <- function(gtobj, ref){
```

`r if (knitr:::is_html_output()) '# Dedication {-}'`

```{r}
#| label: index-dedication-text
#| echo: false
#| results: asis
thanks <- "To Will, Tom, and Drew, thanks for all the help with additional chores and plenty of Git consulting!"
if (knitr:::is_html_output()){
cat(thanks)
} else if(knitr:::is_latex_output()){
bb <- readLines(here::here("latex", "before_body_temp.tex"))
bb[which(bb=="placeholder")] <- thanks
writeLines(bb, here::here("latex", "before_body_ded.tex"))
rm(bb)
}
rm(thanks)
```
3 changes: 1 addition & 2 deletions latex/before_body.tex → latex/before_body_temp.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
\thispagestyle{empty}

\begin{center}
placeholder for dedication in latex before body tex
%\includegraphics{images/dedication.pdf}
placeholder
\end{center}

\setlength{\abovedisplayskip}{-5pt}
Expand Down
20 changes: 20 additions & 0 deletions renv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,16 @@
],
"Hash": "8b331e659e67d757db0fcc28e689c501"
},
"here": {
"Package": "here",
"Version": "1.0.1",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"rprojroot"
],
"Hash": "24b224366f9c2e7534d2344d10d59211"
},
"hexbin": {
"Package": "hexbin",
"Version": "1.28.3",
Expand Down Expand Up @@ -1830,6 +1840,16 @@
],
"Hash": "0d34b89b43e900467e60f5449226f3e3"
},
"rprojroot": {
"Package": "rprojroot",
"Version": "2.0.4",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R"
],
"Hash": "4c8415e0ec1e29f3f4f6fc108bef0144"
},
"rstudioapi": {
"Package": "rstudioapi",
"Version": "0.14",
Expand Down

0 comments on commit f7dcc4c

Please sign in to comment.