-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XHTML/LaTeXML/FLOMDoc #9
Comments
Turns out: LaTeXML is too restrictive when it comes to But I realized that might not be a problem: If we use MMT to convert tex to xhtml, then MMT reads the LaTeXML-generated xhtml in anyway (e.g. to introduce more CSS, javascript and remove the LaTeXML-footer) before writing it out again. The final MMT build target would additionally generate relational and content-OMDoc, so we want/need that anyway. And of course MMT can modify the XHTML further. One nice advantage (which I tested) is that now all LaTeXML-annotations are extremely generic: They're always (arbitrarily nested) ...what this means is that anyone can freely extend sTeX with new annotations and e.g. corresponding structural features in MMT (I've already started implementing the MMT-XHTML-Import in an extensible way, so support for new annotations can be provided via an MMT extension); which means we're truly extensible without needing to provide new latexml bindings either. |
I would still maintain, that the XHTML should look nice in the browser (or did you mean the XHTML source?). But that is easy to achieve: if you want something to be invisible in XHTML, then you can just put a |
I mean look nice in the browser, and by "not look nice", I mean things like "declarations and associated terms are visible, in constrast the the pdf".
I can't - nothing but |
Not even |
Yes, that is exactly what I would like to maintain. |
That could be possible, but it would necessitate adding css (requiring a command line parameter), and I'm not sure why it matter... Do we expect anyone to ever manually call latexml on an stex file? In that case they would still have to know which CLs they need to pass... |
actually yes, that is exactly what I would expect! |
Also: note that "display:none" also requires width/height-fiddling, otherwise there's a blank space the size of the content.
Do you also expect them to use whatever command line parameters we come up with? :D |
I think this is incorrect.
no, I think they are going to dream up something interesting, including, but not limited to what we do. :-) |
I have no idea what you're hinting at, but in that case, adding custom CSS classes doesn't help ;) I found a CSS class "ltx_rdf" in the LATEXML.css though, that seems to have "display:none" as its only property, that seems to work ;) Then we can reduce bindings to basically four macros: \latexml@annotate@{text,math,invisible,environment} :) |
You were right by the way, I confused that with "opacity", which I used for hoverboxes. Next step: Implement nested modules and structural features on the LaTeX-side, which is mainly a matter of namespace/module-name handling. |
excellent. |
XHTML/LaTeXML
<script type="application/
(xml | json)">
nodes (for xml: Requires prefixing all inner nodes withxhtml:
, but they're not checked against the rnc and stripped away in post processing anyway).<script>
as the first child that holds complex terms etc.<div>
or<span>
with attributesresource
(URI) andproperty
(annotation type).class
- might even be "semantically valid" in that both annotation type and a URI could even meaningfully be used as CSS classes. Then we can addproperty
andresource
orid
as (as usual space separated) class attributes. Complex terms (if necessary) can be moved to a<script>
after the<math>
node and linked to via an id in the classes (inelegant, but functional, I guess).Examples
The text was updated successfully, but these errors were encountered: