-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subtitles #480
Comments
Hi ! Sure I can look how to add subtitles and see where it should be placed in the distill template. Today we have it is put as paragraph right below the title in the title block, but after categories and tag if any
In this part we also allow However, it was tweaked by @mitchelloharawild in rjtools specifically to be an abstract: https://github.com/rjournal/rjtools/blob/8ff12f0f38355ea9249dffe119310c68ab8fa885/inst/rjdistill.html#L23 We need to see what should be done in distill and what in rjtools. Regarding format, how would the subtitle looks like ? I tried to see about "Changes on CRAN" I don't see one I think in https://journal.r-project.org/issues/2022-4/2022-4.pdf for example ? Is this the "by" in A paragraph of text just below the title, before any categories and tag ? I did a quick branch (#482) to add in template and this is a demo doc ---
title: "Untitled"
subtitle: demo article
description: |
A new article created using the Distill format.
categories:
- portfolios
- demo
author:
- name: John Doe
date: "`r Sys.Date()`"
output:
distill::distill_article:
keep_md: true
---
Content
We get this for no Would that work for you ? Simple change on this side. On a side note, I believe from rjournal/rjtools#58 that we should add also in rticles (https://github.com/rstudio/rticles/blob/main/inst/rmarkdown/templates/rjournal/resources/template.tex) We still have a R Journal template and format in rticles package - it seems like rjtools is replacing that. but that is another topic to discuss. |
The latest "Changes on CRAN" unfortunately does not have a subtitle because support wasn't added in time for the release of the issue. So the editors had to decide whether they prefer having a HTML version or the usual PDF with subtitle and no abstract. For the desired format see the PDF from a previous issue: https://journal.R-project.org/news/RJ-2022-3-cran/RJ-2022-3-cran.pdf The subtitle is the date range: "2022-07-01 to 2022-10-31". |
The subtitle format looks great @cderv |
Thanks for this, very much appreciated! 👍 |
Hi @cderv This issue was posted on the rjtools site two weeks ago. Its not clear that we generally want to have subtitles but the news items for the journal, which is slightly different in format than a regular article, sometimes have subtitles.
The text was updated successfully, but these errors were encountered: