mirror of
https://github.com/typst/typst
synced 2025-08-25 04:04:12 +08:00
Move existing explanation into a section
This commit is contained in:
parent
ee770f9dec
commit
f1d10fc96f
@ -137,10 +137,12 @@
|
||||
details: |
|
||||
A module that contains all globally accessible items.
|
||||
|
||||
This is useful whenever you overrode a name from the global scope (e.g.
|
||||
the [`text`] element). To still access the `text` element, write `std.text`.
|
||||
# Using "shadowed" definitions
|
||||
The `std` module is useful whenever you overrode a name from the global
|
||||
scope (this is called _shadowing_). For instance, you might have used the
|
||||
name `text` for a parameter. To still access the `text` element, write
|
||||
`std.text`.
|
||||
|
||||
# Example
|
||||
```example
|
||||
>>> #set page(margin: (left: 3em))
|
||||
#let par = [My special paragraph.]
|
||||
|
Loading…
x
Reference in New Issue
Block a user