<?xml version="1.0" encoding="UTF-8"?>
<?latexml class="article"?>
<?latexml package="nicefrac,units"?>
<?latexml RelaxNGSchema="LaTeXML"?>
<document xmlns="http://dlmf.nist.gov/LaTeXML">
  <resource src="LaTeXML.css" type="text/css"/>
  <resource src="ltx-article.css" type="text/css"/>
  <para xml:id="p1">
    <p>Text mode, then math mode.</p>
  </para>
  <section inlist="toc" xml:id="S1">
    <tags>
      <tag>1</tag>
      <tag role="refnum">1</tag>
      <tag role="typerefnum">§1</tag>
    </tags>
    <title><tag close=" ">1</tag>Unit</title>
    <para xml:id="S1.p1">
      <p>Normal: m <Math mode="inline" tex="\mathrm{m}" text="m" xml:id="S1.p1.m1">
          <XMath>
            <XMTok class="ltx_unit" role="ID">m</XMTok>
          </XMath>
        </Math></p>
    </para>
    <para xml:id="S1.p2">
      <p>In bold sans-serif:
<text font="sansserif bold">m </text>
<Math mode="inline" tex="\mathrm{m}" text="m" xml:id="S1.p2.m1">
          <XMath>
            <XMTok class="ltx_unit" role="ID">m</XMTok>
          </XMath>
        </Math></p>
    </para>
    <para xml:id="S1.p3">
      <p>In bold sans-serif, with a unit:
<text font="sansserif bold">1 m</text>
<Math mode="inline" tex="1\,\mathrm{m}" text="1 * m" xml:id="S1.p3.m1">
          <XMath>
            <XMApp>
              <XMTok meaning="times" role="MULOP">⁢</XMTok>
              <XMTok meaning="1" role="NUMBER" rpadding="1.7pt">1</XMTok>
              <XMTok class="ltx_unit" role="ID">m</XMTok>
            </XMApp>
          </XMath>
        </Math></p>
    </para>
  </section>
  <section inlist="toc" xml:id="S2">
    <tags>
      <tag>2</tag>
      <tag role="refnum">2</tag>
      <tag role="typerefnum">§2</tag>
    </tags>
    <title><tag close=" ">2</tag>Unitfrac</title>
    <para xml:id="S2.p1">
      <p>Normal: <Math mode="inline" tex="\nicefrac{{m}}{{s}}" text="m / s" xml:id="S2.p1.m1">
          <XMath>
            <XMApp>
              <XMTok meaning="divide" role="MULOP" stretchy="true" width="-0.15em" xoffset="-0.1em">/</XMTok>
              <XMTok class="ltx_unit" fontsize="70%" role="ID" rpadding="-0.5em" yoffset="0.3em">m</XMTok>
              <XMTok class="ltx_unit" fontsize="70%" role="ID">s</XMTok>
            </XMApp>
          </XMath>
        </Math> <Math mode="inline" tex="\nicefrac{\mathrm{m}}{\mathrm{s}}" text="m / s" xml:id="S2.p1.m2">
          <XMath>
            <XMApp>
              <XMTok meaning="divide" role="MULOP" stretchy="true" width="-0.15em" xoffset="-0.1em">/</XMTok>
              <XMTok class="ltx_unit" fontsize="70%" role="ID" rpadding="-0.5em" yoffset="0.3em">m</XMTok>
              <XMTok class="ltx_unit" fontsize="70%" role="ID">s</XMTok>
            </XMApp>
          </XMath>
        </Math></p>
    </para>
    <para xml:id="S2.p2">
      <p>In bold sans-serif:
<Math mode="inline" tex="\nicefrac{{m}}{{s}}" text="m / s" xml:id="S2.p2.m1">
          <XMath>
            <XMApp>
              <XMTok meaning="divide" role="MULOP" stretchy="true" width="-0.15em" xoffset="-0.1em">/</XMTok>
              <XMTok class="ltx_unit" font="sansserif bold" fontsize="70%" role="ID" rpadding="-0.5em" yoffset="0.3em">m</XMTok>
              <XMTok class="ltx_unit" font="sansserif bold" fontsize="70%" role="ID">s</XMTok>
            </XMApp>
          </XMath>
        </Math>
<Math mode="inline" tex="\nicefrac{\mathrm{m}}{\mathrm{s}}" text="m / s" xml:id="S2.p2.m2">
          <XMath>
            <XMApp>
              <XMTok meaning="divide" role="MULOP" stretchy="true" width="-0.15em" xoffset="-0.1em">/</XMTok>
              <XMTok class="ltx_unit" fontsize="70%" role="ID" rpadding="-0.5em" yoffset="0.3em">m</XMTok>
              <XMTok class="ltx_unit" fontsize="70%" role="ID">s</XMTok>
            </XMApp>
          </XMath>
        </Math></p>
    </para>
    <para xml:id="S2.p3">
      <p>In bold sans-serif, with a unit:
<text font="sansserif bold">1 <Math mode="inline" tex="\nicefrac{{m}}{{s}}" text="m / s" xml:id="S2.p3.m1">
            <XMath>
              <XMApp>
                <XMTok font="serif medium" meaning="divide" role="MULOP" stretchy="true" width="-0.15em" xoffset="-0.1em">/</XMTok>
                <XMTok class="ltx_unit" fontsize="70%" role="ID" rpadding="-0.5em" yoffset="0.3em">m</XMTok>
                <XMTok class="ltx_unit" fontsize="70%" role="ID">s</XMTok>
              </XMApp>
            </XMath>
          </Math></text>
<Math mode="inline" tex="1\,\nicefrac{\mathrm{m}}{\mathrm{s}}" text="1 * (m / s)" xml:id="S2.p3.m2">
          <XMath>
            <XMApp>
              <XMTok meaning="times" role="MULOP">⁢</XMTok>
              <XMTok meaning="1" role="NUMBER" rpadding="1.7pt">1</XMTok>
              <XMApp>
                <XMTok meaning="divide" role="MULOP" stretchy="true" width="-0.15em" xoffset="-0.1em">/</XMTok>
                <XMTok class="ltx_unit" fontsize="70%" role="ID" rpadding="-0.5em" yoffset="0.3em">m</XMTok>
                <XMTok class="ltx_unit" fontsize="70%" role="ID">s</XMTok>
              </XMApp>
            </XMApp>
          </XMath>
        </Math></p>
    </para>
    <para xml:id="S2.p4">
      <p>In scriptsize, italic sans-serif:
<text font="sansserif italic" fontsize="70%">1 <Math mode="inline" tex="\nicefrac{{m}}{{s}}" text="m / s" xml:id="S2.p4.m1">
            <XMath>
              <XMApp>
                <XMTok font="serif upright" meaning="divide" role="MULOP" stretchy="true" width="-0.15em" xoffset="-0.1em">/</XMTok>
                <XMTok class="ltx_unit" fontsize="70%" role="ID" rpadding="-0.5em" yoffset="0.3em">m</XMTok>
                <XMTok class="ltx_unit" fontsize="70%" role="ID">s</XMTok>
              </XMApp>
            </XMath>
          </Math></text>
<Math mode="inline" tex="1\,\nicefrac{\mathrm{m}}{\mathrm{s}}" text="1 * (m / s)" xml:id="S2.p4.m2">
          <XMath>
            <XMApp>
              <XMTok meaning="times" role="MULOP">⁢</XMTok>
              <XMTok fontsize="70%" meaning="1" role="NUMBER" rpadding="1.7pt">1</XMTok>
              <XMApp>
                <XMTok fontsize="70%" meaning="divide" role="MULOP" stretchy="true" width="-0.15em" xoffset="-0.1em">/</XMTok>
                <XMTok class="ltx_unit" fontsize="49%" role="ID" rpadding="-0.5em" yoffset="0.3em">m</XMTok>
                <XMTok class="ltx_unit" fontsize="49%" role="ID">s</XMTok>
              </XMApp>
            </XMApp>
          </XMath>
        </Math></p>
    </para>
  </section>
  <section inlist="toc" xml:id="S3">
    <tags>
      <tag>3</tag>
      <tag role="refnum">3</tag>
      <tag role="typerefnum">§3</tag>
    </tags>
    <title><tag close=" ">3</tag>Nicefrac</title>
    <para xml:id="S3.p1">
      <p>Normal: <Math mode="inline" tex="\nicefrac{{1}}{{2}}" text="1 / 2" xml:id="S3.p1.m1">
          <XMath>
            <XMApp>
              <XMTok meaning="divide" role="MULOP" stretchy="true" width="-0.15em" xoffset="-0.1em">/</XMTok>
              <XMTok fontsize="70%" meaning="1" role="NUMBER" rpadding="-0.5em" yoffset="0.3em">1</XMTok>
              <XMTok fontsize="70%" meaning="2" role="NUMBER">2</XMTok>
            </XMApp>
          </XMath>
        </Math> <Math mode="inline" tex="\nicefrac{{1}}{{2}}" text="1 / 2" xml:id="S3.p1.m2">
          <XMath>
            <XMApp>
              <XMTok meaning="divide" role="MULOP" stretchy="true" width="-0.15em" xoffset="-0.1em">/</XMTok>
              <XMTok fontsize="70%" meaning="1" role="NUMBER" rpadding="-0.5em" yoffset="0.3em">1</XMTok>
              <XMTok fontsize="70%" meaning="2" role="NUMBER">2</XMTok>
            </XMApp>
          </XMath>
        </Math></p>
    </para>
    <para xml:id="S3.p2">
      <p>Typewriter: <Math mode="inline" tex="\nicefrac{\texttt{1}}{\texttt{2}}" text="[1] / [2]" xml:id="S3.p2.m1">
          <XMath>
            <XMApp>
              <XMTok meaning="divide" role="MULOP" stretchy="true" width="-0.15em" xoffset="-0.1em">/</XMTok>
              <XMText rpadding="-0.5em" yoffset="0.3em"><text font="typewriter" fontsize="70%">1</text></XMText>
              <XMText><text font="typewriter" fontsize="70%">2</text></XMText>
            </XMApp>
          </XMath>
        </Math> <Math mode="inline" tex="\nicefrac{\texttt{1}}{\texttt{2}}" text="[1] / [2]" xml:id="S3.p2.m2">
          <XMath>
            <XMApp>
              <XMTok meaning="divide" role="MULOP" stretchy="true" width="-0.15em" xoffset="-0.1em">/</XMTok>
              <XMText rpadding="-0.5em" yoffset="0.3em"><text font="typewriter" fontsize="70%">1</text></XMText>
              <XMText><text font="typewriter" fontsize="70%">2</text></XMText>
            </XMApp>
          </XMath>
        </Math></p>
    </para>
    <para xml:id="S3.p3">
      <p>In bold, italic:
<Math mode="inline" tex="\nicefrac{{1}}{{2}}" text="1 / 2" xml:id="S3.p3.m1">
          <XMath>
            <XMApp>
              <XMTok meaning="divide" role="MULOP" stretchy="true" width="-0.15em" xoffset="-0.1em">/</XMTok>
              <XMTok font="bold italic" fontsize="70%" meaning="1" role="NUMBER" rpadding="-0.5em" yoffset="0.3em">1</XMTok>
              <XMTok font="bold italic" fontsize="70%" meaning="2" role="NUMBER">2</XMTok>
            </XMApp>
          </XMath>
        </Math>
<Math mode="inline" tex="\nicefrac{{1}}{{2}}" text="1 / 2" xml:id="S3.p3.m2">
          <XMath>
            <XMApp>
              <XMTok meaning="divide" role="MULOP" stretchy="true" width="-0.15em" xoffset="-0.1em">/</XMTok>
              <XMTok fontsize="70%" meaning="1" role="NUMBER" rpadding="-0.5em" yoffset="0.3em">1</XMTok>
              <XMTok fontsize="70%" meaning="2" role="NUMBER">2</XMTok>
            </XMApp>
          </XMath>
        </Math></p>
    </para>
    <para xml:id="S3.p4">
      <p>Caligraphic <Math mode="inline" tex="\nicefrac{\mathcal{A}}{\mathcal{B}}" text="A / B" xml:id="S3.p4.m1">
          <XMath>
            <XMApp>
              <XMTok meaning="divide" role="MULOP" stretchy="true" width="-0.15em" xoffset="-0.1em">/</XMTok>
              <XMTok font="caligraphic" fontsize="70%" role="UNKNOWN" rpadding="-0.5em" yoffset="0.3em">A</XMTok>
              <XMTok font="caligraphic" fontsize="70%" role="UNKNOWN">B</XMTok>
            </XMApp>
          </XMath>
        </Math></p>
    </para>
    <para xml:id="S3.p5">
      <p>In arXiv examples:
Dose (10<Math mode="inline" tex="{}^{14}" text="^14" xml:id="S3.p5.m1">
          <XMath>
            <XMApp role="FLOATSUPERSCRIPT" scriptpos="1">
              <XMTok fontsize="70%" meaning="14" role="NUMBER">14</XMTok>
            </XMApp>
          </XMath>
        </Math> ions/cm<Math mode="inline" tex="{}^{2}" text="^2" xml:id="S3.p5.m2">
          <XMath>
            <XMApp role="FLOATSUPERSCRIPT" scriptpos="1">
              <XMTok fontsize="70%" meaning="2" role="NUMBER">2</XMTok>
            </XMApp>
          </XMath>
        </Math>)</p>
    </para>
    <para xml:id="S3.p6">
      <p>And also handles mathematics
<Math mode="inline" tex="\nicefrac{{x+y+z}}{{3}}" text="(x + y + z) / 3" xml:id="S3.p6.m1">
          <XMath>
            <XMApp>
              <XMTok meaning="divide" role="MULOP" stretchy="true" width="-0.15em" xoffset="-0.1em">/</XMTok>
              <XMApp rpadding="-0.5em" yoffset="0.3em">
                <XMTok fontsize="70%" meaning="plus" role="ADDOP">+</XMTok>
                <XMTok fontsize="70%" role="UNKNOWN">x</XMTok>
                <XMTok fontsize="70%" role="UNKNOWN">y</XMTok>
                <XMTok fontsize="70%" role="UNKNOWN">z</XMTok>
              </XMApp>
              <XMTok fontsize="70%" meaning="3" role="NUMBER">3</XMTok>
            </XMApp>
          </XMath>
        </Math>; <Math mode="inline" tex="\nicefrac{{x+y+z}}{{3}}" text="(x + y + z) / 3" xml:id="S3.p6.m2">
          <XMath>
            <XMApp>
              <XMTok meaning="divide" role="MULOP" stretchy="true" width="-0.15em" xoffset="-0.1em">/</XMTok>
              <XMApp rpadding="-0.5em" yoffset="0.3em">
                <XMTok fontsize="70%" meaning="plus" role="ADDOP">+</XMTok>
                <XMTok font="italic" fontsize="70%" role="UNKNOWN">x</XMTok>
                <XMTok font="italic" fontsize="70%" role="UNKNOWN">y</XMTok>
                <XMTok font="italic" fontsize="70%" role="UNKNOWN">z</XMTok>
              </XMApp>
              <XMTok fontsize="70%" meaning="3" role="NUMBER">3</XMTok>
            </XMApp>
          </XMath>
        </Math></p>
    </para>
    <para xml:id="S3.p7">
      <p>Some, only in math mode
<Math mode="inline" tex="\nicefrac{{x^{2}+y^{2}}}{{x^{2}-y^{2}}}" text="(x ^ 2 + y ^ 2) / (x ^ 2 - y ^ 2)" xml:id="S3.p7.m1">
          <XMath>
            <XMApp>
              <XMTok meaning="divide" role="MULOP" stretchy="true" width="-0.15em" xoffset="-0.1em">/</XMTok>
              <XMApp rpadding="-0.5em" yoffset="0.3em">
                <XMTok fontsize="70%" meaning="plus" role="ADDOP">+</XMTok>
                <XMApp>
                  <XMTok role="SUPERSCRIPTOP" scriptpos="post3"/>
                  <XMTok font="italic" fontsize="70%" role="UNKNOWN">x</XMTok>
                  <XMTok fontsize="50%" meaning="2" role="NUMBER">2</XMTok>
                </XMApp>
                <XMApp>
                  <XMTok role="SUPERSCRIPTOP" scriptpos="post3"/>
                  <XMTok font="italic" fontsize="70%" role="UNKNOWN">y</XMTok>
                  <XMTok fontsize="50%" meaning="2" role="NUMBER">2</XMTok>
                </XMApp>
              </XMApp>
              <XMApp>
                <XMTok fontsize="70%" meaning="minus" role="ADDOP">-</XMTok>
                <XMApp>
                  <XMTok role="SUPERSCRIPTOP" scriptpos="post3"/>
                  <XMTok font="italic" fontsize="70%" role="UNKNOWN">x</XMTok>
                  <XMTok fontsize="50%" meaning="2" role="NUMBER">2</XMTok>
                </XMApp>
                <XMApp>
                  <XMTok role="SUPERSCRIPTOP" scriptpos="post3"/>
                  <XMTok font="italic" fontsize="70%" role="UNKNOWN">y</XMTok>
                  <XMTok fontsize="50%" meaning="2" role="NUMBER">2</XMTok>
                </XMApp>
              </XMApp>
            </XMApp>
          </XMath>
        </Math></p>
    </para>
  </section>
</document>
