Giter Site home page Giter Site logo

anti-matter's Introduction

rust & typst enthusiast

anti-matter's People

Contributors

tingerrr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

anti-matter's Issues

Deprecate?

I've used my own package successfully in a few reports for university, while using my unfinished template.

After starting work on my master's thesis and by extension the university template to turn it into a proper template package, I noticed that I once again got incorrect results. Namely, off-by-one errors, which I couldn't attribute to the metadata being shoved to the next page.

It was also trivial to create logical page numbering with a well-structured template, without anti-matter. So I'm wondering if this package carries its own weight, especially since Typst cannot use logical numbering for PDF-export if this package is used.

// unnumbered title page if needed
// ...

// front-matter
#set page(numbering: "I")
#counter(page).update(1)
// ...

// page counter anchor
#metadata(()) <front-matter>

// main document body
#set page(numbering: "1")
#counter(page).update(1)
// ...

// back-matter
#set page(numbering: "I")
// must take page breaks into account, may need to be offset by +1 or -1
#context counter(page).update(counter(page).at(<front-matter>).first())
// ...

A document like this will provide correct logical page numbering for PDF-export, as well as simple front- and back-matter numbering with almost no setup.

The only thing this package can do that this approach cannot, is getting the correct total number at each point to allow for I / V or 1 / 15 patterns. But this seems rare in practice.

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.