Re: inserting image

2006-02-24 Thread Juergen Spitzmueller
Paul Schwartz wrote:
 finally when I select English in the format of the document, I still can
 type in French language including the French accentuations, display the
 text in pdf (pdflatex) and insert images without problem.

 Shall i understand that language=French is just a matter of dictionnary ?
 or is there other inconveniences ? otherwise it is not a problem for me to
 adjust language to use one or the other dictionnary (French or English or
 other ...)

No, it's important to get correct hyphenation, translation of strings such as 
figure, table, chapter etc., and -- especially in the case of FRENCH 
AFAIR -- correct typography (i.e. a small space after quotation marks).

The latter is what is causing your problems BTW.

Jürgen


Re: inserting image

2006-02-24 Thread Paul A. Rubin

Paul Schwartz wrote:


Sorry again,

1) I tried with an English language file without changing the basic 
language
of the document, i.e. remaining in French :it appears to be the same 
result.

I inserted three images, I got 15 errors. always trying to display PDF
(pdflatex)
Here is a copy of the prepared file.

2) I changed the language in format-document into anglais (English),
inserted two images then it works properly.

Note: when I insert a floating image then i have no problem

Have you an idea to bypass this problem and have French accentuation
available

Thanks

regards
Paul








Enrico's batch file (as modified below) should fix it for you.  If not, 
as a workaround, if you export your document to LaTeX and then run 
pdflatex against it, you should get the right result; it's only 
View-PDF (pdflatex) that screws up (because the .tex file written to 
the temp directory has mangled file names that start with C:/ (or 
whatever your drive letter is), and they apparently get misinterpreted 
by something (babel?).


Since you're using pdflatex, I think you will need to modify Enrico's 
batch file as follows.  First, do not name it latex.bat; you could call 
it pdflatex.bat, but I recommend something like mypdflatex.bat. 
Second, edit the last line to read pdflatex.exe %1.  Finally, inside 
LyX, go to Edit-Preferences-Converters, highlight the LaTeX-PDF 
(pdflatex) entry, change the Converter: line to read mypdflatex $$i, 
click Modify and then Save.  Hopefully that will fix the problem.


/Paul






Re: inserting image

2006-02-24 Thread Juergen Spitzmueller
Paul Schwartz wrote:
 finally when I select English in the format of the document, I still can
 type in French language including the French accentuations, display the
 text in pdf (pdflatex) and insert images without problem.

 Shall i understand that language=French is just a matter of dictionnary ?
 or is there other inconveniences ? otherwise it is not a problem for me to
 adjust language to use one or the other dictionnary (French or English or
 other ...)

No, it's important to get correct hyphenation, translation of strings such as 
figure, table, chapter etc., and -- especially in the case of FRENCH 
AFAIR -- correct typography (i.e. a small space after quotation marks).

The latter is what is causing your problems BTW.

Jürgen


Re: inserting image

2006-02-24 Thread Paul A. Rubin

Paul Schwartz wrote:


Sorry again,

1) I tried with an English language file without changing the basic 
language
of the document, i.e. remaining in French :it appears to be the same 
result.

I inserted three images, I got 15 errors. always trying to display PDF
(pdflatex)
Here is a copy of the prepared file.

2) I changed the language in format-document into anglais (English),
inserted two images then it works properly.

Note: when I insert a floating image then i have no problem

Have you an idea to bypass this problem and have French accentuation
available

Thanks

regards
Paul








Enrico's batch file (as modified below) should fix it for you.  If not, 
as a workaround, if you export your document to LaTeX and then run 
pdflatex against it, you should get the right result; it's only 
View-PDF (pdflatex) that screws up (because the .tex file written to 
the temp directory has mangled file names that start with C:/ (or 
whatever your drive letter is), and they apparently get misinterpreted 
by something (babel?).


Since you're using pdflatex, I think you will need to modify Enrico's 
batch file as follows.  First, do not name it latex.bat; you could call 
it pdflatex.bat, but I recommend something like mypdflatex.bat. 
Second, edit the last line to read pdflatex.exe %1.  Finally, inside 
LyX, go to Edit-Preferences-Converters, highlight the LaTeX-PDF 
(pdflatex) entry, change the Converter: line to read mypdflatex $$i, 
click Modify and then Save.  Hopefully that will fix the problem.


/Paul






Re: inserting image

2006-02-24 Thread Juergen Spitzmueller
Paul Schwartz wrote:
> "finally" when I select English in the format of the document, I still can
> type in French language including the French accentuations, display the
> text in pdf (pdflatex) and insert images without problem.
>
> Shall i understand that language=French is just a matter of dictionnary ?
> or is there other inconveniences ? otherwise it is not a problem for me to
> adjust language to use one or the other dictionnary (French or English or
> other ...)

No, it's important to get correct hyphenation, translation of strings such as 
"figure", "table", "chapter" etc., and -- especially in the case of FRENCH 
AFAIR -- correct typography (i.e. a small space after quotation marks).

The latter is what is causing your problems BTW.

Jürgen


Re: inserting image

2006-02-24 Thread Paul A. Rubin

Paul Schwartz wrote:


Sorry again,

1) I tried with an English language file without changing the basic 
language
of the document, i.e. remaining in French :it appears to be the same 
result.

I inserted three images, I got 15 errors. always trying to display PDF
(pdflatex)
Here is a copy of the prepared file.

2) I changed the language in format->document into "anglais" (English),
inserted two images then it works properly.

Note: when I insert a floating image then i have no problem

Have you an idea to bypass this problem and have French accentuation
available

Thanks

regards
Paul








Enrico's batch file (as modified below) should fix it for you.  If not, 
as a workaround, if you export your document to LaTeX and then run 
pdflatex against it, you should get the right result; it's only 
View->PDF (pdflatex) that screws up (because the .tex file written to 
the temp directory has "mangled" file names that start with "C:/" (or 
whatever your drive letter is), and they apparently get misinterpreted 
by something (babel?).


Since you're using pdflatex, I think you will need to modify Enrico's 
batch file as follows.  First, do not name it latex.bat; you could call 
it pdflatex.bat, but I recommend something like "mypdflatex.bat". 
Second, edit the last line to read "pdflatex.exe %1".  Finally, inside 
LyX, go to Edit->Preferences->Converters, highlight the LaTeX->PDF 
(pdflatex) entry, change the Converter: line to read mypdflatex $$i, 
click Modify and then Save.  Hopefully that will fix the problem.


/Paul






Re: inserting image

2006-02-23 Thread Uwe Stöhr

Paul Schwartz schrieb:

  I am trying to insert image inside one document:
  - one small image of a button inside the document itself,
  - one small image of the same button inside a table
  ...
  display-PDF(pdflatex). I got five errors for each image.

To fix the problem, copy the attached file latex.bat to LyX's install
subdirectory ~\LyX\bin.
The problem is the babel pacakge when the document language is french,
see bug 2248:

http://bugzilla.lyx.org/show_bug.cgi?id=2248

This problem is fixed for with version 1.1 of the LyXWinInstaller.

http://wiki.lyx.org/Windows/LyXWinInstaller

regards Uwe



Re: inserting image

2006-02-23 Thread Enrico Forestieri
Uwe Stöhr [EMAIL PROTECTED] writes:

 To fix the problem, copy the attached file latex.bat to LyX's install
 subdirectory ~\LyX\bin.

Uwe,

the first line $ cat latex.bat of the latex.bat file at

http://bugzilla.lyx.org/show_bug.cgi?id=2248

should be removed. 

-- 
Enrico




Re: inserting image

2006-02-23 Thread Paul Schwartz


on Thursday, February 23, 2006 11:24 AM - Uwe Stöhr schrieb :
Subject: Re: inserting image



Paul Schwartz schrieb:


I am trying to insert image inside one document:
- one small image of a button inside the document itself,
- one small image of the same button inside a table
...
display-PDF(pdflatex). I got five errors for each image.


To fix the problem, copy the attached file latex.bat to LyX's install
subdirectory ~\LyX\bin.
The problem is the babel pacakge when the document language is french,
see bug 2248:

http://bugzilla.lyx.org/show_bug.cgi?id=2248

This problem is fixed for with version 1.1 of the LyXWinInstaller.

http://wiki.lyx.org/Windows/LyXWinInstaller

regards Uwe








$ cat latex.bat
@echo off
set curdir=%CD:\=/%
sed -e s?%curdir%/??g %1  %1.new
move %1.new %1
latex.exe %1





Thank you Uwe,

1)I copy the .bat file hoping that I do not pollute it. Will come back to 
you to confirm.


2) However, I am preoccupied because it seems that i downloaded the version 
1.1 of the installer from the ftp server


Reference of the file: LyXWin137Complete-1-1.exe, 54 416 Kbytes, date 
(download) 17/02/06 23:50. So i am supposed to have the updated installer!


Regards

Paul



Re: inserting image

2006-02-23 Thread Uwe Stöhr

Paul Schwartz schrieb:

  I am trying to insert image inside one document:
  - one small image of a button inside the document itself,
  - one small image of the same button inside a table
  ...
  display-PDF(pdflatex). I got five errors for each image.

To fix the problem, copy the attached file latex.bat to LyX's install
subdirectory ~\LyX\bin.
The problem is the babel pacakge when the document language is french,
see bug 2248:

http://bugzilla.lyx.org/show_bug.cgi?id=2248

This problem is fixed for with version 1.1 of the LyXWinInstaller.

http://wiki.lyx.org/Windows/LyXWinInstaller

regards Uwe



Re: inserting image

2006-02-23 Thread Enrico Forestieri
Uwe Stöhr [EMAIL PROTECTED] writes:

 To fix the problem, copy the attached file latex.bat to LyX's install
 subdirectory ~\LyX\bin.

Uwe,

the first line $ cat latex.bat of the latex.bat file at

http://bugzilla.lyx.org/show_bug.cgi?id=2248

should be removed. 

-- 
Enrico




Re: inserting image

2006-02-23 Thread Paul Schwartz


on Thursday, February 23, 2006 11:24 AM - Uwe Stöhr schrieb :
Subject: Re: inserting image



Paul Schwartz schrieb:


I am trying to insert image inside one document:
- one small image of a button inside the document itself,
- one small image of the same button inside a table
...
display-PDF(pdflatex). I got five errors for each image.


To fix the problem, copy the attached file latex.bat to LyX's install
subdirectory ~\LyX\bin.
The problem is the babel pacakge when the document language is french,
see bug 2248:

http://bugzilla.lyx.org/show_bug.cgi?id=2248

This problem is fixed for with version 1.1 of the LyXWinInstaller.

http://wiki.lyx.org/Windows/LyXWinInstaller

regards Uwe








$ cat latex.bat
@echo off
set curdir=%CD:\=/%
sed -e s?%curdir%/??g %1  %1.new
move %1.new %1
latex.exe %1





Thank you Uwe,

1)I copy the .bat file hoping that I do not pollute it. Will come back to 
you to confirm.


2) However, I am preoccupied because it seems that i downloaded the version 
1.1 of the installer from the ftp server


Reference of the file: LyXWin137Complete-1-1.exe, 54 416 Kbytes, date 
(download) 17/02/06 23:50. So i am supposed to have the updated installer!


Regards

Paul



Re: inserting image

2006-02-23 Thread Uwe Stöhr

Paul Schwartz schrieb:

 >> I am trying to insert image inside one document:
 >> - one small image of a button inside the document itself,
 >> - one small image of the same button inside a table
 >> ...
 >> display->PDF(pdflatex). I got five errors for each image.

To fix the problem, copy the attached file "latex.bat" to LyX's install
subdirectory "~\LyX\bin".
The problem is the babel pacakge when the document language is french,
see bug 2248:

http://bugzilla.lyx.org/show_bug.cgi?id=2248

This problem is fixed for with version 1.1 of the LyXWinInstaller.

http://wiki.lyx.org/Windows/LyXWinInstaller

regards Uwe



Re: inserting image

2006-02-23 Thread Enrico Forestieri
Uwe Stöhr <[EMAIL PROTECTED]> writes:

> To fix the problem, copy the attached file "latex.bat" to LyX's install
> subdirectory "~\LyX\bin".

Uwe,

the first line "$ cat latex.bat" of the latex.bat file at

http://bugzilla.lyx.org/show_bug.cgi?id=2248

should be removed. 

-- 
Enrico




Re: inserting image

2006-02-23 Thread Paul Schwartz


on Thursday, February 23, 2006 11:24 AM - Uwe Stöhr schrieb :
Subject: Re: inserting image



Paul Schwartz schrieb:


I am trying to insert image inside one document:
- one small image of a button inside the document itself,
- one small image of the same button inside a table
...
display->PDF(pdflatex). I got five errors for each image.


To fix the problem, copy the attached file "latex.bat" to LyX's install
subdirectory "~\LyX\bin".
The problem is the babel pacakge when the document language is french,
see bug 2248:

http://bugzilla.lyx.org/show_bug.cgi?id=2248

This problem is fixed for with version 1.1 of the LyXWinInstaller.

http://wiki.lyx.org/Windows/LyXWinInstaller

regards Uwe








$ cat latex.bat
@echo off
set curdir=%CD:\=/%
sed -e "s?%curdir%/??g" %1 > %1.new
move %1.new %1
latex.exe %1





Thank you Uwe,

1)I copy the .bat file hoping that I do not pollute it. Will come back to 
you to confirm.


2) However, I am preoccupied because it seems that i downloaded the version 
1.1 of the installer from the ftp server


Reference of the file: LyXWin137Complete-1-1.exe, 54 416 Kbytes, date 
(download) 17/02/06 23:50. So i am supposed to have the updated installer!


Regards

Paul



Re: inserting image

2006-02-22 Thread Uwe Stöhr

Paul Schwartz wrote

I am new with Lyx 1.3.7 (French language) under Windows XP Pro installed 
with the help of the installer thanks.
I just not installed Ghostview which seems to have a conflict with Yap 
when looking to launch DVI.


Nobody reported this problem yet. Have you tested that GhostView 
interfers with Yap? This shouldn't be possible as GhostView can't 
display DVI-files.


But this has nothing todo with your problem:


I am trying to insert image inside one document:
- one small image of a button inside the document itself,
- one small image of the same button inside a table
...
display-PDF(pdflatex). I got five errors for each image.


Please send a minimal LyX file with the problematic image insets and the 
used image.


regards Uwe


Re: inserting image

2006-02-22 Thread Paul A. Rubin

Paul Schwartz wrote:


Good evening,

I am new with Lyx 1.3.7 (French language) under Windows XP Pro installed 
with the help of the installer thanks.
I just not installed Ghostview which seems to have a conflict with Yap 
when looking to launch DVI.


I use Ghostview and Yap (the version that comes with MiKTeX) on Win XP 
Pro with no problems.  Are you saying that when Yap tries to launch (or 
tries to open a DVI after launching) it triggers an error message from 
Ghostview?



My current problem:
I am trying to insert image inside one document:
- one small image of a button inside the document itself,
- one small image of the same button inside a table

for that purpose I use whether insert-graphic or the insert graphic 
button in the tool bar.I have no problem with the LyX document which 
displays properly the image of the button at the right place.
However, when I intend to look at the document launching 
display-PDF(pdflatex). I got five errors for each image.
I have got the same problem with floating figure however, it was 
because of some parameters; but with the current actions, I did not 
change anything in the parameter box

-First error message

Double subscript.
..._l-0_7_1-2_timerate_increase\string.png}
 
I treat `x_1_2' essentially like `x_1{}_2'.

-Second, third, fourth error messages

Missing { inserted.
..._l-0_7_1-2_timerate_increase\string.png}
 
A left brace was mandatory here, so I've put one in.
You might want to delete and/or insert some corrections
so that I will find a matching right brace soon.
(If you're confused by all this, try typing `I}' now.)

-fifth error message

Missing $ inserted.
..._l-0_7_1-2_timerate_increase\string.png}
 
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.

I surveyed the User manual, but did not find the solution.
Any Idea!



Something is causing LaTeX to think that the file name is a mathematical 
expression misplaced in regular text, which among other things makes it 
insert a dollar sign (to either start or end an inline formula) and 
treat the underscores in the file name as if they were subscript 
operators.  As Uwe suggests, about the only way to figure out why this 
is happening is to see a (minimal) example where it occurs.


/Paul



Re: inserting image

2006-02-22 Thread Uwe Stöhr

Paul Schwartz wrote

I am new with Lyx 1.3.7 (French language) under Windows XP Pro installed 
with the help of the installer thanks.
I just not installed Ghostview which seems to have a conflict with Yap 
when looking to launch DVI.


Nobody reported this problem yet. Have you tested that GhostView 
interfers with Yap? This shouldn't be possible as GhostView can't 
display DVI-files.


But this has nothing todo with your problem:


I am trying to insert image inside one document:
- one small image of a button inside the document itself,
- one small image of the same button inside a table
...
display-PDF(pdflatex). I got five errors for each image.


Please send a minimal LyX file with the problematic image insets and the 
used image.


regards Uwe


Re: inserting image

2006-02-22 Thread Paul A. Rubin

Paul Schwartz wrote:


Good evening,

I am new with Lyx 1.3.7 (French language) under Windows XP Pro installed 
with the help of the installer thanks.
I just not installed Ghostview which seems to have a conflict with Yap 
when looking to launch DVI.


I use Ghostview and Yap (the version that comes with MiKTeX) on Win XP 
Pro with no problems.  Are you saying that when Yap tries to launch (or 
tries to open a DVI after launching) it triggers an error message from 
Ghostview?



My current problem:
I am trying to insert image inside one document:
- one small image of a button inside the document itself,
- one small image of the same button inside a table

for that purpose I use whether insert-graphic or the insert graphic 
button in the tool bar.I have no problem with the LyX document which 
displays properly the image of the button at the right place.
However, when I intend to look at the document launching 
display-PDF(pdflatex). I got five errors for each image.
I have got the same problem with floating figure however, it was 
because of some parameters; but with the current actions, I did not 
change anything in the parameter box

-First error message

Double subscript.
..._l-0_7_1-2_timerate_increase\string.png}
 
I treat `x_1_2' essentially like `x_1{}_2'.

-Second, third, fourth error messages

Missing { inserted.
..._l-0_7_1-2_timerate_increase\string.png}
 
A left brace was mandatory here, so I've put one in.
You might want to delete and/or insert some corrections
so that I will find a matching right brace soon.
(If you're confused by all this, try typing `I}' now.)

-fifth error message

Missing $ inserted.
..._l-0_7_1-2_timerate_increase\string.png}
 
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.

I surveyed the User manual, but did not find the solution.
Any Idea!



Something is causing LaTeX to think that the file name is a mathematical 
expression misplaced in regular text, which among other things makes it 
insert a dollar sign (to either start or end an inline formula) and 
treat the underscores in the file name as if they were subscript 
operators.  As Uwe suggests, about the only way to figure out why this 
is happening is to see a (minimal) example where it occurs.


/Paul



Re: inserting image

2006-02-22 Thread Uwe Stöhr

Paul Schwartz wrote

I am new with Lyx 1.3.7 (French language) under Windows XP Pro installed 
with the help of the installer thanks.
I just not installed Ghostview which seems to have a conflict with Yap 
when looking to launch DVI.


Nobody reported this problem yet. Have you tested that GhostView 
interfers with Yap? This shouldn't be possible as GhostView can't 
display DVI-files.


But this has nothing todo with your problem:


I am trying to insert image inside one document:
- one small image of a button inside the document itself,
- one small image of the same button inside a table
...
display->PDF(pdflatex). I got five errors for each image.


Please send a minimal LyX file with the problematic image insets and the 
used image.


regards Uwe


Re: inserting image

2006-02-22 Thread Paul A. Rubin

Paul Schwartz wrote:


Good evening,

I am new with Lyx 1.3.7 (French language) under Windows XP Pro installed 
with the help of the installer thanks.
I just not installed Ghostview which seems to have a conflict with Yap 
when looking to launch DVI.


I use Ghostview and Yap (the version that comes with MiKTeX) on Win XP 
Pro with no problems.  Are you saying that when Yap tries to launch (or 
tries to open a DVI after launching) it triggers an error message from 
Ghostview?



My current problem:
I am trying to insert image inside one document:
- one small image of a button inside the document itself,
- one small image of the same button inside a table

for that purpose I use whether insert->graphic or the "insert graphic 
button" in the tool bar.I have no problem with the LyX document which 
displays properly the image of the button at the right place.
However, when I intend to look at the document launching 
display->PDF(pdflatex). I got five errors for each image.
I have got the same problem with "floating figure" however, it was 
because of some parameters; but with the current actions, I did not 
change anything in the parameter box

->First error message

Double subscript.
..._l-0_7_1-2_timerate_increase\string".png}
 &
I treat `x_1_2' essentially like `x_1{}_2'.

->Second, third, fourth error messages

Missing { inserted.
..._l-0_7_1-2_timerate_increase\string".png}
 &
A left brace was mandatory here, so I've put one in.
You might want to delete and/or insert some corrections
so that I will find a matching right brace soon.
(If you're confused by all this, try typing `I}' now.)

->fifth error message

Missing $ inserted.
..._l-0_7_1-2_timerate_increase\string".png}
 &
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.

I surveyed the User manual, but did not find the solution.
Any Idea!



Something is causing LaTeX to think that the file name is a mathematical 
expression misplaced in regular text, which among other things makes it 
insert a dollar sign (to either start or end an inline formula) and 
treat the underscores in the file name as if they were subscript 
operators.  As Uwe suggests, about the only way to figure out why this 
is happening is to see a (minimal) example where it occurs.


/Paul