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

Itay itayf at nospammail.net
Tue Jun 2 03:10:11 EDT 2015


On Mon, Jun 1, 2015, at 11:05 PM, Raymond Batchelor wrote:
> 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.  :-)

:-)
You could further affect the look of the table by fine-tuning the
separation between the lines. Inside the tabular environment use the
command  \renewcommand{\arraystretch}{FACTOR} where FACTOR is a number.
The Default value is 1.0. Usually numbers between 1.2-1.5 yield a
pleasant look.

Itay

>
> Your help is much appreciated.
>
> Ray
>
>
>
> *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
>
>>
>> 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
>
>
>
> _______________________________________________
> 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
> _________________________________________________
> 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/20150602/57a77f65/attachment-0001.html>


More information about the LON-CAPA-users mailing list