Coder Social home page Coder Social logo

talal / ilm Goto Github PK

View Code? Open in Web Editor NEW
28.0 28.0 3.0 1.16 MB

A versatile, clean and minimal template for non-fiction writing. Ideal for class notes, reports, and books.

License: MIT No Attribution

Typst 97.56% TeX 2.44%
book notes package report template typst typst-package typst-template

ilm's People

Contributors

talal avatar youwen5 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ilm's Issues

Included files

When working with included files, the page number doesn't show in them.

Cannot use page function with headings

Really like this template I'm running into issues using the page function with inner headings.

Code

#import "@preview/ilm:1.1.1": *

#show: ilm.with(
  title: [Process Design - G11],
  author: "",
  abstract: [],
  bibliography: bibliography("refs.bib"),
  figure-index: (enabled: true),
  table-index: (enabled: true),
  listing-index: (enabled: true)
)

#page(flipped: true)[
  = PID
#figure(
  align(center)[#image("PID.svg", width: 100%)],
  caption: [A figure to show the PID for the plant],
) 
#table(
  columns: 5,
  [Gross numbers]
)
]

Error

Pagebreaks are not allowed inside of containers line (failed in package "@preview/ilm:1.1.1")

Thanks!

Support for other languages

First of all: thanks for this fantastic template! I've already used it in a few documents. One feature request I have, though, would be to support other languages apart from English (currently, things like the date format and headings "force" English in some areas). From a brief look at the template, it looks like this should be relatively easy to achieve, apart from one area:

Trivial Cases

Here, hard-coded values could simply become parameters with default values:

ilm/lib.typ

Lines 93 to 94 in ea4413d

// Display date as MMMM DD, YYYY
text(date.display("[month repr:long] [day padding:zero], [year repr:full]"))

ilm/lib.typ

Lines 129 to 130 in ea4413d

// Display table of contents.
outline(title: "Contents")

ilm/lib.typ

Lines 236 to 238 in ea4413d

if imgs { outline(title: "Index of Figures", target: fig-t(image)) }
if tbls { outline(title: "Index of Tables", target: fig-t(table)) }
if lsts { outline(title: "Index of Listings", target: fig-t(raw)) }

Non-trivial Case

ilm/lib.typ

Lines 137 to 139 in ea4413d

if not txt.starts-with("Index of") and txt != "Bibliography" {
pagebreak()
}

Here, it isn't quite as easy, since the title of the bibliography currently isn't managed by the lib.typ. While, as a short-term solution, this variable could be introduced (and at least set as a default using a #set expression), I don't think this is a great long-term solution ๐Ÿค”. A more stable solution could be to scope that chapter pagebreak show rule to only the body, with the bibliography and outlines being outside the affected scope.

Next steps

I'd be willing to work on / create a PR for this. Would you accept such a change to the project? And if so: what's your preferred solution on the non-trivial case?

Thanks!

Locale

The language is harcoded to English (ie. the word "Contents").
It would be nice to change it according to language settings.

Page break after title page

Thanks you for creating such a clean and nice looking template for typst. I wonder if you had mind to control via a parameter if there is a blank page after the title - for web this may be unneccessary - I would gladly use a parameter like title-pagebreak = false. Thanks for considering.

Toggle Equation Numbering

Hi, I found configuration options to turn off indices for figures, tables, etc. Could you please help me find a way to turn off numbering for math equations as well? In my case, they're not necessary and are affecting the flow of the content. Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.