CSS with MathML not working?
Post here questions and problems related to editing and publishing DITA content.
-
Vinny
- Posts: 28
- Joined: Wed Jan 12, 2022 1:07 pm
CSS with MathML not working?
Folks,
I've been trying to use CSS to alter the way portions of a MathML code look. For example, having the font after <msup> being smaller, with a code like this in my CSS file:
However, nor this, nor any CSS code, seems to work with MathML (with or without namespace, btw). Is that expected, or am I missing something?
Thanks a lot,
Vincent
I've been trying to use CSS to alter the way portions of a MathML code look. For example, having the font after <msup> being smaller, with a code like this in my CSS file:
Code: Select all
@namespace m "http://www.w3.org/1998/Math/MathML";
...
m|msub > * + *, m|msup > * + * {
font-size: 20%;
}
Thanks a lot,
Vincent
-
Radu
- Posts: 9556
- Joined: Fri Jul 09, 2004 5:18 pm
Re: CSS with MathML not working?
Hi,
Can you give us more details? Is this question more about how the MathML equation looks like when editing the XML document in the Author visual editing mode or when it is published? If you mean the latter, do you publish to HTML or PDF? Are you using Oxygen's WebHelp and CSS-based PDF publishing formats?
Regards,
Radu
Can you give us more details? Is this question more about how the MathML equation looks like when editing the XML document in the Author visual editing mode or when it is published? If you mean the latter, do you publish to HTML or PDF? Are you using Oxygen's WebHelp and CSS-based PDF publishing formats?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
Vinny
- Posts: 28
- Joined: Wed Jan 12, 2022 1:07 pm
Re: CSS with MathML not working?
Hi Radu,
yes, excuse me. It’s when outputting to a PDF, using the Oxygen[colours] template.
But in Author mode, I had just a placeholder and no output, as you can see on the attached screenshot.
yes, excuse me. It’s when outputting to a PDF, using the Oxygen[colours] template.
But in Author mode, I had just a placeholder and no output, as you can see on the attached screenshot.
Screenshot 2025-11-03 at 14.08.58.png
Also, the equation is automatically generated by a parser from a LaTEX source.You do not have the required permissions to view the files attached to this post.
-
julien_lacour
- Posts: 730
- Joined: Wed Oct 16, 2019 3:47 pm
Re: CSS with MathML not working?
Post by julien_lacour »
Hi Vinny,
Currently Oxygen PDF Chemistry only supports MathML CSS customization at global level (applied on the whole equation), however I added your vote to the improvement request to extend this support to inner elements so you will be able to change the font-size for msub/msup elements.
I will notify this thread again when the support will be available.
Regards,
Julien
Currently Oxygen PDF Chemistry only supports MathML CSS customization at global level (applied on the whole equation), however I added your vote to the improvement request to extend this support to inner elements so you will be able to change the font-size for msub/msup elements.
I will notify this thread again when the support will be available.
Regards,
Julien
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service