Ans. M4: Difference between revisions

From STMDocs
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[FAQ_-_elsarticle.cls|<Back]]
[[FAQ_-_elsarticle.cls|<Back]]


Of course you may control the spacing using the command <code>\baselineskip</code>. The syntax is:
Of course, you may control the spacing using the command <code>\baselineskip</code>. The syntax is:
<geshi lang="latex">
<geshi lang="latex">
   \baselineskip=??pt
   \baselineskip=??pt
</geshi>
</geshi>


Instead of <code>??</code> you may give the skip. For example:
Instead of <code>??</code>, you may use skip. For example:
<geshi lang="latex">
<geshi lang="latex">
   \baselineskip=12pt
   \baselineskip=12pt
</geshi>
</geshi>
But please note, this should be given within a group or inside an environment. Otherwise it will affect the spacing of the rest of the paragraphs. If you  
But please note, this should be given within a group or inside an environment. Otherwise it will affect the spacing of the rest of the paragraphs. If you  
want to give just for one paragraph, then:
want to use it for just one paragraph, then:
<geshi lang="latex">
<geshi lang="latex">
   \bgroup
   \bgroup
Line 26: Line 26:
   \usepackage{array}
   \usepackage{array}
</geshi>
</geshi>
then, just before <code>\begin{tabular}</code>, please give:
then, just before <code>\begin{tabular}</code>, please use:
<geshi lang="latex">
<geshi lang="latex">
   \advance\extrarowheight-??pt
   \advance\extrarowheight-??pt

Revision as of 14:40, 18 June 2009

<Back

Of course, you may control the spacing using the command \baselineskip. The syntax is: <geshi lang="latex">

 \baselineskip=??pt

</geshi>

Instead of ??, you may use skip. For example: <geshi lang="latex">

 \baselineskip=12pt

</geshi> But please note, this should be given within a group or inside an environment. Otherwise it will affect the spacing of the rest of the paragraphs. If you want to use it for just one paragraph, then: <geshi lang="latex">

 \bgroup
 
 \baselineskip=12pt
 
 Here goes the para......
 .......................
 
 \egroup

</geshi> For controlling the spacing between the rows in the table, you have to use a package called array.sty in the preamble: <geshi lang="latex">

 \usepackage{array}

</geshi> then, just before \begin{tabular}, please use: <geshi lang="latex">

 \advance\extrarowheight-??pt

</geshi> Instead of ??, please give the value. For example: <geshi lang="latex">

 \begin{table}
   \caption{Here goes the table caption}
   \advance\extrarowheight-5pt
   \begin{tabular}{ll}
   \hline
     aa & bb\\
   \hline
     cc & dd\\
     ee & ff\\
   \hline
   \end{tabular}
 \end{table}

</geshi>