Gunnar G wrote:
How can I set a larger size of the table cells?
I wish to have, like 4 mm extra height above and below the text in each
table cell, or if there is a way to set the height of each cell in some
way.
Or should I just have cells with multiple lines? Like this:
+-------+
| | <--- line with spaces
| a+b+c |
| | <--- line with spaces
+-------+
You can do it with empty lines, but then the height depends on your fontsize _and_ linespace.
Another way is to use \raisebox to adjust the height. E.g. insert the command (assuming your fontsize is 12 pt)
\raisebox{4mm+12pt}{}in ERT in the table cell to get nearly 4 mm height above the text.
(Don't forget to load the package calc in the preamble to enable math operations)
A more detailed description of this method is in the attached LyX-file.
regards Uwe
p.s. I hope someone knows a smoother way to to this
#LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{calc} \end_preamble \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize 12 \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 4 \tocdepth 3 \paragraph_separation skip \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle empty \bullet 1 1 34 -1 \end_bullet \bullet 2 2 35 -1 \end_bullet \bullet 3 2 7 -1 \end_bullet
\layout Standard
\begin_inset Tabular
<lyxtabular version="3" rows="1" columns="1">
<features>
<column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
<row topline="true" bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true"
rightline="true" usebox="none">
\begin_inset Text
\layout Standard
\begin_inset ERT
status Collapsed
\layout Standard
\backslash
\backslash
\end_inset
a+b+c
\begin_inset ERT
status Collapsed
\layout Standard
\backslash
\backslash
\end_inset
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
with empty lines
\layout Standard
\begin_inset Tabular
<lyxtabular version="3" rows="1" columns="1">
<features>
<column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
<row topline="true" bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true"
rightline="true" usebox="none">
\begin_inset Text
\layout Standard
\begin_inset ERT
status Collapsed
\layout Standard
\backslash
raisebox{4mm+12pt}{}
\backslash
hspace{-4pt}
\end_inset
a+b+c
\begin_inset ERT
status Collapsed
\layout Standard
\backslash
raisebox{-5mm}{}
\end_inset
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
with
\series bold
\backslash
raisebox
\layout Standard
\begin_inset Note
collapsed false
\layout Standard
The
\series bold
\backslash
hspace
\series default
after the first
\backslash
\series bold
raisebox
\series default
is neccessary to remove the space introduced by the empty brace of
\series bold
\backslash
raisebox
\series default
.
\layout Standard
Add to the 4
\begin_inset Formula $\,$
\end_inset
mm the fontsize (in this case 12
\begin_inset Formula $\,$
\end_inset
pt).
To enable calculations, load the package
\series bold
calc
\series default
in the preamble.
\end_inset
\layout Standard
\begin_inset Tabular
<lyxtabular version="3" rows="1" columns="1">
<features>
<column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
<row topline="true" bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true"
rightline="true" usebox="none">
\begin_inset Text
\layout Standard
a+b+c
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
original
\the_end
