Giter Club home page Giter Club logo

Comments (4)

laurmaedje avatar laurmaedje commented on June 9, 2024

The reason seems to be numbering trimming. If you change it to SI, it does print "Figure I". This means the numbering pattern is used, but the "S" is trimmed from it. The idea of trimming is that numbering: "1." should still yield a reference Section 1 rather than Section 1.. Apparently, it also trims at the start but that wasn't intentional.

from typst.

twrightsman avatar twrightsman commented on June 9, 2024

if i > 0 || !self.trimmed {
fmt.push_str(prefix);
}

It seems prefixes are trimmed?

I can see how this makes sense in cases like Section (I), but not for the case of S1.

from typst.

laurmaedje avatar laurmaedje commented on June 9, 2024

I can see how this makes sense in cases like Section (I), but not for the case of S1.

For sure. Maybe we could just trim punctuation. I'm not sure how to deal with it.

from typst.

twrightsman avatar twrightsman commented on June 9, 2024

Perhaps another parameter to the respective functions (figure, etc), that disables numbering trimming?

Not the most elegant solution, but could work.

from typst.

Related Issues (20)

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.