Giter Site home page Giter Site logo

Comments (7)

jgm avatar jgm commented on June 23, 2024

I hadn't realized that mbox's argument was interpreted as text mode.
The fix in 6fcaaf6 should work for you, I think.
Let me know if it's still a problem. It doesn't produce quite what you wanted, <mi>id</mi>, but rather <mtext mathvariant="normal">id</mtext>.

from texmath.

jgm avatar jgm commented on June 23, 2024

I could have mbox produce EIdentifier instead of EText.
Would that be better?

from texmath.

jgm avatar jgm commented on June 23, 2024

As far a I can see from tex documentation and experimenting, treating this as text is correct.

from texmath.

fatanassow avatar fatanassow commented on June 23, 2024

You're right: it makes sense that \mbox produces mtext. I only mentioned \mbox to show how I might get the right rendering in TeX. But I still don't know the answer to my original question: how can I produce a multi-letter identifier like <mi>id</mi>?

from texmath.

jgm avatar jgm commented on June 23, 2024

+++ Frank Atanassow [Feb 10 16 00:00 ]:

You're right: it makes sense that \mbox produces mtext. But how can I
produce something like id?

I don't think there's any way to do it.

from texmath.

fatanassow avatar fatanassow commented on June 23, 2024

Since TeX doesn't really seem to distinguish semantics like the difference between an identifier and a box of text, maybe it is worth introducing a macro, say, \MathIdentifier, which translates to an EIdentifier?

from texmath.

jgm avatar jgm commented on June 23, 2024

It's an artificial solution, but it makes sense to me.

+++ Frank Atanassow [Feb 10 16 10:39 ]:

Since TeX doesn't really seem to distinguish semantics like the
difference between an identifier and a box of text, maybe it is worth
introducing a macro, say \MathIdentifier, which translates to an
EIdentifier?


Reply to this email directly or [1]view it on GitHub.

References

  1. #86 (comment)

from texmath.

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.