Comments (7)
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.
I could have mbox produce EIdentifier
instead of EText
.
Would that be better?
from texmath.
As far a I can see from tex documentation and experimenting, treating this as text is correct.
from texmath.
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.
+++ 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.
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.
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
from texmath.
Related Issues (20)
- Error in groff ms math output HOT 2
- A couple of eqn translation problems HOT 5
- Be able to fully parse docutils' mathematics.txt HOT 6
- \enspace bug HOT 1
- Improper placement of subscript in math block (but not when placed inline) HOT 3
- \mathrm in MathML for Google Chrome HOT 13
- MathML Core: \begin{align} ... \end{align} has too much padding HOT 1
- Translate \cdots to cdots in eqn writer HOT 1
- please use █ instead of ■ when converting {aligned} into docx HOT 6
- Add support for (amsmath) multlined environment HOT 3
- typst reader HOT 1
- md to typst: superscript in math mode
- \intertext{...} from LaTeX to Typst HOT 5
- latex/markdown to typst overline conversion
- `U_{\frac{1}{n}}` gets converted to `U_1 / n` for LaTeX to typst.
- \tilde{x} from LaTeX to typst should get converted to accent(x,tilde.op) instead
- $\underbrace{x}_{y}$ from LaTeX to typst
- mathml vector - typeset error HOT 1
- texmath converts $s_n$ to $space_n$ from LaTeX to Typst HOT 1
- MathML <mo> created for each adjacent Rel symbol HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from texmath.