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

Move affiliation from below to above the table of contents (toc) #1

Open
joundso opened this issue Dec 16, 2022 · 4 comments
Open

Move affiliation from below to above the table of contents (toc) #1

joundso opened this issue Dec 16, 2022 · 4 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@joundso
Copy link

joundso commented Dec 16, 2022

Minor detail: If a table of contents is rendered, the affiliations are currently below it. For simplicity, however, I would expect the affiliations to be between the author names and (above) the table of contents.

Regardless: Many thanks for this awesome template!

@joundso
Copy link
Author

joundso commented Dec 16, 2022

Using this _quarto.yml:

---
title: "Authors-block Example"

authors:
  - name: John Doe
    affiliations:
      - ref: jdct
    corresponding: true
    email: [email protected]
    orcid: 0000-1111-2222-3333
    equal-contributor: true
  - name: John Roe
    affiliations:
      - ref: jdct
    orcid: 0000-3333-2222-1111
  - name: Jane Roe
    affiliations:
      - ref: jdct
      - ref: iot
    orcid: 0000-2222-1111-3333
    equal-contributor: true

affiliations:
  - id: jdct
    name: John Doe Center for Technology, John Doe University, Doetown, Germany.
  - id: iot
    name: Institute of Technology, John Doe University, Doetown, Germany.

filters:
  - authors-block

format:
  #native: default
  docx:
    toc: true
  pdf: default
---

# Brings Quarto's Standardized Authors- & Affiliations-Block to docx-Documents

## Heading 2

Demo text.

Produces this output (with the affiliation below the table of contents):
grafik

@kapsner kapsner added the good first issue Good for newcomers label Dec 16, 2022
@kapsner
Copy link
Owner

kapsner commented Dec 16, 2022

Thx for this catch. I'll have a look into this soon.

@kapsner kapsner added the bug Something isn't working label Dec 16, 2022
@kapsner
Copy link
Owner

kapsner commented Dec 17, 2022

Hi @tarleb , it seems as if the toc information is included in the "meta" element, as affiliations, contribution statements etc. are added to the body. However, I have not found a possibility to access the "toc" from meta (actually, I do not know which key to use as "toc", "tableofcontents", "table-of-contents" all seem to be wrong), to move the toc to the beginning of the body-list. Any ideas how to solve this?

@tarleb
Copy link
Collaborator

tarleb commented Dec 17, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants