[LON-CAPA-users] <tex>-block / LON-CAPA question re multirow multicolumn mutirow sort of table

Itay itayf at nospammail.net
Mon Jun 1 14:49:38 EDT 2015


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

>
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.lon-capa.org/pipermail/lon-capa-users/attachments/20150601/2aab0f6f/attachment.html>


More information about the LON-CAPA-users mailing list