On Thu, 08 May 2008 15:53:45 +0100, Helge Hafting <[EMAIL PROTECTED]> wrote:

Marwan Boustany wrote:
Peace,

I am currently figuring out lyx to write my thesis in. There is an image that I want to put in, that was easy, but I want to put text on the right and left of it to describe it.

I tried using boxes/minipages... does not work.
How did this fail for you? I have done exactly this. three minipages in a row, the sum of their widths must be less than 100% of line width. This in necessary, or the line will break between them. Text goes in the first and the last, and the graphich in the middle one. Right click on a minipage to bring up a dialog with minipage settings,
including the width and alignments.

Now, the text minipages and the graphic minipages will probably not have the same height. Fortunately, minipages have lots of adjustments for things like this.
If you almost gets there but find it tricky - ask again.
I tried using a table with three spaces...  But that does not work.
And how did this go wrong? First and last column must be fixed-width, _if_ you need several lines of text. The figure goes in the middle column. The cells might end up with different height, the stuff inside can be made to line up in various ways.

Please tell us exactly what you want this to look like, and why the table approach
didn't work.  We can probably help you with this.

I tried some other stuff that I cannot now remember... same result.

I just cannot seem to find a way to properly align text on both sides of the image... The only way is to make that image and text i want into a jpg in office and import the whole thing (The text looks blotchy and fat)... But this is a workaround, not a nice solution...

So is there a way to do what I want in this instance?
Depends on what you want. If you simply want text to line up with the top, bottom or middle of your graphic, then it can be done with either boxes or tables.

If you need something more specific than that, tell us and we'll have a look. Aligning text to some specific feature in the image is tricky, it is then often better to make a figure that contains such text. (xfig is nice in that it lets
you use the same kind of text as the document uses, so there will be no
font differences. Not even a slight difference. You can even put math and other
special text in the figure if need be.

Helge Hafting


This is a response to the last 3-4 people.

Thank you for the rapid and useful responses. Your time is very much appreciated.

My error was in that I did not initially create a box for the figure itself. Also of use was putting in verticle spacing to help align the text and image as I like. My problem with the three cell table was that I did not specify cell sizes and did not use verticle spacing.

All of these helped in one way or another to either misalign the image and text or to have them on separate lines.

I think I have enough now to do what I want for this figure... Except one thing...

When I create the pdf... The "Figure 1.2: bla bla" stopped appearing, now only the image and text but to figure x.x: xxx... any way to fix this?


--
Peace

Reply via email to