GithubHelp home page GithubHelp logo

Active characters about latex3 HOT 4 CLOSED

latex3 avatar latex3 commented on May 12, 2024
Active characters

from latex3.

Comments (4)

josephwright avatar josephwright commented on May 12, 2024

Find use cases

from latex3.

wspr avatar wspr commented on May 12, 2024

Bringing this back to life: this is like a poor man's catcodetable scheme, right? I actually think that active characters have a degree of utility in creating light-weight markup — consider what we do with \MakeShortVerb\| and so on.

So I think from a document perspective having an interface to do this is probably a good idea. Other approaches I've seen in the distant past around this revolved around using a stack to push/pop active meanings, but I don't see as an advantage there.

One wrinkle is that if we provide a "special" interface for setting active character meanings we should disable or at least check for an attempt to overwrite the fundamental definitions using more primitive commands. Not sure if that should be a check related functionality or something built into \cs_set or the xparse functions.

from latex3.

josephwright avatar josephwright commented on May 12, 2024

@wspr First step is to have a fixed set of actives of course: that's often part of the issue. I do see your point about | for short verbatim but that's a rather specialised use (in the sum total of LaTeX documents, actually printing code is relatively rare), but also wonder if there is a need to turn it on-and-off ... I guess tables?

from latex3.

josephwright avatar josephwright commented on May 12, 2024

We've handled active chars now using \char_generate:nn and \cs_(g)set_active:eq:NN

from latex3.

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.