Comments (4)
Those commands are preserved in text, but discarded in math.
It's actually a bit tricky, since the goal is to parse the
math, as far as possible. Even ignoring the fact that spacing
conceivably carries some semantics, their presence interferes
with any remotely writable grammar! So, currently, they
get removed before parsing.
I do have a crude mental model of how they might be preserved:
Rather than throw them out, they would be attached to adjacent
symbols (preceding, following?), carried through the parse,
and then turned into something reasonable during final processing
(eg. mpadded for MathML ?). It really isn't clear that the
padding would be in the right place, though, and needs some thought.
So, this is on the back burner for now....
but I'll leave the ticket open as a reminder; Thanks!
from latexml.
Maybe ?
I don't know anything about MathML really, so I leave it to you.
Thanks for responding!
from latexml.
Also I'm happy to see that spaces inside \text{} are working, so I can get good output from e.g. [f(x)=4\text{ when }x>0]. I don't think that was working in older revisions, which was a big part of my unhappiness about spacing. Or maybe I was using \mbox instead of \text or something...
from latexml.
I finally was able to focus my attention on this one (also).
Basically I needed to accept a workable, even if not-quite-correct,
solution: before we throw away spacing hints, we copy the width
to the preceding token as an rspace; That gets carried through
until it gets converted to presentation MathML, and gets wrapped
by an mpadded when needed. It seems to work.
Sorry for the delay, and thanks for the report.
from latexml.
Related Issues (20)
- JATS: <inline-graphic> not output into JATS
- JATS: proper way to add author data (e.g. email, orcid) with LaTeXML
- JATS: proper way to add "author date" for LaTeXML
- JATS: proper way to add license/copyright info
- JATS: Use Commonmeta to generate JATS metadata HOT 8
- Install Fails on Windows 10 via "cpan LaTeXML" HOT 1
- Would like the ability to add static assets at a deeper directory level than the main html file HOT 2
- \hline in array creates empty row
- feat: support alt text via \Description command in ACM template HOT 1
- Text alignment HOT 1
- link to (sub)section in title of that (sub)section HOT 3
- Space between \micro-prefix and rest of unit symbol with siunitx HOT 1
- View of a page in a responsive mode with a smartphone HOT 2
- xfrac package fails with mathsvg HOT 5
- siunitx fails in mathmode with --mathsvg HOT 3
- Project home page link gives 404 HOT 1
- add viewBox to inline SVGs HOT 1
- support font sizes provided by the class
- Get Harps manual HOT 1
- Support for the .sty files already included in the directory HOT 4
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 latexml.