Skip to content

Render affiliations as separate paragraphs - #19

Open
xchuam wants to merge 1 commit into
kapsner:mainfrom
xchuam:fix-affiliation-paragraphs
Open

xchuam wants to merge 1 commit into
kapsner:mainfrom
xchuam:fix-affiliation-paragraphs

Conversation

@xchuam

@xchuam xchuam commented Aug 20, 2026

Copy link
Copy Markdown

Summary

Update create_affiliations_blocks() to emit one pandoc.Para per affiliation instead of combining all affiliations into one paragraph separated by manual line breaks.

Motivation

In DOCX output, affiliations can inherit a justified paragraph style. When multiple affiliations are separated by manual line breaks within one paragraph, Microsoft Word stretches the spacing on every line except the last.
image

Using separate paragraphs prevents this unwanted justification and represents each affiliation as an independent block.

image

Validation

  • Rendered example.qmd to DOCX with Quarto 1.9.38.
  • Confirmed that each affiliation appears in a separate Word paragraph.
  • Confirmed that no manual line breaks remain between affiliations.
  • Confirmed that superscript numbering and affiliation text are preserved.

Note

Vertical spacing between affiliations follows the paragraph style in the reference DOCX and can therefore be customized through that document.

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

Successfully merging this pull request may close these issues.

1 participant