Skip to content

seschneck/html_testing

Repository files navigation

A Quarto Manuscript Template

This is a template for generating a repo for a Quarto project for a study that will include

  • a study manuscript
  • notebooks that display relevant calculations/code/analyses presented in the manuscript
  • poster(s) based on the study
  • slide set(s) for talks based on the study

It is based loosely off of a tutorial at: Quarto Manuscripts: RStudio but expanded to include linked posters and talks and with some customizations for our workflow and preferences.

Introductory Reading

We strongly recommend that you read the following pages from the Quarto website to better understand their manuscript format

  1. Quarto Manuscripts
  2. Authoring Manuscripts
  3. Publishing Basics
  4. Github Pages
  5. Using Manuscripts

If you plan to make slide sets, you can also read docs on making slides in quarto generally and more specifically with the revealjs format

  1. Quarto Presentations
  2. Revealjs
  3. YAML formatting options

Getting Started

  1. Go to the code tab for this repo
  2. Use the green Use this template drop down and select create new repository
  3. Name this repository with a name selected for your paper
  4. Clone that new repository to your local computer
  5. Rename the RStudio project file study_template.Rproj to the same name that you used for your repo (i.e., study_[insert_name].Rproj`
  6. Begin working on your new manuscript!
  • The main manuscript is saved as index.qmd.
  • Additional quarto notebooks are saved in the /notebooks folder
  • qmd files for posters are saved in individual folders within _presentations folder
  • qmd files for slide sets for talks are saved in individual folders within _presentations

Publishing Your Manuscript

Github is a good choice to publish your manuscript and associated code from notebooks. Your code is already hosted there so why not keep the manuscript website there as well? There are three different methods available to publish there. We prefer the manual publish method. To use this method:

  1. You need to make sure the repo is public. Go to Settings | Danger Zone and change visibility to public.

  2. You need to configure GitHub to publish the website from the /root of the gh-pages branch. Go to Settings | Pages | Build and Deployment | Branch. Set Branch to gh-pages and folder to /root and save these settings. [NOTE: if you started with our lab's template, this should already be configured for you]

  3. To publish the manuscript, go to the terminal at the root of the study project and type `quarto publish gh-pages.

  4. The publishing process will occassionally fail to delete temporary folders and files. If this happens you should delete them manually. This may include

  • _manuscript folder
  • index_files folder
  • index.html
  1. You should commit and push any changes you made to index to qmd or your notebook qmd files. You should also commit and push any changes to the _freeze folder.

NOTE: John is working on a bash script that publishes index.qmd and deletes these stray files. It works in Linux but may need bash manually installed to work in Windows. Not sure about Mac OS.

Publishing Your Slideset

A Github repo can only have one website associated with it. If we are using the repo for the manuscript website, we need another location to publish slidesets from talks. We have been using Quarto Pub. You can publish there using quarto publish quarto-pub [filename.qmd] from the folder that contains the qmd file for the talk. The first time you do this, you will need to verify your account and the page address. Follow the prompts. This info is saved in _publish.yml so that you wont need to update it the next time you publish updates to your project.

More details are here

Other notes

apaish templates

The apaish templates were copied into this project using this terminal command: quarto add mvuorre/quarto-apaish.

  • This allows for three pdf formats: apaish-manuscript-typst, apaish-document-typst and apaish-journal-typst. One of these formats can be specified in _quarto.yml
  • See the github repo for more info.

typst poster template

A typst poster template was copied into the poster1 folder using this terminal command: quarto use template quarto-ext/typst-templates/poster

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published