#let

Grégoire Locquevilleglocq@mathstodon.xyz
2026-02-06

#typst PSA:

Typst is actually three languages in a trench coat:

* The default, a markdown-like language.
* A programming language, where you can do... well, programming stuff: define variables and functions, compute things, ...
* A language just for describing math expressions to be typeset (like LaTeX's math mode, but the syntax is different)

You can call constructs from the programming language (and consequently, enter "programming language mode") by prepending them with a #: `#let a = 3`, `#someFunction(someValue)`, etc.

Conversely, you can define content in the markdown-like language from within the programming language by enclosing it in square brackets: `let title = [= My Title]`

You can write expressions in the math language by enclosing them in between dollar signs: `$1/2 = 0.5$`

...yes, if you knew it already, it's obvious. But I didn't, and this caused me a couple headaches back when I was learning Typst.

2026-02-05
人間と魚が入れ替わった世界で狩りをするホラーゲーム『ウミガリ』
lina isidoralina@tech.lgbt
2026-02-04

@ChrSt oh its just something i call myself because i love to yap about it

typst is a typesetting language like LaTeX but more modern and is basically a weird programming language

typesetting/rich text writing is closer to markdown/asciidoc than latex, but you can do really powerful things with the programming language part of it

this is an example from their github:

#set page(width: 10cm, height: auto)
#set heading(numbering: "1.")

= Fibonacci sequence
The Fibonacci sequence is defined through the
recurrence relation $F_n = F_(n-1) + F_(n-2)$.
It can also be expressed in _closed form:_

$ F_n = round(1 / sqrt(5) phi.alt^n), quad
phi.alt = (1 + sqrt(5)) / 2 $

#let count = 8
#let nums = range(1, count + 1)
#let fib(n) = (
if n <= 2 { 1 }
else { fib(n - 1) + fib(n - 2) }
)

The first #count numbers of the sequence are:

#align(center, table(
columns: count,
..nums.map(n => $F_#n$),
..nums.map(n => str(fib(n))),
))
2026-02-02

【4人実況】みんなでガッチマンが主人公のゲームを実況したら爆笑した yayafa.com/2710449/ #fun #Game #gaming #let's #PLAY #Playthrough #retoruto #Video #ゲーム実況 #ニコニコ #レトチャンネル #レトルト #実況プレイ #攻略

【4人実況】みんなでガッチマンが主人公のゲームを実況したら爆笑した
TauAs🔞🕱♌💛❤️💚☢️🐍🎭ztauras@vivaldi.net
2026-01-31
Lisa J. Warner / Lisa LuvLisaWarnerLisaLuv
2026-01-31

🙏🙌🌐🌏🙌🙏💛💁🏼‍♀️*(From all that dwell below the skies!*Let the Creator’s praise arise!)*[Let the Redeemer’s name be sung!]*{Through ev’ry land!*by ev’ry tongue!*Alleluia!*Alleluia!*Alleluia!*Alleluia!*Alleluia!}*Eternal are Thy mercies!*Lord!*Eternal truth attends Thy Word!👉

’s

Lisa J. Warner / Lisa LuvLisaWarnerLisaLuv
2026-01-31

🙏🙌🌐🌏🙌🙏💛💁🏼‍♀️*(From all that dwell below the skies!*Let the Creator’s praise arise!)*[Alleluia!*Alleluia!]*{Let the Redeemer’s name be sung!}*Through ev’ry land!*by ev’ry tongue!*Alleluia!*Alleluia!*Alleluia!*Alleluia!*Alleluia!*Eternal are Thy mercies!*Lord!👉

’s

Lisa J. Warner / Lisa LuvLisaWarnerLisaLuv
2026-01-31

🙌🙏🌐🌏🙌🙏*From all that dwell below the skies!*Let the Creator’s praise arise!🙌🙏🌐🌏🙌🙏

🙏🙌🌐🌏🙌🙏💛💁🏼‍♀️*(From all that dwell below the skies!*Let the Creator’s praise arise!)*[Alleluia!*Alleluia!]👉

’s

Lisa J. Warner / Lisa LuvLisaWarnerLisaLuv
2026-01-31

🌐🌏🩵💁🏿‍♀️*DEAR BELOVED FRIENDS I HOPE!*& PRAY YOU ALL HAVE A WARM!*ENLIGHTENED!*FUN!*WHIMSICAL!*& AMAZING DAY!*AMEN!🤗👉

🙌🙏🌐🌏🙌🙏*From all that dwell below the skies!👉

’s

Lisa J. Warner / Lisa LuvLisaWarnerLisaLuv
2026-01-31

🌐🌏🩵💁🏿‍♀️*DEAR BELOVED FRIENDS I AM FEEDING MY SPIRIT WITH GOOD!*& LOVING THINGS!*& ALWAYS THINKING OF YOU!*& THE MEANING OF LIFE!*& GOD'S WILL!*& SHARING WITH YOU SO WE ALL CAN BE LIFTED!*& BOOSTED WITH POSITIVE HOPE!*& PASS IT ON TO ALL OTHERS IN LIGHT!*GENTLENESS!*KINDNESS!*& LOVE!*AMEN!👉

’s

Lisa J. Warner / Lisa LuvLisaWarnerLisaLuv
2026-01-31

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst