.typ file without the preamble #13630
-
DescriptionHello My current workflow creating strucutral analysis consists of writing in typst and calculating in a notebook.ipynb. for the writing part I use a format.typ file and the content is in main.typ. The calculations should then be included inside the main.typ. this would work seamless if the kept notebook.typ by quarto would only consist of the content without the preamble that pandoc creates. A workaround is rightnow to export the notebook via quarto to .md and then use pandoc separate on the notebook.md file to create a notebook.typ file. Another approach was to add an empty template for the quarto to typst conversion which results in an error as the final .pdf (that is not needed in my case) cannot be created. So - is it possible to use quarto to typst to generate a .typ without the preamble? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Have you looked at partials? https://quarto.org/docs/journals/templates.html#typst-partials I'm also not sure to understand the point of your workflow at you said you output Typst code to be compiled with Typst alone. In this case, what is the purpose of using Quarto CLI? For more help: Could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? The goal is to make it as easy as possible for us to recreate your problem so that we can fix it: please help us help you! Thanks. You can share a self-contained "working" (reproducible) Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four If you have multiple files (and if it is absolutely required to have multiple files), please share as a Git repository.
Additionally and if not already given, please share the output of |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for the answer, it lead me in the right direction! You are right as my workflow does not depend on Quarto. I can easily just use nbconvert for the markdown conversion: |
Beta Was this translation helpful? Give feedback.
Thank you for the answer, it lead me in the right direction!
You are right as my workflow does not depend on Quarto. I can easily just use nbconvert for the markdown conversion: