Skip to content

Default examples don't work as is #37

@JanikkinaJ

Description

@JanikkinaJ

The Readme explains how to use this package in a good way, sadly if copied and used as is it already fails at the second line

#import "@preview/drafting:0.2.2"

// Example:
// Default margin in typst is 2.5cm, but we want to use 2cm
// On the left
#set-page-properties(margin-left: 2cm)

as this is not imported with the line shown beforehand.
It would be nice to make this easier for first time user by showing what needs to be imported for the package to work i.e for this example:

#import "@preview/drafting:0.2.2": set-page-properties

// Example:
// Default margin in typst is 2.5cm, but we want to use 2cm
// On the left
#set-page-properties(margin-left: 2cm)

Or by telling them to import all at the start instead:

#import "@preview/drafting:0.2.2": *

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions