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

Author names are missing in the HTML using scholarly-metadata and author-info-blocks #282

Open
zhengchencai opened this issue Jul 29, 2024 · 1 comment

Comments

@zhengchencai
Copy link

Hi there,

I used scholarly-metadata.lua and author-info-blocks.lua to render a HTML, but the author names are missing. And "Authors" and "Affiliations" are empty, how can I fix this? Thanks a lot

---
title: "Testing Lua filters with Qmd"
author:
  - Jane Doe:
      institute:
        - federation
      equal_contributor: "yes"
      correspondence: "yes"
      email: [email protected]
  - John Q. Doe:
      institute: [federation, acme]
      equal_contributor: "yes"
  - Juan Pérez:
      institute: acme
institute:
  - federation: Federation of Planets
  - acme:
      name: Acme Corporation

format: html
filters: 
  - scholarly-metadata.lua
  - author-info-blocks.lua
---

image

If I add name in the author,

---
title: "Testing Lua filters with Qmd"
author:
  - name: Jane Doe
    institute:
      - federation
    equal_contributor: "yes"
    correspondence: "yes"
    email: [email protected]
  - name: John Q. Doe
    institute: [federation, acme]
    equal_contributor: "yes"
  - name: Juan Pérez
    institute: acme
institute:
  - federation: Federation of Planets
  - acme:
      name: Acme Corporation

format: html
filters: 
  - scholarly-metadata.lua
  - author-info-blocks.lua
---

It became the following,

image

@tarleb
Copy link
Member

tarleb commented Aug 1, 2024

It looks like you're using Quarto, in which case I'd discourage the use of those specific filters. Quarto has it's own system for authors and affiliations, in part derived from the filters here. It's better to fully rely on Quarto to do the right thing.

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

2 participants