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
93 stars 13 forks source link

functionality for creating an Appendix #14

Closed CarloLucibello closed 1 week ago

CarloLucibello commented 1 month ago

Hi, thanks for the nice package, I started to use it to create some lecture notes.

Right now in order to create the appendix for the notes I do the following after the main text

#counter(heading).update(0)

#set heading(numbering: (..nums) => {
  if nums.pos().len() == 1 {
    return ""
  } 
  let a = nums.pos().slice(1)
  return numbering("A.1.1", ..a)
})

#align(center)[= Appendix]

== Gaussian Integrals  and Error Functions

== TODO

with the result

Screenshot 2024-10-09 at 11 56 51

It took me some digging to reach this result, while I think it should be something much more immediate, as it is in latex.

Would you maybe consider adding some functionality in ilm to reach a similar result?

talal commented 1 month ago

Thank you for the suggestion. I'll see what I can do.

talal commented 1 week ago

Appendix functionality was added in v1.4.0, kindly wait for https://github.com/typst/packages/pull/1297 to get merged.

For instructions on how to configure the appendix, kindly see the Appendices section in the example.pdf file.