Table column sizes

Thanks Ian,

I have been going over the Typst documentation very carefully and have downloaded the template you referenced. I need to spend a lot of time on that. I understand how to create a borderless table inline. So I’ll experiment with that and setting up a template with my specifications from the downloaded one.

I’ll then have a long look at the PrinceXML stuff and see how I go.

:slight_smile:

Mark

Well, I’m slowly getting there with Typst. I have sorted out in the Typst workflow how to create tables without borders, though I haven’t yet worked out how to control the row spacing… at the moment it’s wider than the normal line spacing; I’d like it to match the latter. I can do it using the online typst.com, but haven’t yet been able to do it through Scrivener.

In relation to that, what I’d like to do is make a Raw Typst style, so that I could use Typst table syntax, rather than the list-table.lua > Pandoc > Typst workflow. I have created such a style on the pattern of the Raw LaTex and Raw HTML styles:

SCR-20231023-lqae

But it doesn’t work. The ~s get escaped so it is treated as normal text, not raw Typst markup as intended. So what am I doing wrong?

I am also beginning to wonder, given that Typst markup is so straightforward, whether it might not be possible to use front matter to provide the template and go straight from Scrivener compile to plain text to process on the command line directly by Typst without going through MMD > Pandoc first. @AmberV any thoughts?

:slight_smile:

Mark

You must make sure you have linebreaks around that entered markup, the prefix/suffix editor is a bit hard to use but linebreaks are inserted with option+return. I’ve added a Raw Typst style in my template for you to look at. I also added a Section Type to demonstrate another way to format the blocks of content. I added a Raw Typst table so you can see.

Yes, that is totally possible. I added a basic TXT Typst output in that template — select compile for Plain Text and select “Pure Typst”. It compiles directly and runs Typst to make a PDF. You have to be aware you lose in the convenience functions that Scrivener has built for markdown, where is converts RTF heading level, lists, figures with captions, tables etc. to the correct markdown. You also lose the benefits of a Pandoc intermediate (flexible conversion to other outputs, metadata for authors etc, advanced bibliography tools, powerful filters). But if you are happy with Typst-only and the tools it offers, Scrivener can make it so!

Perhaps we can move this to the Typst thread as we are way off topic for column sizes by now…

Ah, thank you. Of course, the linebreaks are not visible in the prefix/suffix fields, and I’m kicking myself that I didn’t consult the Scrivener manual. Being new to all this, with a complex flow like Scrivener > MMD > Pandoc > Typst (or Prince XML) I have no easy grasp on where any effect, like table spacing for instance, is being set.

Thanks for the new template. For the moment, figures with or without captions and RTF tables are not a concern for me—something for later—but while thinking about it, I did realise that heading levels would probably have to be done through separate section types + layouts.

To be honest, although my current concerns are still trying to get tables set up the way I want, row spacing at present, I had been thinking that I should be continuing in a different thread, so I’ll use the Typst thread from now on.

:smiley:

Mark

1 Like