Re: how to cross-reference a figure

2008-05-08 Thread misterHide

got it. My mistake was to place the label in the float object.
But I have to put it in the Description of the image

Thanks

Helge Hafting wrote:
 
 misterHide wrote:
 Hi,

 I want to cross-reference a Figure by theire number.
 It should look like: how figure 12 shows you...

 How could I do so? I just found the opportunity to link against an label.
 Isn't it possible to link against a figure floating object and theire
 name?
   
 You put a label into the caption in the floating figure. (Insert-label)
 Then you link to that label. (Insert-reference)
 The caption will be numbered when the document is printed, and the
 same number will be printed in the reference.
 
 You have various options for how the reference will print, you can get:
 * the figure number, which is what you asked about
 * the page number
 * the figure number and the page number, or strings like figure 12 on 
 the previous page
when the page number is close to the reference.
 
 
 In Lyx, this will look like: how figure REF[my figure] shows you...
 but the REF[my figure] will be replaced by the correct number when you
 print or make a pdf.  LyX always gets these numbers right, no matter how
 much editing you do later. (Contrast to some other word processors that 
 occationally
 mess up references and the TOC...)
 
 I agree that referencing the figure directly by name without having to 
 place a label
 first would be easier - but LyX can't do that - yet.  One small problem 
 with this approach
 is what to do when two figures have the same name.
 
 Helge Hafting
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-cross-reference-a-figure-tp17066132p17122426.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Image with text descriptions on both sides

2008-05-08 Thread Marwan Boustany

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.
I tried using a table with three spaces...  But that does not work.
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?

Thank you for your time.

--
Peace


Re: Image with text descriptions on both sides

2008-05-08 Thread Rune Schjellerup Philosof

Marwan Boustany skrev:
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...


I know this is a workaround too, but it looks nice.
Use inkscape to create a svg containing the image and text.
Or use gimp to create a png with it.
Those are the solutions I have been using.
You should be aware that the preview in Lyx scales pictures in a bad way.
When you create a ps or pdf it looks nice.

Of course, it would be better to create the text in latex, so that the
fonts and all will look the same.

--
Rune



ntbib.sty

2008-05-08 Thread Hassan Khater
HI
I am using Lyx 1.5.4.1 under windows XP
I am trying to use the natbib reference style but an error message saying 
(Latex error: file 'natbib.sty' not found.

I downloaded the file put it in Lyx and Miktex folders but lyx never found it.

Can you help me please?

 Hassan Khater
Materials Science
Dept. Engineering
University of Liverpool



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: ntbib.sty

2008-05-08 Thread Uwe Stöhr

Hassan Khater schrieb:


I am using Lyx 1.5.4.1 under windows XP
I am trying to use the natbib reference style but an error message saying 
(Latex error: file 'natbib.sty' not found.


Then
- open an internet connection
- compile your document again

MiKTeX will then either pop up to tell you that it will install natbib or install it automatically 
in the background.


If you still get the same error

- open MikTeX's package manager
- go there to the menu Repositories and chosse another package internet 
repository
- then select in the package manager natbib and install it.

regards Uwe


Re: Tex capacity exceeded

2008-05-08 Thread Paul A. Rubin

Adrian Peter wrote:

Turned out the error was being caused by having single quotes in math
equations.  I was using them to indicate derivatives.  I changed them to
\prime and everything worked!  Also it didn't like it if I placed a single
quote inside a \mbox within a math equation.  Anyone know why this is?
Thanks.



I routinely use single quote (') to denote transpose in math insets, and 
never have a problem with it.  I just tried putting \mbox inside a math 
inset and putting a single quote inside the mbox, again with no problem. 
 This was using the article class, but I randomly tried a few other 
classes with no difficulties.  I was using very short test documents, 
but I would be surprised if that were the issue.  Perhaps either the 
class you are using for your thesis or some other package you are 
loading is responsible?


/Paul



Re: Image with text descriptions on both sides

2008-05-08 Thread Paul A. Rubin

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.
I tried using a table with three spaces...  But that does not work.
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?

Thank you for your time.



Are you trying to align text with specific points of the image (so that 
the text annotates parts of the image), or are you just trying to align 
the text with the top (or bottom or center) of the image, or align the 
top of the left text with the top of the right text?


/Paul



Re: natbib.sty

2008-05-08 Thread Hassan Khater
Thanks Uwe for your kind advice.
Now the problem is solved partially as the natbib package was successfully 
installed but in the pdf output of my thesis,  references appear like that [?] 
and are numbered at the Bibliography section. 
The natbib does not yet appear in the style list in the BibTex Bibliography. 
 
 
  Hassan Khater schrieb:

 I am using Lyx 1.5.4.1 under windows XP
 I am trying to use the natbib reference style but an error message saying 
 (Latex error: file 'natbib.sty' not found.

 Then
 - open an internet connection
 - compile your document again
 
 MiKTeX will then either pop up to tell you that it will install natbib or 
install it automatically 
 in the background.
 
 If you still get the same error
 
 - open MikTeX's package manager
 - go there to the menu Repositories and chosse another package internet 
 repository
 - then select in the package manager natbib and install it.
 
 regards Uwe



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: natbib.sty

2008-05-08 Thread Bob Lounsbury
On Thu, May 8, 2008 at 8:25 AM, Hassan Khater [EMAIL PROTECTED] wrote:
 Thanks Uwe for your kind advice.
 Now the problem is solved partially as the natbib package was successfully 
 installed but in the pdf output of my thesis,  references appear like that 
 [?] and are numbered at the Bibliography section.
 The natbib does not yet appear in the style list in the BibTex Bibliography.

Did you tell LyX to use natbib? Document-Settings-Bibliography,
Natbib and select your style either Author-year or Numerical.

There is no natbib bibliography style. There are styles like plainnat,
unsrtnat, and abbrvnat.

Cheers,
/Bob


Re: Image with text descriptions on both sides

2008-05-08 Thread Marwan Boustany

On Thu, 08 May 2008 14:45:52 +0100, Paul A. Rubin [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.
I tried using a table with three spaces...  But that does not work.
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?
 Thank you for your time.



Are you trying to align text with specific points of the image (so that  
the text annotates parts of the image), or are you just trying to align  
the text with the top (or bottom or center) of the image, or align the  
top of the left text with the top of the right text?


/Paul



I want the text to begin from the same level as the top of the image, and  
I want the text to continue line to line down along the image.


--
Peace


Re: Image with text descriptions on both sides

2008-05-08 Thread Helge Hafting

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












Re: Image with text descriptions on both sides

2008-05-08 Thread Paul A. Rubin

Marwan Boustany wrote:





I want the text to begin from the same level as the top of the image, 
and I want the text to continue line to line down along the image.




Is the attached example what you have in mind?

/Paul


2dmodel.eps
Description: PostScript document


align.lyx
Description: application/lyx


Re: Image with text descriptions on both sides

2008-05-08 Thread Marwan Boustany
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


Re: Printing a book

2008-05-08 Thread Eric S Fraga
On Wed, May 07, 2008 at 01:23:12PM +1200, John wrote:
 But for a book that is far too big. So I decided to try for 9 x 6 or 225mm 
 x 
 160mm which seem to be the sizes offered by local Print on Demand businesses 
 in New Zealand.
 
 My difficulty is that, having set the page size in LyX, it shows up fine in 
 xpdf but seems to be scaled to A4 when viewed by Acrobat Reader (which I 
 suspect will be what the POD company will use).

I created an 8.5 x 8.5 book recently using latex direclty (not LyX).
I simply used the geometry package and everything worked fine.  xpdf
showed it with the right size (not scaled to A4) and the book came out
perfectly when I got it printed by lulu.com.  My output was prepared
for two sided printing (page numbers, in particular, alternated sides
from page to page as I expected as did the margins).

How are you actually specifying the size?  Have you looked at the
latex code?

cheers,
eric


Re: Image with text descriptions on both sides

2008-05-08 Thread Eric S Fraga
On Thu, May 08, 2008 at 11:53:45AM +0100, Marwan Boustany wrote:
 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.
 I tried using a table with three spaces...  But that does not work.
 I tried some other stuff that I cannot now remember... same result.

I've done this successfully in lyx using a table and in latex directly
with minipages.  What happens when you use a table?  You can specify
sizes (e.g. 30% text width) for the columns that contain the text so
that the 'p' option for the tabular environment is used, allowing
paragraphs of text in these columns.


LyX formatting citations incorrectly-- Desperate for help

2008-05-08 Thread Adam Pantanowitz
Hi all

I have searched far and wide, read documents, and tried messing around with
layout and cls files, but have been unable to find an answer.

If someone can help me, I'd be immensely grateful!

I am trying to use the IEEEtran style sheet.  When I create a float (table
or figure), the caption is not formatting according to the IEEEtran.cls
file...

What happens is that it displays:
Figure 1.
instead of:
Fig 1.

Also, it displays Table 1 instead of TABLE 1.  This problem has been driving
me crazy!

Any help appreciated

Kind regards,

Adam


Re: how to cross-reference a figure

2008-05-08 Thread misterHide

got it. My mistake was to place the label in the float object.
But I have to put it in the Description of the image

Thanks

Helge Hafting wrote:
 
 misterHide wrote:
 Hi,

 I want to cross-reference a Figure by theire number.
 It should look like: how figure 12 shows you...

 How could I do so? I just found the opportunity to link against an label.
 Isn't it possible to link against a figure floating object and theire
 name?
   
 You put a label into the caption in the floating figure. (Insert-label)
 Then you link to that label. (Insert-reference)
 The caption will be numbered when the document is printed, and the
 same number will be printed in the reference.
 
 You have various options for how the reference will print, you can get:
 * the figure number, which is what you asked about
 * the page number
 * the figure number and the page number, or strings like figure 12 on 
 the previous page
when the page number is close to the reference.
 
 
 In Lyx, this will look like: how figure REF[my figure] shows you...
 but the REF[my figure] will be replaced by the correct number when you
 print or make a pdf.  LyX always gets these numbers right, no matter how
 much editing you do later. (Contrast to some other word processors that 
 occationally
 mess up references and the TOC...)
 
 I agree that referencing the figure directly by name without having to 
 place a label
 first would be easier - but LyX can't do that - yet.  One small problem 
 with this approach
 is what to do when two figures have the same name.
 
 Helge Hafting
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-cross-reference-a-figure-tp17066132p17122426.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Image with text descriptions on both sides

2008-05-08 Thread Marwan Boustany

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.
I tried using a table with three spaces...  But that does not work.
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?

Thank you for your time.

--
Peace


Re: Image with text descriptions on both sides

2008-05-08 Thread Rune Schjellerup Philosof

Marwan Boustany skrev:
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...


I know this is a workaround too, but it looks nice.
Use inkscape to create a svg containing the image and text.
Or use gimp to create a png with it.
Those are the solutions I have been using.
You should be aware that the preview in Lyx scales pictures in a bad way.
When you create a ps or pdf it looks nice.

Of course, it would be better to create the text in latex, so that the
fonts and all will look the same.

--
Rune



ntbib.sty

2008-05-08 Thread Hassan Khater
HI
I am using Lyx 1.5.4.1 under windows XP
I am trying to use the natbib reference style but an error message saying 
(Latex error: file 'natbib.sty' not found.

I downloaded the file put it in Lyx and Miktex folders but lyx never found it.

Can you help me please?

 Hassan Khater
Materials Science
Dept. Engineering
University of Liverpool



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: ntbib.sty

2008-05-08 Thread Uwe Stöhr

Hassan Khater schrieb:


I am using Lyx 1.5.4.1 under windows XP
I am trying to use the natbib reference style but an error message saying 
(Latex error: file 'natbib.sty' not found.


Then
- open an internet connection
- compile your document again

MiKTeX will then either pop up to tell you that it will install natbib or install it automatically 
in the background.


If you still get the same error

- open MikTeX's package manager
- go there to the menu Repositories and chosse another package internet 
repository
- then select in the package manager natbib and install it.

regards Uwe


Re: Tex capacity exceeded

2008-05-08 Thread Paul A. Rubin

Adrian Peter wrote:

Turned out the error was being caused by having single quotes in math
equations.  I was using them to indicate derivatives.  I changed them to
\prime and everything worked!  Also it didn't like it if I placed a single
quote inside a \mbox within a math equation.  Anyone know why this is?
Thanks.



I routinely use single quote (') to denote transpose in math insets, and 
never have a problem with it.  I just tried putting \mbox inside a math 
inset and putting a single quote inside the mbox, again with no problem. 
 This was using the article class, but I randomly tried a few other 
classes with no difficulties.  I was using very short test documents, 
but I would be surprised if that were the issue.  Perhaps either the 
class you are using for your thesis or some other package you are 
loading is responsible?


/Paul



Re: Image with text descriptions on both sides

2008-05-08 Thread Paul A. Rubin

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.
I tried using a table with three spaces...  But that does not work.
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?

Thank you for your time.



Are you trying to align text with specific points of the image (so that 
the text annotates parts of the image), or are you just trying to align 
the text with the top (or bottom or center) of the image, or align the 
top of the left text with the top of the right text?


/Paul



Re: natbib.sty

2008-05-08 Thread Hassan Khater
Thanks Uwe for your kind advice.
Now the problem is solved partially as the natbib package was successfully 
installed but in the pdf output of my thesis,  references appear like that [?] 
and are numbered at the Bibliography section. 
The natbib does not yet appear in the style list in the BibTex Bibliography. 
 
 
  Hassan Khater schrieb:

 I am using Lyx 1.5.4.1 under windows XP
 I am trying to use the natbib reference style but an error message saying 
 (Latex error: file 'natbib.sty' not found.

 Then
 - open an internet connection
 - compile your document again
 
 MiKTeX will then either pop up to tell you that it will install natbib or 
install it automatically 
 in the background.
 
 If you still get the same error
 
 - open MikTeX's package manager
 - go there to the menu Repositories and chosse another package internet 
 repository
 - then select in the package manager natbib and install it.
 
 regards Uwe



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: natbib.sty

2008-05-08 Thread Bob Lounsbury
On Thu, May 8, 2008 at 8:25 AM, Hassan Khater [EMAIL PROTECTED] wrote:
 Thanks Uwe for your kind advice.
 Now the problem is solved partially as the natbib package was successfully 
 installed but in the pdf output of my thesis,  references appear like that 
 [?] and are numbered at the Bibliography section.
 The natbib does not yet appear in the style list in the BibTex Bibliography.

Did you tell LyX to use natbib? Document-Settings-Bibliography,
Natbib and select your style either Author-year or Numerical.

There is no natbib bibliography style. There are styles like plainnat,
unsrtnat, and abbrvnat.

Cheers,
/Bob


Re: Image with text descriptions on both sides

2008-05-08 Thread Marwan Boustany

On Thu, 08 May 2008 14:45:52 +0100, Paul A. Rubin [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.
I tried using a table with three spaces...  But that does not work.
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?
 Thank you for your time.



Are you trying to align text with specific points of the image (so that  
the text annotates parts of the image), or are you just trying to align  
the text with the top (or bottom or center) of the image, or align the  
top of the left text with the top of the right text?


/Paul



I want the text to begin from the same level as the top of the image, and  
I want the text to continue line to line down along the image.


--
Peace


Re: Image with text descriptions on both sides

2008-05-08 Thread Helge Hafting

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












Re: Image with text descriptions on both sides

2008-05-08 Thread Paul A. Rubin

Marwan Boustany wrote:





I want the text to begin from the same level as the top of the image, 
and I want the text to continue line to line down along the image.




Is the attached example what you have in mind?

/Paul


2dmodel.eps
Description: PostScript document


align.lyx
Description: application/lyx


Re: Image with text descriptions on both sides

2008-05-08 Thread Marwan Boustany
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


Re: Printing a book

2008-05-08 Thread Eric S Fraga
On Wed, May 07, 2008 at 01:23:12PM +1200, John wrote:
 But for a book that is far too big. So I decided to try for 9 x 6 or 225mm 
 x 
 160mm which seem to be the sizes offered by local Print on Demand businesses 
 in New Zealand.
 
 My difficulty is that, having set the page size in LyX, it shows up fine in 
 xpdf but seems to be scaled to A4 when viewed by Acrobat Reader (which I 
 suspect will be what the POD company will use).

I created an 8.5 x 8.5 book recently using latex direclty (not LyX).
I simply used the geometry package and everything worked fine.  xpdf
showed it with the right size (not scaled to A4) and the book came out
perfectly when I got it printed by lulu.com.  My output was prepared
for two sided printing (page numbers, in particular, alternated sides
from page to page as I expected as did the margins).

How are you actually specifying the size?  Have you looked at the
latex code?

cheers,
eric


Re: Image with text descriptions on both sides

2008-05-08 Thread Eric S Fraga
On Thu, May 08, 2008 at 11:53:45AM +0100, Marwan Boustany wrote:
 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.
 I tried using a table with three spaces...  But that does not work.
 I tried some other stuff that I cannot now remember... same result.

I've done this successfully in lyx using a table and in latex directly
with minipages.  What happens when you use a table?  You can specify
sizes (e.g. 30% text width) for the columns that contain the text so
that the 'p' option for the tabular environment is used, allowing
paragraphs of text in these columns.


LyX formatting citations incorrectly-- Desperate for help

2008-05-08 Thread Adam Pantanowitz
Hi all

I have searched far and wide, read documents, and tried messing around with
layout and cls files, but have been unable to find an answer.

If someone can help me, I'd be immensely grateful!

I am trying to use the IEEEtran style sheet.  When I create a float (table
or figure), the caption is not formatting according to the IEEEtran.cls
file...

What happens is that it displays:
Figure 1.
instead of:
Fig 1.

Also, it displays Table 1 instead of TABLE 1.  This problem has been driving
me crazy!

Any help appreciated

Kind regards,

Adam


Re: how to cross-reference a figure

2008-05-08 Thread misterHide

got it. My mistake was to place the label in the float object.
But I have to put it in the Description of the image

Thanks

Helge Hafting wrote:
> 
> misterHide wrote:
>> Hi,
>>
>> I want to cross-reference a Figure by theire number.
>> It should look like: "how figure 12 shows you..."
>>
>> How could I do so? I just found the opportunity to link against an label.
>> Isn't it possible to link against a figure floating object and theire
>> name?
>>   
> You put a label into the caption in the floating figure. (Insert->label)
> Then you link to that label. (Insert->reference)
> The caption will be numbered when the document is printed, and the
> same number will be printed in the reference.
> 
> You have various options for how the reference will print, you can get:
> * the figure number, which is what you asked about
> * the page number
> * the figure number and the page number, or strings like "figure 12 on 
> the previous page"
>when the page number is close to the reference.
> 
> 
> In Lyx, this will look like: "how figure REF[my figure] shows you..."
> but the REF[my figure] will be replaced by the correct number when you
> print or make a pdf.  LyX always gets these numbers right, no matter how
> much editing you do later. (Contrast to some other word processors that 
> occationally
> mess up references and the TOC...)
> 
> I agree that referencing the figure directly by name without having to 
> place a label
> first would be easier - but LyX can't do that - yet.  One small problem 
> with this approach
> is what to do when two figures have the same name.
> 
> Helge Hafting
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-cross-reference-a-figure-tp17066132p17122426.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Image with text descriptions on both sides

2008-05-08 Thread Marwan Boustany

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.
I tried using a table with three spaces...  But that does not work.
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?

Thank you for your time.

--
Peace


Re: Image with text descriptions on both sides

2008-05-08 Thread Rune Schjellerup Philosof

Marwan Boustany skrev:
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...


I know this is a workaround too, but it looks nice.
Use inkscape to create a svg containing the image and text.
Or use gimp to create a png with it.
Those are the solutions I have been using.
You should be aware that the preview in Lyx scales pictures in a bad way.
When you create a ps or pdf it looks nice.

Of course, it would be better to create the text in latex, so that the
fonts and all will look the same.

--
Rune



ntbib.sty

2008-05-08 Thread Hassan Khater
HI
I am using Lyx 1.5.4.1 under windows XP
I am trying to use the natbib reference style but an error message saying 
(Latex error: file 'natbib.sty' not found.

I downloaded the file put it in Lyx and Miktex folders but lyx never found it.

Can you help me please?

 Hassan Khater
Materials Science
Dept. Engineering
University of Liverpool



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: ntbib.sty

2008-05-08 Thread Uwe Stöhr

Hassan Khater schrieb:


I am using Lyx 1.5.4.1 under windows XP
I am trying to use the natbib reference style but an error message saying 
(Latex error: file 'natbib.sty' not found.


Then
- open an internet connection
- compile your document again

MiKTeX will then either pop up to tell you that it will install natbib or install it automatically 
in the background.


If you still get the same error

- open MikTeX's package manager
- go there to the menu "Repositories" and chosse another package internet 
repository
- then select in the package manager "natbib" and install it.

regards Uwe


Re: Tex capacity exceeded

2008-05-08 Thread Paul A. Rubin

Adrian Peter wrote:

Turned out the error was being caused by having single quotes in math
equations.  I was using them to indicate derivatives.  I changed them to
\prime and everything worked!  Also it didn't like it if I placed a single
quote inside a \mbox within a math equation.  Anyone know why this is?
Thanks.



I routinely use single quote (') to denote transpose in math insets, and 
never have a problem with it.  I just tried putting \mbox inside a math 
inset and putting a single quote inside the mbox, again with no problem. 
 This was using the article class, but I randomly tried a few other 
classes with no difficulties.  I was using very short test documents, 
but I would be surprised if that were the issue.  Perhaps either the 
class you are using for your thesis or some other package you are 
loading is responsible?


/Paul



Re: Image with text descriptions on both sides

2008-05-08 Thread Paul A. Rubin

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.
I tried using a table with three spaces...  But that does not work.
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?

Thank you for your time.



Are you trying to align text with specific points of the image (so that 
the text annotates parts of the image), or are you just trying to align 
the text with the top (or bottom or center) of the image, or align the 
top of the left text with the top of the right text?


/Paul



Re: natbib.sty

2008-05-08 Thread Hassan Khater
Thanks Uwe for your kind advice.
Now the problem is solved partially as the natbib package was successfully 
installed but in the pdf output of my thesis,  references appear like that [?] 
and are numbered at the Bibliography section. 
The natbib does not yet appear in the style list in the BibTex Bibliography. 
 
 
>  Hassan Khater schrieb:

>> I am using Lyx 1.5.4.1 under windows XP
>> I am trying to use the natbib reference style but an error message saying 
>> (Latex error: file 'natbib.sty' not found.

> Then
> - open an internet connection
> - compile your document again
> 
> MiKTeX will then either pop up to tell you that it will install natbib or 
>install it automatically 
> in the background.
> 
> If you still get the same error
> 
> - open MikTeX's package manager
> - go there to the menu "Repositories" and chosse another package internet 
> repository
> - then select in the package manager "natbib" and install it.
> 
> regards Uwe



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: natbib.sty

2008-05-08 Thread Bob Lounsbury
On Thu, May 8, 2008 at 8:25 AM, Hassan Khater <[EMAIL PROTECTED]> wrote:
> Thanks Uwe for your kind advice.
> Now the problem is solved partially as the natbib package was successfully 
> installed but in >the pdf output of my thesis,  references appear like that 
> [?] and are numbered at the >Bibliography section.
> The natbib does not yet appear in the style list in the BibTex Bibliography.

Did you tell LyX to use natbib? Document->Settings->Bibliography,
Natbib and select your style either Author-year or Numerical.

There is no natbib bibliography style. There are styles like plainnat,
unsrtnat, and abbrvnat.

Cheers,
/Bob


Re: Image with text descriptions on both sides

2008-05-08 Thread Marwan Boustany

On Thu, 08 May 2008 14:45:52 +0100, Paul A. Rubin <[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.
I tried using a table with three spaces...  But that does not work.
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?
 Thank you for your time.



Are you trying to align text with specific points of the image (so that  
the text annotates parts of the image), or are you just trying to align  
the text with the top (or bottom or center) of the image, or align the  
top of the left text with the top of the right text?


/Paul



I want the text to begin from the same level as the top of the image, and  
I want the text to continue line to line down along the image.


--
Peace


Re: Image with text descriptions on both sides

2008-05-08 Thread Helge Hafting

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












Re: Image with text descriptions on both sides

2008-05-08 Thread Paul A. Rubin

Marwan Boustany wrote:





I want the text to begin from the same level as the top of the image, 
and I want the text to continue line to line down along the image.




Is the attached example what you have in mind?

/Paul


2dmodel.eps
Description: PostScript document


align.lyx
Description: application/lyx


Re: Image with text descriptions on both sides

2008-05-08 Thread Marwan Boustany
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


Re: Printing a book

2008-05-08 Thread Eric S Fraga
On Wed, May 07, 2008 at 01:23:12PM +1200, John wrote:
> But for a book that is far too big. So I decided to try for 9" x 6" or 225mm 
> x 
> 160mm which seem to be the sizes offered by local Print on Demand businesses 
> in New Zealand.
> 
> My difficulty is that, having set the page size in LyX, it shows up fine in 
> xpdf but seems to be scaled to A4 when viewed by Acrobat Reader (which I 
> suspect will be what the POD company will use).

I created an 8.5" x 8.5" book recently using latex direclty (not LyX).
I simply used the geometry package and everything worked fine.  xpdf
showed it with the right size (not scaled to A4) and the book came out
perfectly when I got it printed by lulu.com.  My output was prepared
for two sided printing (page numbers, in particular, alternated sides
from page to page as I expected as did the margins).

How are you actually specifying the size?  Have you looked at the
latex code?

cheers,
eric


Re: Image with text descriptions on both sides

2008-05-08 Thread Eric S Fraga
On Thu, May 08, 2008 at 11:53:45AM +0100, Marwan Boustany wrote:
> 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.
> I tried using a table with three spaces...  But that does not work.
> I tried some other stuff that I cannot now remember... same result.

I've done this successfully in lyx using a table and in latex directly
with minipages.  What happens when you use a table?  You can specify
sizes (e.g. 30% text width) for the columns that contain the text so
that the 'p' option for the tabular environment is used, allowing
paragraphs of text in these columns.


LyX formatting citations incorrectly-- Desperate for help

2008-05-08 Thread Adam Pantanowitz
Hi all

I have searched far and wide, read documents, and tried messing around with
layout and cls files, but have been unable to find an answer.

If someone can help me, I'd be immensely grateful!

I am trying to use the IEEEtran style sheet.  When I create a float (table
or figure), the caption is not formatting according to the IEEEtran.cls
file...

What happens is that it displays:
Figure 1.
instead of:
Fig 1.

Also, it displays Table 1 instead of TABLE 1.  This problem has been driving
me crazy!

Any help appreciated

Kind regards,

Adam