{"id":20092351,"url":"https://github.com/rubixdev/typst-outrageous","last_synced_at":"2026-03-08T04:31:12.787Z","repository":{"id":198653588,"uuid":"701248098","full_name":"RubixDev/typst-outrageous","owner":"RubixDev","description":"Easier customization of Typst outline entries.","archived":false,"fork":false,"pushed_at":"2025-10-22T17:08:44.000Z","size":724,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-15T05:56:52.547Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://typst.app/universe/package/outrageous","language":"Typst","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RubixDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-06T08:39:41.000Z","updated_at":"2025-10-22T17:08:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"11266d4a-6794-45ec-98ed-211086eb7dc4","html_url":"https://github.com/RubixDev/typst-outrageous","commit_stats":null,"previous_names":["rubixdev/typst-outrageous"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/RubixDev/typst-outrageous","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubixDev%2Ftypst-outrageous","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubixDev%2Ftypst-outrageous/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubixDev%2Ftypst-outrageous/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubixDev%2Ftypst-outrageous/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RubixDev","download_url":"https://codeload.github.com/RubixDev/typst-outrageous/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubixDev%2Ftypst-outrageous/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30245212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:58:18.660Z","status":"online","status_checked_at":"2026-03-08T02:00:06.215Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T16:36:45.167Z","updated_at":"2026-03-08T04:31:12.773Z","avatar_url":"https://github.com/RubixDev.png","language":"Typst","readme":"# Outrageous\n\nEasier customization of outline entries.\n\n## Examples\n\nFor the full source see [`examples/basic.typ`](./examples/basic.typ) and for\nmore examples see the [`examples` directory](./examples).\n\n### Default Style\n\n![Example: default style](./example-default.png)\n\n```typ\n#import \"@preview/outrageous:0.4.1\"\n#show outline.entry: outrageous.show-entry\n```\n\n### Custom Settings\n\n![Example: custom settings](./example-custom.png)\n\n```typ\n#import \"@preview/outrageous:0.4.1\"\n#show outline.entry: outrageous.show-entry.with(\n  // the typst preset retains the normal Typst appearance\n  ..outrageous.presets.typst,\n  // we only override a few things:\n  // level-1 entries are italic, all others keep their font style\n  font-style: (\"italic\", auto),\n  // no fill for level-1 entries, a thin gray line for all deeper levels\n  fill: (none, line(length: 100%, stroke: gray + .5pt)),\n)\n```\n\n## Usage\n\n### `show-entry`\n\nShow the given outline entry with the provided styling. Should be used in a show\nrule like `#show outline.entry: outrageous.show-entry`.\n\n```typ\n#let show-entry(\n  entry,\n  font-weight: presets.outrageous-toc.font-weight,\n  font-style: presets.outrageous-toc.font-style,\n  vspace: presets.outrageous-toc.vspace,\n  font: presets.outrageous-toc.font,\n  fill: presets.outrageous-toc.fill,\n  gap: presets.outrageous-toc.gap,\n  fill-right-pad: presets.outrageous-toc.fill-right-pad,\n  fill-align: presets.outrageous-toc.fill-align,\n  prefix-transform: presets.outrageous-toc.prefix-transform,\n  body-transform: presets.outrageous-toc.body-transform,\n  page-transform: presets.outrageous-toc.page-transform,\n  state-key: \"outline-page-number-max-width\",\n) = { /* ... */ }\n```\n\n**Arguments:**\n\nFor all the arguments that take arrays, the array's first item specifies the\nvalue for all level-one entries, the second item for level-two, and so on. The\narray's last item will be used for all deeper/following levels as well.\n\n- `entry`: [`content`] \u0026mdash; The\n  [`outline.entry`](https://typst.app/docs/reference/model/outline/#definitions-entry)\n  element from the show rule.\n- `font-weight`: [`array`] of ([`str`] or [`int`] or `auto` or `none`) \u0026mdash;\n  The entry's font weight. Setting to `auto` or `none` keeps the context's\n  current style.\n- `font-style`: [`array`] of ([`str`] or `auto` or `none`) \u0026mdash; The entry's\n  font style. Setting to `auto` or `none` keeps the context's current style.\n- `vspace`: [`array`] of ([`relative`] or [`fraction`] or `auto` or `none`)\n  \u0026mdash; The vertical space above the entry. Setting to `auto` or `none` keeps\n  the context's current setting.\n- `font`: [`array`] of ([`str`] or [`array`] or `auto` or `none`) \u0026mdash; The\n  entry's font. Setting to `auto` or `none` keeps the context's current font.\n- `fill`: [`array`] of ([`content`] or `auto` or `none`) \u0026mdash; The entry's\n  fill. Setting to `auto` keeps the context's current setting.\n- `gap`: [`array`] of ([`length`] or `auto` or `none`) \u0026mdash; The gap between\n  the entry's prefix and body. Setting to `auto` keeps the context's current\n  setting. Setting to `none` is the same as `0pt`.\n- `fill-right-pad`: [`relative`] or `none` \u0026mdash; Horizontal space to put\n  between the fill and page number.\n- `fill-align`: [`bool`] \u0026mdash; Whether `fill-right-pad` should be relative to\n  the current page number or the widest page number. Setting this to `true` has\n  the effect of all fills ending on the same vertical line.\n- `prefix-transform`: [`function`] or `none` \u0026mdash; Callback for custom edits\n  to the entry's prefix. It gets passed the entry's level ([`int`]) and prefix\n  ([`content`]) and should return [`content`] or `none`. If `none` is returned,\n  no modifications are made.\n- `body-transform`: [`function`] or `none` \u0026mdash; Callback for custom edits to\n  the entry's body. It gets passed the entry's level ([`int`]), prefix\n  ([`content`]) and body ([`content`]) and should return [`content`] or `none`.\n  If `none` is returned, no modifications are made.\n- `page-transform`: [`function`] or `none` \u0026mdash; Callback for custom edits to\n  the entry's page number. It gets passed the entry's level ([`int`]) and page\n  number ([`content`]) and should return [`content`] or `none`. If `none` is\n  returned, no modifications are made.\n- `state-key`: [`str`] \u0026mdash; The key to use for the internal state which\n  tracks the maximum page number width. The state is global for the entire\n  document and thus applies to all outlines. If you wish to re-calculate the max\n  page number width for `fill-align`, then you must provide a different key for\n  each outline.\n\n**Returns:** [`content`]\n\n### `presets`\n\nPresets for the arguments for [`show-entry()`](#show-entry). You can use them in\nyour show rule with\n`#show outline.entry: outrageous.show-entry.with(..outrageous.presets.outrageous-figures)`.\n\n```typ\n#let presets = (\n  // outrageous preset for a Table of Contents\n  outrageous-toc: (\n    // ...\n  ),\n  // outrageous preset for List of Figures/Tables/Listings\n  outrageous-figures: (\n    // ...\n  ),\n  // preset without any style changes\n  typst: (\n    // ...\n  ),\n)\n```\n\n### `repeat`\n\nUtility function to repeat content to fill space with a fixed size gap.\n\n```typ\n#let repeat(gap: none, justify: false, body) = { /* ... */ }\n```\n\n**Arguments:**\n\n- `gap`: [`length`] or `none` \u0026mdash; The gap between repeated items.\n- `justify`: [`bool`] \u0026mdash; Whether to increase the gap to justify the items.\n- `body`: [`content`] \u0026mdash; The content to repeat.\n\n**Returns:** [`content`]\n\n### `align-helper`\n\nUtility function to help with aligning multiple items.\n\n```typ\n#let align-helper(state-key, what-to-measure, display) = { /* ... */ }\n```\n\n**Arguments:**\n\n- `state-key`: [`str`] \u0026mdash; The key to use for the [`state`] that keeps track\n  of the maximum encountered width.\n- `what-to-measure`: [`content`] \u0026mdash; The content to measure at this call.\n- `display`: [`function`] \u0026mdash; A callback which gets passed the maximum\n  encountered width and the width of the current item (what was given to\n  `what-to-measure`), both as [`length`], and should return [`content`] which\n  can make use of these widths for alignment.\n\n**Returns:** [`content`]\n\n[`str`]: https://typst.app/docs/reference/foundations/str/\n[`int`]: https://typst.app/docs/reference/foundations/int/\n[`bool`]: https://typst.app/docs/reference/foundations/bool/\n[`content`]: https://typst.app/docs/reference/foundations/content/\n[`function`]: https://typst.app/docs/reference/foundations/function/\n[`array`]: https://typst.app/docs/reference/foundations/array/\n[`relative`]: https://typst.app/docs/reference/layout/relative/\n[`fraction`]: https://typst.app/docs/reference/layout/fraction/\n[`state`]: https://typst.app/docs/reference/introspection/state/\n[`length`]: https://typst.app/docs/reference/layout/length/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubixdev%2Ftypst-outrageous","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubixdev%2Ftypst-outrageous","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubixdev%2Ftypst-outrageous/lists"}