Welcome to the staging ground for new communities! Each proposal has a description in the "Descriptions" category and a body of questions and answers in "Incubator Q&A". You can ask questions (and get answers, we hope!) right away, and start new proposals.
Are you here to participate in a specific proposal? Click on the proposal tag (with the dark outline) to see only posts about that proposal and not all of the others that are in progress. Tags are at the bottom of each post.
Activity for TRiGâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #293345 |
Thanks. You're right. I've made that tweak now. And given the user options.
```
#let postcode_set(it, apply: "alphanumeric") = {
if apply == none {
upper(it)
} else {
let s = it.text
let l = lower(s)
let u = upper(s)
if (l == u) and (apply == "alphanumeric") {
... (more) |
— | 24 days ago |
Comment | Post #293345 |
It seems that two content blocks are always distinct, so I first need to convert the content to a string. But that does indeed work.
```
#let postcode(it) = {
let s = it.text
let l = lower(s)
if l == s {
it
} else {
set text(number-type: "old-style")
smallcaps(l)
}
... (more) |
— | 25 days ago |
Edit | Post #293345 | Initial revision | — | 25 days ago |
Question | — |
How can Typst check whether a string is alphanumeric? I personally think that alphanumeric postal codes (such as used in the UK, Canada, and Ireland) look best in small block capitals and old-style numbers. So I created a postcode function to do that: ``` #let postcode(it) = { set text(number-type: "old-style") let l = lower(it) smallcaps(l... (more) |
— | 25 days ago |
Comment | Post #293132 |
https://github.com/michidk/typst-grammar seems to be the place to look. (more) |
— | about 1 month ago |
Comment | Post #293132 |
Aha. https://forum.typst.app/ has code highlighting, at least some of the time. (Some of the code blocks there do; some don't. I'm a little puzzled.) (more) |
— | 2 months ago |
Edit | Post #293139 | Initial revision | — | 2 months ago |
Question | — |
Is this the neatest way to draw strokes on a Typst table? Is there a more idiomatic way to create a table like this? What I wrote (after a fair bit of trial and error) did achieve the result I was looking for, but the `stroke` commands seem a bit complex and repetitive, and I feel that there's probably a better way to do it. ```typst = Weekday Travel... (more) |
— | 2 months ago |
Comment | Post #293132 |
https://typst.app itself does, of course, but that implements a full language server (as does the Tinymist plugin for VS Code), so it's probably not what we want. I've had a quick search, but I can't find one for websites. I did find a Typst highlighter for Sublime Text. (more) |
— | 2 months ago |
Edit | Post #293132 | Initial revision | — | 2 months ago |
Answer | — |
Typst Community Name Typst Description Typst is a typesetting system which includes a full programming language. It markets itself as a competitor to TeX, LaTeX, ConTeXt, etc. Topics Topics covered would include: - The Typst programming language - Creation of plugins - How-tos for docum... (more) |
— | 2 months ago |