<?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.31 (Ruby 3.2.3) -->
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" ipr="trust200902" docName="draft-rossi-mathinrfcs-02" category="info" submissionType="editorial" tocInclude="true" sortRefs="true" symRefs="true" version="3">
  <!-- xml2rfc v2v3 conversion 3.32.0 -->
  <front>
    <title>Mathematical notation in RFCs</title>
    <seriesInfo name="Internet-Draft" value="draft-rossi-mathinrfcs-02"/>
    <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="March" day="25"/>
    <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, mathematical notation in RFCXML and the HTML publication format will no longer be accepted in Unicode or Scalable Vector Graphics (SVGs).</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/edit/main/draft-rossi-mathinrfcs-00.md"/>.
        Status information for this document may be found at <eref target="https://datatracker.ietf.org/doc/draft-rossi-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 as these are not adequately accessible to all readers.</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:
H4sIAAAAAAAAA71ZzW4jNxK+91MQzmVmYUnOTIBFtJd4PT8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