diff options
Diffstat (limited to 'org/output_hub.org')
| -rw-r--r-- | org/output_hub.org | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/org/output_hub.org b/org/output_hub.org index 2456878..1349940 100644 --- a/org/output_hub.org +++ b/org/output_hub.org @@ -50,7 +50,7 @@ template outputHub() { mixin spinePo4aConfig; write(po4aConfig(doc.matters)); } - enum outTask { source_or_pod, sqlite, sqlite_multi, latex, odt, epub, html_scroll, html_seg, html_stuff, text, skel } + enum outTask { source_or_pod, sqlite, sqlite_multi, latex, typst, odt, epub, html_scroll, html_seg, html_stuff, text, skel } void Scheduled(D)(int sched, D doc) { auto msg = Msg!()(doc.matters); <<output_scheduled_task_source_or_pod>> @@ -60,6 +60,7 @@ template outputHub() { <<output_scheduled_task_html_seg>> <<output_scheduled_task_html_out>> <<output_scheduled_task_latex>> + <<output_scheduled_task_typst_pdf>> <<output_scheduled_task_text>> <<output_scheduled_task_odt>> <<output_scheduled_task_sqlite>> @@ -247,6 +248,22 @@ if (sched == outTask.latex) { } #+END_SRC +**** typst --> pdf :typst:pdf: + +#+NAME: output_scheduled_task_typst_pdf +#+BEGIN_SRC d +if (sched == outTask.typst) { + msg.v("typst processing... (the .typ, and the pdf when --pdf)"); + import sisudoc.outputs.io_out.typst; + outputTypst!()(doc.abstraction, doc.matters); + if (doc.matters.opt.action.pdf) { + msg.v("typst compile to pdf... "); + outputTypstPdf!()(doc.matters); + } + msg.vv("typst done"); +} +#+END_SRC + **** text :text:txt: #+NAME: output_scheduled_task_text |
