[LON-CAPA-users] <tex>-block / LON-CAPA question re multirow multicolumn mutirow sort of table
Raymond Batchelor
batchelo at sfu.ca
Mon Jun 1 16:13:36 EDT 2015
Here's what I have now. Attached small screenshot.
<tex>
\begin{tabular*}{.5\textwidth}%
{@{\extracolsep{\fill}}|ccccc|}
\hline
\multirow{2}{*}{Expt.}&\multicolumn{3}{c}{Concentration (mol$\cdot $L$^{-1}$)}&Initial Rate\\ \cline{2-4}
&[CO$_2$]$_0$&[F$^-$]$_0$&[Mn$_2$F$_2$]$_0$&(mol$\cdot $L$^{-1}\cdot $min$^{-1}$)\\ \hline
1&0.2&0.4&0.4&0.128\\ \hline
2&0.2& 0.4&0.1&0.008\\ \hline
3&0.2&0.3&0.2&0.032\\ \hline
4&0.3&0.4&0.4&0.192\\ \hline
5&0.2&0.2&0.1&0.008\\ \hline
\end{tabular*}</tex>
----- Original Message -----
From: "Raymond Batchelor" <batchelo at sfu.ca>
To: "Discussion list for LON-CAPA users" <lon-capa-users at mail.lon-capa.org>
Sent: Monday, 1 June, 2015 13:05:38
Subject: Re: [LON-CAPA-users] <tex>-block / LON-CAPA question re multirow multicolumn mutirow sort of table
Thanks Itay,
Your suggestions work for me.
There was no good reason for the blanks at the start and end of the multicolumn. I was just experimenting.
I have reverted to curly braces. I also chose to drop the vertical borders.
The \cline{2-4} was what I needed most.
I like the way it looks now. :-)
Your help is much appreciated.
Ray
----- Original Message -----
From: "Itay" <itayf at nospammail.net>
To: lon-capa-users at mail.lon-capa.org
Sent: Monday, 1 June, 2015 11:49:38
Subject: Re: [LON-CAPA-users] <tex>-block / LON-CAPA question re multirow multicolumn mutirow sort of table
Hi
On Mon, Jun 1, 2015, at 08:16 PM, Raymond Batchelor wrote:
Hi All,
I'm having a little difficulty in recalling or finding how to properly generate a table like the following...
<tex>
\begin{tabular}{|c|c|c|c|c|}
\hline
\multirow{2}{*}{Expt.}&\multicolumn{3}{c}\ Concentration (mol$\cdot $L$^{-1}$) \ &Initial Rate\\
&[CO$_2$]$_0$&[F$^-$]$_0$&[Mn$_2$F$_2$]$_0$&(Mol$\cdot $L$^{-1}\cdot $min$^{-1}$)\\ \hline
1&0.2&0.4&0.4&0.128\\ \hline
2&0.2& 0.4&0.1&0.008\\ \hline
\end{tabular}\</tex>
The above works 'fine', except that there are no cell borders immediately below or to the immediate right of the ''cell" created by \multicolumn{3}{c}\ Concentration (mol$\cdot $L$^{-1}$) \
There is no command for drawing borders below -- so none were drawn.
Use \hline as you did elsewhere, or \cline{2-4} to decorate only the \multicolumn created cell.
I have no idea why the right border was not drawn.
You could give up the vertical borders and increment the space between columns. (I believe this is the recommended way to typeset tables, but I am not an expert.)
BTW,
Any particular reason why the last argument of \multicolumn is delimited by blanks (\ ) instead of the standard curly braces ({})?
This is not the cause for the problem, but could become a cause for other problems in the future.
HTH,
Itay
<blockquote>
Not sure what I need to add to this LaTeX to make those particular borders appear in LON-CAPA.
I'd send a screenshot if this list allowed it.
Thanks!!
:-)
--
Ray
_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users at mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
</blockquote>
_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users at mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
--
Raymond J. Batchelor, PhD.
Department of Chemistry
Simon Fraser University
Phone: 778-782-5635
--
Raymond J. Batchelor, PhD.
Department of Chemistry
Simon Fraser University
Phone: 778-782-5635
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.lon-capa.org/pipermail/lon-capa-users/attachments/20150601/1514c056/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ScreenHunter_458 Jun. 01 13.06.jpg
Type: image/jpeg
Size: 16756 bytes
Desc: not available
URL: <http://mail.lon-capa.org/pipermail/lon-capa-users/attachments/20150601/1514c056/attachment-0001.jpg>
More information about the LON-CAPA-users
mailing list