---
title: "A Tufte Inspired Manuscript"
subtitle: "Using Quarto... and Typst!"
# shorttitle: "Handout Layout"
documenttype: Handout
abstract: |
  This **Tufte Inspired** manuscript format for Quarto honors Edward Tufte's distinctive style. It simplifies creating handout-like documents and websites by emulating the aesthetics of Tufte's books. This document serves two purposes: It showcases the format and acts as an evolving authoring guide.

author: 
  - name: "Tufte Inspired Developers"
    email: github.com/fredguth/tufte-inspired
toc: true

version: [v.1.0]
date: last-modified
execute: 
  echo: fenced
bibliography: references.bib
bibliographystyle: "springer-humanities-author-date"
# jupyter: python3
  
---


# Introduction

::: {.column-margin dy=-11cm}

![Edward R. Tufte, godfather of charts, slayer of slide decks. Art by Fred Guth and MidJourney.](/Images/et_midjourney_transparent.png){width=75%}

:::

Professor Emeritus of Political Science, Statistics and Computer Sciente at Yale University, Edward Tufte is an expert in the presentation of informational.

Tufte's style is known for extensive use of sidenotes, integration of graphics with text and typography[^2]. 

[^2]: Tufte's [website](https://www.edwardtufte.com/tufte/): [https://www.edwardtufte.com/tufte/](https://www.edwardtufte.com/tufte/)



::: {.fullwidth}


![Minard's map of Napoleon's Russian campaign, described by Edward Tufte as "may well be the best statistical graphic ever drawn" @Tufte:vdqi[dy.-11cm].](/Images/Minard.png)

::: 



<!-- 

```{r}
#| label: fig-margin
#| fig-cap: "MPG vs horsepower, colored by transmission."
#| column: margin
#| message: false
library(ggplot2)
mtcars2 <- mtcars
mtcars2$am <- factor(
  mtcars$am, labels = c('automatic', 'manual')
)
ggplot(mtcars2, aes(hp, mpg, color = am)) +
  geom_point() + geom_smooth() +
  theme(legend.position = 'bottom')
```

Note the use of the `fig-cap` chunk option to provide a figure caption. You can adjust the proportions of figures using the `fig-width` and `fig-height` chunk options. These are specified in inches, and will be automatically scaled down to fit within the handout margin. -->

# Usage

## Arbitrary Margin Content

You can include anything in the margin by places the class `.column-margin` on the element. See an example on the right about the first fundamental theorem of calculus.

::: {.column-margin dy=-6em}
We know from *the first fundamental theorem of calculus* that for $x$ in $[a, b]$:

$$\frac{d}{dx}\left( \int_{a}^{x} f(u)\,du\right)=f(x).$$

:::


## Arbitrary Full Width Content

Any content can span to the full width of the page, simply place the element in a `div` and add the class `column-page-right`. For example, the following code will display its contents as full width.

``` md
::: {.fullwidth}
Any _full width_ content here.
:::
```

Below is an example:

::: {.fullwidth}

```{r}
#| label: fullwidth
#| fig-cap: "A full width figure."
#| fig-width: 11
#| fig-height: 3
#| fig-column: page-right
#| warning: false
ggplot(diamonds, aes(carat, price)) + geom_smooth() +
  facet_grid(~ cut)
```

:::


# Acknowledgements {.unlisted}

Thanks to the Quarto and Typst teams for these wonderful tools.  This format is made possible by [Quarto's community](https://github.com/quarto-dev/quarto-cli/discussions?discussions_q=author%3Afredguth). Special thanks to:

- Mickaël Canouil (`@mcanouil`);
- Gordon Woodhull (`@gordonwoodhull`);
- Charles Teague (`@dragonstyle`);
- Raniere Silva (`@rgaiacs`); and
- Christophe Dervieux (`@cderv`)
