mirror of
https://github.com/typst/typst
synced 2025-08-25 04:04:12 +08:00
Added explanation example for outline.indent
This commit is contained in:
parent
8f20d2605f
commit
5b1e75af88
@ -452,6 +452,23 @@ impl OutlineEntry {
|
|||||||
/// If the outline's indent is a fixed value or a function, the prefixes are
|
/// If the outline's indent is a fixed value or a function, the prefixes are
|
||||||
/// indented, but the inner contents are simply offset from the prefix by
|
/// indented, but the inner contents are simply offset from the prefix by
|
||||||
/// the specified `gap`, rather than aligning outline-wide.
|
/// the specified `gap`, rather than aligning outline-wide.
|
||||||
|
///
|
||||||
|
/// ```example
|
||||||
|
/// >>> #show heading: none
|
||||||
|
/// #set heading(numbering: "I-I.")
|
||||||
|
/// #set outline(title: none)
|
||||||
|
///
|
||||||
|
/// #outline()
|
||||||
|
/// #line(length: 100%)
|
||||||
|
/// #outline(indent: 3em)
|
||||||
|
///
|
||||||
|
/// = Software engineering technologies
|
||||||
|
/// == Requirements
|
||||||
|
/// == Tools and technologies
|
||||||
|
/// == Analyzing alternatives
|
||||||
|
/// = Designing software components
|
||||||
|
/// = Testing and integration
|
||||||
|
/// ```
|
||||||
#[func(contextual)]
|
#[func(contextual)]
|
||||||
pub fn indented(
|
pub fn indented(
|
||||||
&self,
|
&self,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user