How to override paragraph settings inside "Gentle Clues" tips

I have my paragraphs in the main text set with:

#set par(
  first-line-indent: 1em,
  spacing: 0.65em,
  justify: true,
)

But I am also using the “Gentle Clues” package, and I would like to remove the first-line-indent and spacing settings within the “tips”, so that any paragraphs within the tips will have no indent and have an empty line between them (like the default without those set).

The docs for the “Gentle Clues” package gives no indication how to go about it. Could someone please help? Currently, my only solution is to use a list, but I don’t really want list-formatting,

Many thanks.

:slight_smile:
Mark

Is it just the tip clue you want to change? Then I think this is the way to go about it, you wrap that function with your modification.

#import "@preview/gentle-clues:1.2.0" as gentle-clues-pkg: *
#let tip(..args, body) = gentle-clues-pkg.tip(..args, {
  set par(first-line-indent: 0pt)
  body
})

I think a preferred solution would be something that more straightforwardly let you set this up using just regular show and/or set rules, but that might have to wait for future typst versions with some kind of custom tags, classes or types that packages could use.

Thanks @bluss. At the moment, I’m using “tip”, though I’m defining a custom title and using icon: none; if I decide to change, I’ll probably use “example”, it’s simply a matter of the colour, so it will be easy to make the changes.

I think your solution might work well. I’ll give it a try and report back. I am away at the moment, so it’ll have to wait a day or so.

:slight_smile:
Mark

Back at my computer now. The solution @bluss gave works well, I merely had to modify it slightly;

#import "@preview/gentle-clues:1.2.0" as gentle-clues-pkg: *
#let tip(..args, body) = gentle-clues-pkg.tip(..args, {
  set par(first-line-indent: 0pt,
  spacing: 1em,
 )
  body
})

to ensure a blank line between paragraphs. So thanks very much for that. I do have another question in relation to “Gentle Clues”, but I’ll start a new topic.

:slight_smile:
Mark