<?xml version="1.0" encoding="UTF-8"?>
<?latexml class="article"?>
<?latexml package="tabularx"?>
<?latexml package="rotating"?>
<?latexml package="multirow"?>
<?latexml package="makecell"?>
<?latexml package="xcolor"?>
<?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"/>
  <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>makecell</title>
    <para xml:id="S1.p1">
      <tabular vattach="middle">
        <tr>
          <td align="center" border="l r t">Cell text</td>
          <td align="center" border="r t">28–31</td>
        </tr>
        <tr>
          <td align="center" border="l r t"> <tabular vattach="middle">
              <tr>
                <td align="center">Multilined</td>
              </tr>
              <tr>
                <td align="center">cell text</td>
              </tr>
            </tabular> </td>
          <td align="center" border="r t">28–31</td>
        </tr>
        <tr>
          <td align="center" border="l r t"><tabular vattach="middle">
              <tr>
                <td align="left">Left aligned</td>
              </tr>
              <tr>
                <td align="left">cell text</td>
              </tr>
            </tabular> </td>
          <td align="center" border="r t">37–43</td>
        </tr>
        <tr>
          <td align="center" border="l r t"> <tabular vattach="middle">
              <tr>
                <td align="right">Right aligned</td>
              </tr>
              <tr>
                <td align="right">cell text</td>
              </tr>
            </tabular></td>
          <td align="center" border="r t">37–43</td>
        </tr>
        <tr>
          <td align="center" border="l r t"> <tabular vattach="bottom">
              <tr>
                <td align="center">Bottom aligned</td>
              </tr>
              <tr>
                <td align="center">cell text</td>
              </tr>
            </tabular> </td>
          <td align="center" border="r t">52–58</td>
        </tr>
        <tr>
          <td align="center" border="l r t"><tabular vattach="middle">
              <tr>
                <td align="justify" width="85.4pt">Cell long text with predefined width</td>
              </tr>
            </tabular></td>
          <td align="center" border="r t">52–58</td>
        </tr>
        <tr>
          <td align="center" border="b l r t"><tabular vattach="middle">
              <tr>
                <td align="justify" width="85.4pt">Cell long…</td>
              </tr>
            </tabular></td>
          <td align="center" border="b r t">52–58</td>
        </tr>
      </tabular>
    </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>thead</title>
    <para xml:id="S2.p1">
      <tabular vattach="middle">
        <thead>
          <tr>
            <td align="left" border="l r t" thead="column row"> <tabular rowsep="-1.5pt" vattach="middle">
                <tr>
                  <td align="center"><text color="#FF0000" font="bold">First column head</text></td>
                </tr>
              </tabular> </td>
            <td align="center" border="r t" thead="column row"> <tabular rowsep="-1.5pt" vattach="middle">
                <tr>
                  <td align="center"><text color="#FF0000" font="bold">Second</text></td>
                </tr>
                <tr>
                  <td align="center"><text color="#FF0000" font="bold">multlined</text></td>
                </tr>
                <tr>
                  <td align="center"><text color="#FF0000" font="bold">column head</text></td>
                </tr>
              </tabular> </td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left" border="b l r t">Left column text</td>
            <td align="center" border="b r t">28–31</td>
          </tr>
        </tbody>
      </tabular>
    </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>rothead</title>
    <para xml:id="S3.p1">
      <tabular vattach="middle">
        <thead>
          <tr>
            <td align="left" border="l r t" thead="column row"> <tabular rowsep="-1.5pt" vattach="middle">
                <tr>
                  <td align="center"><text color="#FF0000" font="bold">First column head</text></td>
                </tr>
              </tabular> </td>
            <td align="center" border="r t" thead="column row"> <tabular rowsep="-1.5pt" vattach="middle">
                <tr>
                  <td align="center" thead="column row"><inline-block angle="90" depth="0.0pt" height="127.5pt" innerdepth="2.0pt" innerheight="36.0pt" innerwidth="127.5pt" width="38.0pt" xtranslate="-44.75pt" ytranslate="-43.75pt">
                      <p><text color="#FF0000" font="bold"><tabular rowsep="-1.5pt" vattach="middle">
                            <tr>
                              <td align="justify" width="127.5pt">Second multilined</td>
                            </tr>
                            <tr>
                              <td align="justify" width="127.5pt">column head</td>
                            </tr>
                          </tabular></text></p>
                    </inline-block></td>
                </tr>
              </tabular> </td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left" border="b l r t">Left column text</td>
            <td align="center" border="b r t">28–31</td>
          </tr>
        </tbody>
      </tabular>
    </para>
  </section>
  <section inlist="toc" xml:id="S4">
    <tags>
      <tag>4</tag>
      <tag role="refnum">4</tag>
      <tag role="typerefnum">§4</tag>
    </tags>
    <title><tag close=" ">4</tag>Cell settings: cellset, cellalign, cellgape, cellrotangle</title>
  </section>
  <section inlist="toc" xml:id="S5">
    <tags>
      <tag>5</tag>
      <tag role="refnum">5</tag>
      <tag role="typerefnum">§5</tag>
    </tags>
    <title><tag close=" ">5</tag>Head settings:theadfont,theadset, theadalign, theadgape, rotheadgape</title>
  </section>
  <section inlist="toc" xml:id="S6">
    <tags>
      <tag>6</tag>
      <tag role="refnum">6</tag>
      <tag role="typerefnum">§6</tag>
    </tags>
    <title><tag close=" ">6</tag>Height/Depth settings: gape, Gape, bottopstrut,topstrut,botstrut</title>
  </section>
  <section inlist="toc" xml:id="S7">
    <tags>
      <tag>7</tag>
      <tag role="refnum">7</tag>
      <tag role="typerefnum">§7</tag>
    </tags>
    <title><tag close=" ">7</tag>Vertical space: setcellgapes, makegapedcells, nomakegapedcells</title>
  </section>
  <section inlist="toc" xml:id="S8">
    <tags>
      <tag>8</tag>
      <tag role="refnum">8</tag>
      <tag role="typerefnum">§8</tag>
    </tags>
    <title><tag close=" ">8</tag>Multirow: multirowcell, multirowthead</title>
    <para xml:id="S8.p1">
      <tabular vattach="middle">
        <tbody>
          <tr>
            <td align="left" border="l r t" rowspan="2" thead="column row"> <tabular rowsep="-1.5pt" vattach="middle">
                <tr>
                  <td align="center"><text color="#FF0000" font="bold">First …</text></td>
                </tr>
              </tabular> </td>
            <td align="center" border="r t" colspan="2"> <tabular rowsep="-1.5pt" vattach="middle">
                <tr>
                  <td align="center"><text color="#FF0000" font="bold">Multicolumn head</text></td>
                </tr>
              </tabular> </td>
          </tr>
          <tr>
            <td align="center" border="r t" thead="column row"> <tabular rowsep="-1.5pt" vattach="middle">
                <tr>
                  <td align="center"><text color="#FF0000" font="bold">Second …</text></td>
                </tr>
              </tabular> </td>
            <td align="center" border="r t" thead="column row"> <tabular rowsep="-1.5pt" vattach="middle">
                <tr>
                  <td align="center"><text color="#FF0000" font="bold">Third …</text></td>
                </tr>
              </tabular> </td>
          </tr>
          <tr>
            <td align="left" border="l r t">Cell text</td>
            <td align="center" border="r t">A</td>
            <td align="center" border="r t" rowspan="2"> <tabular vattach="middle">
                <tr>
                  <td align="center">28–31</td>
                </tr>
              </tabular> </td>
          </tr>
          <tr>
            <td align="left" border="l r t"> <tabular vattach="middle">
                <tr>
                  <td align="center">Multilined</td>
                </tr>
                <tr>
                  <td align="center">Cell text</td>
                </tr>
              </tabular> </td>
            <td align="center" border="r t">B</td>
          </tr>
          <tr>
            <td align="left" border="l r t"><tabular vattach="middle">
                <tr>
                  <td align="left">Left …</td>
                </tr>
              </tabular> </td>
            <td align="center" border="r t">C</td>
            <td align="center" border="r t" rowspan="2"><tabular vattach="middle">
                <tr>
                  <td align="left">37–43</td>
                </tr>
              </tabular> </td>
          </tr>
          <tr>
            <td align="left" border="l r t"> <tabular vattach="middle">
                <tr>
                  <td align="right">Right …</td>
                </tr>
              </tabular></td>
            <td align="center" border="r t">D</td>
          </tr>
          <tr>
            <td align="left" border="l r t"> <tabular vattach="bottom">
                <tr>
                  <td align="center">Bottom …</td>
                </tr>
              </tabular> </td>
            <td align="center" border="r t">E</td>
            <td align="center" border="b r t" rowspan="3"> <tabular vattach="middle">
                <tr>
                  <td align="right">37–43</td>
                </tr>
                <tr>
                  <td align="right">52–58</td>
                </tr>
              </tabular></td>
          </tr>
          <tr>
            <td align="left" border="l r t"><tabular vattach="middle">
                <tr>
                  <td align="justify" width="142.3pt">Cell …</td>
                </tr>
              </tabular></td>
            <td align="center" border="r t">F</td>
          </tr>
          <tr>
            <td align="left" border="b l r t"><tabular vattach="middle">
                <tr>
                  <td align="justify" width="142.3pt">Cell …</td>
                </tr>
              </tabular></td>
            <td align="center" border="b r t">G</td>
          </tr>
        </tbody>
      </tabular>
    </para>
  </section>
  <section inlist="toc" xml:id="S9">
    <tags>
      <tag>9</tag>
      <tag role="refnum">9</tag>
      <tag role="typerefnum">§9</tag>
    </tags>
    <title><tag close=" ">9</tag>Numbered Lines</title>
    <para xml:id="S9.p1">
      <tabular vattach="middle">
        <tr>
          <td align="center" border="l r tt">1</td>
          <td align="center" border="r tt">2</td>
          <td align="center" border="r tt">3</td>
          <td align="center" border="r tt">4</td>
          <td align="center" border="r tt">5</td>
          <td align="center" border="r tt">6</td>
        </tr>
        <tr>
          <td border="l r t"/>
          <td border="r t"/>
          <td border="r t"/>
          <td align="center" border="r t">4</td>
          <td align="center" border="r t">5</td>
          <td align="center" border="r t">6</td>
        </tr>
        <tr>
          <td align="center" border="l r t">(1)</td>
          <td align="center" border="r t">(2)</td>
          <td align="center" border="r t">(3)</td>
          <td align="center" border="r t">(4)</td>
          <td align="center" border="r t">(5)</td>
          <td align="center" border="r t">(6)</td>
        </tr>
        <tr>
          <td align="center" border="b l r t">column 1</td>
          <td align="center" border="b r t">column 2</td>
          <td align="center" border="b r t">column 3</td>
          <td align="center" border="b r t">column 4</td>
          <td align="center" border="b r t">column 5</td>
          <td align="center" border="b r t">column 6</td>
        </tr>
      </tabular>
    </para>
  </section>
  <section inlist="toc" xml:id="S10">
    <tags>
      <tag>10</tag>
      <tag role="refnum">10</tag>
      <tag role="typerefnum">§10</tag>
    </tags>
    <title><tag close=" ">10</tag>Diagonally divided</title>
    <para xml:id="S10.p1">
      <tabular vattach="middle">
        <thead>
          <tr>
            <td align="left" border="l r t" thead="column row"><tabular vattach="middle">
                <tr>
                  <td align="center" thead="column row"><picture fill="black" height="69.7pt" stroke="black" tex="\begin{picture}(281.99588,69.69896)(0.0,0.8)\put(0.0,70.49896){\makebox(0.0,0.%&#xA;0)[tl]{\line(4,1){281.99588}}}&#xA;\put(0.0,0.0){\makebox(0.0,0.0)[tl]{\color[rgb]{1,0,0}\noindent\hbox{}{{\hbox{%&#xA;\begin{tabular}[t]{@{}l@{}}Diag Column\\&#xA;Head II\end{tabular}}}}\hfill\hbox{}}}&#xA;\put(0.0,0.0){\makebox(0.0,0.0)[br]{\color[rgb]{1,0,0}{\noindent\hbox{}\hfill{%&#xA;{\hbox{\begin{tabular}[b]{@{}r@{}}Diag\\&#xA;Column Head I\end{tabular}}}}\hbox{}}}}&#xA;\end{picture}" unitlength="1.0pt" width="282.0pt" xml:id="S10.p1.pic1">
                      <g transform="translate(0,-0.8)">
                        <g transform="translate(0,70.5)">
                          <g height="0" pos="tl" width="0">
                            <line points="0,0 282,70.5" stroke-width="0.4"/>
                          </g>
                        </g>
                        <g transform="translate(0,0)">
                          <g height="0" pos="tl" width="0">
                            <text color="#FF0000" font="bold"><tabular rowsep="-1.5pt" vattach="top">
                                <tr>
                                  <td align="left">Diag Column</td>
                                </tr>
                                <tr>
                                  <td align="left">Head II</td>
                                </tr>
                              </tabular></text>
                          </g>
                        </g>
                        <g transform="translate(0,0)">
                          <g height="0" pos="br" width="0">
                            <text color="#FF0000" font="bold"><tabular rowsep="-1.5pt" vattach="bottom">
                                <tr>
                                  <td align="right">Diag</td>
                                </tr>
                                <tr>
                                  <td align="right">Column Head I</td>
                                </tr>
                              </tabular></text>
                          </g>
                        </g>
                      </g>
                    </picture></td>
                </tr>
              </tabular></td>
            <td align="center" border="r t" thead="column row"> <tabular rowsep="-1.5pt" vattach="middle">
                <tr>
                  <td align="center"><text color="#FF0000" font="bold">Second</text></td>
                </tr>
                <tr>
                  <td align="center"><text color="#FF0000" font="bold">column</text></td>
                </tr>
              </tabular> </td>
            <td align="center" border="r t" thead="column row"> <tabular rowsep="-1.5pt" vattach="middle">
                <tr>
                  <td align="center"><text color="#FF0000" font="bold">Third</text></td>
                </tr>
                <tr>
                  <td align="center"><text color="#FF0000" font="bold">column</text></td>
                </tr>
              </tabular> </td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left" border="b l r t">one</td>
            <td align="center" border="b r t">two</td>
            <td align="center" border="b r t">three</td>
          </tr>
        </tbody>
      </tabular>
    </para>
  </section>
</document>
