<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>
<?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>
<!-- generated by https://github.com/cabo/kramdown-rfc version 1.7.38 (Ruby 3.2.3) -->
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" ipr="trust200902" docName="draft-editorial-rswg-mathinrfcs-00" category="info" submissionType="editorial" tocInclude="true" sortRefs="true" symRefs="true" version="3">
  <!-- xml2rfc v2v3 conversion 3.33.0 -->
  <front>
    <title>Mathematical notation in RFCs</title>
    <seriesInfo name="Internet-Draft" value="draft-editorial-rswg-mathinrfcs-00"/>
    <author initials="A." surname="Rossi" fullname="Alexis Rossi">
      <organization>RFC Series Consulting Editor</organization>
      <address>
        <email>rsce@rfc-editor.org</email>
      </address>
    </author>
    <author initials="M." surname="Thomson" fullname="Martin Thomson">
      <organization/>
      <address>
        <email>mt@lowentropy.net</email>
      </address>
    </author>
    <author initials="L." surname="Eggert" fullname="Lars Eggert">
      <organization/>
      <address>
        <email>lars@eggert.org</email>
      </address>
    </author>
    <date year="2026" month="May" day="11"/>
    <keyword>Internet-Draft</keyword>
    <abstract>
      <?line 60?>

<t>This document defines policy and allows new technology for the representation of mathematical notation in RFCXML and relevant publication formats. After implementation of this policy, the chosen mathematical notation should be used in RFCXML and the HTML publication format.</t>
    </abstract>
    <note removeInRFC="true">
      <name>About This Document</name>
      <t>
        The latest revision of this draft can be found at <eref target="https://github.com/alexisannerossi/id-mathinrfcs/"/>.
        Status information for this document may be found at <eref target="https://datatracker.ietf.org/doc/draft-editorial-rswg-mathinrfcs/"/>.
      </t>
      <t>
        Discussion of this document takes place on the
        RSWG Editorial Stream Working Group mailing list (<eref target="mailto:rswg@rfc-editor.org"/>),
        which is archived at <eref target="https://mailarchive.ietf.org/arch/browse/rswg/"/>.
      </t>
      <t>Source for this draft and an issue tracker can be found at
        <eref target="https://github.com/alexisannerossi/id-mathinrfcs"/>.</t>
    </note>
  </front>
  <middle>
    <?line 64?>

<section anchor="introduction">
      <name>Introduction</name>
      <t>This document allows new technology for the representation of mathematical notation in RFCXML and relevant publication formats defined in <xref target="RFC9720"/>. This document also defines policy requirements for the inclusion of mathematical content. The primary motivations for this new policy are to improve accessibility for non-sighted users and to ensure consistent processing and rendering across the RFC series.</t>
      <t>Mathematical notation in RFCs replaces existing practices for conveying mathematical content.  Inline ASCII and Unicode text or ASCII art and Scalable Vector Graphics (SVGs) can be replaced by native support for content that only contains math. In HTML, native support can then be used in place of such crude alternatives; see <xref target="guidance"/> for more on this. Other publication formats may use the best solution available for displaying math. This document specifically removes support for displaying math in Unicode or SVG figures in the HTML publication format in most cases.</t>
      <t>The RFC Publication Center (RPC) is responsible for tooling and implementation decisions regarding this policy. We expect the adoption of this policy to require changes and adaptation during implementation in early documents using this technology.</t>
    </section>
    <section anchor="policy-requirements">
      <name>Policy Requirements</name>
      <ul spacing="normal">
        <li>
          <t>Mathematical notation should appear correctly in RFCXML, HTML and PDF publication formats, as well as any future publication formats that can support it. The RPC will determine how to best represent math in the Text publication format.</t>
        </li>
        <li>
          <t>Mathematical notation should support both “inline” and “block” form.  "Inline" refers to notation that is used as part of text (like this x) and "block" form refers to equations that might be referenced in the same way that a figure is.</t>
        </li>
        <li>
          <t>It must be possible to reference “block” form equations from the text in a way that clearly distinguishes them from references to figures (or other elements that can be referenced, such as citations). In academic writing, figures are usually referenced as “Fig. n” while equations are referenced as “Eq. n”.</t>
        </li>
        <li>
          <t>In the "block" form, equations must use the chosen math format.  ASCII art or SVG renderings of math must not be used in any format except for the Text publication format, as noted.  Incidental use of math in figures can still use textual or SVG alternatives, provided that any math content is only illustrative.</t>
        </li>
        <li>
          <t>Major desktop and mobile browsers must be capable of natively rendering the mathematical notation correctly in the HTML publication format.</t>
        </li>
        <li>
          <t>The chosen implementation should allow representation of both the meaning and the formatting of the mathematical content.</t>
        </li>
        <li>
          <t>The underlying markup of the RFCXML must embed and preserve the original mathematical source code. Users should be able to readily extract this source representation without having to reverse-engineer it from the final visual renderings.</t>
        </li>
        <li>
          <t>Accessibility should be supported for readers of the HTML publication format who rely on various devices, software, and visual presentations (e.g. braille readers, screen readers, enlarging, and text formatting). The RPC will refer to the W3C Accessibility Guidelines <xref target="WAI"/> when making decisions regarding accessibility.</t>
        </li>
      </ul>
      <t>The RPC is authorized to make decisions about the representation of mathematical notation for both technical and editorial reasons in order to ensure that published RFCs meet the above policy and to provide consistency across the RFC series. The RPC must document their decisions in a public place, and all changes to tooling or implementation decisions must be widely communicated to the RFC author community using mailing lists or other means.</t>
      <t>Any requirement to use a native math format over preexisting alternatives applies only when the math format is considered sufficiently mature.
There will be a period where the solution is being developed.
During this time, the solution might be incomplete or it might be impractical for existing documents to adapt.
The RPC is expected to exercise judgment on a case-by-case basis.</t>
    </section>
    <section anchor="guidance">
      <name>Implementation Guidance</name>
      <t>The RPC is expected to solicit community input before making decisions and to publicly explain their reasoning.</t>
      <t>Documentation produced by the RPC should describe what technical and editorial constraints apply to the HTML publication format and CSS files.
That guidance should include updates to style guides to provide advice on how to decide when math forms are to be preferred over ASCII or Unicode workarounds that have been historically used in the series.
It is expected that native math support would be preferred in most cases, except for the simplest cases or to specifically support text renderings.</t>
      <t>Where possible, implementation decisions should focus on specifying what is disallowed, rather than attempting to specify exactly what is allowed. These decisions should also consider the authoring process as a significant factor in implementation.</t>
      <t>At the time of writing, the general view was that MathML <xref target="MATHML"/> best fit the requirements for inclusion in publication formats and RFC XML.  For authoring, the use of LaTeX <xref target="LaTeX"/> math syntax was considered most suitable.
The RPC is encouraged to consider these options seriously, unless better options become available in future.</t>
      <t>The RPC should periodically review and revise their practices.</t>
    </section>
    <section anchor="security-considerations">
      <name>Security Considerations</name>
      <t>This document has no security considerations.</t>
    </section>
    <section anchor="iana-considerations">
      <name>IANA Considerations</name>
      <t>This document has no IANA actions.</t>
    </section>
    <section anchor="acknowledgements">
      <name>Acknowledgements</name>
      <t>This document has greatly benefited from the input of Carsten Bormann who provided significant input on the early draft versions of this document.</t>
    </section>
  </middle>
  <back>
    <references anchor="sec-informative-references">
      <name>Informative References</name>
      <reference anchor="RFC9720">
        <front>
          <title>RFC Formats and Versions</title>
          <author fullname="P. Hoffman" initials="P." surname="Hoffman"/>
          <author fullname="H. Flanagan" initials="H." surname="Flanagan"/>
          <date month="January" year="2025"/>
          <abstract>
            <t>In order to improve the readability of RFCs while supporting their archivability, the definitive version of the RFC Series transitioned from plain-text ASCII to XML using the RFCXML vocabulary; different publication versions are rendered from that base document. This document describes how RFCs are published.</t>
            <t>This document obsoletes RFC 7990. This document also updates the stability policy in RFC 9280.</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="9720"/>
        <seriesInfo name="DOI" value="10.17487/RFC9720"/>
      </reference>
      <reference anchor="WAI" target="https://www.w3.org/WAI/standards-guidelines/">
        <front>
          <title>W3C Accessibility Standards Overview</title>
          <author>
            <organization>W3C</organization>
          </author>
          <date>n.d.</date>
        </front>
      </reference>
      <reference anchor="MATHML" target="https://www.w3.org/TR/2014/REC-MathML3-20140410/">
        <front>
          <title>Mathematical Markup Language (MathML) Version 3.0 2nd Edition</title>
          <author initials="D." surname="Carlisle" fullname="David Carlisle">
            <organization/>
          </author>
          <author initials="P." surname="Ion" fullname="Patrick Ion">
            <organization/>
          </author>
          <author initials="R." surname="Miner" fullname="Robert Miner">
            <organization/>
          </author>
          <date year="2014" month="April" day="10"/>
        </front>
        <seriesInfo name="W3C" value="Recommendation"/>
      </reference>
      <reference anchor="LaTeX" target="https://www.latex-project.org/">
        <front>
          <title>LaTeX - A document preparation system</title>
          <author>
            <organization/>
          </author>
          <date>n.d.</date>
        </front>
      </reference>
    </references>
  </back>
  <!-- ##markdown-source:
H4sIAAAAAAAAA71Z227kNhJ911cQzsvMoi/OTIBFel/i9VxiwN4MbCeTtwVb
qu5mLIkKSbXcGQyQD9n9uXzJnipSanW7Pd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