<?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.39 (Ruby 3.2.3) -->
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" ipr="trust200902" docName="draft-editorial-rswg-mathinrfcs-01" category="info" submissionType="editorial" tocInclude="true" sortRefs="true" symRefs="true" version="3">
  <!-- xml2rfc v2v3 conversion 3.34.0 -->
  <front>
    <title>Mathematical notation in RFCs</title>
    <seriesInfo name="Internet-Draft" value="draft-editorial-rswg-mathinrfcs-01"/>
    <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="June" day="20"/>
    <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 provides an option to replace existing practices for conveying mathematical content.  Though some simpler uses of math can be represented using inline text, native support for mathematical notation can provide a superior replacement for text, Scalable Vector Graphics (SVG), or ASCII art. In HTML, native support for math can then be used in place of these alternatives. Other publication formats may use the best solution available for displaying math.</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">
      <name>Policy</name>
      <ol spacing="normal" type="1"><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.</t>
        </li>
        <li>
          <t>The RPC is expected to exercise discretion about the inclusion of how math is presented in "inline" form or figures. In those contexts, especially for smaller or less complex math, simple text versions can be superior to full equations.</t>
        </li>
        <li>
          <t>Including math in figures might be challenging due to technical constraints on the composition of SVG and the chosen math form. Math in figures can be presented using pure text or SVG alternatives when that math content is only illustrative. More substantive math can be included in these less accessible forms in figures when it is also presented in a more accessible form elsewhere in the document on the condition that those alternative presentations are clearly identified.</t>
        </li>
        <li>
          <t>It must be possible to render the mathematical notation in the HTML publication format correctly using widely used desktop and mobile browsers.</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>
      </ol>
      <t>The RPC is authorized to make decisions about the representation of mathematical notation for both technical and editorial reasons. This ensures 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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