Conversation
|
In https://typst.app/docs/tutorial/formatting/#show-rules, I would redo that as #show "ArtosFlow": name => {
let logo = box(image(
"logo.svg",
height: 0.7em,
))
[#logo #name]
}but I guess it's fine, but what I don't understand is why this doesn't introduce the 2 additional spaces? Is it just because the spaces are collapsed like in It doesn't add the spaces even if the word is surrounded by periods. Does #show "ArtosFlow": name => {
box(image(
"logo.svg",
height: 0.7em,
))
" "
name
}would be better, but it's not exactly as nice and readable as The current example also has implicit space in-between that is not explained either. |
|
In https://typst.app/docs/tutorial/writing-in-typst/#figure, I tried adding But also adding Adding box to https://typst.app/docs/tutorial/advanced-styling and including title into PDF metadata does not in fact trim the spaces. So it's not as universal and robust as I thought. |
272de6e to
f38beff
Compare
f38beff to
6daae2e
Compare
|
Can I add heading show rule example fix from https://typst.app/docs/reference/styling/#show-rules here? The example in https://typst.app/docs/guides/guide-for-latex-users/#templates copies the tutorial example, so it also uses the outdated syntax, even though it's not visible. |
|
It's a bit unfortunate timing for a cleanup as we are planning to rewrite the tutorial completely from scratch soon. |
|
Rewrite in Typst? I don't really mind, as long as instances such as #6273 (basically what this PR fixes) are gone (addressed). The idea is to eliminate bad examples that users can then cite as an inspiration for bad code (practices), i.e., so that everyone can learn the right way from the very beginning. Which should also help a bit with forum (fewer things to fix, fewer things that introduces issues and hard to debug). |
|
Rewrite as in completely rewrite the content. Because the current one kinda sucks. We'll make sure to check your suggestions while writing the new one. |
|
Oh, so it's still in Markdown... Well, then it's still cool, just not extra cool. I guess you can add attribution to some commits if you will get some parts out of my PR. You can set me as a reviewer, would be interesting to see how it will turn out. As always, I might have some polish changes by the time I read through it. |
|
To update, the tutorials rewrite was postponed by the new releases, but it's back on the menu, and it's being worked on. No clear dates.
|
Closes #6273.
I can try splitting this into multiple commits, if needed. There are plenty of stuff to discuss. The main blocker is #6416, i.e., the block + hyphenate thing. I included a few comments.
For the most part, this is ready for review/merge.