How to fix modern-technique-report 0.1.0 unexpected argument fill?

So I was using the modern technique template and I have been using it for a while but recently (couple of months ago) the template stopped working. The error it states, was that there was an unexpected argument fill. I don’t know how to fix this because I cant see any fill command stated in that specific code block.

#show: modern-technique-report.with(
  title: [Project Name \ Multiline When too Long],
  subtitle: [
    *Fourth Edition*, \ by _H.L. Royden_ and _P.M. Fitzpatrick_
  ],
  series: [Mathematics Courses \ Framework Series],
  author: grid(
    align: left + horizon,
    columns: 3,
    inset: 7pt,
    [*Member*], [B. Alice], [qwertyuiop\@youremail.com],
    [], [B. Alice], [qwertyuiop\@youremail.com],
    [], [B. Alice], [qwertyuiop\@youremail.com],
    [*Advisor*], [E. Eric], [qwertyuiop\@youremail.com],
  ),
  date: datetime.today().display("[year] -- [month] -- [day]"),
  background: image("bg.jpg"),
  theme_color: rgb(21, 74, 135),
  font: "New Computer Modern",
  title_font: "Noto Sans",
)

This is the part where the error lies and I don’t get how to fix this.

The current fix I currently do is reverting the version to the older working version but this is not an optimal solution and so here I am.

Also sorry if I didnt choose the right tags, don’t really know where this question belongs under.

Hi @Jason_Liu,

Seems that the modern-technique-report – Typst Universe has not been migrated to Typst 0.13 yet.

You get some errors such as:

unexpected argument: fill

Hint: Typst 0.13 has introduced breaking changes. Try downgrading Tinymist to v0.12 to use a compatible version of Typst, or consider migrating your code according to this guide.

You could perhaps:

  • modify the template code locally yourself to comply with the breaking changes, if allowed to do so
  • contact the package author aytony and perhaps create an issue towards the package, or
  • downgrade Typst to 0.12 or another version.

The culprits seems to be the show rules on outline and outline.entry in lib.typ, such as:

118 outline(
119    depth: 2,
120    fill: repeat[#text(fill: gray)[.]]
121  )

A bit more time necessary to decide if you do need to customize the outline entries, and where to re-insert the code properly.

One of the related breaking changes to fix for migrating to Typst 0.13:

1 Like

Thanks I will for now just downgrade my current document but will do this for the future ones.