[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lon-capa-users
Subject:    Re: [LON-CAPA-users] <tex>-block / LON-CAPA question re multirow multicolumn mutirow sort of table
From:       Itay <itayf () nospammail ! net>
Date:       2015-06-02 7:10:11
Message-ID: 1433229011.863754.284403089.607C76AE () webmail ! messagingengine ! com
[Download RAW message or body]

[Attachment #2 (--_----------=_14332290118637541)]


On Mon, Jun 1, 2015, at 11:05 PM, Raymond Batchelor wrote:
> Thanks Itay,=A0 Your suggestions work for me. There was no good reason
> for the blanks at the start and end of the multicolumn.=A0 I was just
> experimenting. I have reverted to curly braces.=A0 I also chose to drop
> the vertical borders. The \cline{2-4} was what I needed most. I like
> the way it looks now.=A0 :-)

:-)
You could further affect the look of the table by fine-tuning the
separation between the lines. Inside the tabular environment use the
command=A0 \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@nospammail.net> *To: *lon-capa-users@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,=A0I'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=A0 could=A0give 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@mail.lon-capa.org
>> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
>
>
>
> _______________________________________________
> LON-CAPA-users mailing list LON-CAPA-users@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@mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users

[Attachment #5 (unknown)]

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>On Mon, Jun 1, 2015, at 11:05 PM, Raymond Batchelor wrote:<br></div>
<blockquote type="cite"><div style="font-family:times new roman,new \
york,times,serif;font-size:12pt;color:rgb(0, 0, 0);"><div>Thanks Itay,<br></div> \
<div>&nbsp; Your suggestions work for me.<br></div> <div>There was no good reason for \
the blanks at the start and end of the multicolumn.&nbsp; I was just \
experimenting.<br></div> <div>I have reverted to curly braces.&nbsp; I also chose to \
drop the vertical borders. <br></div> <div>The \cline{2-4} was what I needed \
most.<br></div> <div>I like the way it looks now.&nbsp; :-)<br></div>
</div>
</blockquote><div>&nbsp;</div>
<div>:-)<br></div>
<div>You could further affect the look of the table by fine-tuning the separation \
between the lines.<br></div> <div>Inside the tabular environment use the \
command<br></div> <div>&nbsp; \renewcommand{\arraystretch}{FACTOR}<br></div>
<div>where FACTOR is a number.&nbsp; The Default value is 1.0. Usually numbers \
between 1.2-1.5 yield a pleasant look.<br></div> <div>&nbsp;</div>
<div>Itay<br></div>
<div>&nbsp;</div>
<blockquote type="cite"><div style="font-family:times new roman,new \
york,times,serif;font-size:12pt;color:rgb(0, 0, 0);"><div>&nbsp;</div> <div>Your help \
is much appreciated.<br></div> <div>&nbsp;</div>
<div>Ray<br></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><hr><br></div>
<div style="color:rgb(0, 0, \
0);font-weight:normal;font-style:normal;-moz-text-decoration-color:-moz-use-text-color \
;-moz-text-decoration-line:none;-moz-text-decoration-style:solid;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div><b>From: \
</b>"Itay" &lt;itayf@nospammail.net&gt;<br></div> <div><b>To: \
</b>lon-capa-users@mail.lon-capa.org<br></div> <div><b>Sent: </b>Monday, 1 June, 2015 \
11:49:38<br></div> <div><b>Subject: </b>Re: [LON-CAPA-users] &lt;tex&gt;-block / \
LON-CAPA question re multirow multicolumn mutirow sort of table<br></div> \
<div>&nbsp;</div> <div>Hi<br></div>
<div>&nbsp;</div>
<div>On Mon, Jun 1, 2015, at 08:16 PM, Raymond Batchelor wrote:<br></div>
<blockquote><div style="font-family:times new roman,new \
york,times,serif;font-size:12pt;color:rgb(0, 0, 0);"><div>Hi All,<br></div> \
<div>&nbsp;I'm having a little difficulty in recalling or finding how to properly \
generate a table like the following...<br></div> <div>&nbsp;</div>
<div>&lt;tex&gt;<br></div>
<div>\begin{tabular}{|c|c|c|c|c|}<br></div>
<div>\hline <br></div>
<div>\multirow{2}{*}{Expt.}&amp;\multicolumn{3}{c}\ Concentration (mol$\cdot \
$L$^{-1}$) \ &amp;Initial Rate\\<br></div> \
<div>&amp;[CO$_2$]$_0$&amp;[F$^-$]$_0$&amp;[Mn$_2$F$_2$]$_0$&amp;(Mol$\cdot \
$L$^{-1}\cdot $min$^{-1}$)\\ \hline &nbsp;<br></div> \
<div>1&amp;0.2&amp;0.4&amp;0.4&amp;0.128\\ \hline <br></div> <div>2&amp;0.2&amp; \
0.4&amp;0.1&amp;0.008\\ \hline <br></div> <div>\end{tabular}\&lt;/tex&gt;<br></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>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}$) \<br></div> </div>
</blockquote><div>&nbsp;</div>
<div>There is no command for drawing borders below -- so none were drawn.<br></div>
<div>Use \hline as you did elsewhere, or \cline{2-4} to decorate only the \
\multicolumn created cell.<br></div> <div>I have no idea why the right border was not \
drawn.<br></div> <div>&nbsp;</div>
<div>You&nbsp; could&nbsp;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.)<br></div> <div>&nbsp;</div>
<div>BTW, <br></div>
<div>Any particular reason why the last argument of \multicolumn is delimited by \
blanks (\ ) instead of the standard curly braces ({})?<br></div> <div>This is not the \
cause for the problem, but could become a cause for other problems in the \
future.<br></div> <div>&nbsp;</div>
<div>HTH,<br></div>
<div>Itay<br></div>
<div>&nbsp;</div>
<blockquote><div style="font-family:times new roman,new \
york,times,serif;font-size:12pt;color:rgb(0, 0, 0);"><div>&nbsp;</div> <div>Not sure \
what I need to add to this LaTeX to make those particular borders appear in \
LON-CAPA.<br></div> <div>&nbsp;</div>
<div>I'd send a screenshot if this list allowed it.<br></div>
<div>&nbsp;</div>
<div>Thanks!!<br></div>
<div>&nbsp;</div>
<div>:-)<br></div>
<div>-- <br></div>
<div><span></span>Ray<br></div>
</div>
<div><span style="-moz-text-decoration-color:-moz-use-text-color;-moz-text-decoration- \
line:underline;-moz-text-decoration-style:solid;">_______________________________________________</span><br></div>
 <div>LON-CAPA-users mailing list<br></div>
<div><a href="mailto:LON-CAPA-users@mail.lon-capa.org">LON-CAPA-users@mail.lon-capa.org</a><br></div>
 <div><a href="http://mail.lon-capa.org/mailman/listinfo/lon-capa-users">http://mail.lon-capa.org/mailman/listinfo/lon-capa-users</a><br></div>
 </blockquote><div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>_______________________________________________<br></div>
<div>LON-CAPA-users mailing list<br></div>
<div>LON-CAPA-users@mail.lon-capa.org<br></div>
<div>http://mail.lon-capa.org/mailman/listinfo/lon-capa-users<br></div>
</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>-- <br></div>
<div><div><span name="x"></span>Raymond J. Batchelor, PhD.<br></div>
<div>Department of Chemistry<br></div>
<div>Simon Fraser University<br></div>
<div>&nbsp;</div>
<div>Phone: 778-782-5635<span name="x"></span><br></div>
</div>
</div>
<div><u>_______________________________________________</u><br></div>
<div>LON-CAPA-users mailing list<br></div>
<div><a href="mailto:LON-CAPA-users@mail.lon-capa.org">LON-CAPA-users@mail.lon-capa.org</a><br></div>
 <div><a href="http://mail.lon-capa.org/mailman/listinfo/lon-capa-users">http://mail.lon-capa.org/mailman/listinfo/lon-capa-users</a><br></div>
 </blockquote><div>&nbsp;</div>
</body>
</html>



_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic