talal / ilm

A versatile, clean and minimal template for non-fiction writing. Ideal for class notes, reports, and books.
https://typst.app/universe/package/ilm
MIT No Attribution
65 stars 9 forks source link

Toggle link circles #12

Closed tigerros closed 2 months ago

tigerros commented 2 months ago

The maroon circles next to links are kind of non-standard. It would be good if they could be removed.

ironupiwada commented 2 months ago

@talal Just like @tigerros. I would suggest that the link circles should be optional, and these lines:

// Show a small maroon circle next to external links.
  show link: it => {
    // Workaround for ctheorems package so that its labels keep the default link styling.
    if type(it.dest) == label { return it }
    it
    h(1.6pt)
    super(box(height: 3.8pt, circle(radius: 1.2pt, stroke: 0.7pt + rgb("#993333"))))
  }

could be disabled on the user's request (maybe using an option in ilm.with?).

talal commented 2 months ago

Fixed in https://github.com/talal/ilm/commit/3687f6bf0a84c63d104f3e80bba2cc9615d7779d .

Kindly wait until https://github.com/typst/packages/pull/855 is merged and then use the following with@preview/ilm:1.2.0 :

#show: ilm.with(
  ...
  external-link-circle: false
)

Alternatively, you can copy over the latest version of lib.typ file and use that in your project.

tigerros commented 2 months ago

That's how you submit and update packages?? Wow. Hope that gets changed soon.