I spent all day coding in typst and then coding vim syntax for typst...different colors for different heading levels, line comments, block comments, etc. You should try it for documents. It takes variables which makes drafting shit easy...
And it will pump out a table of contents based on the headings with level indention with just a few lines of code. It also bookmarks the pdf. Pretty sweet.
@Humpleupagus you got git? We could repo, I ain't got squat, but lot of pdf2md shit and hopes and dreams of "latex to letterhead" from my md with more scripting,,, ? I have to figure out where to cvs, I no have cloud...
I'm going to try to do a pleading now that they added a simple way to stroke tables and grids.
I think it can be done, but will require pdftk. I don't think typst can do the line numbering and text in one document. So I'm going to make pleading paper, then draft the body, and use pdftk to stamp the body onto the paper.
Oh.... I made a stupid simple bates numbering template. I use the same technique. Only instead on one background, I used the counting function and page breaks (which is easy to do in vim. 1000+ page breaks, no problem) to produce the bates numbers, and then I use pdftk to merge them with the documents.
It's seriously cool, and you can script in it if you're up to it.
The only thing I wish it had was a way to import portions of a document like it was set out inline instead of their import and include approach. (Neither of which pull in variables in a friendly way, though it can be done).
It's workable, but it can be cumbersome for what could be simple if it allowed sed like injection at compile time by first producing a temp file.
You'll see what I mean when you start using import and include functions.
@Humpleupagus I feel sick now, I was looking for "tiny" .md to latex "legal pleadng" template with bluebook, and I walked inot a international party of coke head java script or something? Ok... learning curve u-turn... hang on a sec...
Cp typ file to temp Grep some custom markup with line number While read line ... Sed something something (pull text and inject it at the corresponding line in the temp file) Typst compile temp file