Proper Display of XML Equations in HTML
This article explains how to make sure display equations appear correctly when your article XML is converted to HTML on a JAMS-hosted website.
When this happens
Sometimes a display equation (an equation that sits on its own line and is usually numbered) does not render correctly in the published HTML on a hosted website. This normally happens when the equation has not been wrapped in the correct XML tags during conversion.
The fix
Wrap each display equation in a <disp-formula> element, and give it an equation number using a <label> element. For example:
<disp-formula>content<label>(1)</label></disp-formula>
<disp-formula>marks this as a display (block) equation, so it appears on its own line rather than inline with the text.- Replace
contentwith the equation itself. <label>(1)</label>sets the equation number shown alongside it. Increase the number for each new equation, so (1), (2), (3), and so on.
Where to apply this
This change is made in the article XML, which is handled during the conversion stage.
🗒️ Note: XML conversion is usually carried out by your conversion editor or production team. For more on this stage, see the XML Conversion in JAMS page.
If equations still do not display
If a display equation still appears incorrectly after you have applied the tags above, contact the JAMS team so they can check the conversion for you. You can get in touch through the Communication with Conversion Editors page.