R for
Authoring!!

OOH Session #75…
University Syllabus via typst
Part III: Fomenting moar Formatting

Open Office Hours
(April 29, 2025)

  • Recap session #74
  • Focal issue(s):
    • University Syllabus
      via typst…
      Part III: Fomenting moar Formatting
  • Shared problem-solving

Recap of Session
#74:

Syllabus Tables & Citations via typst

---
title: "PSYC 313: Psychology of Testing and Assessment"
format: 
  typst:
    bibliography: classbib.bib            
    csl: apa-cv (1).csl
    suppress-bibliography: true           
citeproc: true
---

``{r}
#| echo: false
#| warning: false
#| message: false

library(gt)

col1 <- c("Lectures:", "Labs:", "Rooms:", "Professor:", "Office Hours:")
col2 <- c("3:25–4:45 Tuesdays & Thursdays",
 "5:15–6:30 Thursdays",
 "JRC LL45",
 "John Kulas (jtkulas@ergreports.com)",
 "by Appointment")

class <- as.data.frame(cbind(col1,col2))

gt(class) |>
  tab_style(
    style=cell_borders(weight=px(0)),
    locations=cells_body()
  )

``

## Required Text

@kaplan2001psychological







#
1
Zotero citation style that renders full in-text APA citations
2
typst is unique across Quarto formats – default citation processing is performed by typst, so citeproc: true is required to both: 1) recognize .csl, and 2) suppress the end–of–document bibligraphy
3
highly customizable & most commonly recommended option for table fiddling within typst 🎻🎻🎻
4
tab_style options seem most helpful for replicating desired border features (within gt)

Today…

To do list:

Session Info (April 29, 2025) Rendering:

R version 4.5.0 (2025-04-11 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 10 x64 (build 19045)

Matrix products: default
  LAPACK version 3.12.1

locale:
[1] LC_COLLATE=English_United States.utf8 
[2] LC_CTYPE=English_United States.utf8   
[3] LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.utf8    

time zone: America/Chicago
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] fontawesome_0.5.3

loaded via a namespace (and not attached):
 [1] digest_0.6.37     assertthat_0.2.1  lubridate_1.9.4   fastmap_1.2.0    
 [5] xfun_0.52         magrittr_2.0.3    glue_1.8.0        stringr_1.5.1    
 [9] knitr_1.50        htmltools_0.5.8.1 timechange_0.3.0  generics_0.1.3   
[13] rmarkdown_2.29    lifecycle_1.0.4   cli_3.6.5         vctrs_0.6.5      
[17] compiler_4.5.0    purrr_1.0.4       emo_0.0.0.9000    rstudioapi_0.17.1
[21] tools_4.5.0       evaluate_1.0.3    yaml_2.3.10       rlang_1.1.6      
[25] jsonlite_2.0.0    crayon_1.5.3      stringi_1.8.7