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

<record version="1" id="1017">
 <title>test table formatting</title>
 <name>TestTableFormatting</name>
 <created>2025-06-03 05:24:11</created>
 <modified>2025-06-03 05:24:11</modified>
 <type>Definition</type>
 <creator id="1" name="bloftin"/>
 <modifier id="1" name="bloftin"/>
 <comment> Renderer-safe table examples using only core tabular features that are
 reliable in the current PhysicsLibrary make4ht stack.</comment>
 <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*{Examples of Tables with Data and Lines}

% Basic table with horizontal and vertical lines
\subsection*{Basic Table with Full Lines}
This table uses \texttt{|} for vertical lines and \texttt{\hline} for horizontal lines.
\begin{table}[h]
\centering
\begin{tabular}{|c|c|c|}
\hline
\textbf{ID} &amp; \textbf{Name} &amp; \textbf{Score} \\
\hline
1 &amp; Alice &amp; 85 \\
\hline
2 &amp; Bob &amp; 92 \\
\hline
3 &amp; Carol &amp; 78 \\
\hline
\end{tabular}
\caption{Basic table with full grid lines}
\end{table}

% Table with partial vertical lines
\subsection*{Table with Partial Vertical Lines}
This table uses \texttt{|} selectively for vertical lines.
\begin{table}[h]
\centering
\begin{tabular}{c|c c}
\hline
\textbf{Item} &amp; \textbf{Price} &amp; \textbf{Quantity} \\
\hline
Apple &amp; \$0.50 &amp; 10 \\
\hline
Banana &amp; \$0.30 &amp; 15 \\
\hline
Orange &amp; \$0.60 &amp; 8 \\
\hline
\end{tabular}
\caption{Table with partial vertical lines}
\end{table}

% Table using booktabs for professional look
\subsection*{Professional Table with Booktabs}
This table uses \texttt{booktabs} for cleaner horizontal lines (\texttt{\toprule}, \texttt{\midrule}, \texttt{\bottomrule}).
\begin{table}[h]
\centering
\begin{tabular}{lcr}
\toprule
\textbf{City} &amp; \textbf{Population} &amp; \textbf{Area (km²)} \\
\midrule
New York &amp; 8,336,817 &amp; 783.8 \\
Los Angeles &amp; 3,979,576 &amp; 1,302.2 \\
Chicago &amp; 2,693,976 &amp; 606.1 \\
\bottomrule
\end{tabular}
\caption{Table with booktabs styling}
\end{table}

% Table with multirow and multicolumn
\subsection*{Table with Multirow and Multicolumn}
This table uses \texttt{multirow} and \texttt{multicolumn} for merged cells, with vertical and horizontal lines.
\usepackage{multirow} % Included in preamble for this example
\begin{table}[h]
\centering
\begin{tabular}{|l|c|c|}
\hline
\multicolumn{3}{|c|}{\textbf{Student Grades}} \\
\hline
\textbf{Student} &amp; \textbf{Subject} &amp; \textbf{Grade} \\
\hline
\multirow{2}{*}{David} &amp; Math &amp; A \\
\cline{2-3}
 &amp; Science &amp; B+ \\
\hline
\multirow{2}{*}{Emma} &amp; Math &amp; B \\
\cline{2-3}
 &amp; Science &amp; A- \\
\hline
\end{tabular}
\caption{Table with multirow and multicolumn}
\end{table}

% Table with colored lines (using colortbl)
\subsection*{Table with Colored Lines}
This table uses \texttt{colortbl} for colored horizontal lines.
\usepackage{colortbl} % Included in preamble for this example
\begin{table}[h]
\centering
\begin{tabular}{c|c|c}
\rowcolor{gray!20} \textbf{Product} &amp; \textbf{Cost} &amp; \textbf{Stock} \\
\cline{1-3}
Laptop &amp; \$999 &amp; 50 \\
\arrayrulecolor{red}\cline{1-3}
Phone &amp; \$699 &amp; 100 \\
\arrayrulecolor{blue}\cline{1-3}
Tablet &amp; \$499 &amp; 75 \\
\arrayrulecolor{black}\cline{1-3}
\end{tabular}
\caption{Table with colored horizontal lines}
\end{table}</content>
</record>
