Skip to content

For all length specifications, use proper units of measurement #2463

Open

Description

@njbart

Bug description

For all user-facing length specifications, please refrain from supporting dimensionless numbers implied to be inches.

Do support numbers only when combined with explicit units of measurement, such as 10in, 17cm, or 150mm.

(Including, but by no means limited to page-width, fig-width, fig-height …)

Please do follow the examples of TeX/LaTeX, pandoc, and pretty much every text processor (MS Word, LibreOffice, Pages, etc.) there is in this respect.

Checklist

  • Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.

Activity

  1. added
    needs-discussionIssues that require a team-wide discussion before proceeding further
    on Oct 7, 2022
  2. added this to the Future milestone on Oct 7, 2022
  3. ghost removed
    needs-discussionIssues that require a team-wide discussion before proceeding further
    on Oct 12, 2022
  4. mcanouil commented on Jul 14, 2025

    @mcanouil
    Collaborator

    For reference:

    @gordonwoodhull What do you think if we took the code you wrote in src/resources/filters/modules/typst_css.lua and made it a general-purpose Lua module to be used across our filters? It would require a bit of refactoring, but I think it's worth it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions