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

<record version="2" id="1017">
 <title>test table formatting</title>
 <name>TestTableFormatting</name>
 <created>2025-06-03 05:24:11</created>
 <modified>2026-09-06 03:27:41</modified>
 <type>Definition</type>
 <creator id="1" name="bloftin"/>
 <modifier id="1" name="bloftin"/>
 <comment>expanding</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}

\subsection*{Basic Table with Full Lines}

This table uses vertical separators and horizontal rules.

\begin{center}
\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}

\vspace{0.5em}

\textbf{Table.}
Basic table with full grid lines.
\end{center}

\subsection*{Table with Partial Vertical Lines}

This table uses a vertical divider only after the first column.

\begin{center}
\begin{tabular}{c|cc}
\hline
\textbf{Item} &amp; \textbf{Price} &amp; \textbf{Quantity} \\
\hline
Apple &amp; \$0.50 &amp; 10 \\
Banana &amp; \$0.30 &amp; 15 \\
Orange &amp; \$0.60 &amp; 8 \\
\hline
\end{tabular}

\vspace{0.5em}

\textbf{Table.}
Table with a selective vertical divider.
\end{center}

\subsection*{Clean Table with Horizontal Rules}

The original version used the \texttt{booktabs} package. This renderer-safe
version uses ordinary horizontal rules instead.

\begin{center}
\begin{tabular}{lcr}
\hline
\textbf{City} &amp; \textbf{Population} &amp; \textbf{Area (km$^2$)} \\
\hline
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 \\
\hline
\end{tabular}

\vspace{0.5em}

\textbf{Table.}
A clean table using standard LaTeX rules.
\end{center}

\subsection*{Table with a Merged Heading}

The original version used the \texttt{multirow} package. To avoid an
additional package dependency, this version retains only the standard
\texttt{multicolumn} feature and repeats student names in the rows.

\begin{center}
\begin{tabular}{|l|c|c|}
\hline
\multicolumn{3}{|c|}{\textbf{Student Grades}} \\
\hline
\textbf{Student} &amp; \textbf{Subject} &amp; \textbf{Grade} \\
\hline
David &amp; Math &amp; A \\
David &amp; Science &amp; B+ \\
\hline
Emma &amp; Math &amp; B \\
Emma &amp; Science &amp; A- \\
\hline
\end{tabular}

\vspace{0.5em}

\textbf{Table.}
A merged heading using standard \texttt{multicolumn}.
\end{center}

\subsection*{Table with Repeated Horizontal Rules}

The original version used \texttt{colortbl} for colored rows and colored
rules. Colored table rules require extra package support, so this
renderer-safe version uses ordinary rules.

\begin{center}
\begin{tabular}{c|c|c}
\hline
\textbf{Product} &amp; \textbf{Cost} &amp; \textbf{Stock} \\
\hline
Laptop &amp; \$999 &amp; 50 \\
\hline
Phone &amp; \$699 &amp; 100 \\
\hline
Tablet &amp; \$499 &amp; 75 \\
\hline
\end{tabular}

\vspace{0.5em}

\textbf{Table.}
Table with standard horizontal rules.
\end{center}</content>
</record>
