LaTeX Table

By Jonathan WebleyJonathan Webley

Description

For those of you who know $\LaTeX$, there is a neat way of making tables that span columns.

Code

[[math]]
\begin{tabular}{| c | c | c | c | c | c | c | c | c |}
\hline
\multicolumn{1}{|p{3cm}|}{\textbf{Unrounded daily rates}*} & \multicolumn{1}{| p{1.9cm}|}{\textbf{Number of QDs in week}} & \multicolumn{7}{|c|}{\textbf{Number of days due}} \\
\cline{3-9}
&& 1 & 2 & 3 & 4 & 5 & 6 & 7 \\
\hline
\textsterling11.3071 & 7 & \textsterling11.31 & \textsterling22.62 & \textsterling33.93 & \textsterling45.23 & \textsterling56.54 & \textsterling67.85 & \textsterling79.15 \\
\cline{1-9}
\textsterling13.1916 & 6 & \textsterling13.20 & \textsterling26.39 & \textsterling39.58 & \textsterling52.77 & \textsterling65.96 & \textsterling79.15 \\
\cline{1-8}
\textsterling15.8300 & 5 & \textsterling15.83 & \textsterling31.66 & \textsterling47.49 & \textsterling63.32 & \textsterling79.15 \\
\cline{1-7}
\textsterling19.7875 & 4 & \textsterling19.79 & \textsterling39.58 & \textsterling59.37 & \textsterling79.15 \\
\cline{1-6}
\textsterling26.3833 & 3 & \textsterling26.39 & \textsterling52.77 & \textsterling79.15 \\
\cline{1-5}
\textsterling39.5750 & 2 & \textsterling39.58 & \textsterling79.15 \\
\cline{1-4}
\textsterling79.1500 & 1 & \textsterling79.15 \\
\cline{1-3}
\end{tabular}
[[/math]]

In action

Unsupported math environment "tabular"

Thanks to tsangk for this great snippet: conditional-blocks


text above inserted with:

[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]



Other snippets posted by Jonathan Webley


Rate this solution

If you think this solution is useful — rate it up!

rating: +5+x
Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License