How to check if there is (not) a level 1 heading in a page ?
▲ 1 r/typst

How to check if there is (not) a level 1 heading in a page ?

Hello,

I'm trying to setup my headers for a novel I am typesetting :

  • On even (left) pages, there would be the author name. It is done.
  • On odd (right) pages where there is no level 1 heading (those are set to always be in odd pages), there would be the book title and the chapter number. This is where I am struggling.

I was thinking of using hydra, but I cannot seem to be able to display custom, predefinite text along the chapter number.

I wanted to go with a if calc.odd(here().page().and([check if there is no level 1 heading in the page]) but I feel like I can go with only the test to check the presence of a level 1 heading since those are always on an odd page.

Sooo... Do you know how to do such a check ?

Thanks in advance !

u/RunnerWithBadKnees — 4 days ago
▲ 29 r/typst

Prevent 2-line pages

Hello everyone,

I am typesetting a novel where chapters always begin on a new page.
Occasionally, the page before the new chapter is very tiny, like 2 lines (see image).

The left page looks pretty bad and it would look way better if those two lines were added to the previous pages (and the former paragraphs were a bit more condensed to make room for them, of course).

Is there a way to automatically prevent 2-line pages (or even n-line pages, I may have a few cases of 3 or 4-line pages which are as disgraceful) throughout the whole book ?

Thanks in advance !

u/RunnerWithBadKnees — 7 days ago
▲ 10 r/typst

Noob question on importing a file as template

Hello everyone,

I'm exprimenting with my first template. I created rules from my former file to put it in a maquette.typ file along with a few functions that I made (cf. Image 1).

I am now trying to use it it my main file. I imported the functions and my rules, and now I tried to #show it. I can see that the page gets resized to my linking, but no text appears even when I add stuff (what is written in the "// Page de titre" part of Image 2).

There is no error message but I must be doing something wrong. I'm a bit lost...

Where did I mess up and what do I have to do ?

Thanks in advance !

u/RunnerWithBadKnees — 9 days ago

Display only shortcuts in the homepage

Hello everyone,

I'm trying to setup my homepage so that it is minimal but still does guide me directly to websites I actually want to visit. So shortcuts. Currently, I have 4 shortcuts created. However, as shown in image 1, I always get new links created from my frequent visits and history, which I do not want. There is no option in the settings (image 2) to stop displaying websites I only visited. Is there a way to display only my shortcuts, or do I have to find an extension (a new homepage or something which solves this problem on vanilla homepage) ? If so, what extension would you recommend ?

Thanks in advance !

u/RunnerWithBadKnees — 12 days ago
▲ 27 r/typst

Split headings appear in several lines in the table of contents

Hello everyone,

Noob question here ! I have this book I want to typeset, which has numbered chapters with title.

I pondered between using #set heading(numbering: "1.", supplement: [Chapter]) and the solution I used, which is to write in plain text the Chapter number (maybe this is a very bad practice, tell me if it is the case !).

The thing is, it looks better to split the heading between the Chapter number and its title (cf. Image 1). I used the \ for this. But then, The table of content generated with #outline looks bad (cf. Image 2).

I suppose there is either some kind of tweaking to do on outline, or a better solution than \ to split my headings, but I have not seen any in the docs for now...

Do you have a solution for my issue ?

Thanks in advance !

u/RunnerWithBadKnees — 14 days ago
▲ 11 r/typst

Is it possible to change datetime.display language ?

Hello everyone,

I'm new to Typst and still learning ! I may have a very noob question :

I've set a date through datetime and I'm trying to display it further down the document. I used this : #date.display("[day padding:none] [month repr:long] [year]"). It does work but the month is displayed in english while the text has been set (and written) in french in the #set text at the beginning of my document. So it looks strange.

Is there a way to auto-translate the month ?

In case it may be useful, I'm using Typesetter on Linux, so maybe it is a non-supported feature ?

Thanks in advance,

reddit.com
u/RunnerWithBadKnees — 17 days ago

The weight of the cardstock used in Pléiades' covers

Hello everyone,

I'm learning bookbinding and my current goal is to be able to “reproduce” (a bit bigger, with apple leather instead of animal skin, and with heavier paper — cannot print on a 36gsm paper at home) a Pléiade (a snobish — but very pretty nonetheless — French book collection) volume. One thing I am not sure about is the weight of the cardstock used in the cover. It is quite thin and still has some flexibility to it, which I reaaally like. I'd guess it is around 250-300gsm but I'm not sure and I don't want to buy cardstock too light which I wouldn't use.

Do you have a hunch (or even datas !) on that ?

Also, I haven't found anything for now, but maybe you know of some people who went through such reproduction and wrote about it, I'd love to see/read their processes so if you have any links, I'm interested !

Thanks in advance !

u/RunnerWithBadKnees — 18 days ago

Hello everyone,

I'll soon set up my very first home server with Yunohost to manage a few stuff in my house. It's not huge, it will mostly be to host a few files that need frequent use (or another backup ^^), the calendars shared among devices, the passwords, etc.

In a way, most of my uses cases could be covered by Nextcloud. However, I'm wondering what could be the advantages of using many lighter apps (e.g. OpenCloud + Baïkal + Vaultwarden + Wallabag + whatever I think about) instead of one big do-it-all ? As a GNOME user on my computer, I quite like the idea of having many simpler, lighter apps, but maybe the same logic is deleterious when it comes to servers.

Due to me using Yunohost, I'm not too concerned about stability (maybe I am wrong ?), but I am wondering about efficency, usability, power consumption, etc.

So, what are your takes on this ? Maybe it's all the same and just a matter of preference, but as a beginner I think it's best to ask around.

Thanks in advance !

reddit.com
u/RunnerWithBadKnees — 1 month ago

Hello everyone,

I'll soon set up my very first home server with Yunohost to manage a few stuff in my house. It's not huge, it will mostly be to host a few files that need frequent use (or another backup ^^), the calendars shared among devices, the passwords, etc.

In a way, most of my uses cases could be covered by Nextcloud. However, I'm wondering what could be the advantages of using many lighter apps (e.g. OpenCloud + Baïkal + Vaultwarden + Wallabag + whatever I think about) instead of one big do-it-all ? As a GNOME user on my computer, I quite like the idea of having many simpler, lighter apps, but maybe the same logic is deleterious when it comes to servers.

Due to me using Yunohost, I'm not too concerned about stability (maybe I am wrong ?), but I am wondering about efficency, usability, power consumption, etc.

So, what are your takes on this ? Maybe it's all the same and just a matter of preference, but as a beginner I think it's best to ask around.

Thanks in advance !

reddit.com
u/RunnerWithBadKnees — 1 month ago