From 1204eb5b3cca995af1209fd238bfcb5f299385a1 Mon Sep 17 00:00:00 2001 From: Franklin Koch Date: Thu, 10 Aug 2023 11:11:39 -0600 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=91=A9=E2=80=8D=F0=9F=8E=93=20Consume?= =?UTF-8?q?=20affiliation/collaboration=20values=20as=20objects=20with=20'?= =?UTF-8?q?name'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template.tex b/template.tex index 7287ecc..a0d5039 100644 --- a/template.tex +++ b/template.tex @@ -91,13 +91,13 @@ [#- if author.affiliations #] [#- for affiliation in author.affiliations -#] -\affiliation{[-- affiliation.value --]} +\affiliation{[-- affiliation.value.name --]} [#- endfor -#] [# endif -#] [#- if author.collaborations #] [#- for collaboration in author.collaborations -#] -\collaboration{[-- collaboration.value --]}\noaffiliation +\collaboration{[-- collaboration.value.name --]}\noaffiliation [#- endfor -#] [# endif -#] [#- endfor -#] From ea3f52f1461eb65bec4ef62a7d276d5489b65aad Mon Sep 17 00:00:00 2001 From: Franklin Koch Date: Thu, 10 Aug 2023 11:12:00 -0600 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=91=A9=E2=80=8D=F0=9F=8E=93=20Update?= =?UTF-8?q?=20example=20myst.yml=20to=20define=20affiliations=20as=20objec?= =?UTF-8?q?ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/myst.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/examples/myst.yml b/examples/myst.yml index 8381a61..9c97800 100644 --- a/examples/myst.yml +++ b/examples/myst.yml @@ -10,22 +10,29 @@ project: - name: Bugs Bunny orcid: 0000-0002-5591-9220 affiliations: - - Looney Tune Studios - collaborations: - - cool collaboration + - lts + - cc - name: Roger Rabbit corresponding: true email: Roger.Rabbit@LooneyTuneStudios.com website: https://www.looneytunestudio.com affiliations: - - Looney Tune Studios + - lts - name: Mickey Mouse affiliations: - - Disney World + - dw website: https://www.disneyworld.com github: https://github.com/dressedfez/myst_template_physical_review_journals # bibliography: [] license: CC-BY-4.0 + affiliations: + - id: lts + name: Looney Tune Studios + - id: dw + name: Disney World + - id: cc + name: cool collaboration + collaboration: true site: template: book-theme # title: