Hacker News new | ask | show | jobs
by airstrike 1184 days ago
I'm not really into LaTeX but I am really into the specific problem of authoring documents with a certain (user-defined) look-and-feel by leveraging some (very user-friendly) DSL that is close to markdown but with more features

Does Typst support themes so that I can achieve that? Are there other tools I should be aware of?

Are there tools that do all of the above and have themes defined as CSS?

I'm aware of RMarkdown + Knitr which is a fantastic combo (and honestly my inspiration for digging into this problem) but that's obviously still too much "programming" for wider adoption

1 comments

If you don't have high typesetting needs, maybe WeasyPrint fits your use case.

[1] https://weasyprint.org/

Oh my god, this is fantastic. It doesn't solve the DSL part but it does solve the output-to-PDF-using-CSS part. They also seem so nice!

I guess I can clobber together my own DSL and then run with this. I can't thank you enough

Maybe take a look at pandoc before writing your own DSL. You can use it with --pdf-engine=weasyprint, so your DSL can be Markdown, reStructuredText, Org-mode, ...
Thank you. pandoc may be part of the glue too, I have to think about it. I probably do want my own DSL as none of the existing ones apply to my "domain", "specifically"
Glad to be of help. Just out of curiosity, what's your use case?
Starting my own company to solve other people's use cases :-)

I'm a business "end user" who also loves programming. After 10+ years being a part of both worlds, I feel like I have a very strong vision for how these tools should work, so I've decided to build my own. It's a daunting task, but if I can leverage existing tools, maybe it's just a matter of gluing everything together neatly