From b9a49fb066b2b3456ca4b97ea4db794e295173e1 Mon Sep 17 00:00:00 2001 From: "T. Emil Rivera-Thorsen" Date: Fri, 15 Aug 2025 17:15:51 +0200 Subject: [PATCH] Customizable separator for affiliations For some journals, affiliations are shown on individual lines (e.g. the AAS journals). It is quite easy to allow this. --- pubmatter.typ | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pubmatter.typ b/pubmatter.typ index 1a5ab5f..24eaef5 100644 --- a/pubmatter.typ +++ b/pubmatter.typ @@ -259,7 +259,13 @@ /// - show-ror (boolean): Show ror logo /// - affiliations (fm, array): The frontmatter object or affiliations directly /// -> content -#let show-affiliations(size: 8pt, fill: gray.darken(50%), show-ror: true, affiliations) = { +#let show-affiliations( + size: 8pt, + fill: gray.darken(50%), + show-ror: true, + separator: ", ", + affiliations + ) = { // Allow to pass frontmatter as well let affiliations = if (type(affiliations) == dictionary and "affiliations" in affiliations) {affiliations.affiliations} else { affiliations } if affiliations.len() == 0 { return none } @@ -278,7 +284,7 @@ text(size: 8pt, [~]) // Ensure this is not a linebreak ror-link(ror: affiliation.ror) } - }).join(", ") + }).join(separator) }) }) }