Re: clearing bookmarks?

2005-05-18 Thread Johan Ingvast
On Tue, 17 May 2005, Kevin Pfeiffer wrote:

 Uwe Stöhr writes:
 
 You're right! So much for my thorough testing. I only placed the bookmark, 
 scrolled to the top of the document and then tried navigating back via 
 bookmark to where I was. I never dreamed that the bookmark is not saved 
 with the document (must be a bug, isn't it?). 
I don't think it is. Because having them in the session makes it
possible to move between different documents within the same lyxsession.
So if I have a number of documents open, going to a bookmark can, besides
moving in the active document, also swith document.

However, I agree that some functionality for saving bookmarks should be
implemented.

/johan

-- 
Johan Ingvast, PhD student http://www.md.kth.se/~ingvast
Department of Machine Design, Royal Institute of Technology, Sweden
http://www.md.kth.se, http://www.md.kth.se/~cas --- Walking robot proj
tel +46 (0)8 790 95 36  mob. +46 (0)70 34 34 498



Re: Latex import problem

2005-05-18 Thread Angus Leeming
On Wednesday 18 May 2005 09:05, TGreiner wrote:
 Dear Angus,
 thank you for your hints. I could run tex2lyx in a command window.
 The Latex file is imported (I see a lot of messages of the included
 images - no errors), but no output file is created. What do I have
 to do? T. Greiner

You have to redirect the output to STDOUT to a file. Here's how I 
convert UserGuide.lyx to a .tex file, reconvert it to a LyX 1.4.x 
version .lyx file and then convert this .lyx file to something that 
LyX 1.3.5 can read. (qlyx13x is my name for the Qt version of LyX 
1.3.5.)

$  qlyx13x --export latex UserGuide.lyx
$  ~/lyx/devel/build/src/tex2lyx/tex2lyx UserGuide.tex  
UserGuide_14x.lyx
$  python ~/lyx/devel/lib/lyx2lyx/lyx2lyx --to 221 UserGuide_14x.lyx  
UserGuide_13x.lyx

Going on to export this round-tripped version of the User Guide to 
latex and running latex twice over both UserGuide.tex and 
UserGuide_13x.tex
$ qlyx13x --export latex UserGuide_13x.lyx
$ latex UserGuide
$ latex UserGuide
$ latex UserGuide_13x
$ latex UserGuide_13x

produces two .dvi files, UserGuide.dvi, the compiled version of the 
original UserGuide.lyx and UserGuide_13x.dvi, the compiled version of 
the round-tripped file.

$ ls -l UserGuide.dvi UserGuide_13x.dvi
-rw-rw-r--  1 angus angus 497972 May 18 10:22 UserGuide_13x.dvi
-rw-rw-r--  1 angus angus 497800 May 18 10:22 UserGuide.dvi

Note that there is a small difference in size between the two, 
indicating that conversion lyx-tex-lyx was not perfect, but the 
difference is pretty small. So far, I've been unable to see any 
human-visible differences.

Regards,
Angus

ps, please post to the lyx-users list.
A.

 On Tue, 17 May 2005 22:23:53 +0100, Angus Leeming wrote:
 Luis Rivera wrote:
  AFAIK, LaTeX import occurs in two phases: first reLyX/tex2lyx
  translates LaTeX to some version of LyX, and then lyx2lyx
  converts it to the right version of LyX format you may be using:
  221, for LyX 1.3.5
 
 That's essentially correct. However, reLyX generates a horrible
  mish-mash of different file formats that must somehow be
  deciphered by lyx2lyx.
 
 tex2lyx generates a completely consistent lyx file, version 241,
  which must then be converted back to version 221 so that LyX
  1.3.5 can understand it.
 
  I still use the `old' reLyX script, for tex2lyx, in its current
  incarnation, is too bloated to my taste, and I have to reconvert
  the output to LyX 221 anyway.
 
  tex2lyx is bloated? For what definition of bloated? Two
  things that it does do, which reLyX does not, is understand most
  'reasonable' LaTeX and generate a consistent .lyx file.
 
 If you have any substantive problems with tex2lyx, then PLEASE
  bring them forward. We rely on your feedback to improve it.
  However, please do not suggest to people on this list that they
  use reLyX in preference to tex2lyx. reLyX is a broken hack and
  unsupported nightmare.
 
 --
 Angus


Re: Latex import problem

2005-05-18 Thread TGreiner
a,I converted to ver 1.4. This Lyx file only contains commands for
images but no more the original text of the Latex-file
b,Then by converting to 1.3.5 I get the following error:

python lyx2lyx -to 221 test.lyx  test13.lyx
'import site' failed; use -v for traceback
o: Invalid LyX format

Thomas Greiner

On Wednesday 18 May 2005 09:05, TGreiner wrote:
 Dear Angus,
 thank you for your hints. I could run tex2lyx in a command window.
 The Latex file is imported (I see a lot of messages of the included
 images - no errors), but no output file is created. What do I have
 to do? T. Greiner

You have to redirect the output to STDOUT to a file. Here's how I 
convert UserGuide.lyx to a .tex file, reconvert it to a LyX 1.4.x 
version .lyx file and then convert this .lyx file to something that 
LyX 1.3.5 can read. (qlyx13x is my name for the Qt version of LyX 
1.3.5.)

$  qlyx13x --export latex UserGuide.lyx
$  ~/lyx/devel/build/src/tex2lyx/tex2lyx UserGuide.tex  
UserGuide_14x.lyx
$  python ~/lyx/devel/lib/lyx2lyx/lyx2lyx --to 221 UserGuide_14x.lyx  
UserGuide_13x.lyx

Going on to export this round-tripped version of the User Guide to 
latex and running latex twice over both UserGuide.tex and 
UserGuide_13x.tex
$ qlyx13x --export latex UserGuide_13x.lyx
$ latex UserGuide
$ latex UserGuide
$ latex UserGuide_13x
$ latex UserGuide_13x

produces two .dvi files, UserGuide.dvi, the compiled version of the 
original UserGuide.lyx and UserGuide_13x.dvi, the compiled version of 
the round-tripped file.

$ ls -l UserGuide.dvi UserGuide_13x.dvi
-rw-rw-r--  1 angus angus 497972 May 18 10:22 UserGuide_13x.dvi
-rw-rw-r--  1 angus angus 497800 May 18 10:22 UserGuide.dvi

Note that there is a small difference in size between the two, 
indicating that conversion lyx-tex-lyx was not perfect, but the 
difference is pretty small. So far, I've been unable to see any 
human-visible differences.

Regards,
Angus

ps, please post to the lyx-users list.
A.

 On Tue, 17 May 2005 22:23:53 +0100, Angus Leeming wrote:
 Luis Rivera wrote:
  AFAIK, LaTeX import occurs in two phases: first reLyX/tex2lyx
  translates LaTeX to some version of LyX, and then lyx2lyx
  converts it to the right version of LyX format you may be using:
  221, for LyX 1.3.5
 
 That's essentially correct. However, reLyX generates a horrible
  mish-mash of different file formats that must somehow be
  deciphered by lyx2lyx.
 
 tex2lyx generates a completely consistent lyx file, version 241,
  which must then be converted back to version 221 so that LyX
  1.3.5 can understand it.
 
  I still use the `old' reLyX script, for tex2lyx, in its current
  incarnation, is too bloated to my taste, and I have to reconvert
  the output to LyX 221 anyway.
 
  tex2lyx is bloated? For what definition of bloated? Two
  things that it does do, which reLyX does not, is understand most
  'reasonable' LaTeX and generate a consistent .lyx file.
 
 If you have any substantive problems with tex2lyx, then PLEASE
  bring them forward. We rely on your feedback to improve it.
  However, please do not suggest to people on this list that they
  use reLyX in preference to tex2lyx. reLyX is a broken hack and
  unsupported nightmare.
 
 --
 Angus




Re: Latex import problem

2005-05-18 Thread Angus Leeming
TGreiner wrote:

 a,I converted to ver 1.4. This Lyx file only contains commands for
 images but no more the original text of the Latex-file

Could you post your original .tex file that you cannot convert to LyX 1.4
format using tex2lyx. If you don't want to post it to the list, then post
it to leeming AT lyx DOT org.

-- 
Angus



Re[2]: Movie in beamer

2005-05-18 Thread Andrei Popov
Hello Nicolas,

Monday, May 16, 2005, 5:26:45 PM, you wrote:

 Sorry but I am working with linux/mandrake ... I shall write mandriva.
 There exists no package for xanim, and before to compile it, I'd like to
 know if acrobat hard-coded it as its mpeg viewer or if I can modify it.
 Looking at acrobat preferences does not show any related topic, nor 
 googling acrobat+xanim.

I'm not a Linux expert, but try doing cat /etc/mailcap | grep -i
xanim

Maybe xanim is associated with the video files (by content), and
Acrobat is relying on this info.

You can try modifying your /etc/mailcap and see if it fixes the
problem.

-- 
WBR,
Andrei Popov

Using LyX 1.3.4 on Linux



Re: Latex import problem

2005-05-18 Thread Sven Schreiber
TGreiner wrote:

 a,I converted to ver 1.4. This Lyx file only contains commands for
 images but no more the original text of the Latex-file
 b,Then by converting to 1.3.5 I get the following error:
 
 python lyx2lyx -to 221 test.lyx  test13.lyx
 'import site' failed; use -v for traceback
 o: Invalid LyX format

I think I had the same problem once (on Windows); it seems the bundled
python interpreter that comes with lyx1.3.5 on win is a little too
stripped down (bear in mind windows is not really a target platform of
1.3.5). You could install the full python and/or make sure the right
python variant is in your PATH.
hth, sven


Re: Latex import problem

2005-05-18 Thread Kornel Benko
On Wednesday 18 May 2005 13:26, Sven Schreiber wrote:
 TGreiner wrote:
 
  a,I converted to ver 1.4. This Lyx file only contains commands for
  images but no more the original text of the Latex-file
  b,Then by converting to 1.3.5 I get the following error:
  
  python lyx2lyx -to 221 test.lyx  test13.lyx

this should be either '-t' or '--to'

e.g.
python lyx2lyx -t 221 test.lyx  test13.lyx


Regards
Kornel

-- 
Kornel Benko
[EMAIL PROTECTED]
+49 30 3377 6216


pgpFbEc2aO6Ob.pgp
Description: PGP signature


Re[2]: Movie in beamer

2005-05-18 Thread chr
On Wed, 18 May 2005, Andrei Popov wrote:

 Hello Nicolas,
 
 Monday, May 16, 2005, 5:26:45 PM, you wrote:
 
  Sorry but I am working with linux/mandrake ... I shall write mandriva.
  There exists no package for xanim, and before to compile it, I'd like to
  know if acrobat hard-coded it as its mpeg viewer or if I can modify it.
  Looking at acrobat preferences does not show any related topic, nor 
  googling acrobat+xanim.
 
 I'm not a Linux expert, but try doing
   cat /etc/mailcap | grep -i xanim

or if he has a local .mailcap, try

cat ~/.mailcap | grep -i xanim

/Christian

-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr




Re: Latex import problem

2005-05-18 Thread TGreiner
-t 221 doesn´t work: 241: Format not supported
or single -to doesn´t work. I get the old error.
Thomas

On Wed, 18 May 2005 13:48:52 +0200, Kornel Benko wrote:

On Wednesday 18 May 2005 13:26, Sven Schreiber wrote:
 TGreiner wrote:
 
  a,I converted to ver 1.4. This Lyx file only contains commands for
  images but no more the original text of the Latex-file
  b,Then by converting to 1.3.5 I get the following error:
  
  python lyx2lyx -to 221 test.lyx  test13.lyx

this should be either '-t' or '--to'

e.g.
   python lyx2lyx -t 221 test.lyx  test13.lyx


   Regards
   Kornel

-- 
Kornel Benko
[EMAIL PROTECTED]
+49 30 3377 6216




Re: Latex import problem

2005-05-18 Thread Angus Leeming
TGreiner wrote:
-t 221 doesn´t work: 241: Format not supported
or single -to doesn´t work. I get the old error.
Thomas
... and this error has been explained to you. The python that Ruurd 
packaged with his port of LyX to Windows doesn't contain many of the 
modules of standard python that the LyX 1.4 version of lyx2lyx requires.

Junk (throw away) the python that Ruurd packaged with LyX 1.3.5 and go 
get a real python package from www.python.org.

Angus


Re: Movie in beamer

2005-05-18 Thread Nicolas Ferré
[EMAIL PROTECTED] a écrit :
On Wed, 18 May 2005, Andrei Popov wrote:

Hello Nicolas,
Monday, May 16, 2005, 5:26:45 PM, you wrote:

Sorry but I am working with linux/mandrake ... I shall write mandriva.
There exists no package for xanim, and before to compile it, I'd like to
know if acrobat hard-coded it as its mpeg viewer or if I can modify it.
Looking at acrobat preferences does not show any related topic, nor 
googling acrobat+xanim.
I'm not a Linux expert, but try doing
cat /etc/mailcap | grep -i xanim

or if he has a local .mailcap, try
cat ~/.mailcap | grep -i xanim
/Christian
Many thanks to Jean-Pierre, Andrei and Christian. They point me to look 
at the mailcap file (actually I didn't know acrobat was using it). I 
have just modified my .mailcap. Also I use the alternative solution 
given by Jean-pierre, actually using \href:run instead of \movie.

--
 ***   Dr. Nicolas Ferre'   ***
 Laboratoire de Chimie Theorique et de Modelisation Moleculaire
 UMR 6517 - CNRS Universites Aix-Marseille Case 521
 Centre de Saint-Jerome  13397 - Marseille Cedex 20, France
 Tel : (+33)4.91.28.27.33  Fax : (+33)4.91.28.87.58
   http://www.up.univ-mrs.fr/wsrep/ctheo/lctmm.html
***


Path problem pdf output in Lyx for Win32

2005-05-18 Thread Paul Johnson
I'm a Unix user, but have to set up 2 windows computers for LyX.  The 
1.3.5 edition of Lyx for Win32 works very well as far as I can tell. I 
can enter equations and view them in dvi.  For some reason, yap always 
opens minimized, but that's OK by me.

I think the troubles I find are caused by the fact that the user home 
dir has spaces in it. User home directories are in C:\Documents And 
Settings\username.  Users want to put lyx files under My Documents in 
there and then lyx does not work there. So, what to do?

Has anybody found a way to reconfigure windows and rename the home dir 
to C:\DocumentsAndSettings for all users?

In Edit/Preferences/Path, I changed the working directory to 
C:\Windows\Temp. But it will not do to have all users writing in there.

Pdf output fails, no matter what i do. It fails either if I want to view 
in acrord32 or save to disk.  I believe it is due to path problems, 
because lyx keeps creating a directory C:\Documents but that is empty.

--
Paul E. Johnson   email: [EMAIL PROTECTED]
Dept. of Political Sciencehttp://lark.cc.ku.edu/~pauljohn
1541 Lilac Lane, Rm 504
University of Kansas  Office: (785) 864-9086
Lawrence, Kansas 66044-3177   FAX: (785) 864-5700


Re: Latex import problem

2005-05-18 Thread Jean-Pierre Chretien

From: Angus Leeming [EMAIL PROTECTED]
To: TGreiner [EMAIL PROTECTED]
Subject: Re: Latex import problem
Date: Wed, 18 May 2005 10:31:12 +0100
Cc: lyx-users@lists.lyx.org

On Wednesday 18 May 2005 09:05, TGreiner wrote:
 Dear Angus,
 thank you for your hints. I could run tex2lyx in a command window.
 The Latex file is imported (I see a lot of messages of the included
 images - no errors), but no output file is created. What do I have
 to do? T. Greiner

You have to redirect the output to STDOUT to a file. Here's how I 
convert UserGuide.lyx to a .tex file, reconvert it to a LyX 1.4.x 
version .lyx file and then convert this .lyx file to something that 
LyX 1.3.5 can read. (qlyx13x is my name for the Qt version of LyX 
1.3.5.)

I take the opportunity of this thread about tex2lyx to complete what Angus said.
The current version of tex2lyx deals correctly with multipart documents
However, lyx2lyx does not know about dependencies, so that retroconversion to 
221
must be made on each \input'ted, \include'd or \verbatiminput'ted file.

The workaround I proposed in the wiki (script tex2lyx.sh, which converts all 
lyx files in the current dir
to 221) is a poor one, but I can't imagine better unless lyx2lyx knows about 
dependencies.

An external script retrieving file dependencies would be welcome, 
unless it already exists, either in latex or in lyx. In fact, \listfiles does 
it,
but it mixes things w.r.t what tex2lyx does.

A good idea would be perhaps to add an output to tex2lyx enumerating the full 
or relative path
of the converted files, but IMHO an external script would be more useful in the 
future 
(the current retroconversion will not be necessary when 1.4 is released).

-- 
Jean-Pierre




Re: Path problem pdf output in Lyx for Win32

2005-05-18 Thread Angus Leeming
Paul Johnson wrote:
I'm a Unix user, but have to set up 2 windows computers for LyX.  The 
1.3.5 edition of Lyx for Win32 works very well as far as I can tell. I 
can enter equations and view them in dvi.  For some reason, yap always 
opens minimized, but that's OK by me.

I think the troubles I find are caused by the fact that the user home 
dir has spaces in it. User home directories are in C:\Documents And 
Settings\username.  Users want to put lyx files under My Documents in 
there and then lyx does not work there. So, what to do?
For the time being, I think that the only solution is to put your lyx 
files elsewhere.

We've fixed LyX 1.3.6 all over the place in our attempts to get it to 
run 'as expected' on Windows. Two problems are still to be addressed:
* lyx2lyx doesn't like file names with spaces
* you can't input such a file in the graphics etc dialogs using the 
browser.

Note, however, that .dvi files will need to be post-processed if they 
refer to graphics files containing spaces. See 
http://wiki.lyx.org/LaTeX/FilesWithSpecialChars and the clean_dvi.py 
script.

Basically, spaces in file names lead to all sorts of problems that 
we've tried hard to resolve. Only real-world usage will show whether 
we've been successful or not.

Other than the remaining issues described above, it looks like the 
merger of Ruurd's LyX/Win port into the official LyX sources is just 
about complete.

In Edit/Preferences/Path, I changed the working directory to
C:\Windows\Temp. But it will not do to have all users writing in there.
I'm currently playing with LyX 1.3.6 which I have installed in 
C:\Program Files\LyX. It tries to use the proper Windows locations for 
its various paths, although you can reset the document and temp 
directories in your preferences file. The default settings (as output 
by lyx -dbg init running from a MinGW console) are:

package
binary_dir c:/Program Files/LyX/bin/
system_support c:/Program Files/LyX/Resources/lyx/
user_support C:/Documents and Settings/Angus/Application Data/lyx/
locale_dir c:/Program Files/LyX/Resources/locale/
document_dir C:/Documents and Settings/Angus/My Documents
temp_dir C:/Documents and Settings/Angus/Local Settings/Temp/
home_dir C:/Documents and Settings/Angus
/package
I have no difficulty viewing a pdf of the UserGuide (generated by 
pdflatex (MikTeX 2.4) from
C:\Documents and Settings\Angus\Desktop\UserGuide.lyx) using gsview32 
(version 4.6) or AcroRd32 (version 7.0), so it looks like we're making 
progress.

Pdf output fails, no matter what i do. It fails either if I want to view 
in acrord32 or save to disk.  I believe it is due to path problems, 
because lyx keeps creating a directory C:\Documents but that is empty.
Yes, LyX 1.3.5 really isn't set up to handle spaces in paths.
Kind regards,
Angus




Re: Latex import problem

2005-05-18 Thread TGreiner
Now I could convert:
Newest Python
Newest lyx2lyx (not from Lyx1.3.5 package)
Thanks
Thomas

On Wed, 18 May 2005 12:50:39 +, Angus Leeming wrote:

TGreiner wrote:
 -t 221 doesn´t work: 241: Format not supported
 or single -to doesn´t work. I get the old error.
 Thomas

... and this error has been explained to you. The python that Ruurd 
packaged with his port of LyX to Windows doesn't contain many of the 
modules of standard python that the LyX 1.4 version of lyx2lyx requires.

Junk (throw away) the python that Ruurd packaged with LyX 1.3.5 and go 
get a real python package from www.python.org.

Angus




Re: Latex import problem

2005-05-18 Thread Georg Baum
Jean-Pierre Chretien wrote:

 I take the opportunity of this thread about tex2lyx to complete what Angus
 said. The current version of tex2lyx deals correctly with multipart
 documents However, lyx2lyx does not know about dependencies, so that
 retroconversion to 221 must be made on each \input'ted, \include'd or
 \verbatiminput'ted file.
 
 The workaround I proposed in the wiki (script tex2lyx.sh, which converts
 all lyx files in the current dir to 221) is a poor one, but I can't
 imagine better unless lyx2lyx knows about dependencies.

Another workaround is to replace the 1.3 version of lyx2lyx with a slightly
hacked 1.4 version (including the various .py files). You need to set

end_format = '221'

in parse_options() in lyx2lyx to change the default output format. LyX 1.3
should be able to read 1.4 files after that, so you don't need to convert
included files explicitly. Feel free to add this to the wiki (with a bit
more explanation) if it works for you, I don't have the time at the moment.


Georg




Re: Path problem pdf output in Lyx for Win32

2005-05-18 Thread Paul A. Rubin
Paul Johnson wrote:
I'm a Unix user, but have to set up 2 windows computers for LyX.  The 
1.3.5 edition of Lyx for Win32 works very well as far as I can tell. I 
can enter equations and view them in dvi.  For some reason, yap always 
opens minimized, but that's OK by me.

I think the troubles I find are caused by the fact that the user home 
dir has spaces in it. User home directories are in C:\Documents And 
Settings\username.  Users want to put lyx files under My Documents in 
there and then lyx does not work there. So, what to do?

Has anybody found a way to reconfigure windows and rename the home dir 
to C:\DocumentsAndSettings for all users?

In Edit/Preferences/Path, I changed the working directory to 
C:\Windows\Temp. But it will not do to have all users writing in there.
I've tried using '\ ' and '%20' in lieu of spaces, but neither worked 
consistently.  I've also tried the 8.3 version of the path name, but 
it contains a tilde that throws off some Unix tools.  Finally gave up 
and created a separate, space-free path for LyX docs.

As a workaround until the much-anticipated 1.3.6 arrives, you might set 
up separate LyX doc directories for each user (with user-specific 
permissions, if desired) and then use a file synchronization utility to 
synch a user's LyX directory with an appropriate subdirectory under My 
Docs.  I use SynchronX, but there's a few of them out there.
Pdf output fails, no matter what i do. It fails either if I want to view 
in acrord32 or save to disk.  I believe it is due to path problems, 
because lyx keeps creating a directory C:\Documents but that is empty.

Sounds likely.  One other thing to keep in mind about PDFs on Windows v. 
Unix (using Acrobat Reader): if you try to View-PDF (regular, dvipdfm 
or pdflatex) while Reader is open, the operation will fail with an error 
message saying that Reader can't find the file.  There are two 
workarounds: either close Reader before issuing View-PDF, or set up a 
custom export command 'acrord32 %%FName' and then use 
File-Export-Custom to export the PDF to Reader (which will display 
it even if Reader is already open).  And speaking of Windows quirks, you 
can't type 'acrord32 %%FName' into the File-Export-Custom dialog for 
some reason; you have to manually hack your preferences file and insert 
the line

custom_export_command acrord32 %%FName
(one more reason 1.3.6 is *eagerly* anticipated).
-- Paul


Re: Latex import problem

2005-05-18 Thread Luis Rivera
Angus Leeming
Tue, 17 May 2005 14:25:33 -0700

Luis Rivera wrote:

Angus,

I'm sorry I might have stepped on your toe. I apologize. Let me
explain:

... reLyX generates a horrible mish-mash
of different file formats that must somehow be deciphered by
lyx2lyx. 

tex2lyx generates a completely consistent lyx file, version 241, which
must
then be converted back to version 221 so that LyX 1.3.5 can understand
it.


I shall concede that.  I have little knowledge of the arcana of the LyX
format, so I am in no position do decide whether the output of tex2lyx
is equal, better, or worse, than that of reLyX (which, I also concede,
might be a relic ;)  My only point is that reLyX makes some `mish-mash'
intelligible to lyx2lyx, and then you still have to upgrade this
mish-mash into LyX 221.  In other words, a two step process is
necessary anyway.

 I still use the `old' reLyX script, for tex2lyx, in its current
 incarnation, is too bloated to my taste, and I have to reconvert the
 output to LyX 221 anyway.

 tex2lyx is bloated? For what definition of bloated? 

Well: I downloaded the binary from the Wiki page, and it expands to up
to 2.5 Mb, while the existing combo reLyX/lyx2lyx takes about 2Mb
(including the required python/perl libraries and executables).

Two things that it
does do, which reLyX does not, is understand most 'reasonable' LaTeX
and
generate a consistent .lyx file.


Having no clue about the consistency of LyX, I must concede the second
point; as for the first, reLyX has had no trouble so far with my rather
idiosyncratic LaTeX files...

To convert my LaTeX files into LyX I made the following batch file
(tex2lyx.bat): 


@echo off
rem Wrapper script for Win32
rem written by Ruurd Reitsma
rem shamelessly hacked by Jose-Luis Rivera
set PERLLIB=%~p0\..\lib
set PYTHONPATH=%~p0\lib;%~p0\dlls
%~p0\perl.exe -S %~p0\reLyX -f %1 %2 %3
ren %~n1.lyx rlx
%~p0\python.exe -S %~p0\..\share\lyx\lyx2lyx\lyx2lyx -t 221 -o %~n1.lyx
rlx
del rlx
set PERLLIB=
set PYTHONPATH=
-

then I changed the call in Edit/Preferences/Converters/tex - LyX, to
`tex2lyx $$i', and voilà!  

I named the batch file `tex2lyx' in the assumption that, someday, this
shall be the name of the right utility to call.

If you have any substantive problems with tex2lyx, then PLEASE bring
them
forward. 

I have no substantive problems with tex2lyx, save that it seems to me a
little redundant for Ruurd's distribution.  As I said, all I did was a
little hacking of Ruurd's reLyX.bat file and I got my stuff.  Before
that, I downloaded and tested (succesfully) the experimental tex2lyx
available at the wiki page, then realizing that I had to reformat the
output with lyx2lyx anyway. So I patched a little batch to run lyx2lyx
from console, and then it strucked me that with a little hacking to
Ruurd's original kludge, I could get the two phases
(reLyX/tex2lyx-lyx2lyx) done in one single shot. That's what I did.

 We rely on your feedback to improve it. 

Now I take your suggestion: do you think it viable to have tex2lyx
built into LyX itself, like the converter going the other way
around?This way we could use `lyx --import latex filename.tex', the way
we use `lyx --export latex filename.lyx'). Should I write the
developers suggesting this integration?

However, please do not
suggest to people on this list that they use reLyX in preference to
tex2lyx. reLyX is a broken hack and unsupported nightmare.

I won't do it anymore.  Promise.

Luis.



Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html



Re: More Greek tribulations--help with font installation

2005-05-18 Thread Luis Rivera
Stefano Franchi [EMAIL PROTECTED] writes:
 
 thanks for the help and the suggestions. Unfortunately the problem is 
 not with \emph. I tried using the new \emph{}, but I still get the same 
 problem. LaTeX cannot find the proper font for rendering italicized 
 Greek. In fact, in the log file I get:
 
 LaTeX Font Info:Try loading font information for LGR+ptm on input 
 line 96.
 LaTeX Font Info:No file LGRptm.fd. on input line 96.
 
 LaTeX Font Warning: Font shape `LGR/ptm/m/it' undefined
 (Font)  using `LGR/cmr/m/n' instead on input line 96.
 
 LaTeX Font Warning: Font shape `LGR/ptm/m/n' undefined
 (Font)  using `LGR/cmr/m/n' instead on input line 96.
 
 
  From what I've (recently) read that means that LaTex is looking for the 
 font Adobe Times (ptm) in the LGR encoding, in italic shape (i), cannot 
 find it, and substitutes cmr (computer modern?) normal shape in LGR 
 encoding. So the problems has to do with font installation and/or 
 mappings, because the typesetting of Greek should use the cbgreek 
 fonts. Which, I believe, all star with a g in their 
 filename/description. So there is something wrong in how LaTeX selects 
 the fonts, but I know too little about LaTeX/TeX to fix the problem...
 

You're right: seems that you're trying to use Times.  You might have chosen 
this font for your document in LyX Layout menu to have outlined fonts instead 
of raster fonts in the output (your original problem, as far as I can recall).  
Since there is no such a thing as LGR encoded fonts for Postscript Times, you 
get font substitution, or no output...

Again, I suggest you to use the cm-lgc package.  Alexej just uploaded a newer 
version to CTAN a couple of days ago, now including OT1 and OT2 for Latin and 
Cyrillic.  Greek is fully LGC compliant.

Good luck,

Luis.



Re: Latex import problem

2005-05-18 Thread Luis Rivera
Angus Leeming [EMAIL PROTECTED] writes:

 
 TGreiner wrote:
  -t 221 doesnt work: 241: Format not supported
  or single -to doesnt work. I get the old error.
  Thomas
 
 ... and this error has been explained to you. The python that Ruurd 
 packaged with his port of LyX to Windows doesn't contain many of the 
 modules of standard python that the LyX 1.4 version of lyx2lyx requires.
 
 Junk (throw away) the python that Ruurd packaged with LyX 1.3.5 and go 
 get a real python package from www.python.org.
 
 Angus
 
 

You ain't to throw away nothing.  Just add the right paths to libperl and 
libpython environment variables, and everything runs fine.  See Ruurd's 
original reLyX.bat file and my home-brewed patch somewhere in this thread.

BTW, you shouldn't be using reLyX: tex2lyx makes a more consistent LyX output, 
and has a better lyx2lyx program.

Cheers,

Luis.




Please help me update my address book on Ringo

2005-05-18 Thread Carlos Fernando Knauer
undefined


Re: clearing bookmarks?

2005-05-18 Thread Kevin Pfeiffer
Johan Ingvast writes:
 However, I agree that some functionality for saving bookmarks should be
 implemented.

Even better (for me) and simpler (maybe?) would be if LyX preserved the 
session status information for cursor location in the document when last 
edited. 

-Kevin  (I know, add it to the bugzilla) :-)

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: focus-stealing prevention in KDE desktop?

2005-05-18 Thread Kevin Pfeiffer
Charles de Miramon writes:
 Georg Baum wrote:
  Kevin Pfeiffer wrote:
  I've noticed that if I set the focus-stealing prevention level for
  windows in the KDE environment to anything higher than 'none', that
  notification messages such as Do you want to save your document
  before closing? open _behind_ the main application window in Lyx.
  I've also noticed this using a Perl/GTK application, but with no
  other applications so far.

 There is a kcm module in KControl to create special rules for
 particular applications windows. You should play with it to solve your
 problem.

Thanks for the tip! Even easier, right-mouse-clicking a KDE titlebar gives 
one the option Configure window behaviour. This leads to 
Window-specific settings which is easily configured using Detect 
Window Properties (click on the main LyX window) and Work-arounds. 
This also solved my I want LyX to open maximized-problem.

-Kevin

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: clearing bookmarks?

2005-05-18 Thread Johan Ingvast
On Tue, 17 May 2005, Kevin Pfeiffer wrote:

 Uwe Stöhr writes:
 
 You're right! So much for my thorough testing. I only placed the bookmark, 
 scrolled to the top of the document and then tried navigating back via 
 bookmark to where I was. I never dreamed that the bookmark is not saved 
 with the document (must be a bug, isn't it?). 
I don't think it is. Because having them in the session makes it
possible to move between different documents within the same lyxsession.
So if I have a number of documents open, going to a bookmark can, besides
moving in the active document, also swith document.

However, I agree that some functionality for saving bookmarks should be
implemented.

/johan

-- 
Johan Ingvast, PhD student http://www.md.kth.se/~ingvast
Department of Machine Design, Royal Institute of Technology, Sweden
http://www.md.kth.se, http://www.md.kth.se/~cas --- Walking robot proj
tel +46 (0)8 790 95 36  mob. +46 (0)70 34 34 498



Re: Latex import problem

2005-05-18 Thread Angus Leeming
On Wednesday 18 May 2005 09:05, TGreiner wrote:
 Dear Angus,
 thank you for your hints. I could run tex2lyx in a command window.
 The Latex file is imported (I see a lot of messages of the included
 images - no errors), but no output file is created. What do I have
 to do? T. Greiner

You have to redirect the output to STDOUT to a file. Here's how I 
convert UserGuide.lyx to a .tex file, reconvert it to a LyX 1.4.x 
version .lyx file and then convert this .lyx file to something that 
LyX 1.3.5 can read. (qlyx13x is my name for the Qt version of LyX 
1.3.5.)

$  qlyx13x --export latex UserGuide.lyx
$  ~/lyx/devel/build/src/tex2lyx/tex2lyx UserGuide.tex  
UserGuide_14x.lyx
$  python ~/lyx/devel/lib/lyx2lyx/lyx2lyx --to 221 UserGuide_14x.lyx  
UserGuide_13x.lyx

Going on to export this round-tripped version of the User Guide to 
latex and running latex twice over both UserGuide.tex and 
UserGuide_13x.tex
$ qlyx13x --export latex UserGuide_13x.lyx
$ latex UserGuide
$ latex UserGuide
$ latex UserGuide_13x
$ latex UserGuide_13x

produces two .dvi files, UserGuide.dvi, the compiled version of the 
original UserGuide.lyx and UserGuide_13x.dvi, the compiled version of 
the round-tripped file.

$ ls -l UserGuide.dvi UserGuide_13x.dvi
-rw-rw-r--  1 angus angus 497972 May 18 10:22 UserGuide_13x.dvi
-rw-rw-r--  1 angus angus 497800 May 18 10:22 UserGuide.dvi

Note that there is a small difference in size between the two, 
indicating that conversion lyx-tex-lyx was not perfect, but the 
difference is pretty small. So far, I've been unable to see any 
human-visible differences.

Regards,
Angus

ps, please post to the lyx-users list.
A.

 On Tue, 17 May 2005 22:23:53 +0100, Angus Leeming wrote:
 Luis Rivera wrote:
  AFAIK, LaTeX import occurs in two phases: first reLyX/tex2lyx
  translates LaTeX to some version of LyX, and then lyx2lyx
  converts it to the right version of LyX format you may be using:
  221, for LyX 1.3.5
 
 That's essentially correct. However, reLyX generates a horrible
  mish-mash of different file formats that must somehow be
  deciphered by lyx2lyx.
 
 tex2lyx generates a completely consistent lyx file, version 241,
  which must then be converted back to version 221 so that LyX
  1.3.5 can understand it.
 
  I still use the `old' reLyX script, for tex2lyx, in its current
  incarnation, is too bloated to my taste, and I have to reconvert
  the output to LyX 221 anyway.
 
  tex2lyx is bloated? For what definition of bloated? Two
  things that it does do, which reLyX does not, is understand most
  'reasonable' LaTeX and generate a consistent .lyx file.
 
 If you have any substantive problems with tex2lyx, then PLEASE
  bring them forward. We rely on your feedback to improve it.
  However, please do not suggest to people on this list that they
  use reLyX in preference to tex2lyx. reLyX is a broken hack and
  unsupported nightmare.
 
 --
 Angus


Re: Latex import problem

2005-05-18 Thread TGreiner
a,I converted to ver 1.4. This Lyx file only contains commands for
images but no more the original text of the Latex-file
b,Then by converting to 1.3.5 I get the following error:

python lyx2lyx -to 221 test.lyx  test13.lyx
'import site' failed; use -v for traceback
o: Invalid LyX format

Thomas Greiner

On Wednesday 18 May 2005 09:05, TGreiner wrote:
 Dear Angus,
 thank you for your hints. I could run tex2lyx in a command window.
 The Latex file is imported (I see a lot of messages of the included
 images - no errors), but no output file is created. What do I have
 to do? T. Greiner

You have to redirect the output to STDOUT to a file. Here's how I 
convert UserGuide.lyx to a .tex file, reconvert it to a LyX 1.4.x 
version .lyx file and then convert this .lyx file to something that 
LyX 1.3.5 can read. (qlyx13x is my name for the Qt version of LyX 
1.3.5.)

$  qlyx13x --export latex UserGuide.lyx
$  ~/lyx/devel/build/src/tex2lyx/tex2lyx UserGuide.tex  
UserGuide_14x.lyx
$  python ~/lyx/devel/lib/lyx2lyx/lyx2lyx --to 221 UserGuide_14x.lyx  
UserGuide_13x.lyx

Going on to export this round-tripped version of the User Guide to 
latex and running latex twice over both UserGuide.tex and 
UserGuide_13x.tex
$ qlyx13x --export latex UserGuide_13x.lyx
$ latex UserGuide
$ latex UserGuide
$ latex UserGuide_13x
$ latex UserGuide_13x

produces two .dvi files, UserGuide.dvi, the compiled version of the 
original UserGuide.lyx and UserGuide_13x.dvi, the compiled version of 
the round-tripped file.

$ ls -l UserGuide.dvi UserGuide_13x.dvi
-rw-rw-r--  1 angus angus 497972 May 18 10:22 UserGuide_13x.dvi
-rw-rw-r--  1 angus angus 497800 May 18 10:22 UserGuide.dvi

Note that there is a small difference in size between the two, 
indicating that conversion lyx-tex-lyx was not perfect, but the 
difference is pretty small. So far, I've been unable to see any 
human-visible differences.

Regards,
Angus

ps, please post to the lyx-users list.
A.

 On Tue, 17 May 2005 22:23:53 +0100, Angus Leeming wrote:
 Luis Rivera wrote:
  AFAIK, LaTeX import occurs in two phases: first reLyX/tex2lyx
  translates LaTeX to some version of LyX, and then lyx2lyx
  converts it to the right version of LyX format you may be using:
  221, for LyX 1.3.5
 
 That's essentially correct. However, reLyX generates a horrible
  mish-mash of different file formats that must somehow be
  deciphered by lyx2lyx.
 
 tex2lyx generates a completely consistent lyx file, version 241,
  which must then be converted back to version 221 so that LyX
  1.3.5 can understand it.
 
  I still use the `old' reLyX script, for tex2lyx, in its current
  incarnation, is too bloated to my taste, and I have to reconvert
  the output to LyX 221 anyway.
 
  tex2lyx is bloated? For what definition of bloated? Two
  things that it does do, which reLyX does not, is understand most
  'reasonable' LaTeX and generate a consistent .lyx file.
 
 If you have any substantive problems with tex2lyx, then PLEASE
  bring them forward. We rely on your feedback to improve it.
  However, please do not suggest to people on this list that they
  use reLyX in preference to tex2lyx. reLyX is a broken hack and
  unsupported nightmare.
 
 --
 Angus




Re: Latex import problem

2005-05-18 Thread Angus Leeming
TGreiner wrote:

 a,I converted to ver 1.4. This Lyx file only contains commands for
 images but no more the original text of the Latex-file

Could you post your original .tex file that you cannot convert to LyX 1.4
format using tex2lyx. If you don't want to post it to the list, then post
it to leeming AT lyx DOT org.

-- 
Angus



Re[2]: Movie in beamer

2005-05-18 Thread Andrei Popov
Hello Nicolas,

Monday, May 16, 2005, 5:26:45 PM, you wrote:

 Sorry but I am working with linux/mandrake ... I shall write mandriva.
 There exists no package for xanim, and before to compile it, I'd like to
 know if acrobat hard-coded it as its mpeg viewer or if I can modify it.
 Looking at acrobat preferences does not show any related topic, nor 
 googling acrobat+xanim.

I'm not a Linux expert, but try doing cat /etc/mailcap | grep -i
xanim

Maybe xanim is associated with the video files (by content), and
Acrobat is relying on this info.

You can try modifying your /etc/mailcap and see if it fixes the
problem.

-- 
WBR,
Andrei Popov

Using LyX 1.3.4 on Linux



Re: Latex import problem

2005-05-18 Thread Sven Schreiber
TGreiner wrote:

 a,I converted to ver 1.4. This Lyx file only contains commands for
 images but no more the original text of the Latex-file
 b,Then by converting to 1.3.5 I get the following error:
 
 python lyx2lyx -to 221 test.lyx  test13.lyx
 'import site' failed; use -v for traceback
 o: Invalid LyX format

I think I had the same problem once (on Windows); it seems the bundled
python interpreter that comes with lyx1.3.5 on win is a little too
stripped down (bear in mind windows is not really a target platform of
1.3.5). You could install the full python and/or make sure the right
python variant is in your PATH.
hth, sven


Re: Latex import problem

2005-05-18 Thread Kornel Benko
On Wednesday 18 May 2005 13:26, Sven Schreiber wrote:
 TGreiner wrote:
 
  a,I converted to ver 1.4. This Lyx file only contains commands for
  images but no more the original text of the Latex-file
  b,Then by converting to 1.3.5 I get the following error:
  
  python lyx2lyx -to 221 test.lyx  test13.lyx

this should be either '-t' or '--to'

e.g.
python lyx2lyx -t 221 test.lyx  test13.lyx


Regards
Kornel

-- 
Kornel Benko
[EMAIL PROTECTED]
+49 30 3377 6216


pgpFbEc2aO6Ob.pgp
Description: PGP signature


Re[2]: Movie in beamer

2005-05-18 Thread chr
On Wed, 18 May 2005, Andrei Popov wrote:

 Hello Nicolas,
 
 Monday, May 16, 2005, 5:26:45 PM, you wrote:
 
  Sorry but I am working with linux/mandrake ... I shall write mandriva.
  There exists no package for xanim, and before to compile it, I'd like to
  know if acrobat hard-coded it as its mpeg viewer or if I can modify it.
  Looking at acrobat preferences does not show any related topic, nor 
  googling acrobat+xanim.
 
 I'm not a Linux expert, but try doing
   cat /etc/mailcap | grep -i xanim

or if he has a local .mailcap, try

cat ~/.mailcap | grep -i xanim

/Christian

-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr




Re: Latex import problem

2005-05-18 Thread TGreiner
-t 221 doesn´t work: 241: Format not supported
or single -to doesn´t work. I get the old error.
Thomas

On Wed, 18 May 2005 13:48:52 +0200, Kornel Benko wrote:

On Wednesday 18 May 2005 13:26, Sven Schreiber wrote:
 TGreiner wrote:
 
  a,I converted to ver 1.4. This Lyx file only contains commands for
  images but no more the original text of the Latex-file
  b,Then by converting to 1.3.5 I get the following error:
  
  python lyx2lyx -to 221 test.lyx  test13.lyx

this should be either '-t' or '--to'

e.g.
   python lyx2lyx -t 221 test.lyx  test13.lyx


   Regards
   Kornel

-- 
Kornel Benko
[EMAIL PROTECTED]
+49 30 3377 6216




Re: Latex import problem

2005-05-18 Thread Angus Leeming
TGreiner wrote:
-t 221 doesn´t work: 241: Format not supported
or single -to doesn´t work. I get the old error.
Thomas
... and this error has been explained to you. The python that Ruurd 
packaged with his port of LyX to Windows doesn't contain many of the 
modules of standard python that the LyX 1.4 version of lyx2lyx requires.

Junk (throw away) the python that Ruurd packaged with LyX 1.3.5 and go 
get a real python package from www.python.org.

Angus


Re: Movie in beamer

2005-05-18 Thread Nicolas Ferré
[EMAIL PROTECTED] a écrit :
On Wed, 18 May 2005, Andrei Popov wrote:

Hello Nicolas,
Monday, May 16, 2005, 5:26:45 PM, you wrote:

Sorry but I am working with linux/mandrake ... I shall write mandriva.
There exists no package for xanim, and before to compile it, I'd like to
know if acrobat hard-coded it as its mpeg viewer or if I can modify it.
Looking at acrobat preferences does not show any related topic, nor 
googling acrobat+xanim.
I'm not a Linux expert, but try doing
cat /etc/mailcap | grep -i xanim

or if he has a local .mailcap, try
cat ~/.mailcap | grep -i xanim
/Christian
Many thanks to Jean-Pierre, Andrei and Christian. They point me to look 
at the mailcap file (actually I didn't know acrobat was using it). I 
have just modified my .mailcap. Also I use the alternative solution 
given by Jean-pierre, actually using \href:run instead of \movie.

--
 ***   Dr. Nicolas Ferre'   ***
 Laboratoire de Chimie Theorique et de Modelisation Moleculaire
 UMR 6517 - CNRS Universites Aix-Marseille Case 521
 Centre de Saint-Jerome  13397 - Marseille Cedex 20, France
 Tel : (+33)4.91.28.27.33  Fax : (+33)4.91.28.87.58
   http://www.up.univ-mrs.fr/wsrep/ctheo/lctmm.html
***


Path problem pdf output in Lyx for Win32

2005-05-18 Thread Paul Johnson
I'm a Unix user, but have to set up 2 windows computers for LyX.  The 
1.3.5 edition of Lyx for Win32 works very well as far as I can tell. I 
can enter equations and view them in dvi.  For some reason, yap always 
opens minimized, but that's OK by me.

I think the troubles I find are caused by the fact that the user home 
dir has spaces in it. User home directories are in C:\Documents And 
Settings\username.  Users want to put lyx files under My Documents in 
there and then lyx does not work there. So, what to do?

Has anybody found a way to reconfigure windows and rename the home dir 
to C:\DocumentsAndSettings for all users?

In Edit/Preferences/Path, I changed the working directory to 
C:\Windows\Temp. But it will not do to have all users writing in there.

Pdf output fails, no matter what i do. It fails either if I want to view 
in acrord32 or save to disk.  I believe it is due to path problems, 
because lyx keeps creating a directory C:\Documents but that is empty.

--
Paul E. Johnson   email: [EMAIL PROTECTED]
Dept. of Political Sciencehttp://lark.cc.ku.edu/~pauljohn
1541 Lilac Lane, Rm 504
University of Kansas  Office: (785) 864-9086
Lawrence, Kansas 66044-3177   FAX: (785) 864-5700


Re: Latex import problem

2005-05-18 Thread Jean-Pierre Chretien

From: Angus Leeming [EMAIL PROTECTED]
To: TGreiner [EMAIL PROTECTED]
Subject: Re: Latex import problem
Date: Wed, 18 May 2005 10:31:12 +0100
Cc: lyx-users@lists.lyx.org

On Wednesday 18 May 2005 09:05, TGreiner wrote:
 Dear Angus,
 thank you for your hints. I could run tex2lyx in a command window.
 The Latex file is imported (I see a lot of messages of the included
 images - no errors), but no output file is created. What do I have
 to do? T. Greiner

You have to redirect the output to STDOUT to a file. Here's how I 
convert UserGuide.lyx to a .tex file, reconvert it to a LyX 1.4.x 
version .lyx file and then convert this .lyx file to something that 
LyX 1.3.5 can read. (qlyx13x is my name for the Qt version of LyX 
1.3.5.)

I take the opportunity of this thread about tex2lyx to complete what Angus said.
The current version of tex2lyx deals correctly with multipart documents
However, lyx2lyx does not know about dependencies, so that retroconversion to 
221
must be made on each \input'ted, \include'd or \verbatiminput'ted file.

The workaround I proposed in the wiki (script tex2lyx.sh, which converts all 
lyx files in the current dir
to 221) is a poor one, but I can't imagine better unless lyx2lyx knows about 
dependencies.

An external script retrieving file dependencies would be welcome, 
unless it already exists, either in latex or in lyx. In fact, \listfiles does 
it,
but it mixes things w.r.t what tex2lyx does.

A good idea would be perhaps to add an output to tex2lyx enumerating the full 
or relative path
of the converted files, but IMHO an external script would be more useful in the 
future 
(the current retroconversion will not be necessary when 1.4 is released).

-- 
Jean-Pierre




Re: Path problem pdf output in Lyx for Win32

2005-05-18 Thread Angus Leeming
Paul Johnson wrote:
I'm a Unix user, but have to set up 2 windows computers for LyX.  The 
1.3.5 edition of Lyx for Win32 works very well as far as I can tell. I 
can enter equations and view them in dvi.  For some reason, yap always 
opens minimized, but that's OK by me.

I think the troubles I find are caused by the fact that the user home 
dir has spaces in it. User home directories are in C:\Documents And 
Settings\username.  Users want to put lyx files under My Documents in 
there and then lyx does not work there. So, what to do?
For the time being, I think that the only solution is to put your lyx 
files elsewhere.

We've fixed LyX 1.3.6 all over the place in our attempts to get it to 
run 'as expected' on Windows. Two problems are still to be addressed:
* lyx2lyx doesn't like file names with spaces
* you can't input such a file in the graphics etc dialogs using the 
browser.

Note, however, that .dvi files will need to be post-processed if they 
refer to graphics files containing spaces. See 
http://wiki.lyx.org/LaTeX/FilesWithSpecialChars and the clean_dvi.py 
script.

Basically, spaces in file names lead to all sorts of problems that 
we've tried hard to resolve. Only real-world usage will show whether 
we've been successful or not.

Other than the remaining issues described above, it looks like the 
merger of Ruurd's LyX/Win port into the official LyX sources is just 
about complete.

In Edit/Preferences/Path, I changed the working directory to
C:\Windows\Temp. But it will not do to have all users writing in there.
I'm currently playing with LyX 1.3.6 which I have installed in 
C:\Program Files\LyX. It tries to use the proper Windows locations for 
its various paths, although you can reset the document and temp 
directories in your preferences file. The default settings (as output 
by lyx -dbg init running from a MinGW console) are:

package
binary_dir c:/Program Files/LyX/bin/
system_support c:/Program Files/LyX/Resources/lyx/
user_support C:/Documents and Settings/Angus/Application Data/lyx/
locale_dir c:/Program Files/LyX/Resources/locale/
document_dir C:/Documents and Settings/Angus/My Documents
temp_dir C:/Documents and Settings/Angus/Local Settings/Temp/
home_dir C:/Documents and Settings/Angus
/package
I have no difficulty viewing a pdf of the UserGuide (generated by 
pdflatex (MikTeX 2.4) from
C:\Documents and Settings\Angus\Desktop\UserGuide.lyx) using gsview32 
(version 4.6) or AcroRd32 (version 7.0), so it looks like we're making 
progress.

Pdf output fails, no matter what i do. It fails either if I want to view 
in acrord32 or save to disk.  I believe it is due to path problems, 
because lyx keeps creating a directory C:\Documents but that is empty.
Yes, LyX 1.3.5 really isn't set up to handle spaces in paths.
Kind regards,
Angus




Re: Latex import problem

2005-05-18 Thread TGreiner
Now I could convert:
Newest Python
Newest lyx2lyx (not from Lyx1.3.5 package)
Thanks
Thomas

On Wed, 18 May 2005 12:50:39 +, Angus Leeming wrote:

TGreiner wrote:
 -t 221 doesn´t work: 241: Format not supported
 or single -to doesn´t work. I get the old error.
 Thomas

... and this error has been explained to you. The python that Ruurd 
packaged with his port of LyX to Windows doesn't contain many of the 
modules of standard python that the LyX 1.4 version of lyx2lyx requires.

Junk (throw away) the python that Ruurd packaged with LyX 1.3.5 and go 
get a real python package from www.python.org.

Angus




Re: Latex import problem

2005-05-18 Thread Georg Baum
Jean-Pierre Chretien wrote:

 I take the opportunity of this thread about tex2lyx to complete what Angus
 said. The current version of tex2lyx deals correctly with multipart
 documents However, lyx2lyx does not know about dependencies, so that
 retroconversion to 221 must be made on each \input'ted, \include'd or
 \verbatiminput'ted file.
 
 The workaround I proposed in the wiki (script tex2lyx.sh, which converts
 all lyx files in the current dir to 221) is a poor one, but I can't
 imagine better unless lyx2lyx knows about dependencies.

Another workaround is to replace the 1.3 version of lyx2lyx with a slightly
hacked 1.4 version (including the various .py files). You need to set

end_format = '221'

in parse_options() in lyx2lyx to change the default output format. LyX 1.3
should be able to read 1.4 files after that, so you don't need to convert
included files explicitly. Feel free to add this to the wiki (with a bit
more explanation) if it works for you, I don't have the time at the moment.


Georg




Re: Path problem pdf output in Lyx for Win32

2005-05-18 Thread Paul A. Rubin
Paul Johnson wrote:
I'm a Unix user, but have to set up 2 windows computers for LyX.  The 
1.3.5 edition of Lyx for Win32 works very well as far as I can tell. I 
can enter equations and view them in dvi.  For some reason, yap always 
opens minimized, but that's OK by me.

I think the troubles I find are caused by the fact that the user home 
dir has spaces in it. User home directories are in C:\Documents And 
Settings\username.  Users want to put lyx files under My Documents in 
there and then lyx does not work there. So, what to do?

Has anybody found a way to reconfigure windows and rename the home dir 
to C:\DocumentsAndSettings for all users?

In Edit/Preferences/Path, I changed the working directory to 
C:\Windows\Temp. But it will not do to have all users writing in there.
I've tried using '\ ' and '%20' in lieu of spaces, but neither worked 
consistently.  I've also tried the 8.3 version of the path name, but 
it contains a tilde that throws off some Unix tools.  Finally gave up 
and created a separate, space-free path for LyX docs.

As a workaround until the much-anticipated 1.3.6 arrives, you might set 
up separate LyX doc directories for each user (with user-specific 
permissions, if desired) and then use a file synchronization utility to 
synch a user's LyX directory with an appropriate subdirectory under My 
Docs.  I use SynchronX, but there's a few of them out there.
Pdf output fails, no matter what i do. It fails either if I want to view 
in acrord32 or save to disk.  I believe it is due to path problems, 
because lyx keeps creating a directory C:\Documents but that is empty.

Sounds likely.  One other thing to keep in mind about PDFs on Windows v. 
Unix (using Acrobat Reader): if you try to View-PDF (regular, dvipdfm 
or pdflatex) while Reader is open, the operation will fail with an error 
message saying that Reader can't find the file.  There are two 
workarounds: either close Reader before issuing View-PDF, or set up a 
custom export command 'acrord32 %%FName' and then use 
File-Export-Custom to export the PDF to Reader (which will display 
it even if Reader is already open).  And speaking of Windows quirks, you 
can't type 'acrord32 %%FName' into the File-Export-Custom dialog for 
some reason; you have to manually hack your preferences file and insert 
the line

custom_export_command acrord32 %%FName
(one more reason 1.3.6 is *eagerly* anticipated).
-- Paul


Re: Latex import problem

2005-05-18 Thread Luis Rivera
Angus Leeming
Tue, 17 May 2005 14:25:33 -0700

Luis Rivera wrote:

Angus,

I'm sorry I might have stepped on your toe. I apologize. Let me
explain:

... reLyX generates a horrible mish-mash
of different file formats that must somehow be deciphered by
lyx2lyx. 

tex2lyx generates a completely consistent lyx file, version 241, which
must
then be converted back to version 221 so that LyX 1.3.5 can understand
it.


I shall concede that.  I have little knowledge of the arcana of the LyX
format, so I am in no position do decide whether the output of tex2lyx
is equal, better, or worse, than that of reLyX (which, I also concede,
might be a relic ;)  My only point is that reLyX makes some `mish-mash'
intelligible to lyx2lyx, and then you still have to upgrade this
mish-mash into LyX 221.  In other words, a two step process is
necessary anyway.

 I still use the `old' reLyX script, for tex2lyx, in its current
 incarnation, is too bloated to my taste, and I have to reconvert the
 output to LyX 221 anyway.

 tex2lyx is bloated? For what definition of bloated? 

Well: I downloaded the binary from the Wiki page, and it expands to up
to 2.5 Mb, while the existing combo reLyX/lyx2lyx takes about 2Mb
(including the required python/perl libraries and executables).

Two things that it
does do, which reLyX does not, is understand most 'reasonable' LaTeX
and
generate a consistent .lyx file.


Having no clue about the consistency of LyX, I must concede the second
point; as for the first, reLyX has had no trouble so far with my rather
idiosyncratic LaTeX files...

To convert my LaTeX files into LyX I made the following batch file
(tex2lyx.bat): 


@echo off
rem Wrapper script for Win32
rem written by Ruurd Reitsma
rem shamelessly hacked by Jose-Luis Rivera
set PERLLIB=%~p0\..\lib
set PYTHONPATH=%~p0\lib;%~p0\dlls
%~p0\perl.exe -S %~p0\reLyX -f %1 %2 %3
ren %~n1.lyx rlx
%~p0\python.exe -S %~p0\..\share\lyx\lyx2lyx\lyx2lyx -t 221 -o %~n1.lyx
rlx
del rlx
set PERLLIB=
set PYTHONPATH=
-

then I changed the call in Edit/Preferences/Converters/tex - LyX, to
`tex2lyx $$i', and voilà!  

I named the batch file `tex2lyx' in the assumption that, someday, this
shall be the name of the right utility to call.

If you have any substantive problems with tex2lyx, then PLEASE bring
them
forward. 

I have no substantive problems with tex2lyx, save that it seems to me a
little redundant for Ruurd's distribution.  As I said, all I did was a
little hacking of Ruurd's reLyX.bat file and I got my stuff.  Before
that, I downloaded and tested (succesfully) the experimental tex2lyx
available at the wiki page, then realizing that I had to reformat the
output with lyx2lyx anyway. So I patched a little batch to run lyx2lyx
from console, and then it strucked me that with a little hacking to
Ruurd's original kludge, I could get the two phases
(reLyX/tex2lyx-lyx2lyx) done in one single shot. That's what I did.

 We rely on your feedback to improve it. 

Now I take your suggestion: do you think it viable to have tex2lyx
built into LyX itself, like the converter going the other way
around?This way we could use `lyx --import latex filename.tex', the way
we use `lyx --export latex filename.lyx'). Should I write the
developers suggesting this integration?

However, please do not
suggest to people on this list that they use reLyX in preference to
tex2lyx. reLyX is a broken hack and unsupported nightmare.

I won't do it anymore.  Promise.

Luis.



Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html



Re: More Greek tribulations--help with font installation

2005-05-18 Thread Luis Rivera
Stefano Franchi [EMAIL PROTECTED] writes:
 
 thanks for the help and the suggestions. Unfortunately the problem is 
 not with \emph. I tried using the new \emph{}, but I still get the same 
 problem. LaTeX cannot find the proper font for rendering italicized 
 Greek. In fact, in the log file I get:
 
 LaTeX Font Info:Try loading font information for LGR+ptm on input 
 line 96.
 LaTeX Font Info:No file LGRptm.fd. on input line 96.
 
 LaTeX Font Warning: Font shape `LGR/ptm/m/it' undefined
 (Font)  using `LGR/cmr/m/n' instead on input line 96.
 
 LaTeX Font Warning: Font shape `LGR/ptm/m/n' undefined
 (Font)  using `LGR/cmr/m/n' instead on input line 96.
 
 
  From what I've (recently) read that means that LaTex is looking for the 
 font Adobe Times (ptm) in the LGR encoding, in italic shape (i), cannot 
 find it, and substitutes cmr (computer modern?) normal shape in LGR 
 encoding. So the problems has to do with font installation and/or 
 mappings, because the typesetting of Greek should use the cbgreek 
 fonts. Which, I believe, all star with a g in their 
 filename/description. So there is something wrong in how LaTeX selects 
 the fonts, but I know too little about LaTeX/TeX to fix the problem...
 

You're right: seems that you're trying to use Times.  You might have chosen 
this font for your document in LyX Layout menu to have outlined fonts instead 
of raster fonts in the output (your original problem, as far as I can recall).  
Since there is no such a thing as LGR encoded fonts for Postscript Times, you 
get font substitution, or no output...

Again, I suggest you to use the cm-lgc package.  Alexej just uploaded a newer 
version to CTAN a couple of days ago, now including OT1 and OT2 for Latin and 
Cyrillic.  Greek is fully LGC compliant.

Good luck,

Luis.



Re: Latex import problem

2005-05-18 Thread Luis Rivera
Angus Leeming [EMAIL PROTECTED] writes:

 
 TGreiner wrote:
  -t 221 doesnt work: 241: Format not supported
  or single -to doesnt work. I get the old error.
  Thomas
 
 ... and this error has been explained to you. The python that Ruurd 
 packaged with his port of LyX to Windows doesn't contain many of the 
 modules of standard python that the LyX 1.4 version of lyx2lyx requires.
 
 Junk (throw away) the python that Ruurd packaged with LyX 1.3.5 and go 
 get a real python package from www.python.org.
 
 Angus
 
 

You ain't to throw away nothing.  Just add the right paths to libperl and 
libpython environment variables, and everything runs fine.  See Ruurd's 
original reLyX.bat file and my home-brewed patch somewhere in this thread.

BTW, you shouldn't be using reLyX: tex2lyx makes a more consistent LyX output, 
and has a better lyx2lyx program.

Cheers,

Luis.




Please help me update my address book on Ringo

2005-05-18 Thread Carlos Fernando Knauer
undefined


Re: clearing bookmarks?

2005-05-18 Thread Kevin Pfeiffer
Johan Ingvast writes:
 However, I agree that some functionality for saving bookmarks should be
 implemented.

Even better (for me) and simpler (maybe?) would be if LyX preserved the 
session status information for cursor location in the document when last 
edited. 

-Kevin  (I know, add it to the bugzilla) :-)

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: focus-stealing prevention in KDE desktop?

2005-05-18 Thread Kevin Pfeiffer
Charles de Miramon writes:
 Georg Baum wrote:
  Kevin Pfeiffer wrote:
  I've noticed that if I set the focus-stealing prevention level for
  windows in the KDE environment to anything higher than 'none', that
  notification messages such as Do you want to save your document
  before closing? open _behind_ the main application window in Lyx.
  I've also noticed this using a Perl/GTK application, but with no
  other applications so far.

 There is a kcm module in KControl to create special rules for
 particular applications windows. You should play with it to solve your
 problem.

Thanks for the tip! Even easier, right-mouse-clicking a KDE titlebar gives 
one the option Configure window behaviour. This leads to 
Window-specific settings which is easily configured using Detect 
Window Properties (click on the main LyX window) and Work-arounds. 
This also solved my I want LyX to open maximized-problem.

-Kevin

-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: clearing bookmarks?

2005-05-18 Thread Johan Ingvast
On Tue, 17 May 2005, Kevin Pfeiffer wrote:

> Uwe Stöhr writes:
> 
> You're right! So much for my thorough testing. I only placed the bookmark, 
> scrolled to the top of the document and then tried navigating back via 
> bookmark to where I was. I never dreamed that the bookmark is not saved 
> with the document (must be a bug, isn't it?). 
I don't think it is. Because having them in the "session" makes it
possible to move between different documents within the same lyxsession.
So if I have a number of documents open, going to a bookmark can, besides
moving in the active document, also swith document.

However, I agree that some functionality for saving bookmarks should be
implemented.

/johan

-- 
Johan Ingvast, PhD student http://www.md.kth.se/~ingvast
Department of Machine Design, Royal Institute of Technology, Sweden
http://www.md.kth.se, http://www.md.kth.se/~cas <--- Walking robot proj
tel +46 (0)8 790 95 36  mob. +46 (0)70 34 34 498



Re: Latex import problem

2005-05-18 Thread Angus Leeming
On Wednesday 18 May 2005 09:05, TGreiner wrote:
> Dear Angus,
> thank you for your hints. I could run tex2lyx in a command window.
> The Latex file is imported (I see a lot of messages of the included
> images - no errors), but no output file is created. What do I have
> to do? T. Greiner

You have to redirect the output to STDOUT to a file. Here's how I 
convert UserGuide.lyx to a .tex file, reconvert it to a LyX 1.4.x 
version .lyx file and then convert this .lyx file to something that 
LyX 1.3.5 can read. (qlyx13x is my name for the Qt version of LyX 
1.3.5.)

$  qlyx13x --export latex UserGuide.lyx
$  ~/lyx/devel/build/src/tex2lyx/tex2lyx UserGuide.tex > 
UserGuide_14x.lyx
$  python ~/lyx/devel/lib/lyx2lyx/lyx2lyx --to 221 UserGuide_14x.lyx > 
UserGuide_13x.lyx

Going on to export this round-tripped version of the User Guide to 
latex and running latex twice over both UserGuide.tex and 
UserGuide_13x.tex
$ qlyx13x --export latex UserGuide_13x.lyx
$ latex UserGuide
$ latex UserGuide
$ latex UserGuide_13x
$ latex UserGuide_13x

produces two .dvi files, UserGuide.dvi, the compiled version of the 
original UserGuide.lyx and UserGuide_13x.dvi, the compiled version of 
the round-tripped file.

$ ls -l UserGuide.dvi UserGuide_13x.dvi
-rw-rw-r--  1 angus angus 497972 May 18 10:22 UserGuide_13x.dvi
-rw-rw-r--  1 angus angus 497800 May 18 10:22 UserGuide.dvi

Note that there is a small difference in size between the two, 
indicating that conversion lyx->tex->lyx was not perfect, but the 
difference is pretty small. So far, I've been unable to see any 
human-visible differences.

Regards,
Angus

ps, please post to the lyx-users list.
A.

> On Tue, 17 May 2005 22:23:53 +0100, Angus Leeming wrote:
> >Luis Rivera wrote:
> >> AFAIK, LaTeX import occurs in two phases: first reLyX/tex2lyx
> >> translates LaTeX to some version of LyX, and then lyx2lyx
> >> converts it to the right version of LyX format you may be using:
> >> 221, for LyX 1.3.5
> >
> >That's essentially correct. However, reLyX generates a horrible
> > mish-mash of different file formats that must "somehow" be
> > deciphered by lyx2lyx.
> >
> >tex2lyx generates a completely consistent lyx file, version 241,
> > which must then be converted back to version 221 so that LyX
> > 1.3.5 can understand it.
> >
> >> I still use the `old' reLyX script, for tex2lyx, in its current
> >> incarnation, is too bloated to my taste, and I have to reconvert
> >> the output to LyX 221 anyway.
> >
> > tex2lyx is bloated? For what definition of bloated? Two
> > things that it does do, which reLyX does not, is understand most
> > 'reasonable' LaTeX and generate a consistent .lyx file.
> >
> >If you have any substantive problems with tex2lyx, then PLEASE
> > bring them forward. We rely on your feedback to improve it.
> > However, please do not suggest to people on this list that they
> > use reLyX in preference to tex2lyx. reLyX is a broken hack and
> > unsupported nightmare.
> >
> >--
> >Angus


Re: Latex import problem

2005-05-18 Thread TGreiner
a,I converted to ver 1.4. This Lyx file only contains commands for
images but no more the original text of the Latex-file
b,Then by converting to 1.3.5 I get the following error:

python lyx2lyx -to 221 test.lyx > test13.lyx
'import site' failed; use -v for traceback
o: Invalid LyX format

Thomas Greiner

On Wednesday 18 May 2005 09:05, TGreiner wrote:
> Dear Angus,
> thank you for your hints. I could run tex2lyx in a command window.
> The Latex file is imported (I see a lot of messages of the included
> images - no errors), but no output file is created. What do I have
> to do? T. Greiner

You have to redirect the output to STDOUT to a file. Here's how I 
convert UserGuide.lyx to a .tex file, reconvert it to a LyX 1.4.x 
version .lyx file and then convert this .lyx file to something that 
LyX 1.3.5 can read. (qlyx13x is my name for the Qt version of LyX 
1.3.5.)

$  qlyx13x --export latex UserGuide.lyx
$  ~/lyx/devel/build/src/tex2lyx/tex2lyx UserGuide.tex > 
UserGuide_14x.lyx
$  python ~/lyx/devel/lib/lyx2lyx/lyx2lyx --to 221 UserGuide_14x.lyx > 
UserGuide_13x.lyx

Going on to export this round-tripped version of the User Guide to 
latex and running latex twice over both UserGuide.tex and 
UserGuide_13x.tex
$ qlyx13x --export latex UserGuide_13x.lyx
$ latex UserGuide
$ latex UserGuide
$ latex UserGuide_13x
$ latex UserGuide_13x

produces two .dvi files, UserGuide.dvi, the compiled version of the 
original UserGuide.lyx and UserGuide_13x.dvi, the compiled version of 
the round-tripped file.

$ ls -l UserGuide.dvi UserGuide_13x.dvi
-rw-rw-r--  1 angus angus 497972 May 18 10:22 UserGuide_13x.dvi
-rw-rw-r--  1 angus angus 497800 May 18 10:22 UserGuide.dvi

Note that there is a small difference in size between the two, 
indicating that conversion lyx->tex->lyx was not perfect, but the 
difference is pretty small. So far, I've been unable to see any 
human-visible differences.

Regards,
Angus

ps, please post to the lyx-users list.
A.

> On Tue, 17 May 2005 22:23:53 +0100, Angus Leeming wrote:
> >Luis Rivera wrote:
> >> AFAIK, LaTeX import occurs in two phases: first reLyX/tex2lyx
> >> translates LaTeX to some version of LyX, and then lyx2lyx
> >> converts it to the right version of LyX format you may be using:
> >> 221, for LyX 1.3.5
> >
> >That's essentially correct. However, reLyX generates a horrible
> > mish-mash of different file formats that must "somehow" be
> > deciphered by lyx2lyx.
> >
> >tex2lyx generates a completely consistent lyx file, version 241,
> > which must then be converted back to version 221 so that LyX
> > 1.3.5 can understand it.
> >
> >> I still use the `old' reLyX script, for tex2lyx, in its current
> >> incarnation, is too bloated to my taste, and I have to reconvert
> >> the output to LyX 221 anyway.
> >
> > tex2lyx is bloated? For what definition of bloated? Two
> > things that it does do, which reLyX does not, is understand most
> > 'reasonable' LaTeX and generate a consistent .lyx file.
> >
> >If you have any substantive problems with tex2lyx, then PLEASE
> > bring them forward. We rely on your feedback to improve it.
> > However, please do not suggest to people on this list that they
> > use reLyX in preference to tex2lyx. reLyX is a broken hack and
> > unsupported nightmare.
> >
> >--
> >Angus




Re: Latex import problem

2005-05-18 Thread Angus Leeming
TGreiner wrote:

> a,I converted to ver 1.4. This Lyx file only contains commands for
> images but no more the original text of the Latex-file

Could you post your original .tex file that you cannot convert to LyX 1.4
format using tex2lyx. If you don't want to post it to the list, then post
it to leeming AT lyx DOT org.

-- 
Angus



Re[2]: Movie in beamer

2005-05-18 Thread Andrei Popov
Hello Nicolas,

Monday, May 16, 2005, 5:26:45 PM, you wrote:

> Sorry but I am working with linux/mandrake ... I shall write mandriva.
> There exists no package for xanim, and before to compile it, I'd like to
> know if acrobat hard-coded it as its mpeg viewer or if I can modify it.
> Looking at acrobat preferences does not show any related topic, nor 
> googling acrobat+xanim.

I'm not a Linux expert, but try doing "cat /etc/mailcap | grep -i
xanim"

Maybe xanim is associated with the "video" files (by content), and
Acrobat is relying on this info.

You can try modifying your /etc/mailcap and see if it fixes the
problem.

-- 
WBR,
Andrei Popov

Using LyX 1.3.4 on Linux



Re: Latex import problem

2005-05-18 Thread Sven Schreiber
TGreiner wrote:

> a,I converted to ver 1.4. This Lyx file only contains commands for
> images but no more the original text of the Latex-file
> b,Then by converting to 1.3.5 I get the following error:
> 
> python lyx2lyx -to 221 test.lyx > test13.lyx
> 'import site' failed; use -v for traceback
> o: Invalid LyX format

I think I had the same problem once (on Windows); it seems the bundled
python interpreter that comes with lyx1.3.5 on win is a little too
stripped down (bear in mind windows is not really a target platform of
1.3.5). You could install the full python and/or make sure the "right"
python variant is in your PATH.
hth, sven


Re: Latex import problem

2005-05-18 Thread Kornel Benko
On Wednesday 18 May 2005 13:26, Sven Schreiber wrote:
> TGreiner wrote:
> 
> > a,I converted to ver 1.4. This Lyx file only contains commands for
> > images but no more the original text of the Latex-file
> > b,Then by converting to 1.3.5 I get the following error:
> > 
> > python lyx2lyx -to 221 test.lyx > test13.lyx

this should be either '-t' or '--to'

e.g.
python lyx2lyx -t 221 test.lyx > test13.lyx


Regards
Kornel

-- 
Kornel Benko
[EMAIL PROTECTED]
+49 30 3377 6216


pgpFbEc2aO6Ob.pgp
Description: PGP signature


Re[2]: Movie in beamer

2005-05-18 Thread chr
On Wed, 18 May 2005, Andrei Popov wrote:

> Hello Nicolas,
> 
> Monday, May 16, 2005, 5:26:45 PM, you wrote:
> 
> > Sorry but I am working with linux/mandrake ... I shall write mandriva.
> > There exists no package for xanim, and before to compile it, I'd like to
> > know if acrobat hard-coded it as its mpeg viewer or if I can modify it.
> > Looking at acrobat preferences does not show any related topic, nor 
> > googling acrobat+xanim.
> 
> I'm not a Linux expert, but try doing
>   "cat /etc/mailcap | grep -i xanim"

or if he has a local .mailcap, try

cat ~/.mailcap | grep -i xanim

/Christian

-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr




Re: Latex import problem

2005-05-18 Thread TGreiner
-t 221 doesn´t work: 241: Format not supported
or single -to doesn´t work. I get the old error.
Thomas

On Wed, 18 May 2005 13:48:52 +0200, Kornel Benko wrote:

>On Wednesday 18 May 2005 13:26, Sven Schreiber wrote:
>> TGreiner wrote:
>> 
>> > a,I converted to ver 1.4. This Lyx file only contains commands for
>> > images but no more the original text of the Latex-file
>> > b,Then by converting to 1.3.5 I get the following error:
>> > 
>> > python lyx2lyx -to 221 test.lyx > test13.lyx
>
>this should be either '-t' or '--to'
>
>e.g.
>   python lyx2lyx -t 221 test.lyx > test13.lyx
>
>
>   Regards
>   Kornel
>
>-- 
>Kornel Benko
>[EMAIL PROTECTED]
>+49 30 3377 6216
>



Re: Latex import problem

2005-05-18 Thread Angus Leeming
TGreiner wrote:
-t 221 doesn´t work: 241: Format not supported
or single -to doesn´t work. I get the old error.
Thomas
... and this error has been explained to you. The python that Ruurd 
packaged with his port of LyX to Windows doesn't contain many of the 
modules of standard python that the LyX 1.4 version of lyx2lyx requires.

Junk (throw away) the python that Ruurd packaged with LyX 1.3.5 and go 
get a real python package from www.python.org.

Angus


Re: Movie in beamer

2005-05-18 Thread Nicolas Ferré
[EMAIL PROTECTED] a écrit :
On Wed, 18 May 2005, Andrei Popov wrote:

Hello Nicolas,
Monday, May 16, 2005, 5:26:45 PM, you wrote:

Sorry but I am working with linux/mandrake ... I shall write mandriva.
There exists no package for xanim, and before to compile it, I'd like to
know if acrobat hard-coded it as its mpeg viewer or if I can modify it.
Looking at acrobat preferences does not show any related topic, nor 
googling acrobat+xanim.
I'm not a Linux expert, but try doing
"cat /etc/mailcap | grep -i xanim"

or if he has a local .mailcap, try
cat ~/.mailcap | grep -i xanim
/Christian
Many thanks to Jean-Pierre, Andrei and Christian. They point me to look 
at the mailcap file (actually I didn't know acrobat was using it). I 
have just modified my .mailcap. Also I use the alternative solution 
given by Jean-pierre, actually using \href:run instead of \movie.

--
 ***   Dr. Nicolas Ferre'   ***
 Laboratoire de Chimie Theorique et de Modelisation Moleculaire
 UMR 6517 - CNRS Universites Aix-Marseille Case 521
 Centre de Saint-Jerome  13397 - Marseille Cedex 20, France
 Tel : (+33)4.91.28.27.33  Fax : (+33)4.91.28.87.58
   http://www.up.univ-mrs.fr/wsrep/ctheo/lctmm.html
***


Path problem & pdf output in Lyx for Win32

2005-05-18 Thread Paul Johnson
I'm a Unix user, but have to set up 2 windows computers for LyX.  The 
1.3.5 edition of Lyx for Win32 works very well as far as I can tell. I 
can enter equations and view them in dvi.  For some reason, yap always 
opens minimized, but that's OK by me.

I think the troubles I find are caused by the fact that the user home 
dir has spaces in it. User home directories are in C:\Documents And 
Settings\username.  Users want to put lyx files under "My Documents" in 
there and then lyx does not work there. So, what to do?

Has anybody found a way to reconfigure windows and rename the home dir 
to C:\DocumentsAndSettings for all users?

In Edit/Preferences/Path, I changed the working directory to 
C:\Windows\Temp. But it will not do to have all users writing in there.

Pdf output fails, no matter what i do. It fails either if I want to view 
in acrord32 or save to disk.  I believe it is due to path problems, 
because lyx keeps creating a directory C:\Documents but that is empty.

--
Paul E. Johnson   email: [EMAIL PROTECTED]
Dept. of Political Sciencehttp://lark.cc.ku.edu/~pauljohn
1541 Lilac Lane, Rm 504
University of Kansas  Office: (785) 864-9086
Lawrence, Kansas 66044-3177   FAX: (785) 864-5700


Re: Latex import problem

2005-05-18 Thread Jean-Pierre Chretien

>>From: Angus Leeming <[EMAIL PROTECTED]>
>>To: "TGreiner" <[EMAIL PROTECTED]>
>>Subject: Re: Latex import problem
>>Date: Wed, 18 May 2005 10:31:12 +0100
>>Cc: lyx-users@lists.lyx.org
>>
>>On Wednesday 18 May 2005 09:05, TGreiner wrote:
>>> Dear Angus,
>>> thank you for your hints. I could run tex2lyx in a command window.
>>> The Latex file is imported (I see a lot of messages of the included
>>> images - no errors), but no output file is created. What do I have
>>> to do? T. Greiner
>>
>>You have to redirect the output to STDOUT to a file. Here's how I 
>>convert UserGuide.lyx to a .tex file, reconvert it to a LyX 1.4.x 
>>version .lyx file and then convert this .lyx file to something that 
>>LyX 1.3.5 can read. (qlyx13x is my name for the Qt version of LyX 
>>1.3.5.)

I take the opportunity of this thread about tex2lyx to complete what Angus said.
The current version of tex2lyx deals correctly with multipart documents
However, lyx2lyx does not know about dependencies, so that retroconversion to 
221
must be made on each \input'ted, \include'd or \verbatiminput'ted file.

The workaround I proposed in the wiki (script tex2lyx.sh, which converts all 
lyx files in the current dir
to 221) is a poor one, but I can't imagine better unless lyx2lyx knows about 
dependencies.

An external script retrieving file dependencies would be welcome, 
unless it already exists, either in latex or in lyx. In fact, \listfiles does 
it,
but it mixes things w.r.t what tex2lyx does.

A good idea would be perhaps to add an output to tex2lyx enumerating the full 
or relative path
of the converted files, but IMHO an external script would be more useful in the 
future 
(the current retroconversion will not be necessary when 1.4 is released).

-- 
Jean-Pierre




Re: Path problem & pdf output in Lyx for Win32

2005-05-18 Thread Angus Leeming
Paul Johnson wrote:
I'm a Unix user, but have to set up 2 windows computers for LyX.  The 
1.3.5 edition of Lyx for Win32 works very well as far as I can tell. I 
can enter equations and view them in dvi.  For some reason, yap always 
opens minimized, but that's OK by me.

I think the troubles I find are caused by the fact that the user home 
dir has spaces in it. User home directories are in C:\Documents And 
Settings\username.  Users want to put lyx files under "My Documents" in 
there and then lyx does not work there. So, what to do?
For the time being, I think that the only solution is to put your lyx 
files elsewhere.

We've fixed LyX 1.3.6 all over the place in our attempts to get it to 
run 'as expected' on Windows. Two problems are still to be addressed:
* lyx2lyx doesn't like "file names with spaces"
* you can't input such a file in the graphics etc dialogs using the 
browser.

Note, however, that .dvi files will need to be post-processed if they 
refer to graphics files containing spaces. See 
http://wiki.lyx.org/LaTeX/FilesWithSpecialChars and the clean_dvi.py 
script.

Basically, spaces in file names lead to all sorts of problems that 
we've tried hard to resolve. Only real-world usage will show whether 
we've been successful or not.

Other than the remaining issues described above, it looks like the 
merger of Ruurd's LyX/Win port into the official LyX sources is just 
about complete.

In Edit/Preferences/Path, I changed the working directory to
C:\Windows\Temp. But it will not do to have all users writing in there.
I'm currently playing with LyX 1.3.6 which I have installed in 
C:\Program Files\LyX. It tries to use the proper Windows locations for 
its various paths, although you can reset the document and temp 
directories in your preferences file. The default settings (as output 
by "lyx -dbg init" running from a MinGW console) are:


binary_dir c:/Program Files/LyX/bin/
system_support c:/Program Files/LyX/Resources/lyx/
user_support C:/Documents and Settings/Angus/Application Data/lyx/
locale_dir c:/Program Files/LyX/Resources/locale/
document_dir C:/Documents and Settings/Angus/My Documents
temp_dir C:/Documents and Settings/Angus/Local Settings/Temp/
home_dir C:/Documents and Settings/Angus

I have no difficulty viewing a pdf of the UserGuide (generated by 
pdflatex (MikTeX 2.4) from
C:\Documents and Settings\Angus\Desktop\UserGuide.lyx) using gsview32 
(version 4.6) or AcroRd32 (version 7.0), so it looks like we're making 
progress.

Pdf output fails, no matter what i do. It fails either if I want to view 
in acrord32 or save to disk.  I believe it is due to path problems, 
because lyx keeps creating a directory C:\Documents but that is empty.
Yes, LyX 1.3.5 really isn't set up to handle spaces in paths.
Kind regards,
Angus




Re: Latex import problem

2005-05-18 Thread TGreiner
Now I could convert:
Newest Python
Newest lyx2lyx (not from Lyx1.3.5 package)
Thanks
Thomas

On Wed, 18 May 2005 12:50:39 +, Angus Leeming wrote:

>TGreiner wrote:
>> -t 221 doesn´t work: 241: Format not supported
>> or single -to doesn´t work. I get the old error.
>> Thomas
>
>... and this error has been explained to you. The python that Ruurd 
>packaged with his port of LyX to Windows doesn't contain many of the 
>modules of standard python that the LyX 1.4 version of lyx2lyx requires.
>
>Junk (throw away) the python that Ruurd packaged with LyX 1.3.5 and go 
>get a real python package from www.python.org.
>
>Angus
>



Re: Latex import problem

2005-05-18 Thread Georg Baum
Jean-Pierre Chretien wrote:

> I take the opportunity of this thread about tex2lyx to complete what Angus
> said. The current version of tex2lyx deals correctly with multipart
> documents However, lyx2lyx does not know about dependencies, so that
> retroconversion to 221 must be made on each \input'ted, \include'd or
> \verbatiminput'ted file.
> 
> The workaround I proposed in the wiki (script tex2lyx.sh, which converts
> all lyx files in the current dir to 221) is a poor one, but I can't
> imagine better unless lyx2lyx knows about dependencies.

Another workaround is to replace the 1.3 version of lyx2lyx with a slightly
hacked 1.4 version (including the various .py files). You need to set

end_format = '221'

in parse_options() in lyx2lyx to change the default output format. LyX 1.3
should be able to read 1.4 files after that, so you don't need to convert
included files explicitly. Feel free to add this to the wiki (with a bit
more explanation) if it works for you, I don't have the time at the moment.


Georg




Re: Path problem & pdf output in Lyx for Win32

2005-05-18 Thread Paul A. Rubin
Paul Johnson wrote:
I'm a Unix user, but have to set up 2 windows computers for LyX.  The 
1.3.5 edition of Lyx for Win32 works very well as far as I can tell. I 
can enter equations and view them in dvi.  For some reason, yap always 
opens minimized, but that's OK by me.

I think the troubles I find are caused by the fact that the user home 
dir has spaces in it. User home directories are in C:\Documents And 
Settings\username.  Users want to put lyx files under "My Documents" in 
there and then lyx does not work there. So, what to do?

Has anybody found a way to reconfigure windows and rename the home dir 
to C:\DocumentsAndSettings for all users?

In Edit/Preferences/Path, I changed the working directory to 
C:\Windows\Temp. But it will not do to have all users writing in there.
I've tried using '\ ' and '%20' in lieu of spaces, but neither worked 
consistently.  I've also tried the "8.3" version of the path name, but 
it contains a tilde that throws off some Unix tools.  Finally gave up 
and created a separate, space-free path for LyX docs.

As a workaround until the much-anticipated 1.3.6 arrives, you might set 
up separate LyX doc directories for each user (with user-specific 
permissions, if desired) and then use a file synchronization utility to 
synch a user's LyX directory with an appropriate subdirectory under My 
Docs.  I use SynchronX, but there's a few of them out there.
Pdf output fails, no matter what i do. It fails either if I want to view 
in acrord32 or save to disk.  I believe it is due to path problems, 
because lyx keeps creating a directory C:\Documents but that is empty.

Sounds likely.  One other thing to keep in mind about PDFs on Windows v. 
Unix (using Acrobat Reader): if you try to View->PDF (regular, dvipdfm 
or pdflatex) while Reader is open, the operation will fail with an error 
message saying that Reader can't find the file.  There are two 
workarounds: either close Reader before issuing View->PDF, or set up a 
custom export command 'acrord32 %%FName' and then use 
File->Export->Custom to "export" the PDF to Reader (which will display 
it even if Reader is already open).  And speaking of Windows quirks, you 
can't type 'acrord32 %%FName' into the File->Export->Custom dialog for 
some reason; you have to manually hack your preferences file and insert 
the line

custom_export_command "acrord32 %%FName"
(one more reason 1.3.6 is *eagerly* anticipated).
-- Paul


Re: Latex import problem

2005-05-18 Thread Luis Rivera
>Angus Leeming
>Tue, 17 May 2005 14:25:33 -0700
>
>Luis Rivera wrote:

Angus,

I'm sorry I might have stepped on your toe. I apologize. Let me
explain:

>... reLyX generates a horrible mish-mash
>of different file formats that must "somehow" be deciphered by
lyx2lyx. 
>
>tex2lyx generates a completely consistent lyx file, version 241, which
>must
>then be converted back to version 221 so that LyX 1.3.5 can understand
>it.
>

I shall concede that.  I have little knowledge of the arcana of the LyX
format, so I am in no position do decide whether the output of tex2lyx
is equal, better, or worse, than that of reLyX (which, I also concede,
might be a relic ;)  My only point is that reLyX makes some `mish-mash'
intelligible to lyx2lyx, and then you still have to "upgrade" this
mish-mash into LyX 221.  In other words, a two step process is
necessary anyway.

>> I still use the `old' reLyX script, for tex2lyx, in its current
>> incarnation, is too bloated to my taste, and I have to reconvert the
>> output to LyX 221 anyway.
>
> tex2lyx is bloated? For what definition of bloated? 

Well: I downloaded the binary from the Wiki page, and it expands to up
to 2.5 Mb, while the existing combo reLyX/lyx2lyx takes about 2Mb
(including the required python/perl libraries and executables).

>Two things that it
>does do, which reLyX does not, is understand most 'reasonable' LaTeX
and
>generate a consistent .lyx file.
>

Having no clue about the consistency of LyX, I must concede the second
point; as for the first, reLyX has had no trouble so far with my rather
idiosyncratic LaTeX files...

To convert my LaTeX files into LyX I made the following batch file
(tex2lyx.bat): 


@echo off
rem Wrapper script for Win32
rem written by Ruurd Reitsma
rem shamelessly hacked by Jose-Luis Rivera
set PERLLIB=%~p0\..\lib
set PYTHONPATH=%~p0\lib;%~p0\dlls
%~p0\perl.exe -S %~p0\reLyX -f %1 %2 %3
ren %~n1.lyx rlx
%~p0\python.exe -S %~p0\..\share\lyx\lyx2lyx\lyx2lyx -t 221 -o %~n1.lyx
rlx
del rlx
set PERLLIB=
set PYTHONPATH=
-

then I changed the call in Edit/Preferences/Converters/tex -> LyX, to
`tex2lyx $$i', and voilà!  

I named the batch file `tex2lyx' in the assumption that, someday, this
shall be the name of the right utility to call.

>If you have any substantive problems with tex2lyx, then PLEASE bring
them
>forward. 

I have no substantive problems with tex2lyx, save that it seems to me a
little redundant for Ruurd's distribution.  As I said, all I did was a
little hacking of Ruurd's reLyX.bat file and I got my stuff.  Before
that, I downloaded and tested (succesfully) the experimental tex2lyx
available at the wiki page, then realizing that I had to reformat the
output with lyx2lyx anyway. So I patched a little batch to run lyx2lyx
from console, and then it strucked me that with a little hacking to
Ruurd's original kludge, I could get the two phases
(reLyX/tex2lyx-lyx2lyx) done in one single shot. That's what I did.

> We rely on your feedback to improve it. 

Now I take your suggestion: do you think it viable to have tex2lyx
built into LyX itself, like the converter going the other way
around?This way we could use `lyx --import latex filename.tex', the way
we use `lyx --export latex filename.lyx'). Should I write the
developers suggesting this integration?

>However, please do not
>suggest to people on this list that they use reLyX in preference to
>tex2lyx. reLyX is a broken hack and unsupported nightmare.

I won't do it anymore.  Promise.

Luis.



Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html



Re: More Greek tribulations--help with font installation

2005-05-18 Thread Luis Rivera
Stefano Franchi <[EMAIL PROTECTED]> writes:
> 
> thanks for the help and the suggestions. Unfortunately the problem is 
> not with \emph. I tried using the new \emph{}, but I still get the same 
> problem. LaTeX cannot find the proper font for rendering italicized 
> Greek. In fact, in the log file I get:
> 
> LaTeX Font Info:Try loading font information for LGR+ptm on input 
> line 96.
> LaTeX Font Info:No file LGRptm.fd. on input line 96.
> 
> LaTeX Font Warning: Font shape `LGR/ptm/m/it' undefined
> (Font)  using `LGR/cmr/m/n' instead on input line 96.
> 
> LaTeX Font Warning: Font shape `LGR/ptm/m/n' undefined
> (Font)  using `LGR/cmr/m/n' instead on input line 96.
> 
> 
>  From what I've (recently) read that means that LaTex is looking for the 
> font Adobe Times (ptm) in the LGR encoding, in italic shape (i), cannot 
> find it, and substitutes cmr (computer modern?) normal shape in LGR 
> encoding. So the problems has to do with font installation and/or 
> mappings, because the typesetting of Greek should use the cbgreek 
> fonts. Which, I believe, all star with a "g" in their 
> filename/description. So there is something wrong in how LaTeX selects 
> the fonts, but I know too little about LaTeX/TeX to fix the problem...
> 

You're right: seems that you're trying to use Times.  You might have chosen 
this font for your document in LyX Layout menu to have outlined fonts instead 
of raster fonts in the output (your original problem, as far as I can recall).  
Since there is no such a thing as LGR encoded fonts for Postscript Times, you 
get font substitution, or no output...

Again, I suggest you to use the cm-lgc package.  Alexej just uploaded a newer 
version to CTAN a couple of days ago, now including OT1 and OT2 for Latin and 
Cyrillic.  Greek is fully LGC compliant.

Good luck,

Luis.



Re: Latex import problem

2005-05-18 Thread Luis Rivera
Angus Leeming <[EMAIL PROTECTED]> writes:

> 
> TGreiner wrote:
> > -t 221 doesnÂt work: 241: Format not supported
> > or single -to doesnÂt work. I get the old error.
> > Thomas
> 
> ... and this error has been explained to you. The python that Ruurd 
> packaged with his port of LyX to Windows doesn't contain many of the 
> modules of standard python that the LyX 1.4 version of lyx2lyx requires.
> 
> Junk (throw away) the python that Ruurd packaged with LyX 1.3.5 and go 
> get a real python package from www.python.org.
> 
> Angus
> 
> 

You ain't to throw away nothing.  Just add the right paths to libperl and 
libpython environment variables, and everything runs fine.  See Ruurd's 
original reLyX.bat file and my home-brewed patch somewhere in this thread.

BTW, you shouldn't be using reLyX: tex2lyx makes a more consistent LyX output, 
and has a better lyx2lyx program.

Cheers,

Luis.




Please help me update my address book on Ringo

2005-05-18 Thread Carlos Fernando Knauer
undefined


Re: clearing bookmarks?

2005-05-18 Thread Kevin Pfeiffer
Johan Ingvast writes:
> However, I agree that some functionality for saving bookmarks should be
> implemented.

Even better (for me) and simpler (maybe?) would be if LyX preserved the 
session status information for cursor location in the document when last 
edited. 

-Kevin  (I know, add it to the bugzilla) :-)

-- 
Kevin Pfeiffer <[EMAIL PROTECTED]>
Tiros-Translations


Re: focus-stealing prevention in KDE desktop?

2005-05-18 Thread Kevin Pfeiffer
Charles de Miramon writes:
> Georg Baum wrote:
> > Kevin Pfeiffer wrote:
> >> I've noticed that if I set the focus-stealing prevention level for
> >> windows in the KDE environment to anything higher than 'none', that
> >> notification messages such as "Do you want to save your document
> >> before closing?" open _behind_ the main application window in Lyx.
> >> I've also noticed this using a Perl/GTK application, but with no
> >> other applications so far.
>
> There is a kcm module in KControl to create special rules for
> particular applications windows. You should play with it to solve your
> problem.

Thanks for the tip! Even easier, right-mouse-clicking a KDE titlebar gives 
one the option "Configure window behaviour". This leads to 
"Window-specific settings" which is easily configured using "Detect 
Window Properties" (click on the main LyX window) and "Work-arounds". 
This also solved my "I want LyX to open maximized"-problem.

-Kevin

-- 
Kevin Pfeiffer <[EMAIL PROTECTED]>
Tiros-Translations