We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07ffd20 commit 7a86cbfCopy full SHA for 7a86cbf
manual.pdf
12.1 KB
manual.typ
@@ -198,6 +198,24 @@ This behavior can be disabled or modified:
198
```]
199
````]
200
201
+To adjust the font, you can customize the #cmd-[raw.line] element function:
202
+
203
+#example[````
204
+#show raw.line: it => text(
205
+ font: "Comic Sans MS",
206
+ weight: 600,
207
+ size: 18pt,
208
+ it
209
+)
210
+#sourcecode[```cpp
211
+import std;
212
+int main() {
213
+ std::println("Hello, World!");
214
+ return 0;
215
+}
216
+```]
217
+````]
218
219
To show code from a file, load it with #cmd[read] and pass the result to #cmd[sourcefile] alongside the filename:
220
221
#example(raw("#sourcefile(read(\"typst.toml\"), file:\"typst.toml\")"))[
0 commit comments