LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Dominik Waßenhoven

Hi all,

I just tested the Windows 1.5 RC1 version which is a great improvement 
IMHO -- thanks to all the developers.


I have one problem so far, regarding LyX Functions. I use functions like 
the following in my bind file:


\bind C-M-o   command-sequence self-insert ø

This worked in LyX 1.4.3 without problems. However, this does not work 
any longer, because of the non-standard letter ø. If I have, say, 
command-sequence self-insert test, everything works fine. Is this a 
known bug or a new feature?


Regards,
Dominik.-




Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Jürgen Spitzmüller
Dominik Waßenhoven wrote:
 \bind C-M-o   command-sequence self-insert ø

 This worked in LyX 1.4.3 without problems. However, this does not work
 any longer, because of the non-standard letter ø. If I have, say,
 command-sequence self-insert test, everything works fine. Is this a
 known bug or a new feature?

Try unicode insert 0x00f8.

Jürgen


Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote:
 Try unicode insert 0x00f8.

Rather unicode-insert 0x00f8.

Jürgen


Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Dominik Waßenhoven

Jürgen Spitzmüller schrieb am 19.06.2007:


Dominik Waßenhoven wrote:

\bind C-M-o   command-sequence self-insert ø

This worked in LyX 1.4.3 without problems. However, this does not work
any longer, because of the non-standard letter ø. If I have, say,
command-sequence self-insert test, everything works fine. Is this a
known bug or a new feature?



Try unicode insert 0x00f8.


I see, it's a new feature then. unicode-insert (with a hyphen) works 
perfectly.


Thanks,
Dominik.-




Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Jürgen Spitzmüller
Dominik Waßenhoven wrote:
 I see, it's a new feature then.

Yes. You can insert any unicode character this way, provided you know the code 
point.

Jürgen


Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Georg Baum
Dominik Waßenhoven wrote:

 Hi all,
 
 I just tested the Windows 1.5 RC1 version which is a great improvement
 IMHO -- thanks to all the developers.
 
 I have one problem so far, regarding LyX Functions. I use functions like
 the following in my bind file:
 
 \bind C-M-o   command-sequence self-insert ø
 
 This worked in LyX 1.4.3 without problems. However, this does not work
 any longer, because of the non-standard letter ø. If I have, say,
 command-sequence self-insert test, everything works fine. Is this a
 known bug or a new feature?

It is supposed to work if you convert the bind file from latin1 to utf8 (is
this mentioned in the release notes?). All non-ASCII stuff in config files
has to be encoded in utf8.
If converting to utf8 does not help then it is a bug.


Georg



Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Dominik Waßenhoven

Georg Baum schrieb am 19.06.2007:


It is supposed to work if you convert the bind file from latin1 to utf8 (is
this mentioned in the release notes?). All non-ASCII stuff in config files
has to be encoded in utf8.
If converting to utf8 does not help then it is a bug.


My file was in ansinew encoding, I suppose (I edited it with Microsoft's 
Notepad), but as Jürgen wrote, I can give the unicode code point so 
everything works fine now.


Thanks for your help,
Dominik.-




Using svn-2007-06-17

2007-06-19 Thread Hellmut Weber

Hi,
some more remarks from my use of the svn:

I'm working often with master documents which contain child documents.
(BTW I consider the lyx approach to require indentical preambles and 
nothing else a very clever idea. With a little bash script it is easy to 
guarantee this. I had to try some time ago to use master documents in 
word ,-(( )


* I open the parent document, generate the pdf.
The pdf is generated and kpdf pops up. OK
The included document are opened with separate tags. Fine
Include files which do not exist are ignored.
IIRC in former versions this led to an error message. Feature?
I prefer this behaviour.


* When I'm in a child document which contains some '\section', 
'\subsection' command I can get back to the main document via the menu:

navigate master document.
When the cild document does NOT contain any structure, the item 'master 
document' is not shown in the 'navigate' menu. Feature?

I would like to see it nevertheless.


* The 'move paragraph up' and '... down' functionality when working in 
the text pane is also great. (Clearly I prefer the use of the key 
combinations alt+up and alt+down ;-)


* It seems that manipulations in the outline pane can be done only using 
the mouse.
I'm very intereseted to see here key combinations for the five buttons 
in the basis line.
In another message I stated already that I also would like to have a 
possibility to switch the focus from the text pane to the outline pane.


I can open the outline pane using the menu
Document Outline
But in this case the focus remains where it was in the text pane.
And then to do something there I need the mouse anyway :-)



* Another remark of a perfectionist:
When in the germen dialog 'Unterdokument' there are two places with an 
underlined letter 'D': 'D_atei' and 'D_urchsuchen'. Which prevents 
opening the browse funtion.


I somebody tells me where to look I'm willing to give these details a look.


Greetings

Hellmut


--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



How to execute some command after an Update in LyX

2007-06-19 Thread Daniel Lohmann
Hi,

I am using LyX 1.4.x on Linux, with xpdf as PDF viewer. Currently I open
the viewer first by selecting View-PDF in LyX, after that I just
refresh the existing PDF by selecting View-Update-PDF.

What I would like to achieve is that the xpdf does an automatic refresh
whenever I update the PDF in the background. However, I am on a file
system where notifications do not work. So my plan is to use the xpdf
-server option:

I did set the following command line for Viewer under
Preferences-File Formats-PDF:

xpdf -remote lyxOutput

works great. However, how can I automatically execute an:

xpdf -remote lyxOutput -reload

after the View-Update-PDF (LFUN:buffer-update pdf2)?
There obviously is no command to specify that shall be executed after
the execution of LFUN:buffer-update.

Any idea?

Thanks!

Daniel



Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Steve Litt
On Tuesday 19 June 2007 05:12, Georg Baum wrote:

 It is supposed to work if you convert the bind file from latin1 to utf8 (is
 this mentioned in the release notes?). All non-ASCII stuff in config files
 has to be encoded in utf8.
 If converting to utf8 does not help then it is a bug.

Does this include the copyright symbol and the trademark symbol?

Thanks

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


Re: Can't enter extra whitespace when editing.

2007-06-19 Thread Helge Hafting

Darren Freeman wrote:

On Mon, 2007-06-18 at 12:40 +0200, Hellmut Weber wrote:
  
Hi Darren, don't you think that calling a lyx behaviour 'gestapo 
behaviour' is inappropriate?



I don't think I spent any more than three seconds on it and hadn't
considered it to be anything other than a little colourful. I was
referring to the heavy-handed policing which LyX is now applying to
extra white-space and I think I made my point.
  

Removing those spaces from the screen is on purpose.
LyX could let them through, but they will be stripped away
when printing anyway, so better let you see what you are
going to get anyway.

Helge Hafting


Using svn-2007-06-17, continued

2007-06-19 Thread Hellmut Weber

Hi
my master document contains ca. 20 child documents.

* Is there a quick and simple way (preferably with key combinations) to 
open a child document?

I know to do it using the menu File Open and then the file open dialog.
But that's a pain when I already have the name of the file in the 
include button.


I seems that generating the pdf causes lyx to open all the child files. 
There are tabs now for all of these.

That's for the moment my 'quickest and dirty' procedure (alt+v f ;-)

* With more than 4-5 child documents the tabs list is more and more 
'expensive' to be used )ctrl+up / ctrl+down to switch on to the left / 
right).


Ideally I would like to have a key combination to pop up a list of all 
include files in which I can navigate with the up and down keys.

Shall I file an enhancement request?


Looking at all this new features and functionality I'm very lucka with 
lyx ;-)


Greetings

Hellmut


--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



Re: Can't enter extra whitespace when editing.

2007-06-19 Thread Darren Freeman
On Tue, 2007-06-19 at 15:58 +0200, Helge Hafting wrote:
 Darren Freeman wrote:
  considered it to be anything other than a little colourful. I was
  referring to the heavy-handed policing which LyX is now applying to
  extra white-space and I think I made my point.

 Removing those spaces from the screen is on purpose.
 LyX could let them through, but they will be stripped away
 when printing anyway, so better let you see what you are
 going to get anyway.

My point was that in the past you could enter them and they would be
removed when you moved away, but now you can't enter them at all. I vote
for the older behaviour which feels more natural.

Have fun,
Darren



Re: Using svn-2007-06-17

2007-06-19 Thread Abdelrazak Younes

Hellmut Weber wrote:

Hi,
some more remarks from my use of the svn:


* When I'm in a child document which contains some '\section', 
'\subsection' command I can get back to the main document via the menu:

 navigate master document.
When the cild document does NOT contain any structure, the item 'master 
document' is not shown in the 'navigate' menu. Feature?

I would like to see it nevertheless.


It works here on my local tree. So if it not fixed on your svn version, 
it will be as I commit my changes.



* The 'move paragraph up' and '... down' functionality when working in 
the text pane is also great. (Clearly I prefer the use of the key 
combinations alt+up and alt+down ;-)


* It seems that manipulations in the outline pane can be done only using 
the mouse.
I'm very intereseted to see here key combinations for the five buttons 
in the basis line.


Us (the developers) too. We had a lenghty discussion about which 
shortcut to use but we never reach an agreement. But we should.

Note that you can customize any shortcut you like in your bind file.

In another message I stated already that I also would like to have a 
possibility to switch the focus from the text pane to the outline pane.


Put an enhancement request on bugzilla please.



I can open the outline pane using the menu
 Document Outline
But in this case the focus remains where it was in the text pane.
And then to do something there I need the mouse anyway :-)


This is a bug -- Bugzilla please.

Abdel.



Re: Using svn-2007-06-17, continued

2007-06-19 Thread Abdelrazak Younes

Hellmut Weber wrote:

Hi
my master document contains ca. 20 child documents.

* Is there a quick and simple way (preferably with key combinations) to 
open a child document?

I know to do it using the menu File Open and then the file open dialog.
But that's a pain when I already have the name of the file in the 
include button.


I seems that generating the pdf causes lyx to open all the child files. 
There are tabs now for all of these.

That's for the moment my 'quickest and dirty' procedure (alt+v f ;-)


A quicker procedure: launch the Insert Reference dialog 'Alt-i r'

I agree we should have an LFUN and a menu item for that.


* With more than 4-5 child documents the tabs list is more and more 
'expensive' to be used )ctrl+up / ctrl+down to switch on to the left / 
right).


Ideally I would like to have a key combination to pop up a list of all 
include files in which I can navigate with the up and down keys.

Shall I file an enhancement request?


'Alt-v up-arrow' will put you at the end of the open document list.


Looking at all this new features and functionality I'm very lucka with 
lyx ;-)


lucka?

Abdel.



Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Georg Baum
Steve Litt wrote:

 On Tuesday 19 June 2007 05:12, Georg Baum wrote:
 
 It is supposed to work if you convert the bind file from latin1 to utf8
 (is this mentioned in the release notes?). All non-ASCII stuff in config
 files has to be encoded in utf8.
 If converting to utf8 does not help then it is a bug.
 
 Does this include the copyright symbol and the trademark symbol?

I have no idea what symbols can be entered through self-insert. What I know
is that all symbols that can be entered need to be given in utf8 encoding,
and that all symbols that can be entered in 1.4 are supposed to work in
1.5, too. If you have a symbol that works in 1.4 but does not work in 1.5
then this is a bug.


Georg



Re: Can't enter extra whitespace when editing.

2007-06-19 Thread Jean-Marc Lasgouttes
 Darren == Darren Freeman [EMAIL PROTECTED] writes:

Darren My point was that in the past you could enter them and they
Darren would be removed when you moved away, but now you can't enter
Darren them at all. I vote for the older behaviour which feels more
Darren natural.

Are you sure? What version was that? I doubt that it has changed
recently. 

JMarc


Re: Using svn-2007-06-17, continued

2007-06-19 Thread Jean-Marc Lasgouttes
 Hellmut == Hellmut Weber [EMAIL PROTECTED] writes:

Hellmut Hi my master document contains ca. 20 child documents.

Hellmut * Is there a quick and simple way (preferably with key
Hellmut combinations) to open a child document? I know to do it using
Hellmut the menu File Open and then the file open dialog. But
Hellmut that's a pain when I already have the name of the file in the
Hellmut include button.

There is a load button in the child document dialog. However, this
dialog cannot be opened by keyboard.

JMarc


Re: Using svn-2007-06-17, continued

2007-06-19 Thread Sven Schreiber
Abdelrazak Younes schrieb:
 Hellmut Weber wrote:

 
 Looking at all this new features and functionality I'm very lucka with
 lyx ;-)
 
 lucka?
 

On the German qwertz keyboard z and y are swapped and so y is right below a.

Not that you really wanted to know...


Using svn-2007-06-17, continued 2

2007-06-19 Thread Hellmut Weber

Hi
in my master document I have introduced 'Appendix' before a Section.
all the rest of the document is framed by a red box showing the title 
'appendix'. Nice idea, i like it.


Opening the outline pane the beginning of the appendix is not shown. 
Feature?
I would like to see above the first section of the appendix e.g. a thin 
line. But that's of minor importance.


More important for me is the fact that in the pdf version of my document 
I can't find any hint to the appendix. Did I miss something?


Greetings

Hellmut

--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



Re: Using svn-2007-06-17

2007-06-19 Thread Hellmut Weber

Hi Abdel,

* When I'm in a child document which contains some '\section', 
'\subsection' command I can get back to the main document via the menu:

 navigate master document.
When the cild document does NOT contain any structure, the item 
'master document' is not shown in the 'navigate' menu. Feature?

I would like to see it nevertheless.


It works here on my local tree. So if it not fixed on your svn version, 
it will be as I commit my changes.

I can wait for that ;-)

...
I'm very intereseted to see here key combinations for the five buttons 
in the basis line.


Us (the developers) too. We had a lenghty discussion about which 
shortcut to use but we never reach an agreement. But we should.

Note that you can customize any shortcut you like in your bind file.

I know how to bind something to a key combination.
Where do i find a list of the LFUNS to be used.
I'd like to experiment a bit with possible shortcuts.


In another message I stated already that I also would like to have a 
possibility to switch the focus from the text pane to the outline pane.


Put an enhancement request on bugzilla please.

Done, Bug #3895





I can open the outline pane using the menu
 Document Outline
But in this case the focus remains where it was in the text pane.
And then to do something there I need the mouse anyway :-)


This is a bug -- Bugzilla please.

Done, Bug #3894

Hellmut

--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



Re: Using svn-2007-06-17, continued

2007-06-19 Thread Hellmut Weber

There is a load button in the child document dialog. However, this
dialog cannot be opened by keyboard.

Which reloads the file if it is already open. Right?

Hellmut

--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



Re: problems to show figures in LyX

2007-06-19 Thread Paul A. Rubin

Fernando,

Fernando Roig wrote:


LyX displays the ppm file but not properly. I mean, it appears an image 
on the screen, but this image has less to do with the original ps 
figure. Therefore, ImageMagick is converting the ps file into a ppm file 
containing some strange information that LyX is able to display but GIMP 
is not able to open (plugin cannot open image)


This may have to do with a character encoding issue; see below.



If I run

convert figure1.ps figure1.jpg

and then

convert figure1.jpg figure1.ppm

then both jpg and ppm files are correctly converted (I am able to open 
them in GIMP) and LyX displays the ppm file without problems. However, 
if I try to load the jpg file in LyX then I get the Error converting to 
loadable format. So I believe that the problem is not with Ghostscript.


I'm not sure if this is consistent with an encoding problem, but possibly.



Here is the debug log (it is quite a lot of stuff):


[...]


[graphics::CacheItem::Impl::convertToDisplayFormat]
Attempting to convert image file: C:/TEST/figure1.ps
with displayed filename: C:\TEST\figure1.ps
Recognised Fileformat: eps

The file contains eps format data.


I think this is ok, particularly if your figure1.ps is actually an EPS file.


The image loader can load the following directly:
bmp, pbm, pgm, png, ppm, xbm, xpm,
Of these, LyX recognises the following formats:
bmp, pbm, pgm, png, ppm, xbm, xpm

Unable to convert from eps to bmp
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Converting it to png format.


The next error (which occurs twice) suggests the encoding problem.


Error returned from iconv
EILSEQ An invalid multibyte sequence has been encountered in the input.
When converting from UTF-8 to UCS-4LE.


If I understand this correctly (character encodings are not my forte), 
the script is trying to convert the EPS file from UTF-8 to UCS-4LE (a 
new one to me) and is choking on something.


[...]


Conversion script:
--
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os, shutil, sys, locale

def unlinkNoThrow(file):
  ''' remove a file, do not throw if an error occurs '''
  try:
os.unlink(file)
  except:
pass

def utf8ToDefaultEncoding(file):
  ''' if possible, convert to the default encoding '''
  try:
language, output_encoding = locale.getdefaultlocale()
if output_encoding == None:
  output_encoding = 'latin1'
return unicode(file, 'utf8').encode(output_encoding)
  except:
return file




I didn't see where the utf8ToDefaultEncoding function was called in the 
conversion script, but maybe I'm just being stupid today.  Do you know 
what character encoding was used to create figure1.ps?  Also, what 
locale is set for you machine?  I'm not sure what Python's 
getdefaultlocale() function looks at; it might be the LANG environment 
variable, but that's just a guess.


We may need a developer to help out with this (someone familiar with the 
operation of the graphics conversion script).


/Paul



Re: Using svn-2007-06-17, continued

2007-06-19 Thread Abdelrazak Younes

Hellmut Weber wrote:

There is a load button in the child document dialog. However, this
dialog cannot be opened by keyboard.

Which reloads the file if it is already open. Right?


It will ask if you want to switch or reload I think.

Abdel.



Re: Using svn-2007-06-17

2007-06-19 Thread Abdelrazak Younes

Hellmut Weber wrote:
I'm very intereseted to see here key combinations for the five 
buttons in the basis line.


Us (the developers) too. We had a lenghty discussion about which 
shortcut to use but we never reach an agreement. But we should.

Note that you can customize any shortcut you like in your bind file.

I know how to bind something to a key combination.
Where do i find a list of the LFUNS to be used.
I'd like to experiment a bit with possible shortcuts.


I am afraid the only reliable source is the source code itself 
(src/LyXAction.cpp line 84).






In another message I stated already that I also would like to have a 
possibility to switch the focus from the text pane to the outline pane.


Put an enhancement request on bugzilla please.

Done, Bug #3895





I can open the outline pane using the menu
 Document Outline
But in this case the focus remains where it was in the text pane.
And then to do something there I need the mouse anyway :-)


This is a bug -- Bugzilla please.

Done, Bug #3894


Thanks.

Abdel.



Re: Using svn-2007-06-17, continued

2007-06-19 Thread younes . a
Quoting Hellmut Weber [EMAIL PROTECTED]:

 Hi Abdel,

  * Is there a quick and simple way (preferably with key combinations)
  to open a child document?
  I know to do it using the menu File Open and then the file open
  dialog.
  But that's a pain when I already have the name of the file in the
  include button.
 
  I seems that generating the pdf causes lyx to open all the child
  files. There are tabs now for all of these.
  That's for the moment my 'quickest and dirty' procedure (alt+v f ;-)
 
  A quicker procedure: launch the Insert Reference dialog 'Alt-i r'
 This I don't understand ,-(

Ah sorry. 'Alt-i r' is the shortcut for the Insert-Cross Reference menu
action. If you do that, all child documents will automatically open.

Abdel.


kit

2007-06-19 Thread Wojtek Michalik
unsubscribe
-- 
Wojtek Michalik [EMAIL PROTECTED]



Re: Using svn-2007-06-17, continued

2007-06-19 Thread christian . ridderstrom

On Tue, 19 Jun 2007, Sven Schreiber wrote:


Abdelrazak Younes schrieb:

Hellmut Weber wrote:





Looking at all this new features and functionality I'm very lucka with
lyx ;-)


lucka?



On the German qwertz keyboard z and y are swapped and so y is right below a.

Not that you really wanted to know...


I thought it was German slang...

/C

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

Re: problems to show figures in LyX

2007-06-19 Thread Fernando Roig

Paul:


We may need a developer to help out with this (someone familiar with
the operation of the graphics conversion script).


I sent the message to the developers list and Enrico Forestieri  
answered that the problem occurs because LyX's temp directory contains  
non ASCII characters (the problem of using a portuguese version of  
XP...).


Enrico provided a patch to fix the bug, but this seems to useful only  
for developers. I simply created a directory


C:\Documents and Settings\Fernando\Local configurations\Temp\

and set this to the Temporary directory in Tools  Preferences   
Paths. Now is working fine.


Thanks for the help.

Fernando







Re: Showing graphics in LyX - Error converting to loadable format

2007-06-19 Thread Fernando Roig

Hi Mark:

I had a similar problem and in my case it was caused because the LyX's  
temporary directory set in Preferences  Paths contained non ascii  
characters (e.g. accented vogals). I  created and empty directory  
without accented characters and set it to be the temp dir.


Fernando




LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Dominik Waßenhoven

Hi all,

I just tested the Windows 1.5 RC1 version which is a great improvement 
IMHO -- thanks to all the developers.


I have one problem so far, regarding LyX Functions. I use functions like 
the following in my bind file:


\bind C-M-o   command-sequence self-insert ø

This worked in LyX 1.4.3 without problems. However, this does not work 
any longer, because of the non-standard letter ø. If I have, say, 
command-sequence self-insert test, everything works fine. Is this a 
known bug or a new feature?


Regards,
Dominik.-




Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Jürgen Spitzmüller
Dominik Waßenhoven wrote:
 \bind C-M-o   command-sequence self-insert ø

 This worked in LyX 1.4.3 without problems. However, this does not work
 any longer, because of the non-standard letter ø. If I have, say,
 command-sequence self-insert test, everything works fine. Is this a
 known bug or a new feature?

Try unicode insert 0x00f8.

Jürgen


Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote:
 Try unicode insert 0x00f8.

Rather unicode-insert 0x00f8.

Jürgen


Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Dominik Waßenhoven

Jürgen Spitzmüller schrieb am 19.06.2007:


Dominik Waßenhoven wrote:

\bind C-M-o   command-sequence self-insert ø

This worked in LyX 1.4.3 without problems. However, this does not work
any longer, because of the non-standard letter ø. If I have, say,
command-sequence self-insert test, everything works fine. Is this a
known bug or a new feature?



Try unicode insert 0x00f8.


I see, it's a new feature then. unicode-insert (with a hyphen) works 
perfectly.


Thanks,
Dominik.-




Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Jürgen Spitzmüller
Dominik Waßenhoven wrote:
 I see, it's a new feature then.

Yes. You can insert any unicode character this way, provided you know the code 
point.

Jürgen


Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Georg Baum
Dominik Waßenhoven wrote:

 Hi all,
 
 I just tested the Windows 1.5 RC1 version which is a great improvement
 IMHO -- thanks to all the developers.
 
 I have one problem so far, regarding LyX Functions. I use functions like
 the following in my bind file:
 
 \bind C-M-o   command-sequence self-insert ø
 
 This worked in LyX 1.4.3 without problems. However, this does not work
 any longer, because of the non-standard letter ø. If I have, say,
 command-sequence self-insert test, everything works fine. Is this a
 known bug or a new feature?

It is supposed to work if you convert the bind file from latin1 to utf8 (is
this mentioned in the release notes?). All non-ASCII stuff in config files
has to be encoded in utf8.
If converting to utf8 does not help then it is a bug.


Georg



Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Dominik Waßenhoven

Georg Baum schrieb am 19.06.2007:


It is supposed to work if you convert the bind file from latin1 to utf8 (is
this mentioned in the release notes?). All non-ASCII stuff in config files
has to be encoded in utf8.
If converting to utf8 does not help then it is a bug.


My file was in ansinew encoding, I suppose (I edited it with Microsoft's 
Notepad), but as Jürgen wrote, I can give the unicode code point so 
everything works fine now.


Thanks for your help,
Dominik.-




Using svn-2007-06-17

2007-06-19 Thread Hellmut Weber

Hi,
some more remarks from my use of the svn:

I'm working often with master documents which contain child documents.
(BTW I consider the lyx approach to require indentical preambles and 
nothing else a very clever idea. With a little bash script it is easy to 
guarantee this. I had to try some time ago to use master documents in 
word ,-(( )


* I open the parent document, generate the pdf.
The pdf is generated and kpdf pops up. OK
The included document are opened with separate tags. Fine
Include files which do not exist are ignored.
IIRC in former versions this led to an error message. Feature?
I prefer this behaviour.


* When I'm in a child document which contains some '\section', 
'\subsection' command I can get back to the main document via the menu:

navigate master document.
When the cild document does NOT contain any structure, the item 'master 
document' is not shown in the 'navigate' menu. Feature?

I would like to see it nevertheless.


* The 'move paragraph up' and '... down' functionality when working in 
the text pane is also great. (Clearly I prefer the use of the key 
combinations alt+up and alt+down ;-)


* It seems that manipulations in the outline pane can be done only using 
the mouse.
I'm very intereseted to see here key combinations for the five buttons 
in the basis line.
In another message I stated already that I also would like to have a 
possibility to switch the focus from the text pane to the outline pane.


I can open the outline pane using the menu
Document Outline
But in this case the focus remains where it was in the text pane.
And then to do something there I need the mouse anyway :-)



* Another remark of a perfectionist:
When in the germen dialog 'Unterdokument' there are two places with an 
underlined letter 'D': 'D_atei' and 'D_urchsuchen'. Which prevents 
opening the browse funtion.


I somebody tells me where to look I'm willing to give these details a look.


Greetings

Hellmut


--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



How to execute some command after an Update in LyX

2007-06-19 Thread Daniel Lohmann
Hi,

I am using LyX 1.4.x on Linux, with xpdf as PDF viewer. Currently I open
the viewer first by selecting View-PDF in LyX, after that I just
refresh the existing PDF by selecting View-Update-PDF.

What I would like to achieve is that the xpdf does an automatic refresh
whenever I update the PDF in the background. However, I am on a file
system where notifications do not work. So my plan is to use the xpdf
-server option:

I did set the following command line for Viewer under
Preferences-File Formats-PDF:

xpdf -remote lyxOutput

works great. However, how can I automatically execute an:

xpdf -remote lyxOutput -reload

after the View-Update-PDF (LFUN:buffer-update pdf2)?
There obviously is no command to specify that shall be executed after
the execution of LFUN:buffer-update.

Any idea?

Thanks!

Daniel



Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Steve Litt
On Tuesday 19 June 2007 05:12, Georg Baum wrote:

 It is supposed to work if you convert the bind file from latin1 to utf8 (is
 this mentioned in the release notes?). All non-ASCII stuff in config files
 has to be encoded in utf8.
 If converting to utf8 does not help then it is a bug.

Does this include the copyright symbol and the trademark symbol?

Thanks

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


Re: Can't enter extra whitespace when editing.

2007-06-19 Thread Helge Hafting

Darren Freeman wrote:

On Mon, 2007-06-18 at 12:40 +0200, Hellmut Weber wrote:
  
Hi Darren, don't you think that calling a lyx behaviour 'gestapo 
behaviour' is inappropriate?



I don't think I spent any more than three seconds on it and hadn't
considered it to be anything other than a little colourful. I was
referring to the heavy-handed policing which LyX is now applying to
extra white-space and I think I made my point.
  

Removing those spaces from the screen is on purpose.
LyX could let them through, but they will be stripped away
when printing anyway, so better let you see what you are
going to get anyway.

Helge Hafting


Using svn-2007-06-17, continued

2007-06-19 Thread Hellmut Weber

Hi
my master document contains ca. 20 child documents.

* Is there a quick and simple way (preferably with key combinations) to 
open a child document?

I know to do it using the menu File Open and then the file open dialog.
But that's a pain when I already have the name of the file in the 
include button.


I seems that generating the pdf causes lyx to open all the child files. 
There are tabs now for all of these.

That's for the moment my 'quickest and dirty' procedure (alt+v f ;-)

* With more than 4-5 child documents the tabs list is more and more 
'expensive' to be used )ctrl+up / ctrl+down to switch on to the left / 
right).


Ideally I would like to have a key combination to pop up a list of all 
include files in which I can navigate with the up and down keys.

Shall I file an enhancement request?


Looking at all this new features and functionality I'm very lucka with 
lyx ;-)


Greetings

Hellmut


--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



Re: Can't enter extra whitespace when editing.

2007-06-19 Thread Darren Freeman
On Tue, 2007-06-19 at 15:58 +0200, Helge Hafting wrote:
 Darren Freeman wrote:
  considered it to be anything other than a little colourful. I was
  referring to the heavy-handed policing which LyX is now applying to
  extra white-space and I think I made my point.

 Removing those spaces from the screen is on purpose.
 LyX could let them through, but they will be stripped away
 when printing anyway, so better let you see what you are
 going to get anyway.

My point was that in the past you could enter them and they would be
removed when you moved away, but now you can't enter them at all. I vote
for the older behaviour which feels more natural.

Have fun,
Darren



Re: Using svn-2007-06-17

2007-06-19 Thread Abdelrazak Younes

Hellmut Weber wrote:

Hi,
some more remarks from my use of the svn:


* When I'm in a child document which contains some '\section', 
'\subsection' command I can get back to the main document via the menu:

 navigate master document.
When the cild document does NOT contain any structure, the item 'master 
document' is not shown in the 'navigate' menu. Feature?

I would like to see it nevertheless.


It works here on my local tree. So if it not fixed on your svn version, 
it will be as I commit my changes.



* The 'move paragraph up' and '... down' functionality when working in 
the text pane is also great. (Clearly I prefer the use of the key 
combinations alt+up and alt+down ;-)


* It seems that manipulations in the outline pane can be done only using 
the mouse.
I'm very intereseted to see here key combinations for the five buttons 
in the basis line.


Us (the developers) too. We had a lenghty discussion about which 
shortcut to use but we never reach an agreement. But we should.

Note that you can customize any shortcut you like in your bind file.

In another message I stated already that I also would like to have a 
possibility to switch the focus from the text pane to the outline pane.


Put an enhancement request on bugzilla please.



I can open the outline pane using the menu
 Document Outline
But in this case the focus remains where it was in the text pane.
And then to do something there I need the mouse anyway :-)


This is a bug -- Bugzilla please.

Abdel.



Re: Using svn-2007-06-17, continued

2007-06-19 Thread Abdelrazak Younes

Hellmut Weber wrote:

Hi
my master document contains ca. 20 child documents.

* Is there a quick and simple way (preferably with key combinations) to 
open a child document?

I know to do it using the menu File Open and then the file open dialog.
But that's a pain when I already have the name of the file in the 
include button.


I seems that generating the pdf causes lyx to open all the child files. 
There are tabs now for all of these.

That's for the moment my 'quickest and dirty' procedure (alt+v f ;-)


A quicker procedure: launch the Insert Reference dialog 'Alt-i r'

I agree we should have an LFUN and a menu item for that.


* With more than 4-5 child documents the tabs list is more and more 
'expensive' to be used )ctrl+up / ctrl+down to switch on to the left / 
right).


Ideally I would like to have a key combination to pop up a list of all 
include files in which I can navigate with the up and down keys.

Shall I file an enhancement request?


'Alt-v up-arrow' will put you at the end of the open document list.


Looking at all this new features and functionality I'm very lucka with 
lyx ;-)


lucka?

Abdel.



Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Georg Baum
Steve Litt wrote:

 On Tuesday 19 June 2007 05:12, Georg Baum wrote:
 
 It is supposed to work if you convert the bind file from latin1 to utf8
 (is this mentioned in the release notes?). All non-ASCII stuff in config
 files has to be encoded in utf8.
 If converting to utf8 does not help then it is a bug.
 
 Does this include the copyright symbol and the trademark symbol?

I have no idea what symbols can be entered through self-insert. What I know
is that all symbols that can be entered need to be given in utf8 encoding,
and that all symbols that can be entered in 1.4 are supposed to work in
1.5, too. If you have a symbol that works in 1.4 but does not work in 1.5
then this is a bug.


Georg



Re: Can't enter extra whitespace when editing.

2007-06-19 Thread Jean-Marc Lasgouttes
 Darren == Darren Freeman [EMAIL PROTECTED] writes:

Darren My point was that in the past you could enter them and they
Darren would be removed when you moved away, but now you can't enter
Darren them at all. I vote for the older behaviour which feels more
Darren natural.

Are you sure? What version was that? I doubt that it has changed
recently. 

JMarc


Re: Using svn-2007-06-17, continued

2007-06-19 Thread Jean-Marc Lasgouttes
 Hellmut == Hellmut Weber [EMAIL PROTECTED] writes:

Hellmut Hi my master document contains ca. 20 child documents.

Hellmut * Is there a quick and simple way (preferably with key
Hellmut combinations) to open a child document? I know to do it using
Hellmut the menu File Open and then the file open dialog. But
Hellmut that's a pain when I already have the name of the file in the
Hellmut include button.

There is a load button in the child document dialog. However, this
dialog cannot be opened by keyboard.

JMarc


Re: Using svn-2007-06-17, continued

2007-06-19 Thread Sven Schreiber
Abdelrazak Younes schrieb:
 Hellmut Weber wrote:

 
 Looking at all this new features and functionality I'm very lucka with
 lyx ;-)
 
 lucka?
 

On the German qwertz keyboard z and y are swapped and so y is right below a.

Not that you really wanted to know...


Using svn-2007-06-17, continued 2

2007-06-19 Thread Hellmut Weber

Hi
in my master document I have introduced 'Appendix' before a Section.
all the rest of the document is framed by a red box showing the title 
'appendix'. Nice idea, i like it.


Opening the outline pane the beginning of the appendix is not shown. 
Feature?
I would like to see above the first section of the appendix e.g. a thin 
line. But that's of minor importance.


More important for me is the fact that in the pdf version of my document 
I can't find any hint to the appendix. Did I miss something?


Greetings

Hellmut

--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



Re: Using svn-2007-06-17

2007-06-19 Thread Hellmut Weber

Hi Abdel,

* When I'm in a child document which contains some '\section', 
'\subsection' command I can get back to the main document via the menu:

 navigate master document.
When the cild document does NOT contain any structure, the item 
'master document' is not shown in the 'navigate' menu. Feature?

I would like to see it nevertheless.


It works here on my local tree. So if it not fixed on your svn version, 
it will be as I commit my changes.

I can wait for that ;-)

...
I'm very intereseted to see here key combinations for the five buttons 
in the basis line.


Us (the developers) too. We had a lenghty discussion about which 
shortcut to use but we never reach an agreement. But we should.

Note that you can customize any shortcut you like in your bind file.

I know how to bind something to a key combination.
Where do i find a list of the LFUNS to be used.
I'd like to experiment a bit with possible shortcuts.


In another message I stated already that I also would like to have a 
possibility to switch the focus from the text pane to the outline pane.


Put an enhancement request on bugzilla please.

Done, Bug #3895





I can open the outline pane using the menu
 Document Outline
But in this case the focus remains where it was in the text pane.
And then to do something there I need the mouse anyway :-)


This is a bug -- Bugzilla please.

Done, Bug #3894

Hellmut

--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



Re: Using svn-2007-06-17, continued

2007-06-19 Thread Hellmut Weber

There is a load button in the child document dialog. However, this
dialog cannot be opened by keyboard.

Which reloads the file if it is already open. Right?

Hellmut

--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



Re: problems to show figures in LyX

2007-06-19 Thread Paul A. Rubin

Fernando,

Fernando Roig wrote:


LyX displays the ppm file but not properly. I mean, it appears an image 
on the screen, but this image has less to do with the original ps 
figure. Therefore, ImageMagick is converting the ps file into a ppm file 
containing some strange information that LyX is able to display but GIMP 
is not able to open (plugin cannot open image)


This may have to do with a character encoding issue; see below.



If I run

convert figure1.ps figure1.jpg

and then

convert figure1.jpg figure1.ppm

then both jpg and ppm files are correctly converted (I am able to open 
them in GIMP) and LyX displays the ppm file without problems. However, 
if I try to load the jpg file in LyX then I get the Error converting to 
loadable format. So I believe that the problem is not with Ghostscript.


I'm not sure if this is consistent with an encoding problem, but possibly.



Here is the debug log (it is quite a lot of stuff):


[...]


[graphics::CacheItem::Impl::convertToDisplayFormat]
Attempting to convert image file: C:/TEST/figure1.ps
with displayed filename: C:\TEST\figure1.ps
Recognised Fileformat: eps

The file contains eps format data.


I think this is ok, particularly if your figure1.ps is actually an EPS file.


The image loader can load the following directly:
bmp, pbm, pgm, png, ppm, xbm, xpm,
Of these, LyX recognises the following formats:
bmp, pbm, pgm, png, ppm, xbm, xpm

Unable to convert from eps to bmp
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Converting it to png format.


The next error (which occurs twice) suggests the encoding problem.


Error returned from iconv
EILSEQ An invalid multibyte sequence has been encountered in the input.
When converting from UTF-8 to UCS-4LE.


If I understand this correctly (character encodings are not my forte), 
the script is trying to convert the EPS file from UTF-8 to UCS-4LE (a 
new one to me) and is choking on something.


[...]


Conversion script:
--
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os, shutil, sys, locale

def unlinkNoThrow(file):
  ''' remove a file, do not throw if an error occurs '''
  try:
os.unlink(file)
  except:
pass

def utf8ToDefaultEncoding(file):
  ''' if possible, convert to the default encoding '''
  try:
language, output_encoding = locale.getdefaultlocale()
if output_encoding == None:
  output_encoding = 'latin1'
return unicode(file, 'utf8').encode(output_encoding)
  except:
return file




I didn't see where the utf8ToDefaultEncoding function was called in the 
conversion script, but maybe I'm just being stupid today.  Do you know 
what character encoding was used to create figure1.ps?  Also, what 
locale is set for you machine?  I'm not sure what Python's 
getdefaultlocale() function looks at; it might be the LANG environment 
variable, but that's just a guess.


We may need a developer to help out with this (someone familiar with the 
operation of the graphics conversion script).


/Paul



Re: Using svn-2007-06-17, continued

2007-06-19 Thread Abdelrazak Younes

Hellmut Weber wrote:

There is a load button in the child document dialog. However, this
dialog cannot be opened by keyboard.

Which reloads the file if it is already open. Right?


It will ask if you want to switch or reload I think.

Abdel.



Re: Using svn-2007-06-17

2007-06-19 Thread Abdelrazak Younes

Hellmut Weber wrote:
I'm very intereseted to see here key combinations for the five 
buttons in the basis line.


Us (the developers) too. We had a lenghty discussion about which 
shortcut to use but we never reach an agreement. But we should.

Note that you can customize any shortcut you like in your bind file.

I know how to bind something to a key combination.
Where do i find a list of the LFUNS to be used.
I'd like to experiment a bit with possible shortcuts.


I am afraid the only reliable source is the source code itself 
(src/LyXAction.cpp line 84).






In another message I stated already that I also would like to have a 
possibility to switch the focus from the text pane to the outline pane.


Put an enhancement request on bugzilla please.

Done, Bug #3895





I can open the outline pane using the menu
 Document Outline
But in this case the focus remains where it was in the text pane.
And then to do something there I need the mouse anyway :-)


This is a bug -- Bugzilla please.

Done, Bug #3894


Thanks.

Abdel.



Re: Using svn-2007-06-17, continued

2007-06-19 Thread younes . a
Quoting Hellmut Weber [EMAIL PROTECTED]:

 Hi Abdel,

  * Is there a quick and simple way (preferably with key combinations)
  to open a child document?
  I know to do it using the menu File Open and then the file open
  dialog.
  But that's a pain when I already have the name of the file in the
  include button.
 
  I seems that generating the pdf causes lyx to open all the child
  files. There are tabs now for all of these.
  That's for the moment my 'quickest and dirty' procedure (alt+v f ;-)
 
  A quicker procedure: launch the Insert Reference dialog 'Alt-i r'
 This I don't understand ,-(

Ah sorry. 'Alt-i r' is the shortcut for the Insert-Cross Reference menu
action. If you do that, all child documents will automatically open.

Abdel.


kit

2007-06-19 Thread Wojtek Michalik
unsubscribe
-- 
Wojtek Michalik [EMAIL PROTECTED]



Re: Using svn-2007-06-17, continued

2007-06-19 Thread christian . ridderstrom

On Tue, 19 Jun 2007, Sven Schreiber wrote:


Abdelrazak Younes schrieb:

Hellmut Weber wrote:





Looking at all this new features and functionality I'm very lucka with
lyx ;-)


lucka?



On the German qwertz keyboard z and y are swapped and so y is right below a.

Not that you really wanted to know...


I thought it was German slang...

/C

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

Re: problems to show figures in LyX

2007-06-19 Thread Fernando Roig

Paul:


We may need a developer to help out with this (someone familiar with
the operation of the graphics conversion script).


I sent the message to the developers list and Enrico Forestieri  
answered that the problem occurs because LyX's temp directory contains  
non ASCII characters (the problem of using a portuguese version of  
XP...).


Enrico provided a patch to fix the bug, but this seems to useful only  
for developers. I simply created a directory


C:\Documents and Settings\Fernando\Local configurations\Temp\

and set this to the Temporary directory in Tools  Preferences   
Paths. Now is working fine.


Thanks for the help.

Fernando







Re: Showing graphics in LyX - Error converting to loadable format

2007-06-19 Thread Fernando Roig

Hi Mark:

I had a similar problem and in my case it was caused because the LyX's  
temporary directory set in Preferences  Paths contained non ascii  
characters (e.g. accented vogals). I  created and empty directory  
without accented characters and set it to be the temp dir.


Fernando




LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Dominik Waßenhoven

Hi all,

I just tested the Windows 1.5 RC1 version which is a great improvement 
IMHO -- thanks to all the developers.


I have one problem so far, regarding LyX Functions. I use functions like 
the following in my bind file:


\bind "C-M-o"   "command-sequence self-insert ø"

This worked in LyX 1.4.3 without problems. However, this does not work 
any longer, because of the non-standard letter "ø". If I have, say, 
"command-sequence self-insert test", everything works fine. Is this a 
known bug or a new "feature"?


Regards,
Dominik.-




Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Jürgen Spitzmüller
Dominik Waßenhoven wrote:
> \bind "C-M-o"   "command-sequence self-insert ø"
>
> This worked in LyX 1.4.3 without problems. However, this does not work
> any longer, because of the non-standard letter "ø". If I have, say,
> "command-sequence self-insert test", everything works fine. Is this a
> known bug or a new "feature"?

Try "unicode insert 0x00f8".

Jürgen


Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote:
> Try "unicode insert 0x00f8".

Rather "unicode-insert 0x00f8".

Jürgen


Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Dominik Waßenhoven

Jürgen Spitzmüller schrieb am 19.06.2007:


Dominik Waßenhoven wrote:

\bind "C-M-o"   "command-sequence self-insert ø"

This worked in LyX 1.4.3 without problems. However, this does not work
any longer, because of the non-standard letter "ø". If I have, say,
"command-sequence self-insert test", everything works fine. Is this a
known bug or a new "feature"?



Try "unicode insert 0x00f8".


I see, it's a new feature then. "unicode-insert" (with a hyphen) works 
perfectly.


Thanks,
Dominik.-




Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Jürgen Spitzmüller
Dominik Waßenhoven wrote:
> I see, it's a new feature then.

Yes. You can insert any unicode character this way, provided you know the code 
point.

Jürgen


Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Georg Baum
Dominik Waßenhoven wrote:

> Hi all,
> 
> I just tested the Windows 1.5 RC1 version which is a great improvement
> IMHO -- thanks to all the developers.
> 
> I have one problem so far, regarding LyX Functions. I use functions like
> the following in my bind file:
> 
> \bind "C-M-o"   "command-sequence self-insert ø"
> 
> This worked in LyX 1.4.3 without problems. However, this does not work
> any longer, because of the non-standard letter "ø". If I have, say,
> "command-sequence self-insert test", everything works fine. Is this a
> known bug or a new "feature"?

It is supposed to work if you convert the bind file from latin1 to utf8 (is
this mentioned in the release notes?). All non-ASCII stuff in config files
has to be encoded in utf8.
If converting to utf8 does not help then it is a bug.


Georg



Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Dominik Waßenhoven

Georg Baum schrieb am 19.06.2007:


It is supposed to work if you convert the bind file from latin1 to utf8 (is
this mentioned in the release notes?). All non-ASCII stuff in config files
has to be encoded in utf8.
If converting to utf8 does not help then it is a bug.


My file was in ansinew encoding, I suppose (I edited it with Microsoft's 
Notepad), but as Jürgen wrote, I can give the unicode code point so 
everything works fine now.


Thanks for your help,
Dominik.-




Using svn-2007-06-17

2007-06-19 Thread Hellmut Weber

Hi,
some more remarks from my use of the svn:

I'm working often with master documents which contain child documents.
(BTW I consider the lyx approach to require indentical preambles and 
nothing else a very clever idea. With a little bash script it is easy to 
guarantee this. I had to try some time ago to use master documents in 
word ,-(( )


* I open the parent document, generate the pdf.
The pdf is generated and kpdf pops up. OK
The included document are opened with separate tags. Fine
Include files which do not exist are ignored.
IIRC in former versions this led to an error message. Feature?
I prefer this behaviour.


* When I'm in a child document which contains some '\section', 
'\subsection' command I can get back to the main document via the menu:

>>navigate >master document.
When the cild document does NOT contain any structure, the item 'master 
document' is not shown in the 'navigate' menu. Feature?

I would like to see it nevertheless.


* The 'move paragraph up' and '... down' functionality when working in 
the text pane is also great. (Clearly I prefer the use of the key 
combinations alt+up and alt+down ;-)


* It seems that manipulations in the outline pane can be done only using 
the mouse.
I'm very intereseted to see here key combinations for the five buttons 
in the basis line.
In another message I stated already that I also would like to have a 
possibility to switch the focus from the text pane to the outline pane.


I can open the outline pane using the menu
>>Document >Outline
But in this case the focus remains where it was in the text pane.
And then to do something there I need the mouse anyway :-)



* Another remark of a perfectionist:
When in the germen dialog 'Unterdokument' there are two places with an 
underlined letter 'D': 'D_atei' and 'D_urchsuchen'. Which prevents 
opening the browse funtion.


I somebody tells me where to look I'm willing to give these details a look.


Greetings

Hellmut


--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



How to execute some command after an Update in LyX

2007-06-19 Thread Daniel Lohmann
Hi,

I am using LyX 1.4.x on Linux, with xpdf as PDF viewer. Currently I open
the viewer first by selecting "View->PDF" in LyX, after that I just
refresh the existing PDF by selecting "View->Update->PDF".

What I would like to achieve is that the xpdf does an automatic refresh
whenever I update the PDF in the background. However, I am on a file
system where notifications do not work. So my plan is to use the xpdf
-server option:

I did set the following command line for "Viewer" under
Preferences->File Formats->PDF:

xpdf -remote lyxOutput

works great. However, how can I automatically execute an:

xpdf -remote lyxOutput -reload

after the "View->Update->PDF" (LFUN:buffer-update pdf2)?
There obviously is no command to specify that shall be executed after
the execution of LFUN:buffer-update.

Any idea?

Thanks!

Daniel



Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Steve Litt
On Tuesday 19 June 2007 05:12, Georg Baum wrote:

> It is supposed to work if you convert the bind file from latin1 to utf8 (is
> this mentioned in the release notes?). All non-ASCII stuff in config files
> has to be encoded in utf8.
> If converting to utf8 does not help then it is a bug.

Does this include the copyright symbol and the trademark symbol?

Thanks

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


Re: Can't enter extra whitespace when editing.

2007-06-19 Thread Helge Hafting

Darren Freeman wrote:

On Mon, 2007-06-18 at 12:40 +0200, Hellmut Weber wrote:
  
Hi Darren, don't you think that calling a lyx behaviour 'gestapo 
behaviour' is inappropriate?



I don't think I spent any more than three seconds on it and hadn't
considered it to be anything other than a little colourful. I was
referring to the heavy-handed policing which LyX is now applying to
extra white-space and I think I made my point.
  

Removing those spaces from the screen is on purpose.
LyX could let them through, but they will be stripped away
when printing anyway, so better let you see what you are
going to get anyway.

Helge Hafting


Using svn-2007-06-17, continued

2007-06-19 Thread Hellmut Weber

Hi
my master document contains ca. 20 child documents.

* Is there a quick and simple way (preferably with key combinations) to 
open a child document?

I know to do it using the menu >>File >Open and then the file open dialog.
But that's a pain when I already have the name of the file in the 
include button.


I seems that generating the pdf causes lyx to open all the child files. 
There are tabs now for all of these.

That's for the moment my 'quickest and dirty' procedure (alt+v f ;-)

* With more than 4-5 child documents the tabs list is more and more 
'expensive' to be used )ctrl+up / ctrl+down to switch on to the left / 
right).


Ideally I would like to have a key combination to pop up a list of all 
include files in which I can navigate with the up and down keys.

Shall I file an enhancement request?


Looking at all this new features and functionality I'm very lucka with 
lyx ;-)


Greetings

Hellmut


--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



Re: Can't enter extra whitespace when editing.

2007-06-19 Thread Darren Freeman
On Tue, 2007-06-19 at 15:58 +0200, Helge Hafting wrote:
> Darren Freeman wrote:
> > considered it to be anything other than a little colourful. I was
> > referring to the heavy-handed policing which LyX is now applying to
> > extra white-space and I think I made my point.
> >   
> Removing those spaces from the screen is on purpose.
> LyX could let them through, but they will be stripped away
> when printing anyway, so better let you see what you are
> going to get anyway.

My point was that in the past you could enter them and they would be
removed when you moved away, but now you can't enter them at all. I vote
for the older behaviour which feels more natural.

Have fun,
Darren



Re: Using svn-2007-06-17

2007-06-19 Thread Abdelrazak Younes

Hellmut Weber wrote:

Hi,
some more remarks from my use of the svn:


* When I'm in a child document which contains some '\section', 
'\subsection' command I can get back to the main document via the menu:

 >>navigate >master document.
When the cild document does NOT contain any structure, the item 'master 
document' is not shown in the 'navigate' menu. Feature?

I would like to see it nevertheless.


It works here on my local tree. So if it not fixed on your svn version, 
it will be as I commit my changes.



* The 'move paragraph up' and '... down' functionality when working in 
the text pane is also great. (Clearly I prefer the use of the key 
combinations alt+up and alt+down ;-)


* It seems that manipulations in the outline pane can be done only using 
the mouse.
I'm very intereseted to see here key combinations for the five buttons 
in the basis line.


Us (the developers) too. We had a lenghty discussion about which 
shortcut to use but we never reach an agreement. But we should.

Note that you can customize any shortcut you like in your bind file.

In another message I stated already that I also would like to have a 
possibility to switch the focus from the text pane to the outline pane.


Put an enhancement request on bugzilla please.



I can open the outline pane using the menu
 >>Document >Outline
But in this case the focus remains where it was in the text pane.
And then to do something there I need the mouse anyway :-)


This is a bug -->> Bugzilla please.

Abdel.



Re: Using svn-2007-06-17, continued

2007-06-19 Thread Abdelrazak Younes

Hellmut Weber wrote:

Hi
my master document contains ca. 20 child documents.

* Is there a quick and simple way (preferably with key combinations) to 
open a child document?

I know to do it using the menu >>File >Open and then the file open dialog.
But that's a pain when I already have the name of the file in the 
include button.


I seems that generating the pdf causes lyx to open all the child files. 
There are tabs now for all of these.

That's for the moment my 'quickest and dirty' procedure (alt+v f ;-)


A quicker procedure: launch the "Insert Reference" dialog 'Alt-i r'

I agree we should have an LFUN and a menu item for that.


* With more than 4-5 child documents the tabs list is more and more 
'expensive' to be used )ctrl+up / ctrl+down to switch on to the left / 
right).


Ideally I would like to have a key combination to pop up a list of all 
include files in which I can navigate with the up and down keys.

Shall I file an enhancement request?


'Alt-v up-arrow' will put you at the end of the open document list.


Looking at all this new features and functionality I'm very lucka with 
lyx ;-)


lucka?

Abdel.



Re: LFUNs in 1.5 RC1 (Windows)

2007-06-19 Thread Georg Baum
Steve Litt wrote:

> On Tuesday 19 June 2007 05:12, Georg Baum wrote:
> 
>> It is supposed to work if you convert the bind file from latin1 to utf8
>> (is this mentioned in the release notes?). All non-ASCII stuff in config
>> files has to be encoded in utf8.
>> If converting to utf8 does not help then it is a bug.
> 
> Does this include the copyright symbol and the trademark symbol?

I have no idea what symbols can be entered through self-insert. What I know
is that all symbols that can be entered need to be given in utf8 encoding,
and that all symbols that can be entered in 1.4 are supposed to work in
1.5, too. If you have a symbol that works in 1.4 but does not work in 1.5
then this is a bug.


Georg



Re: Can't enter extra whitespace when editing.

2007-06-19 Thread Jean-Marc Lasgouttes
> "Darren" == Darren Freeman <[EMAIL PROTECTED]> writes:

Darren> My point was that in the past you could enter them and they
Darren> would be removed when you moved away, but now you can't enter
Darren> them at all. I vote for the older behaviour which feels more
Darren> natural.

Are you sure? What version was that? I doubt that it has changed
recently. 

JMarc


Re: Using svn-2007-06-17, continued

2007-06-19 Thread Jean-Marc Lasgouttes
> "Hellmut" == Hellmut Weber <[EMAIL PROTECTED]> writes:

Hellmut> Hi my master document contains ca. 20 child documents.

Hellmut> * Is there a quick and simple way (preferably with key
Hellmut> combinations) to open a child document? I know to do it using
Hellmut> the menu >>File >Open and then the file open dialog. But
Hellmut> that's a pain when I already have the name of the file in the
Hellmut> include button.

There is a load button in the child document dialog. However, this
dialog cannot be opened by keyboard.

JMarc


Re: Using svn-2007-06-17, continued

2007-06-19 Thread Sven Schreiber
Abdelrazak Younes schrieb:
> Hellmut Weber wrote:

> 
>> Looking at all this new features and functionality I'm very lucka with
>> lyx ;-)
> 
> lucka?
> 

On the German qwertz keyboard z and y are swapped and so y is right below a.

Not that you really wanted to know...


Using svn-2007-06-17, continued 2

2007-06-19 Thread Hellmut Weber

Hi
in my master document I have introduced 'Appendix' before a Section.
all the rest of the document is framed by a red box showing the title 
'appendix'. Nice idea, i like it.


Opening the outline pane the beginning of the appendix is not shown. 
Feature?
I would like to see above the first section of the appendix e.g. a thin 
line. But that's of minor importance.


More important for me is the fact that in the pdf version of my document 
I can't find any hint to the appendix. Did I miss something?


Greetings

Hellmut

--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



Re: Using svn-2007-06-17

2007-06-19 Thread Hellmut Weber

Hi Abdel,

* When I'm in a child document which contains some '\section', 
'\subsection' command I can get back to the main document via the menu:

 >>navigate >master document.
When the cild document does NOT contain any structure, the item 
'master document' is not shown in the 'navigate' menu. Feature?

I would like to see it nevertheless.


It works here on my local tree. So if it not fixed on your svn version, 
it will be as I commit my changes.

I can wait for that ;-)

...
I'm very intereseted to see here key combinations for the five buttons 
in the basis line.


Us (the developers) too. We had a lenghty discussion about which 
shortcut to use but we never reach an agreement. But we should.

Note that you can customize any shortcut you like in your bind file.

I know how to bind something to a key combination.
Where do i find a list of the LFUNS to be used.
I'd like to experiment a bit with possible shortcuts.


In another message I stated already that I also would like to have a 
possibility to switch the focus from the text pane to the outline pane.


Put an enhancement request on bugzilla please.

Done, Bug #3895





I can open the outline pane using the menu
 >>Document >Outline
But in this case the focus remains where it was in the text pane.
And then to do something there I need the mouse anyway :-)


This is a bug -->> Bugzilla please.

Done, Bug #3894

Hellmut

--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



Re: Using svn-2007-06-17, continued

2007-06-19 Thread Hellmut Weber

There is a load button in the child document dialog. However, this
dialog cannot be opened by keyboard.

Which reloads the file if it is already open. Right?

Hellmut

--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



Re: problems to show figures in LyX

2007-06-19 Thread Paul A. Rubin

Fernando,

Fernando Roig wrote:


LyX displays the ppm file but not properly. I mean, it appears an image 
on the screen, but this image has less to do with the original ps 
figure. Therefore, ImageMagick is converting the ps file into a ppm file 
containing some strange information that LyX is able to display but GIMP 
is not able to open ("plugin cannot open image")


This may have to do with a character encoding issue; see below.



If I run

convert figure1.ps figure1.jpg

and then

convert figure1.jpg figure1.ppm

then both jpg and ppm files are correctly converted (I am able to open 
them in GIMP) and LyX displays the ppm file without problems. However, 
if I try to load the jpg file in LyX then I get the "Error converting to 
loadable format". So I believe that the problem is not with Ghostscript.


I'm not sure if this is consistent with an encoding problem, but possibly.



Here is the debug log (it is quite a lot of stuff):


[...]


[graphics::CacheItem::Impl::convertToDisplayFormat]
Attempting to convert image file: C:/TEST/figure1.ps
with displayed filename: C:\TEST\figure1.ps
Recognised Fileformat: eps

The file contains eps format data.


I think this is ok, particularly if your figure1.ps is actually an EPS file.


The image loader can load the following directly:
bmp, pbm, pgm, png, ppm, xbm, xpm,
Of these, LyX recognises the following formats:
bmp, pbm, pgm, png, ppm, xbm, xpm

Unable to convert from eps to bmp
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Converting it to png format.


The next error (which occurs twice) suggests the encoding problem.


Error returned from iconv
EILSEQ An invalid multibyte sequence has been encountered in the input.
When converting from UTF-8 to UCS-4LE.


If I understand this correctly (character encodings are not my forte), 
the script is trying to convert the EPS file from UTF-8 to UCS-4LE (a 
new one to me) and is choking on something.


[...]


Conversion script:
--
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os, shutil, sys, locale

def unlinkNoThrow(file):
  ''' remove a file, do not throw if an error occurs '''
  try:
os.unlink(file)
  except:
pass

def utf8ToDefaultEncoding(file):
  ''' if possible, convert to the default encoding '''
  try:
language, output_encoding = locale.getdefaultlocale()
if output_encoding == None:
  output_encoding = 'latin1'
return unicode(file, 'utf8').encode(output_encoding)
  except:
return file




I didn't see where the utf8ToDefaultEncoding function was called in the 
conversion script, but maybe I'm just being stupid today.  Do you know 
what character encoding was used to create figure1.ps?  Also, what 
locale is set for you machine?  I'm not sure what Python's 
getdefaultlocale() function looks at; it might be the LANG environment 
variable, but that's just a guess.


We may need a developer to help out with this (someone familiar with the 
operation of the graphics conversion script).


/Paul



Re: Using svn-2007-06-17, continued

2007-06-19 Thread Abdelrazak Younes

Hellmut Weber wrote:

There is a load button in the child document dialog. However, this
dialog cannot be opened by keyboard.

Which reloads the file if it is already open. Right?


It will ask if you want to switch or reload I think.

Abdel.



Re: Using svn-2007-06-17

2007-06-19 Thread Abdelrazak Younes

Hellmut Weber wrote:
I'm very intereseted to see here key combinations for the five 
buttons in the basis line.


Us (the developers) too. We had a lenghty discussion about which 
shortcut to use but we never reach an agreement. But we should.

Note that you can customize any shortcut you like in your bind file.

I know how to bind something to a key combination.
Where do i find a list of the LFUNS to be used.
I'd like to experiment a bit with possible shortcuts.


I am afraid the only reliable source is the source code itself 
(src/LyXAction.cpp line 84).






In another message I stated already that I also would like to have a 
possibility to switch the focus from the text pane to the outline pane.


Put an enhancement request on bugzilla please.

Done, Bug #3895





I can open the outline pane using the menu
 >>Document >Outline
But in this case the focus remains where it was in the text pane.
And then to do something there I need the mouse anyway :-)


This is a bug -->> Bugzilla please.

Done, Bug #3894


Thanks.

Abdel.



Re: Using svn-2007-06-17, continued

2007-06-19 Thread younes . a
Quoting Hellmut Weber <[EMAIL PROTECTED]>:

> Hi Abdel,
>
> >> * Is there a quick and simple way (preferably with key combinations)
> >> to open a child document?
> >> I know to do it using the menu >>File >Open and then the file open
> >> dialog.
> >> But that's a pain when I already have the name of the file in the
> >> include button.
> >>
> >> I seems that generating the pdf causes lyx to open all the child
> >> files. There are tabs now for all of these.
> >> That's for the moment my 'quickest and dirty' procedure (alt+v f ;-)
> >
> > A quicker procedure: launch the "Insert Reference" dialog 'Alt-i r'
> This I don't understand ,-(

Ah sorry. 'Alt-i r' is the shortcut for the "Insert->Cross Reference" menu
action. If you do that, all child documents will automatically open.

Abdel.


kit

2007-06-19 Thread Wojtek Michalik
unsubscribe
-- 
Wojtek Michalik <[EMAIL PROTECTED]>



Re: Using svn-2007-06-17, continued

2007-06-19 Thread christian . ridderstrom

On Tue, 19 Jun 2007, Sven Schreiber wrote:


Abdelrazak Younes schrieb:

Hellmut Weber wrote:





Looking at all this new features and functionality I'm very lucka with
lyx ;-)


lucka?



On the German qwertz keyboard z and y are swapped and so y is right below a.

Not that you really wanted to know...


I thought it was German slang...

/C

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

Re: problems to show figures in LyX

2007-06-19 Thread Fernando Roig

Paul:


We may need a developer to help out with this (someone familiar with
the operation of the graphics conversion script).


I sent the message to the developers list and Enrico Forestieri  
answered that the problem occurs because LyX's temp directory contains  
non ASCII characters (the problem of using a portuguese version of  
XP...).


Enrico provided a patch to fix the bug, but this seems to useful only  
for developers. I simply created a directory


C:\Documents and Settings\Fernando\Local configurations\Temp\

and set this to the Temporary directory in Tools > Preferences >  
Paths. Now is working fine.


Thanks for the help.

Fernando







Re: Showing graphics in LyX - Error converting to loadable format

2007-06-19 Thread Fernando Roig

Hi Mark:

I had a similar problem and in my case it was caused because the LyX's  
temporary directory set in Preferences > Paths contained non ascii  
characters (e.g. accented vogals). I  created and empty directory  
without accented characters and set it to be the temp dir.


Fernando