<?xml version="1.0" encoding="UTF-8"?>

<record version="5" id="1017">
 <title>test table formatting</title>
 <name>TestTableFormatting</name>
 <created>2025-06-03 05:24:11</created>
 <modified>2026-09-06 16:53:42</modified>
 <type>Definition</type>
 <creator id="1" name="bloftin"/>
 <modifier id="1" name="bloftin"/>
 <author id="1" name="bloftin"/>
 <classification>
	<category scheme="pacs" code="00."/>
 </classification>
 <preamble>% this is the default PhysicsLibrary preamble.  as your knowledge
% of TeX increases, you will probably want to edit this, but
% it should be fine as is for beginners.

% almost certainly you want these
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}

% used for TeXing text within eps files
%\usepackage{psfrag}
% need this for including graphics (\includegraphics)
%\usepackage{graphicx}
% for neatly defining theorems and propositions
%\usepackage{amsthm}
% making logically defined graphics
%\usepackage{xypic}

% there are many more packages, add them here as you need them

% define commands here</preamble>
 <content>\section*{LaTeX Table Rendering Test Suite}

This entry tests LaTeX table rendering in the Physics Library
make4ht pipeline.

For these examples, table rows are terminated with
\texttt{\textbackslash tabularnewline} rather than the traditional
double-backslash notation.  This avoids ambiguity introduced by text
processing or editor escaping of repeated backslash characters.

\subsection*{Test 1: Minimal Table}

\begin{center}
\begin{tabular}{ccc}
A &amp; B &amp; C \tabularnewline
1 &amp; 2 &amp; 3 \tabularnewline
4 &amp; 5 &amp; 6 \tabularnewline
\end{tabular}
\end{center}

\subsection*{Test 2: Horizontal Rules}

\begin{center}
\begin{tabular}{ccc}
\hline
A &amp; B &amp; C \tabularnewline
\hline
1 &amp; 2 &amp; 3 \tabularnewline
4 &amp; 5 &amp; 6 \tabularnewline
\hline
\end{tabular}
\end{center}

\subsection*{Test 3: Full Grid}

\begin{center}
\begin{tabular}{|c|c|c|}
\hline
\textbf{ID} &amp; \textbf{Name} &amp; \textbf{Score} \tabularnewline
\hline
1 &amp; Alice &amp; 85 \tabularnewline
\hline
2 &amp; Bob &amp; 92 \tabularnewline
\hline
3 &amp; Carol &amp; 78 \tabularnewline
\hline
\end{tabular}
\end{center}

\subsection*{Test 4: Alignment}

\begin{center}
\begin{tabular}{lcr}
\hline
\textbf{Left} &amp; \textbf{Center} &amp; \textbf{Right} \tabularnewline
\hline
Apple &amp; 10 &amp; 1.25 \tabularnewline
Orange &amp; 125 &amp; 12.50 \tabularnewline
Banana &amp; 3 &amp; 0.75 \tabularnewline
\hline
\end{tabular}
\end{center}

\subsection*{Test 5: Mathematics}

\begin{center}
\begin{tabular}{|l|c|c|}
\hline
\textbf{Quantity} &amp; \textbf{Equation} &amp; \textbf{SI Unit} \tabularnewline
\hline
Velocity &amp; $v=\dfrac{dx}{dt}$ &amp; $\mathrm{m,s^{-1}}$ \tabularnewline
\hline
Acceleration &amp; $a=\dfrac{d^2x}{dt^2}$ &amp; $\mathrm{m,s^{-2}}$ \tabularnewline
\hline
Force &amp; $F=ma$ &amp; $\mathrm{N}$ \tabularnewline
\hline
Energy &amp; $E=\dfrac{1}{2}mv^2$ &amp; $\mathrm{J}$ \tabularnewline
\hline
\end{tabular}
\end{center}

\subsection*{Test 6: Multicolumn}

\begin{center}
\begin{tabular}{|l|c|c|}
\hline
\multicolumn{3}{|c|}{\textbf{Student Grades}} \tabularnewline
\hline
\textbf{Student} &amp; \textbf{Physics} &amp; \textbf{Mathematics} \tabularnewline
\hline
David &amp; A &amp; A- \tabularnewline
\hline
Emma &amp; B+ &amp; A \tabularnewline
\hline
Maria &amp; A- &amp; B+ \tabularnewline
\hline
\end{tabular}
\end{center}

\subsection*{Test 7: Paragraph Column}

\begin{center}
\begin{tabular}{|l|p{8cm}|}
\hline
\textbf{Feature} &amp; \textbf{Description} \tabularnewline
\hline
Tabular &amp;
The standard LaTeX environment for arranging information into rows
and columns. \tabularnewline
\hline
Paragraph column &amp;
A fixed-width paragraph column allows longer text to wrap inside the
table cell. \tabularnewline
\hline
Rendering test &amp;
This tests how make4ht converts a fixed-width LaTeX table column into
HTML. \tabularnewline
\hline
\end{tabular}
\end{center}

\subsection*{Test 8: Grouped Headings}

\begin{center}
\begin{tabular}{|c|cc|cc|}
\hline
&amp;
\multicolumn{2}{c|}{\textbf{Position}} &amp;
\multicolumn{2}{c|}{\textbf{Velocity}} \tabularnewline
\hline
\textbf{Time} &amp;
$x$ &amp;
$y$ &amp;
$v_x$ &amp;
$v_y$ \tabularnewline
\hline
0 &amp; 0 &amp; 0 &amp; 10 &amp; 20 \tabularnewline
\hline
1 &amp; 10 &amp; 15.1 &amp; 10 &amp; 10.2 \tabularnewline
\hline
2 &amp; 20 &amp; 20.4 &amp; 10 &amp; 0.4 \tabularnewline
\hline
\end{tabular}
\end{center}

\section*{Stage 1A Result}

If all of the tables above render correctly, the basic table system is
working and the earlier failure can be attributed to corruption of the
traditional double-backslash table row terminator.

The rendering suite should then continue using
\texttt{\textbackslash tabularnewline} so that the source remains robust
when copied through the Physics Library editing pipeline.</content>
</record>
