Skip to content
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

Allow HTML articles without abstracts #59

Open
zeileis opened this issue Feb 21, 2023 · 5 comments
Open

Allow HTML articles without abstracts #59

zeileis opened this issue Feb 21, 2023 · 5 comments

Comments

@zeileis
Copy link
Contributor

zeileis commented Feb 21, 2023

We tried to convert our "Changes on CRAN" report that is published in every R Journal issue from .tex to .Rmd. However, two aspects that we have always used are not yet supported in .Rmd specifically in HTML output:

  1. There is currently no support of a subtitle. For PDF output this was straightforward to add in the LaTeX template, see PR support setting subtitle from YAML in LaTeX template #58. However, for HTML output I was not able to add this because I don't know distill well enough.
  2. The abstract cannot be empty. For PDF output this is already supported and the abstract is omitted. But for HTML output it is not and a default abstract is generated.

Let me know if you need further details or I can help in any way. If you can give me some guidance on how to implement these two features, I'm willing to try to implement them and make a PR.

@zeileis
Copy link
Contributor Author

zeileis commented Jun 9, 2023

Thanks for the update on this. Which packages do I need to install to make this work? I tried to install the GitHub versions of rjournal/rjtools and rstudio/distill. And the PDF works with both subtitle and no abstract now - but the HTML still has no subtitle and a default abstract.

@dicook
Copy link
Collaborator

dicook commented Jun 11, 2023

Oh, I was a bit too zealous.

@dicook dicook reopened this Jun 11, 2023
@zeileis
Copy link
Contributor Author

zeileis commented Jun 11, 2023

Thanks.

@mitchelloharawild
Copy link
Contributor

Patch fixed in f2d810c

@mitchelloharawild mitchelloharawild changed the title Support subtitle and lack of abstract in HTML Allow HTML articles without abstracts Jan 23, 2025
@mitchelloharawild
Copy link
Contributor

Clarification: the patch fixes HTML behaviour with subtitles

An abstract is currently required (not explicitly, but a default one is produced if the article doesn't provide one).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants