this is for holding javascript data
Deyan Ginev edited subsection_Advanced_Table_Colors_subsubsection__.tex
almost 9 years ago
Commit id: 5e9dae3ee6b0c0d3f9fcfff44557373c8f889689
deletions | additions
diff --git a/subsection_Advanced_Table_Colors_subsubsection__.tex b/subsection_Advanced_Table_Colors_subsubsection__.tex
index 1769490..79bd502 100644
--- a/subsection_Advanced_Table_Colors_subsubsection__.tex
+++ b/subsection_Advanced_Table_Colors_subsubsection__.tex
...
Dark Green \\
\hline
\end{tabular} }
%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%
\subsubsection{Backgrounds for Individual Cells}
\begin{lstlisting}
\begin{tabular}{ |c|c|c|c|c| }
\hline
\multicolumn{5}{|c|}{Comparison of Sorting Algorithms} \\
\hline
\multirow{2}{*}{Name} & \multicolumn{3}{|c|}{Performance} & \multirow{2}{*}{Memory} \\ \cline{2-4}
& Best & Average & Worst & \\
\hline
Quicksort & $n \log(n)$ & $n \log(n)$ & $n^2$ & $\log n$ \\
Merge Sort & $n \log(n)$ & $n \log(n)$ & $n \log(n)$ $n$ worst case\\
\hline
\end{tabular} }
\end{lstlisting}
%%%
\definecolor{Gray}{gray}{0.85}
\newcolumntype{g}{>{\columncolor{Gray}}c}
\begin{tabular}{ |g|c|c|c|c| }
\hline
\multicolumn{5}{|c|}{Comparison of Sorting Algorithms} \\
\hline \rowcolor{green!20!white}
\multicolumn{1}{c}{Name} & \multicolumn{3}{|c|}{Performance} & \multirow{2}{*}{Memory} \\ \cline{2-4}
& Best & Average & Worst & \\
\hline
Quicksort & $n \log(n)$ & $n \log(n)$ & $n^2$ & $\log n$ \\
Merge Sort & $n \log(n)$ & $n \log(n)$ & $n \log(n)$ & $n$ worst case\\
\hline
\end{tabular} }