<?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.43 (Ruby 3.2.3) -->
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" ipr="trust200902" docName="draft-editorial-rswg-mathinrfcs-04" category="info" submissionType="editorial" tocInclude="true" sortRefs="true" symRefs="true" version="3">
  <!-- xml2rfc v2v3 conversion 3.34.1 -->
  <front>
    <title>Mathematical notation in RFCs</title>
    <seriesInfo name="Internet-Draft" value="draft-editorial-rswg-mathinrfcs-04"/>
    <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="September" day="17"/>
    <keyword>Internet-Draft</keyword>
    <abstract>
      <?line 60?>

<t>This document defines policy and allows new technology for the representation of mathematical content in RFCXML and relevant publication formats. After implementation of this policy, the chosen mathematical notation format 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 content 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>Using a specific mathematical notation format 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 content 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 content 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>The mathematical notation format should support both “inline” and “block” form.  "Inline" refers to math that is used as part of text (like this x) and "block" form refers to content that might be referenced in the same way that a figure is.</t>
        </li>
        <li>
          <t>It must be possible to reference “block” form mathematical content from the text in a way that clearly distinguishes equations from references to figures (or other elements that can be referenced, such as citations). In academic writing, figures are usually referenced as "Figure n" or “Fig. n” while equations are referenced as "Equation n" or “Eq. n”. Authors shall be given the option to decide whether "block" form mathematical content is identified in captions and references as a figure or equation.</t>
        </li>
        <li>
          <t>In the "block" form, content must use the chosen mathmatical notation 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 regarding the inclusion of simple "inline" math in the body of the document or in figures. Simple text may be used in some cases when the author prefers it. The RPC may adjust their requirements as they gain experience.</t>
        </li>
        <li>
          <t>Including math in figures might be challenging due to technical constraints on the composition of SVG and the chosen mathmatical notation format. 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 content 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 notation 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 content 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 mathmatical notation format over preexisting alternatives applies only when the 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 mathematical notation formats are to be preferred over ASCII or Unicode workarounds that have been historically used in the series.
It is expected that native mathematical notation 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 mathematical notation format 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:
H4sIAAAAAAAAA71ZzW4cNxK+z1MQ8sUGZkayHSDInKKVfyJA2hiSEuW2YHdz
Zhh1Nzske1oTw0AeZPfl8iT7VZHsn9HIyV72YMjdTVYVq776qoqzWCxmXvtS
rcS19FtVSa9zWYraePzP1ELX4ubDhZsVJq9lhWWFlWu/UIX2xmpZLqzrNgts
2+rarnO3OPtmtlN1q1YzITbWtM1K3Nzef8ST3zfY/z7tFLfeKlmJe2MfdL0R
H2kxllVSlytBYr+HwKhpaewG36TNtyux9b5xq9NTWklv9E4ttfJrWnRKL04z
azqnTknIKdmh/bbNVuJElupRO1nXyhrn9KkuRqafYGUpvXIeK5OOsHWZm+r0
q5tPT2bOy7r4lyxNjWN626rZbiXeznRj+dH5N2dn3529mT10K3FZe2Vr5Rfv
yJ2zXEKnrtdm5tqs0pBu6jt2V+/o2YPad8YW8OtC/HB3fTWTrd8aS35e4J/A
frcS50txQ9bxmxCxc7Z79BpukrX+nQO8ovCKW2W1cuLC1K4tPUUjhImXqxSR
XD2NyEj19VLcbU3lTD1Sfi0t5E0+TNSPNVT++9J0qvbWNPslvDOVf7UU7zcb
Zf1I/JW0bvz2WdkAivte8UK2fFYbS2DfAaizGbm+fxTkku++fXNG/70/vwxy
Bm9HPStx//aCH2MC4VGc57mCmzNdar8HwoEIaQsnftwpu9OqC+ul3Sg/4Ljr
umX3ltELdacu7VpsWl2oUtfKEYqvz+9+uL5ajVWeTJIWvn5oG/ik3rRyo8RL
+np99Ur8rCwhSrxdnok3dcHBxfPJX1lzd3P65uz1N6c37y8WQdbbBb04++b1
2ekRryxiVN7JnS7EhbSldqU6+PhJeqvzB3EZ4TB8uTEZwiOuceCAvALZuBKk
EbSyeH3GLx1jlSKW1MLx2KyQo5WC5+ho+HIl79QvU2/xK6g7F6CzFou9aK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