Comments (3)
Right, good point. I think we can safely agree that the reversion is incorrect here - as you show it leads to an incorrect rendering.
So a fix that uses a proper reversion
attribute on that DefMacro would be one possible healthy upgrade.
from latexml.
Based on discussions in some previous issues (#2092 (comment)), I don't think you should have the general expectation that the tex
attribute will always retain the original TeX from the document source.
It's both technically a difficult question to solve in general, as well as a bit out-of-scope for LaTeXML's main purpose, which is conversion to structured formats.
We could patch this individual macro you've reported, adding an appropriate reversion
directive in the binding here:
LaTeXML/lib/LaTeXML/Package/braket.sty.ltxml
Lines 77 to 79 in de34fac
But this is certainly going to be just one of many possible cases where the tex
attribute will not match up with the source file.
from latexml.
got it, thanks!
Just to clarify---in this case the math $\braket{a}{b}$
is not even equivalent to the original math:
\braket{a|b}
:
\braket{a}{b}
:
Should I have an expectation that compiling the tex
attribute as math should not even match the original output?
from latexml.
Related Issues (20)
- How to configure for ImageMagisk HOT 2
- Maximum number of warnings? HOT 1
- Raw use of \label for pgfplots
- index references should be more descriptive HOT 4
- TikZ no longer causes newpage with figures HOT 3
- Abstract, acknowledgements, references, and (sometimes) appendices do not appear in the post-processing generated table of contents.
- \overline and MathML Core horizontal stretching (in Chrome) HOT 1
- asterisk in math should be rendered as U+2217 HOT 2
- \operatorname content should not be parsed
- `subfiles` package breaks `algorithm2e`
- pgfplots legend regression
- Alignment inaccuracies for \input in {tabular}
- maxsize/minsize refactor away from percents HOT 1
- Spelling errors in code HOT 2
- pdftex_expanded test regression
- Win32 unicode paths HOT 1
- Bulk dump of ar5iv? HOT 10
- Using latexmls HOT 1
- Missing line break in text converted from fancyvrb environments HOT 1
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.