Skip to content

Commit

Permalink
Fixed manual
Browse files Browse the repository at this point in the history
  • Loading branch information
tingerrr committed Mar 19, 2024
1 parent eba679e commit 78ce128
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion doc/chapters/2-features.typ
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ visible on the previous (trailing) page it is also skipped.
)

This may produce unexpected results with hydra is used outside the header and the text direction
where it is used is different to where it's anchor (see @anchor) is placed.
where it is used is different to where it's anchor (see @anchor) is placed. This can be prevented by
explicitly setting it's `binding` and `dir` arguments.

== Anchoring <anchor>
To use hydra outside of the header, an anchor must be placed to get the correct active elements.
Expand Down
Binary file modified doc/manual.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions src/util/core.typ
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

/// Returns the text direction for a given language, defaults to `ltr` for unknown languages.
///
/// Source: github:typst/typst#9646a13 crates/typst/src/text/lang.rs:L50-57
/// Source: #link("https://github.com/typst/typst/blob/9646a132a80d11b37649b82c419833003ac7f455/crates/typst/src/text/lang.rs#L50-57")[`lang.rs#L50-L57`]
///
/// lang (str): The languge to get the text direction for.
/// -> direction
Expand All @@ -26,7 +26,7 @@

/// Returns the page binding for a text direction.
///
/// Source: github:typst/typst#9646a13 crates/typst/src/layout/page.rs#L368-L373
/// Source: #link("https://github.com/typst/typst/blob/9646a132a80d11b37649b82c419833003ac7f455/crates/typst/src/layout/page.rs#L368-L373")[`page.rs#L368-L373`]
///
/// dir (direction): The direction to get the page binding for.
/// -> alignement
Expand Down

0 comments on commit 78ce128

Please sign in to comment.