Skip to content

Materials for a workshop on the Closeread Quarto extension.

License

Notifications You must be signed in to change notification settings

qmd-lab/closeread-workshop

Repository files navigation

Closeread Workshop

Materials for a one hour workshop on using the Closeread extension for Quarto to author scrollytelling articles with data from plain markdown. Throughout the workshop, please refer to the official documentation: https://closeread.dev/.

Materials

You can open the materials for this workshop in a Berkeley DataHub account by clicking the links below.

Then click on the terminal tab and change your directory to the new file of workshop materials

cd closeread-workshop

Agenda

1. What is Scrollytelling?

Examples:

2. Components of a Closeread

Starting doc: 1-components-of-closeread.qmd

Solution: solutions/1-components-of-closeread-solution.qmd

Prereqs

Two Quarto structures that Closeread takes advantage of is the fenced div and the bracketed span. Please have a look at the Quarto docs to get a sense of how this syntax works. The syntax is also strongly inspired by the syntax for cross-references.

Our Turn

  1. Experiment with different quarto formats.
  2. Instructor only: Remove _extension then run quarto add qmd-lab/closeread in this directory.
  3. Switch format to closeread-html.
  4. Add cr-section to encompass the image and first code cell for the table.
  5. Flag image and table as stickies with #cr- ids.
  6. Add triggers to the items with @cr-.
  7. Change style.
  8. Make non-cr-section narrower by adjusting the grid:body-width.

Your Turn

Move the second code cell for the scatterplot into the cr-section, make the plot a sticky, then trigger it. Also experiment with additional styles.

Our Turn Again

  1. Add .scale-to-fit
  2. Turn on debug mode

2. Working with Text and Code

Starting doc: 2-text-and-code.qmd

Solution: solutions/2-text-and-code.qmd

Our Turn

  1. Create a cr-section for Working with Text.
  2. Flag the poem as a sticky.
  3. Add .scale-to-fit.
  4. Add a trigger on the first narrative block.
  5. Instead, wrap the level 2 header and the first narrative block with a div and use focus-on to trigger the poem.
  6. Add a focus effect to the second block: highlight="1".
  7. Add a span id to the first reference to birth.
  8. Add a focus effect to third block to highlight the span.

Your Turn

Create a second closeread section for the Working with Code section and treat the code block as a sticky. Split the paragraph into narrative blocks and add focus effects (highlight and zoom) to draw attention to the relevant components of the code.

Our Turn

  1. Change the layout.

3. Static Graphics

Starting doc: 3-static-images.qmd

Solution: solutions/3-static-images.qmd

Our Turn

  1. This will largely be an inspection of how to create an illusion of animation even on static graphics.

4. Animated Graphics

Starting doc: 4-animated-graphics.qmd

Solution: solutions/4-animated-graphics.qmd

Our Turn

  1. Add a cr-section around the description of our big globe.
  2. Set the layout to .overlay-center
  3. Flag the plot as a sticky.
  4. Create a trigger on the first narrative block.
  5. Set the angle in the plot to crTriggerProgress.
  6. Wrap the narrative blocks in a .progress-block.
  7. Reset the angle to track crProgressBlock.

Coming soon

  • videos
  • figure highlighting
  • math

About

Materials for a workshop on the Closeread Quarto extension.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published