[ANN] quarto-bookly extension

Hi all,

I use Quarto to create HTML books for some of my lectures. However, my students often need a static document (typically a PDF file) of the lectures. Currently, I save the HTML pages from my web browser as PDFs, one chapter at a time. This process is quite cumbersome.

In the meantime, I have developed the bookly template for writing long scientific documents. However, I don’t want to manually copy and paste text or reformat the Quarto Markdown dialect into plain Typst.

That’s why I decided to develop a Quarto extension for bookly. With the help of AI, I was able to successfully make my dream a reality (because I don’t speak Lua, the Typst part was not a real problem).

Today, I want to share this extension with you, hoping it will be useful to the community.

You can find all the necessary information in the README.md.

Attentive readers will notice that I added a justfile to the repo containing three functions. These functions split the long Typst file generated by Quarto into smaller files, following the tree structure defined in _quarto.yml. The functions also refactor the *.typ files to make the resulting files more Typstian.

Currently, I have only tested the extension with the standard layout. I need to test the tufte layout more.

Please do not hesitate to post an issue or submit a pull request. All contributions are welcome!

URL: GitHub - maucejo/quarto-bookly · GitHub

1 Like

Thx for ur Quarto Lua pkg, but

  • Why not use Typst HTML mode?
  • HTML export is also a goal of Typst, what’s the status of the process? [=what’s ur view about typst-html]
  • Do u believe Typst will rashly replace Markdown in the Web world?

@Maxwell To be honest, it is mainly because the course I give is already written in Quarto for many years. It is just quicker and more rime-efficient to write this extension.

Another good reason is that I didn’t try HTML. I have to give it a try. With Quarto, I know that I can generate both HTML and Typst (now I have the extension). At the moment, I am not sure how to do that in Typst.

But ultimately, I want to do all my documents in Typst.

1 Like