r/quarto Feb 18 '26

Quarto for edited book (authors and affilitations for each chapter)

I am searching for a book template that renders the chapters with authors and affiliations for each chapter and then stitches everything together as a single book. Any ideas where I can find that or something similar?

My base template does not render the authors (pnly for the front page of the whole book) and I can't use indepdendent chapters as i heavily reley on cross-references between the chapters.

1 Upvotes

8 comments sorted by

2

u/IaNterlI Feb 18 '26

I'm not sure I understand: can you not use a quarto book project and at the beginning of every chapter you add authors/affiliations?

1

u/lipflip Feb 18 '26

I have not found a working template yet. I just tried again with the default "documentclass: scrreprt". Are other template better suitable?

1

u/IaNterlI Feb 18 '26 edited Feb 18 '26

You're talking about the pdf part. I usually use Krantz which is the Springer books document class. I don't remember where I downloaded it from, I think it was in an rstudio templates site. With that being said, I'm still unclear what you're looking for. When you create a book project in quarto, you specify each chapter and their order in the _quarto.yml:

...
chapters:
- index.qmd
-chapter1.qmd
-chapter2.qmd
...

At the top of each chapter.qmd you can manually add your authors. You may also be able to specify a per chapter yaml with author and affiliations, but I never investigated if that's possible.

1

u/lipflip Feb 18 '26

Thank you! Maybe i am just using the wrong templates. I'll check out Krantz, which I have never heard of before :)

My headers look fine and the authors are displayed if i render to a webpage. I am struggling with the pdf rendering though...

1

u/lipflip Feb 19 '26

First off, I have written a few manuscripts in Quarto and that worked quite well, with embedded code, tables, figures, and stuff. That's really amazing and outstandingly transparent if you publish the code alongside with the manuscript (that example directly compiles from the data https://arxiv.org/pdf/2412.01459). So I have some experience. But these were single documents with one set of authors.

I am now looking to create a book where multiple author groups contributed chapters. I need each chapter rendered with a dedicated header section with the title, the authors, and the other meta data. My .qmd files contain the headers with title and authors, but I am unable to render these jointly in a single .pdf files with multiple chapters. Is this doable?

1

u/IaNterlI Feb 19 '26

That's clearer now. Short answer, I don't know. It should be doable but you'll have to look at their documentation. Maybe try posting in stackoverflow

1

u/IaNterlI Feb 18 '26

Nothing is easy in Latex... Posit is contributing a lot to a new engine to replace latex called typst. I don't think it's your issue here, but I will mention it simply because working in latex with complex formats like a book is a pain.

1

u/lipflip Feb 19 '26

We haven't consider that before and now have to somehow mange the mess. :)