mirror of
https://github.com/typst/typst
synced 2025-05-20 12:05:27 +08:00
Explain how to get the location of an element returned by query
(#2999)
This commit is contained in:
parent
a821b48cf4
commit
e8e797c18b
@ -9,6 +9,9 @@ use crate::introspection::Location;
|
||||
/// retrieve the current document location with the [`locate`]($locate)
|
||||
/// function.
|
||||
///
|
||||
/// You can get the location of the elements returned by `query` with
|
||||
/// [`location`]($content.location).
|
||||
///
|
||||
/// # Finding elements
|
||||
/// In the example below, we create a custom page header that displays the text
|
||||
/// "Typst Academy" in small capitals and the current section title. On the
|
||||
|
Loading…
x
Reference in New Issue
Block a user