quarto-journals / article-format-template

Template for creating a new journal article format for Quarto
MIT License
67 stars 17 forks source link

Is there a way to connect Article-format-template with a Quarto book project? #8

Open aito123 opened 2 years ago

aito123 commented 2 years ago

Hello, thanks for this template.

I was deciding what would be the appropiate way to adapt my MS Word thesis to Quarto. At first, I was trying to understand article-format-template to adapt it to my university institution template but then i remembered that Quarto also has the option to include multiple qmd scripts in a book project.

So then I thought, is it possible to adapt article-format-template to a Quarto book project .yml ? If so, how could it be done? I hope this question makes sense in the Quarto landscape.

Thanks again, and let me know.

jrfep commented 1 year ago

I faced a similar problem, I had my code structured in different scripts and used the quarto book format to organise the content into a HTML document, but ran into some problems when I wanted to use a template for pdf output as an article.

If the pdf styles for the book output do not work for you, you can try to mimic the book .yml file with a .qmd file using the include command to organise the content:

---
title: "Awesome title"

bibliography: 
  - references.bib
csl: style.csl

execute:
  echo: false

format:
  YourJournalFormat-pdf
---

# Abstract

This is a short abstract before I include the section content.

{{< include intro.qmd >}}
{{< include section1.qmd >}}
{{< include section2.qmd >}}

# References

::: {#refs}
:::