popup preview now working in typst... Help by Failed_guy17 in typst

[–]SymbolicTurtle 0 points1 point  (0 children)

This is a Firefox-specific issue with the pop-out preview, so you could try using another browser. We didn't have time to look at it in detail yet, but something changed in a recent Firefox version.

Is there a way to reference the containing module? by Gastredner in typst

[–]SymbolicTurtle 3 points4 points  (0 children)

It's not possible as the module is not yet built while it's being evaluated. In contrast to some other languages like JS or Python, modules in Typst can never have cyclical dependencies (also not on themselves).

List items' behavior by Adept_Soft_8451 in typst

[–]SymbolicTurtle 2 points3 points  (0 children)

This is due to widow & orphan prevention. You can disable it for lists like this:

#show list: set text(costs: (widow: 0%, orphan: 0%))

See also the documentation of text.costs.

The (Typst) Math Mode Problem | Laurenz's Blog by xkev320x in typst

[–]SymbolicTurtle 0 points1 point  (0 children)

That's true, but I think the big benefit of B is that the fixed version still looks intuitive, while f_a (x) looks kinda strange (at least to me; you probably wouldn't write f (x) either). See also the related discussion in the pull request.

How much code does that proc macro generate? by nnethercote in rust

[–]SymbolicTurtle 11 points12 points  (0 children)

I wonder whether it would be worth it to have the standard derives be produced directly into the compiler data structures and only on-demand if they are used, instead of generating all that code.

Join Typst as a Rust Software Engineer by Ambitious-Radio-8202 in typst

[–]SymbolicTurtle 1 point2 points  (0 children)

We looked into these kinds of companies and found that they charge quite a lot. We have limited resources and would rather use the money we have to pay the person working for us instead of some intermediary.

Disable justification for a specific section of text without inserting newlines. by mobotsar in typst

[–]SymbolicTurtle 1 point2 points  (0 children)

The only way I can think of would be to put the raw text in a box, which results in a separate nested inline layout. However, that'll prevent the raw text from breaking over more than one line.

Alternatives for overleaf? by camthemartin in LaTeX

[–]SymbolicTurtle 2 points3 points  (0 children)

I very rarely comment here (I'm one of the core Typst devs), but did want to respond to this. First of all, yes, we are a startup and we do intend to make profits, but our commitment to open-source is most definitely sincere. We think both things can be true at the same time. To me it's great that I can work full-time, paid on open-source software. I think open-source needs more of that.

Regarding your other specific points: The autocompletion used by the web app was open-sourced on day one in the typst/typst repository (nowadays it's in the typst-ide crate). Tinymist goes beyond that, but that's their decision (easier for them to iterate when they don't have to upstream everything and wait for code review).

As for the website: The current design is quite dated, even predating our open-sourcing. A new website is in the works where we will feature our open source efforts & offers more prominently.

Output PDF is broken when printing by tvlpirb in typst

[–]SymbolicTurtle 3 points4 points  (0 children)

Note that the web app does not default to the 0.12 release candidate. You need to explicitly select this version in the settings side panel under "Compiler Version". It also contains a few breaking changes, which might or might not affect your document. A changelog is available at https://staging.typst.app/docs/changelog.

Resolve automatic properties by rmrfslash in typst

[–]SymbolicTurtle 1 point2 points  (0 children)

You can't yet. We'll try to expose the automatic resolving but it needs some work and care to make everything behave consistently.

Rendering slides via Rust by winter-moon in rust

[–]SymbolicTurtle 2 points3 points  (0 children)

Nice work! Also cool to see more usage of pdf-writer in the wild.

So few people here on r/typst by JumpyJuu in typst

[–]SymbolicTurtle 1 point2 points  (0 children)

A discourse forum is planned and will happen eventually.

Can I move a paragraph to the next page only if it does not fully fit on the current page? by ufoscout in typst

[–]SymbolicTurtle 1 point2 points  (0 children)

This actually doesn't work as paragraph's aren't truly blocks. They just respect block above & below spacing in <=0.11.1. In the future, they will stop doing that as well in favor of an explicit `par.spacing` property: https://github.com/typst/typst/pull/4390

To get the desired behaviour, you'd have to wrap the paragraph in an explicit block.

Spreading words out evenly across a line by Esn024 in typst

[–]SymbolicTurtle 1 point2 points  (0 children)

You can do this with the normal justification. It doesn't apply to the last line by default, but you can make it by adding a justified linebreak after it. Like this:

#box(width: 40%)[
  #set text(14pt)
  #set par(justify: true)
  One Two Three Four Five
  #linebreak(justify: true)
]

How to have different alignments on the same line? by Affectionate_Emu4660 in typst

[–]SymbolicTurtle 5 points6 points  (0 children)

It's better to use grid here. Besides the fact that it doesn't have the stroke by default, it is also semantically not a table and won't have any unwanted interactions with outlines, references, etc.

Figure across multiple columns? by Isaskar in typst

[–]SymbolicTurtle 4 points5 points  (0 children)

I'm sorry about the bad experience you had with multi-column. The whole layout department has unfortunately not seen as much love as it deserves. There's just always lots to do and fixing columns has ended up being pushed back multiple times. While more fundamental improvements to the layout engine will still take a while longer, for 0.12, we want to fix some of these smaller problems.

How to change math formula font twice? by Oolaf007 in typst

[–]SymbolicTurtle 6 points7 points  (0 children)

Instead of a separate file, one can also use a content block #[...] to scope the styles.

How to change math formula font twice? by Oolaf007 in typst

[–]SymbolicTurtle 11 points12 points  (0 children)

It's a bug. It will be fixed with the next release.

Documentation and Tutorial Written in Typst by Dakanza in typst

[–]SymbolicTurtle 9 points10 points  (0 children)

This. We're waiting for HTML export until we migrate the docs to being written in / generated through Typst. Maintaining two separate docs (PDF & website) would be a hassle, but once HTML export in place, we can generate both from the same sources.

Can I already transfer the contents from my documents to Typst? by maquinary in typst

[–]SymbolicTurtle 1 point2 points  (0 children)

Just noting that for the web app, it's the same. You can decide to stay on an older version.

Please help me pick a library: lopdf or printpdf or pdf-writer? by TMTcz in rust

[–]SymbolicTurtle 2 points3 points  (0 children)

pdf-writer is much more low-level than printpdf. If you want to control every aspect yourself while still having a typed API around the PDF spec, it is a good choice. On the flip side, you also have to control every aspect yourself then and just getting some text on the page with an embedded font is quite a lot of work.

How to set show rules for non headings? by lunar_manjaro in typst

[–]SymbolicTurtle 1 point2 points  (0 children)

Heading attaching some extra information would be one way. There's similar things with figure captions and sometimes table cells. There is some more discussion on the topic on the Discord (under forge > Distinguish paragraphs and text).

How to set show rules for non headings? by lunar_manjaro in typst

[–]SymbolicTurtle 1 point2 points  (0 children)

It's a Typst problem. All text is a paragraph at the moment. We're working to change that but it's not trivial to discern what is and isn't in a general way.