Oliver's Blog

TeXtLite Theme with Quarto

Writing Hugo Blog Post in Quarto

Feb 25, 2023
Alt text renders to image caption. Markdown formatting is available.

TeXtLite Features

  • Post tags & subtitle
  • Sidenotes1 & Floating TOC (on screens wider than 1280px) through sidenotes.js
  • Math support through KaTeX (clickable buttons to copy TeX commands)
  • Client-side searching with Fuse.js
  • Hugo native features
  • Comment systems

Math

$$ \begin{align} \tag{1.1} Y_i &\sim Normal(\mu_i, \sigma) \\ \tag{1.2} \mu_i &= \alpha + \beta x_i \end{align} $$

Diagram with GoAt

ARDAPDR

Quarto Integration

Dynamic R Code

1head(iris)
# A tibble: 6 x 5
  Sepal.Length Sepal.Width Petal.Length Petal.Width Species
         <dbl>       <dbl>        <dbl>       <dbl> <fct>  
1          5.1         3.5          1.4         0.2 setosa 
2          4.9         3            1.4         0.2 setosa 
3          4.7         3.2          1.3         0.2 setosa 
4          4.6         3.1          1.5         0.2 setosa 
5          5           3.6          1.4         0.2 setosa 
6          5.4         3.9          1.7         0.4 setosa 
1# Set plot margins  # (b, l, t, r)
2par(oma=c(0,0,0,0))  # Outer margin
3par(mar=c(4.5, 4.5, 1, 3) )  # margin
4
5with(iris, {
6   plot(Sepal.Length, Petal.Width, pch=19, 
7        col=c(setosa=2, versicolor=3, virginica=4)[Species] )
8})


  1. Hover on the number in the text to see a hover footnote. ↩︎