Comments (5)
Thank you for the report. The macro definition of \sfrac
in xfrac.sty.ltxml
is currently internally expanding to a variant of \nicefrac
, which causes the error in the raw latex
call - which tries to typeset \nicefrac
without nicefrac.sty
loaded.
I'm curious what the best fix is here. The current implementation is expediently reusing some internal macros from the nicefrac binding, which leads to the reversion of \sfrac
ending up incorrect (as in - missing dependencies).
Edit: And maybe it's also worth stating that this kind of fragility could be expected in any binding which has made the decision to require packages in the .ltxml
file that are not required in the original .sty
/.cls
file. So there is a more general problem to solve beyond the (very nice!) minimal working example.
from latexml.
Workaround:
%\usepackage{xfrac}
\usepackage{nicefrac}
\newcommand{\sfrac}{\nicefrac}
from latexml.
I don't know the architecture to suggest anything, but it's not obvious to me why the pipeline for latex->xml would need to be the same as the one for rendering to svg.
The main benefit of using --mathsvg in my view is to be able to do math rendering with all the bells and whistles which latex allows (which MathML/latexml/whatever will not support). So the svg rendering process should be as transparent as possible.
from latexml.
The main benefit of using --mathsvg in my view is to be able to do math rendering with all the bells and whistles which latex allows (which MathML/latexml/whatever will not support).
Well, maybe. But you also have the option to convert to MathML and then use MathJax to render that as SVG as a final step in the browser.
LaTeXML's primary math output format today is MathML, and most of our testing and development work is aimed there. I think the other formats are there for a good reason, but your expectation shouldn't be that they are/will always be better than MathML.
from latexml.
Sure, I'm happy to accept that my preferences are not shared.
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
- 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 HOT 1
- Get Harps manual HOT 1
- Support for the .sty files already included in the directory 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 latexml.