Re: How to put an end to white spaces around figures

2009-03-05 Thread Konrad Hofbauer

Tal Kenig wrote:

Does anyone know how to set table row separation? This would be of great
help.


I found this in one of my files:

\newenvironment{ths_tbl}[0]{\medskip{} 
\begin{centering}\noindent\medskip{} 
\setlength{\tabcolsep}{4pt}\setlength{\extrarowheight}{2pt}\small}{\par\end{centering}}


which I put all of my tables into.

So \extrarowheight might be what you are after (?).

/Konrad



Re: How to put an end to white spaces around figures

2009-03-05 Thread Tal Kenig

I was able to get some of it solved by putting the following in the preamble:
\setlength\fboxsep{0pt} \setlength\fboxrule{1pt} 
This fixed the box to be tight around the image and of 1 point thickness.
\setlength\tabcolsep{0pt}
This made the tables tight horizontally.
I was looking for a similar command for the row separation (tabrowsep) - but
my doc would not compile, so I assume that the row separation works
differently.
Does anyone know how to set table row separation? This would be of great
help.
Thanks, 
Tal.


Tal Kenig wrote:
> 
> Hello all.
> I have searched for this for a long time, but could not find a
> satisfactory solution.
> I usually insert figures into tables (which reside inside figure floats).
> The problem is that lyx automatically inserts white spaces above, below,
> to the left and to the right of the figures.
> Sometimes I wish to get rid of that behavior, and to remove or reduce the
> white spaces.
> I can sometimes do it by inserting negative spaces, but this is tedious
> work.
> 
> In addition, sometimes I have a figure which has white background, and I
> want to add a thin black line around it, but it also has to be tight. I
> tried a single cell table or a box inside the main table.
> Once again, I am faced with the white spaces plus the alignment of the
> table sometimes get messed up.
> 
> I would really appreciate it if someone could offer a remedy to this
> situation, preferably a preamble fix.
> 
> Thanks in advance, 
> Tal.
> 

-- 
View this message in context: 
http://n2.nabble.com/How-to-put-an-end-to-white-spaces-around-figures-tp2424048p2428726.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: How to put an end to white spaces around figures

2009-03-05 Thread Helge Hafting

Tal Kenig wrote:

Hello all.
I have searched for this for a long time, but could not find a satisfactory
solution.
I usually insert figures into tables (which reside inside figure floats).
The problem is that lyx automatically inserts white spaces above, below, to
the left and to the right of the figures.


Table cells have internal spacing so the text won't touch the edges. 
This can be tweaked  (or zeroed) with latex commands. I am not sure if 
you can adjust a single cell only, or if the whole table is affected.



Sometimes I wish to get rid of that behavior, and to remove or reduce the
white spaces.
I can sometimes do it by inserting negative spaces, but this is tedious
work.

In addition, sometimes I have a figure which has white background, and I
want to add a thin black line around it, but it also has to be tight. I
tried a single cell table or a box inside the main table.
Once again, I am faced with the white spaces plus the alignment of the table
sometimes get messed up.


I usually use a box with these settings:
Decoration: Simple rectangular frame
Inner Box: none
width: 1 [Width]

The spacing is tight, although not completely gone. Spacing is small 
enough for a frame around a small logo though.


As for alignment - that is an interesting topic. Help->embedded objects 
has a section on that. Almost anything can be done, but it is not always 
 easy.


Helge Hafting


How to put an end to white spaces around figures

2009-03-04 Thread Tal Kenig

Hello all.
I have searched for this for a long time, but could not find a satisfactory
solution.
I usually insert figures into tables (which reside inside figure floats).
The problem is that lyx automatically inserts white spaces above, below, to
the left and to the right of the figures.
Sometimes I wish to get rid of that behavior, and to remove or reduce the
white spaces.
I can sometimes do it by inserting negative spaces, but this is tedious
work.

In addition, sometimes I have a figure which has white background, and I
want to add a thin black line around it, but it also has to be tight. I
tried a single cell table or a box inside the main table.
Once again, I am faced with the white spaces plus the alignment of the table
sometimes get messed up.

I would really appreciate it if someone could offer a remedy to this
situation, preferably a preamble fix.

Thanks in advance, 
Tal.
-- 
View this message in context: 
http://n2.nabble.com/How-to-put-an-end-to-white-spaces-around-figures-tp2424048p2424048.html
Sent from the LyX - Users mailing list archive at Nabble.com.