Re: Strange biblatex error on a different machine

2012-01-05 Thread Dominik Waßenhoven
.:|Peter Baumgartner|:. wrote:

 File: authoryear-icomp.cbx 2011/06/08 v1.5 biblatex citation style

Compare the version number of this file. Is it the same? If not, you
have different versions of biblatex.

Regards,
Dominik.-
-- 



Re: Slow scrolling

2012-01-05 Thread Olivier Ripoll

On 04.01.2012 22:39, Jerry wrote:


On Jan 4, 2012, at 8:46 AM, James Sutherland wrote:

[...]


FWIW, I have been noticing this issue on my Mac as well with LyX 2.0.2
(binary installation) and Mac OSX 10.7.2. It has occurred for me with
small documents as well as large ones. Mouse-scrolling lags substantially.

I just tried it on another Mac system running OSX 10.6.8 and LyX
2.0.0. No problems there. I then updated to LyX 2.0.2 on 10.6.8 and
there were no problems with that either.

So it appears that this issue is unique to LyX on OSX 10.7.x?


No—I'm on OS X 10.6.8.
Jerry


James




If the issue I reported is the same (it seems the definition of slow 
scrolling can cover different behaviours), it happens also on Windows 7.


BR,

O.



Re: Slow scrolling

2012-01-05 Thread Olivier Ripoll

On 04.01.2012 10:03, Olivier Ripoll wrote:

On 03.01.2012 21:36, Stephan Witt wrote:

Am 03.01.2012 um 17:15 schrieb Olivier Ripoll:

[...]


Hi,

I'm almost sure it depends on Qt-Version.


IIRC, I checked the file properties of QtCore4 and QtGUI4 dlls and both
files were version 4.7.4.0 in LyX 2.0.1 and 2.0.2.
But perhaps my memories are confused there.


I double-checked, same Qt version is used on the 2.0.1 and 2.0.2 windows 
binaries.


[...]


To check if this is the culprit one may add the following line to your
preferences file:
\force_paint_single_char false
On a Mac this is the file ~/Library/Application
Support/LyX-2.0/preferences.
(Broken cursor placement for long lines should be one consequence.)


Will try this when I have some time.


I did not see significant changes with or without this line.

[...]

Best regards,

O.



Help User Guide set as Document Defaults

2012-01-05 Thread nomnex
Beginner mistake...

I am currently reading the User guide (document class: book
(KOMA-Script)). By chance it is read only.

I clicked Save as Document Defaults by mistake.

Now, how do I get back to the Default document? Can re-generated a
Default document by removing a file (e.g. lyxrc.defaults) in ~./lxy
or in /usr/share/? Else?

Setting the class back to Article and Save as Document Default
won't help with the document settings of the User Guide. And, of
course, I don't remember the initial Default settings.

Thanks in advance.

-- 
nomnex nom...@gmail.com
Freenode: nomnex
Registered Linux user #505281. Be counted at: http://linuxcounter.net


Re: Qt: was Slow scrolling

2012-01-05 Thread Olivier Ripoll

On 05.01.2012 05:16, Jerry wrote:

Do the developers monitor this list? Or does someone need to file a bug report 
for the slow scrolling problem?

Jerry


Yes, they are looking at it. If you look at the thread, you'll see 
several names of LyX developers (not exhautively: Pavel Sanda, Richard 
Heck, Jean-Marc Lasgouttes, André Pönitz)


As for the bug report, I ave the impression there are 2 bugs reported in 
the thread under the slow scrolling umbrella:


- high CPU usage and jumpy scrolling (versus smooth), as you reported in 
your message, which is what I observe also. Seems unrealetd to the OS, 
as you are on OS X, I'm on Windows 7. This bug may also be multiple 
ones, as you mention 2.0.1 also has issues while it is flawless for me 
(I do not think it is Qt-version related)


- time needed to reach the bottom of a document, which seems to be 
discussed in the context of OS X only. This may be Qt-version related.


I think Pavel Sanda listed also one recent change related to X11 (Linux 
and cousins).


Best regards,

O.



Re: Slow scrolling

2012-01-05 Thread Jerry

On Jan 5, 2012, at 1:26 AM, Olivier Ripoll wrote:

 On 04.01.2012 22:39, Jerry wrote:
 
 On Jan 4, 2012, at 8:46 AM, James Sutherland wrote:
 [...]
 
 FWIW, I have been noticing this issue on my Mac as well with LyX 2.0.2
 (binary installation) and Mac OSX 10.7.2. It has occurred for me with
 small documents as well as large ones. Mouse-scrolling lags substantially.
 
 I just tried it on another Mac system running OSX 10.6.8 and LyX
 2.0.0. No problems there. I then updated to LyX 2.0.2 on 10.6.8 and
 there were no problems with that either.
 
 So it appears that this issue is unique to LyX on OSX 10.7.x?
 
 No—I'm on OS X 10.6.8.
 Jerry
 
 James
 
 
 If the issue I reported is the same (it seems the definition of slow 
 scrolling can cover different behaviours), it happens also on Windows 7.
 
 BR,
 
 O.
 
Interesting. So now we have reports of slow scrolling problems on multiple 
versions of OS X and multiple versions of Windows, where the problem got worse 
with 2.0.2 relative to 2.0.1.

I don't think we have any reports of problems on Linux yet. Don't some versions 
of Linux use Qt as their native GUI engine? If so, maybe somehow there is less 
chance to mess things up since it would then be the native engine for those 
systems.

For those who have reported no problems I would respectfully submit that your 
perception is different than that of others and/or your tolerance for interface 
idiosyncrasies is better or you have lower expectations. For anyone who cares 
to compare and who doesn't think their (OS X) box has a problem, simply open 
any PDF into Preview or Skim or any significantly long text file in TextEdit 
and flick through it with the two-finger trackpad swipe or whatever equivalent 
you have with a mouse, then try the same with a LyX file. You should see a 
world of difference. Personally, the two-finger swipe to scroll is totally 
addictive and so effective that often I use that as a shortcut to go all the 
way to the top or bottom of a document instead of using other means.

Jerry

Re: Qt: was Slow scrolling

2012-01-05 Thread Jean-Marc Lasgouttes

Le 05/01/2012 02:40, André Pönitz a écrit :

The main performance problems I have seesn so far are due to an abuse of
the toolkit, not caused _by_ the toolkit (except for the remote raster
painter problem perhaps). Just start at RowPainter::paintChars() and
walk down through all the mess _before_ it actually hits Qt's drawText()
It is slow? You bet.


The question is whether the Xorg takes 90% cpu complaints will go away 
with Abdel new patch. If they don't, it means that there are some slow 
operations on the Qt side that we do not understand (i.e. things we 
should avoid to use). I am not sure that our code in 
rowPainter::paintChars is so costly (except the fact that all 
metrics/painting should be done word-wise) I do not remember it showing 
so high in profiler. I'll have to check again some day.


JMarc


Re: Slow scrolling

2012-01-05 Thread Jerry

On Jan 4, 2012, at 9:13 PM, Jerry wrote:

 
 On Jan 4, 2012, at 3:03 PM, Stephan Witt wrote:
 
 I've prepared a LyX-package with Qt-4.8.0 and the upload is here:
 
 http://dl.dropbox.com/u/27842660/LyX-2.1.0svn%2Bqt4.8.0-cocoa.dmg
 http://dl.dropbox.com/u/27842660/LyX-2.1.0svn%2Bqt4.8.0-cocoa.dmg.sig
 
 The Qt 4.8.0 ChangeLog contains this:
 
 Qt for Mac OS X
 ---
 - Alien widgets is now used by default for Qt/Cocoa on Mac OS X. 
 - Qt/Cocoa on Mac OS X has now full support for the raster paint engine.
 - QApplication has now implemented macEventFilter for Qt/Cocoa
 - HarfBuzz can now be used as an optional text layout engine on Mac OS X. 
 [QTBUG-17728]
 - Qt shows some love to OS X Lion (10.7).
 
 Perhaps this is an improvement on Lion? Please, can someone give it a try?
 
 Stephan
 
 10.6.8, 2.1svn
 Scrolling User's Guide takes 13 seconds.
 No misplaced cursor.
 
 This scroll rate is between what I measured for 2.0.0 and 2.0.2 using the 
 special preference file line.
 
 Subjectively, for me, the somewhat slower difference for 2.1svn puts the 
 experience back into painful regime, but it is still better than 2.0.2 
 without the special preference file line.
 
 Jerry

After adding \force_paint_single_char false to the preferences file for 2.1svn:
Scrolling User's Guide takes 9 seconds on first pass, 7-8 seconds for 
subsequent passes.
The cursor is misplaced on long line of m's.

Another artifact with these conditions appears: when click-dragging over text 
to select it, _some_ letters at and to the right of the position of the cursor 
will jump a few pixels left and right as the cursor passes over them. Doing 
this over a long line of m's is especially fun. It's as though characters under 
the selection color are being drawn with a different metric than the ones that 
have not been selected yet.

Normal scrolling (trackpad, thumb bar) is noticeably better than any of the 
other results I have reported. But the cursor problem is present now.

Jerry

Re: Slow scrolling

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/01/12 09:41, Jerry wrote:
 
 On Jan 5, 2012, at 1:26 AM, Olivier Ripoll wrote:
 
 On 04.01.2012 22:39, Jerry wrote:
 
 On Jan 4, 2012, at 8:46 AM, James Sutherland wrote:
 [...]
 
 FWIW, I have been noticing this issue on my Mac as well with
 LyX 2.0.2 (binary installation) and Mac OSX 10.7.2. It has
 occurred for me with small documents as well as large ones.
 Mouse-scrolling lags substantially.
 
 I just tried it on another Mac system running OSX 10.6.8 and
 LyX 2.0.0. No problems there. I then updated to LyX 2.0.2 on
 10.6.8 and there were no problems with that either.
 
 So it appears that this issue is unique to LyX on OSX
 10.7.x?
 
 No—I'm on OS X 10.6.8. Jerry
 
 James
 
 
 If the issue I reported is the same (it seems the definition of
 slow scrolling can cover different behaviours), it happens also
 on Windows 7.
 
 BR,
 
 O.
 
 Interesting. So now we have reports of slow scrolling problems on
 multiple versions of OS X and multiple versions of Windows, where
 the problem got worse with 2.0.2 relative to 2.0.1.
 
 I don't think we have any reports of problems on Linux yet. Don't
 some versions of Linux use Qt as their native GUI engine? If so,
 maybe somehow there is less chance to mess things up since it would
 then be the native engine for those systems.

Slow scrolling and skipping are subjective - maybe the problem does
exist under Linux, b ut the Linux users are more tolerant :-) (I use
Linux...)

But seriously: to really evaluate this, one would possibly need screen
recordings of the actual scrolling and one person can evaluate them.
Or installation of the OS in a virtual machine, and then checking (but
this would not be representative for all systems).

So I guess a howto to record the actual scrolling on screen and a
website where this can be posted, should help.

Cheers,

Rainer

 
 For those who have reported no problems I would respectfully
 submit that your perception is different than that of others and/or
 your tolerance for interface idiosyncrasies is better or you have
 lower expectations. For anyone who cares to compare and who doesn't
 think their (OS X) box has a problem, simply open any PDF into
 Preview or Skim or any significantly long text file in TextEdit and
 flick through it with the two-finger trackpad swipe or whatever
 equivalent you have with a mouse, then try the same with a LyX
 file. You should see a world of difference. Personally, the
 two-finger swipe to scroll is totally addictive and so effective
 that often I use that as a shortcut to go all the way to the top or
 bottom of a document instead of using other means.
 
 Jerry


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8FacwACgkQoYgNqgF2egq75ACfbq59XXDko3cKWkkeeVwaCF1h
IGYAn0+5y2QgpoSnRYD7cCS6AplIxIbA
=R2cU
-END PGP SIGNATURE-


Re: Slow scrolling

2012-01-05 Thread Stephan Witt
Am 05.01.2012 um 09:41 schrieb Jerry:

 
 On Jan 5, 2012, at 1:26 AM, Olivier Ripoll wrote:
 
 On 04.01.2012 22:39, Jerry wrote:
 
 On Jan 4, 2012, at 8:46 AM, James Sutherland wrote:
 [...]
 
 FWIW, I have been noticing this issue on my Mac as well with LyX 2.0.2
 (binary installation) and Mac OSX 10.7.2. It has occurred for me with
 small documents as well as large ones. Mouse-scrolling lags substantially.
 
 I just tried it on another Mac system running OSX 10.6.8 and LyX
 2.0.0. No problems there. I then updated to LyX 2.0.2 on 10.6.8 and
 there were no problems with that either.
 
 So it appears that this issue is unique to LyX on OSX 10.7.x?
 
 No—I'm on OS X 10.6.8.
 Jerry
 
 James
 
 
 If the issue I reported is the same (it seems the definition of slow 
 scrolling can cover different behaviours), it happens also on Windows 7.
 
 BR,
 
 O.
 
 Interesting. So now we have reports of slow scrolling problems on multiple 
 versions of OS X and multiple versions of Windows, where the problem got 
 worse with 2.0.2 relative to 2.0.1.

Interesting indeed.

 I don't think we have any reports of problems on Linux yet. Don't some 
 versions of Linux use Qt as their native GUI engine? If so, maybe somehow 
 there is less chance to mess things up since it would then be the native 
 engine for those systems.

It's LyX using Qt as its 'native GUI engine' - on all platforms. Of course the 
layers below Qt is different.

 For those who have reported no problems I would respectfully submit that 
 your perception is different than that of others and/or your tolerance for 
 interface idiosyncrasies is better or you have lower expectations. For anyone 
 who cares to compare and who doesn't think their (OS X) box has a problem, 
 simply open any PDF into Preview or Skim or any significantly long text file 
 in TextEdit and flick through it with the two-finger trackpad swipe or 
 whatever equivalent you have with a mouse, then try the same with a LyX file. 
 You should see a world of difference. Personally, the two-finger swipe to 
 scroll is totally addictive and so effective that often I use that as a 
 shortcut to go all the way to the top or bottom of a document instead of 
 using other means.

I tried this now:
* start LyX 2.0.2 from distribution disk image
* open LyX users guide (english) and maximize it
* start PDF view (in Preview)
* scroll from top to bottom with two-finger swipe in Preview - at least 12..14 
seconds
* scroll from top to bottom with two-finger swipe in LyX window - 8..10 seconds

I have to admit it looks more smooth with Preview. But I'd rate LyX feeling not 
that bad.

Stephan

PS. Numbers are taken by looking at the clock at the right corner of the menu 
bar.
Perhaps not that exact...

Re: Slow scrolling

2012-01-05 Thread Stephan Witt
Am 05.01.2012 um 10:02 schrieb Jerry:

 
 On Jan 4, 2012, at 9:13 PM, Jerry wrote:
 
 
 On Jan 4, 2012, at 3:03 PM, Stephan Witt wrote:
 
 I've prepared a LyX-package with Qt-4.8.0 and the upload is here:
 
 http://dl.dropbox.com/u/27842660/LyX-2.1.0svn%2Bqt4.8.0-cocoa.dmg
 http://dl.dropbox.com/u/27842660/LyX-2.1.0svn%2Bqt4.8.0-cocoa.dmg.sig
 
 The Qt 4.8.0 ChangeLog contains this:
 
 Qt for Mac OS X
 ---
 - Alien widgets is now used by default for Qt/Cocoa on Mac OS X. 
 - Qt/Cocoa on Mac OS X has now full support for the raster paint engine.
 - QApplication has now implemented macEventFilter for Qt/Cocoa
 - HarfBuzz can now be used as an optional text layout engine on Mac OS X. 
 [QTBUG-17728]
 - Qt shows some love to OS X Lion (10.7).
 
 Perhaps this is an improvement on Lion? Please, can someone give it a try?
 
 Stephan
 
 10.6.8, 2.1svn
 Scrolling User's Guide takes 13 seconds.
 No misplaced cursor.
 
 This scroll rate is between what I measured for 2.0.0 and 2.0.2 using the 
 special preference file line.
 
 Subjectively, for me, the somewhat slower difference for 2.1svn puts the 
 experience back into painful regime, but it is still better than 2.0.2 
 without the special preference file line.
 
 Jerry
 
 After adding \force_paint_single_char false to the preferences file for 
 2.1svn:
 Scrolling User's Guide takes 9 seconds on first pass, 7-8 seconds for 
 subsequent passes.
 The cursor is misplaced on long line of m's.
 
 Another artifact with these conditions appears: when click-dragging over text 
 to select it, _some_ letters at and to the right of the position of the 
 cursor will jump a few pixels left and right as the cursor passes over them. 
 Doing this over a long line of m's is especially fun. It's as though 
 characters under the selection color are being drawn with a different metric 
 than the ones that have not been selected yet.
 
 Normal scrolling (trackpad, thumb bar) is noticeably better than any of the 
 other results I have reported. But the cursor problem is present now.

Thank you for doing this job. So, at least there is some hope :)

Stephan

Re: LyX 2.0.2 [Texlive2007] on Fedora 15 [en_US] - Problem with Japanese output

2012-01-05 Thread nomnex
 On Fri, 30 Dec 2011 23:06:17 +
 José Matos jama...@lyx.org wrote:
 
 # rpm -i
 # 
 http://jnovy.fedorapeople.org/texlive/packages.f15/texlive-release.noarch.rpm
 
 The advantage of this approach is that it gives the most recent
 texlive version.

Sorry for replying late. I am currently reading the LyX guides,
before to start a LaTex book. LyX is a great piece of software, and I
like it.

I am now aware that my question is not LyX related, but some
Fedora experienced users on the list might want to help with the issue:

I am a Fedora desktop user. The Fedora repository Texlive version is old
(2007), and some parts (modules?) are missing due to license problems,
among which: Japanese input CJK, some fonts, etc.
Installing LyX from the repository install Texlive2007 as one of the
dependencies and everything works out of the box.

I am left with 2 choices:

a. As suggested by José Mato, installing the Fedora testing Texlive2011
version.

b. Installing the Texlive2011 ISO.

Method A would be the easiest, with my level of knowledge. However
reading the Fedora forum, it is not recommended [It is not a statement,
this is what I read, see url below] (I am not positive if the CJK module
(or Ptex ?) - and some Japanese document classes - are include with
this version. CJK is what I need most).

http://forums.fedoraforum.org/showthread.php?t=262135mode=linear
http://fedoraproject.org/wiki/Features/TeXLive

Method B might be optimal, but I am worry about dependencies
problems. The proper installation itself. And the latex front-end
software settings (I have installed LyX and Texmaker).

I could use some advice.
Thanks in advance.

-- 
nomnex nom...@gmail.com
Freenode: nomnex
Registered Linux user #505281. Be counted at: http://linuxcounter.net


Attach lyx file to pdf - question and feature idea

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I just discovered the attachfile2 LaTeX package, which enables me to
attach files to a pdf file, and it works very nicely:

1) add
   \usepackage{attachfile2}
to the preamble

2) add
   \attachfile{/path/to/document.lyx}
into an ERT box in the document where the link to the attachment
should be located

That's it.

Now I have two questions concerning my manual implementation:

1) is there a variable which I could use so that the ERT always works?
I know about \jobname{}, bu it seems this does not get expanded in the
command \attachfile{}?

2) is there a way that I can put \attachfile{} in the preamble, so
that it gets automatically added as an additional last page of the
document? In this way, I could easily control it without changing
anything in the actual content of the document.

Thinking ahead: I think it would be nice, tio have the option to do
this automatically, i.e. have a checkbox in the document settings,
(under pdf) that the .lyx file or the lyx archive could be added as an
attachment.

Even one step further, additional export formats could also be
attached, e.g. a .rtf version for editing?

Any suggestions / comments?

Cheers,

Rainer


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8FdBIACgkQoYgNqgF2egpVMACdGVjuNzdwbc8XiEaBeDYzy9Ob
rNAAnA3prPMWT9OvKUE77JVVo3hx+kvU
=7jkU
-END PGP SIGNATURE-


Re: Qt: was Slow scrolling

2012-01-05 Thread Jean-Marc Lasgouttes

Le 05/01/2012 09:40, Olivier Ripoll a écrit :

On 05.01.2012 05:16, Jerry wrote:

Do the developers monitor this list? Or does someone need to file a
bug report for the slow scrolling problem?

Jerry


Yes, they are looking at it. If you look at the thread, you'll see
several names of LyX developers (not exhautively: Pavel Sanda, Richard
Heck, Jean-Marc Lasgouttes, André Pönitz)


The problem is that we have yet to pinpoint the root cause. I see two 
major points:


- we have experimental code that seems to improve the situation on 
linux. We'll probably learn more once it is deployed to many people. I 
am not sure there are plans to port to branch yet. This may be useful 
for cases where different people see different speeds.


- there is a part of the code that we know should be rewritten: to 
compute metrics (size of words), we work at glyph level, while painting 
is done at word level. This is what creates display problems with OS X 
when the is kerning/ligatures effects. The paint single char pref that 
has been discussed makes everything work at glyph level, which is 
correct but slow. What we need is to do all at word level (except for 
RtL text, which is a different story). Unfortunately, this part of code 
is a can of worm and nobody dares touching it.


JMarc


Re: Qt: was Slow scrolling

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/01/12 10:58, Jean-Marc Lasgouttes wrote:
 Le 05/01/2012 09:40, Olivier Ripoll a écrit :
 On 05.01.2012 05:16, Jerry wrote:
 Do the developers monitor this list? Or does someone need to
 file a bug report for the slow scrolling problem?
 
 Jerry
 
 Yes, they are looking at it. If you look at the thread, you'll
 see several names of LyX developers (not exhautively: Pavel
 Sanda, Richard Heck, Jean-Marc Lasgouttes, André Pönitz)
 
 The problem is that we have yet to pinpoint the root cause. I see
 two major points:
 
 - we have experimental code that seems to improve the situation on 
 linux. We'll probably learn more once it is deployed to many
 people. I am not sure there are plans to port to branch yet. This
 may be useful for cases where different people see different
 speeds.
 
 - there is a part of the code that we know should be rewritten: to 
 compute metrics (size of words), we work at glyph level, while
 painting is done at word level. This is what creates display
 problems with OS X when the is kerning/ligatures effects. The
 paint single char pref that has been discussed makes everything
 work at glyph level, which is correct but slow. What we need is to
 do all at word level (except for RtL text, which is a different
 story). Unfortunately, this part of code is a can of worm and
 nobody dares touching it.

If I look at the number of emails flying around on this issue, one
should look at options how this can be fixed. I must admit I do not
know the inner workings of LyX, so I might be completely off.

I nobody dares to touch this code (I would guess because of time
requirements once one starts fixing it), one could try to raise funds
to pay somebody (preferably somebody who knows LyX's inner workings)
to address this issue - it seems to be on many peoples mind.

Cheers,

Rainer


 
 JMarc


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8FeLcACgkQoYgNqgF2egqWJwCfaqqoP9Rxzs8J1ZK8tgqLCW5M
Y4UAn0u47pmpgS3fYORvbt+J0u3AWTS3
=N3hn
-END PGP SIGNATURE-


Re: Strange biblatex error on a different machine

2012-01-05 Thread Peter Baumgartner
Dominik,

You were right! The installation of my coauthor is using an older version,
which was uploaded manually to a place in the tex path which has precedence
over the new installation.

I'm a little embarrassed as I should have checked the versions first of all.
Thanks for your help!

Peter 




mathrm

2012-01-05 Thread Wolfgang Engelmann
I use 
\mathrm{K}^{+}
to get an upright K^+ (K-Ion) (and other items such as units)
and guess the following message on the terminal from which I start lyx has 
to do with it: 

[Unknown [sub [mathrm [char E mathalpha]] [char e mathalpha][char x 
mathalpha]]]

Do I have to include some package or use another method?

Wolfgang


Re: mathrm

2012-01-05 Thread Julio Rojas
But it compiles? I have tested it out of the box and it does so.
-
Julio Rojas
jcredbe...@gmail.com


On Thu, Jan 5, 2012 at 11:39 AM, Wolfgang Engelmann 
engelm...@uni-tuebingen.de wrote:

 I use
 \mathrm{K}^{+}
 to get an upright K^+ (K-Ion) (and other items such as units)
 and guess the following message on the terminal from which I start lyx has
 to do with it:

 [Unknown [sub [mathrm [char E mathalpha]] [char e mathalpha][char x
 mathalpha]]]

 Do I have to include some package or use another method?

 Wolfgang



Re: Qt: was Slow scrolling

2012-01-05 Thread Murat Yildizoglu
I would like to see the problem on other computers. In my case (I hope that
you have received the video I have sent), I would rather prefer the
developers to work on more fundamental issues, I am happy with what I have
(I can only state on my case before seing the videos of others) ;-)

Murat

2012/1/5 Rainer M Krug r.m.k...@gmail.com

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 05/01/12 10:58, Jean-Marc Lasgouttes wrote:
  Le 05/01/2012 09:40, Olivier Ripoll a écrit :
  On 05.01.2012 05:16, Jerry wrote:
  Do the developers monitor this list? Or does someone need to
  file a bug report for the slow scrolling problem?
 
  Jerry
 
  Yes, they are looking at it. If you look at the thread, you'll
  see several names of LyX developers (not exhautively: Pavel
  Sanda, Richard Heck, Jean-Marc Lasgouttes, André Pönitz)
 
  The problem is that we have yet to pinpoint the root cause. I see
  two major points:
 
  - we have experimental code that seems to improve the situation on
  linux. We'll probably learn more once it is deployed to many
  people. I am not sure there are plans to port to branch yet. This
  may be useful for cases where different people see different
  speeds.
 
  - there is a part of the code that we know should be rewritten: to
  compute metrics (size of words), we work at glyph level, while
  painting is done at word level. This is what creates display
  problems with OS X when the is kerning/ligatures effects. The
  paint single char pref that has been discussed makes everything
  work at glyph level, which is correct but slow. What we need is to
  do all at word level (except for RtL text, which is a different
  story). Unfortunately, this part of code is a can of worm and
  nobody dares touching it.

 If I look at the number of emails flying around on this issue, one
 should look at options how this can be fixed. I must admit I do not
 know the inner workings of LyX, so I might be completely off.

 I nobody dares to touch this code (I would guess because of time
 requirements once one starts fixing it), one could try to raise funds
 to pay somebody (preferably somebody who knows LyX's inner workings)
 to address this issue - it seems to be on many peoples mind.

 Cheers,

 Rainer


 
  JMarc


 - --
 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
 Biology, UCT), Dipl. Phys. (Germany)

 Centre of Excellence for Invasion Biology
 Stellenbosch University
 South Africa

 Tel :   +33 - (0)9 53 10 27 44
 Cell:   +33 - (0)6 85 62 59 98
 Fax :   +33 - (0)9 58 10 27 44

 Fax (D):+49 - (0)3 21 21 25 22 44

 email:  rai...@krugs.de

 Skype:  RMkrug
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.11 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk8FeLcACgkQoYgNqgF2egqWJwCfaqqoP9Rxzs8J1ZK8tgqLCW5M
 Y4UAn0u47pmpgS3fYORvbt+J0u3AWTS3
 =N3hn
 -END PGP SIGNATURE-




-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

Bureau : F-331

yi...@u-bordeaux4.fr

http://yildizoglu.info

http://www.twitter.com/yildizoglu


Re: Scrolling video

2012-01-05 Thread Liviu Andronic
Murat,


On Thu, Jan 5, 2012 at 12:06 PM, Murat Yildizoglu myi...@gmail.com wrote:
 First with the touchpad, then with the right bar. Under Osx Lion (see my 
 previous mail for my config).

Please do not send such big attachments on public mailing lists. Best
is to use a hosting service such as MediaFire [1] or tinyupload [2]
and to paste the link in your e-mail.

Regards
Liviu

[1] http://alternativeto.net/software/mediafire/
[2] http://tinyupload.com/


Report (was: Qt: was Slow scrolling)

2012-01-05 Thread Pavel Sanda
Jean-Marc Lasgouttes wrote:
 Le 05/01/2012 02:40, André Pönitz a écrit :
 The main performance problems I have seesn so far are due to an abuse of
 the toolkit, not caused _by_ the toolkit (except for the remote raster

please... there were many cases we have no clue where the problem is.
it can be lyx, qt, X, card drivers. to summarize the whole thing by saying
that all is abuse of qt smells like problem with your affiliation ;)

 painter problem perhaps). Just start at RowPainter::paintChars() and
 walk down through all the mess _before_ it actually hits Qt's drawText()
 It is slow? You bet.

 The question is whether the Xorg takes 90% cpu complaints will go away 
 with Abdel new patch. 

thats question indeed. this bug is mysterious and i can reproduce it unreliably
on one older notebook i'm sitting now on (ATI radeon, linux closed source 
drivers)
in ordinary case:
\use_qimage false scrolling has 72% X - 22% lyx (of cpu time)
\use_qimage true scrolling has 48% - 48% and feels somewhat slower

which unfortunately shows that speed up might happen on nvidia while it
slow down the thing at other system.

secondly - up to now i was able to trigger the case of 97% X - 2% lyx only with 
\use_qimage false. in this case lyx is almost unusable and it seems i need
already running another lyx instance in system to trigger it.

whats really funny is that it seems that i'm able to repeat it quite more 
reliably
in screnario first instance is \use_qimage true and second false.
sometimes it doesn't happen in this scenario and it never happened (up to now)
vice versa in false-true scenario. dont ask me why this should matter...

so there is some chance the worst case scenario is gone in trunk.

pavel


Re: Report (was: Qt: was Slow scrolling)

2012-01-05 Thread Pavel Sanda
Pavel Sanda wrote:
 whats really funny is that it seems that i'm able to repeat it quite more 
 reliably
 in screnario first instance is \use_qimage true and second false.
 sometimes it doesn't happen in this scenario and it never happened (up to now)
 vice versa in false-true scenario. dont ask me why this should matter...

and whats interesting its buffer dependent as someone reported few days later.
the worst scenario happens with user guide, when i open introduction, this 
issue disappears.

so i switched off change tracking in user guide and the slowness is gone :)
when i switch on tracking on introduction the problem is not there.
hmm maybe the problem is with the content of user guide? no, when i delete all 
except first two pages and accept CT (only text no special insets remain) the 
problem is still there.

it also doesn't explain why such CT thing appears only in random instances of 
lyx.

and i did not take any substances today...
pavel


Re: mathrm

2012-01-05 Thread Guenter Milde
On 2012-01-05, Wolfgang Engelmann wrote:
 I use 
 \mathrm{K}^{+}
 to get an upright K^+ (K-Ion) (and other items such as units)
 and guess the following message on the terminal from which I start lyx has 
 to do with it: 

 [Unknown [sub [mathrm [char E mathalpha]] [char e mathalpha][char x 
 mathalpha]]]

 Do I have to include some package or use another method?

I cannot reproduce this. No messages appear on my terminal (LyX svn on
Debian Linux started from x-terminal emulator).

Do the messages appear:
* when typing the commands in a math-box
* when selecting the text \mathrm{K}^{+} and converting to math with
  Ctrl-m
* when opening a file containing this math, or
* when compiling?

Maybe a minimal example file could help further (e.g. to see whether it
is not *missing* a package but *using* a package that creates the
problem).

Günter




Re: Image width in figure floats

2012-01-05 Thread Guenter Milde
On 2012-01-03, Maria Gouskova wrote:
 On Tue, Jan 3, 2012 at 3:29 AM, Guenter Milde mi...@users.sf.net wrote:
 On 2012-01-02, Maria Gouskova wrote:

...

 I specify the width of the image in the figure properties as 100% of
 line width. Typesetting via pdflatex works fine, with the image scaled
 appropriately. Typesetting via ps2pdf or dvipdfm does not scale the
 image--it spills over onto the margin and off the page.

 I cannot reproduce here. Tried inserting a scaled one-page PDF document
 (without wrapping in a float). The output of
 PDF (pdflatex),
 PDF (ps2pdf), and
 PDF (dvipdfm)
 is exactly the same (with proper scaling of the indcluded graphic).

 Okay. Are your OS and LyX version the same?

I don't think so (Debian Linux, lyx home-compiled from SVN (trunk)).

In order to investigate and find the source of the problem, we need a
minimal working example: the smallest and least complex LyX (+image) file
that shows the problem at your site.

(Preparing such a minimal example sometimes already leads to a solution :-)

Günter



How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I have written this small module to make attaching files to a pdf
easier. It works nice, unless I have e.g. a _ in the file name, as
then the text in the inset is escaped, i.e. newfile_1.lyx becomes
newfile\_.lyx, which is obviously not found. Is there a way of
treating the test in the inset as is and not escape it?

For illustration, I attach the module and two lyx files - newfile1.lyx
works, newfile_1.lyx does not.

Thanks,

Rainer

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8Fr/cACgkQoYgNqgF2egpyrwCeMbs4HQPPwM3X/WRTpvorSmI/
6S8AnAieoxm1mtRCg93lyaTPg0j75rf5
=8RYB
-END PGP SIGNATURE-
#\DeclareLyXModule{Attach}
#DescriptionBegin
#Attaches a file into the pdf file
#DescriptionEnd
# Author: Rainer M Krug rai...@krugs.de

Format 11

InsetLayout attachFile
LyXType   custom
LabelString   attach
LatexType command
LatexName myOwnAttachFile
Decorationclassic
LabelFont
  Color   green
  Sizesmalll
EndFont
OptionalArgs  1
MultiPar  false
Preamble
\RequirePackage{attachfile2}
\newcommand{\myOwnAttachFile}[1]{\attachfile{#1}}
EndPreamble
End


newfile1.lyx
Description: application/lyx


newfile_1.lyx
Description: application/lyx


attach.module.sig
Description: Binary data


newfile1.lyx.sig
Description: Binary data


newfile_1.lyx.sig
Description: Binary data


Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Rainer M Krug wrote:
 I have written this small module to make attaching files to a pdf
 easier. It works nice, unless I have e.g. a _ in the file name, as
 then the text in the inset is escaped, i.e. newfile_1.lyx becomes
 newfile\_.lyx, which is obviously not found. Is there a way of
 treating the test in the inset as is and not escape it?

PassThru 1

However, I do not think such a module is the way to go. I would rather try 
with an external material template. Have a look at the pdfpages template for a 
model (in the file external_templates).

Jürgen


Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/01/12 15:22, Jürgen Spitzmüller wrote:
 Rainer M Krug wrote:
 I have written this small module to make attaching files to a
 pdf easier. It works nice, unless I have e.g. a _ in the file
 name, as then the text in the inset is escaped, i.e.
 newfile_1.lyx becomes newfile\_.lyx, which is obviously not
 found. Is there a way of treating the test in the inset as is
 and not escape it?
 
 PassThru 1

Thanks - that's working now.

One more question: how can I deal with a function which requires two
paramerer, e.g. \textattachfile{FILENAME.EXT}{THE TEXT OF THE LINK} in
a module? Is there anywhere an example on how an inset with two
parametern looks?

 
 However, I do not think such a module is the way to go. I would
 rather try with an external material template. Have a look at the
 pdfpages template for a model (in the file external_templates).

Makes sense - never thought about that.
I'll look into that and think about it. For the moment, I am going to
use the module.

Do I assume correctly, that these files I specify as external content
will be included in the lyx archive? That would be a great advantage.

Rainer

 
 Jürgen


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8FuiEACgkQoYgNqgF2egrVEgCbBsJGKPbF5mH2MG5kVHg7pORx
28sAnAuKQ0qveH5SAwOzkGFz9HzYD8IE
=1TNH
-END PGP SIGNATURE-


Re: Help User Guide set as Document Defaults

2012-01-05 Thread Richard Heck

On 01/05/2012 03:34 AM, nomnex wrote:

Beginner mistake...

I am currently reading the User guide (document class: book
(KOMA-Script)). By chance it is read only.

I clicked Save as Document Defaults by mistake.

Now, how do I get back to the Default document? Can re-generated a
Default document by removing a file (e.g. lyxrc.defaults) in ~./lxy
or in /usr/share/? Else?
The default document is just a LyX file. It's saved at 
templates/default.lyx, in your user directory. Just delete it.


Richard



Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/01/12 15:56, Rainer M Krug wrote:
 On 05/01/12 15:22, Jürgen Spitzmüller wrote:
 Rainer M Krug wrote:
 I have written this small module to make attaching files to a 
 pdf easier. It works nice, unless I have e.g. a _ in the file 
 name, as then the text in the inset is escaped, i.e. 
 newfile_1.lyx becomes newfile\_.lyx, which is obviously not 
 found. Is there a way of treating the test in the inset as
 is and not escape it?
 
 PassThru 1
 
 Thanks - that's working now.
 
 One more question: how can I deal with a function which requires
 two paramerer, e.g. \textattachfile{FILENAME.EXT}{THE TEXT OF THE
 LINK} in a module? Is there anywhere an example on how an inset
 with two parametern looks?
 
 
 However, I do not think such a module is the way to go. I would 
 rather try with an external material template. Have a look at
 the pdfpages template for a model (in the file
 external_templates).
 
 Makes sense - never thought about that. I'll look into that and
 think about it. For the moment, I am going to use the module.
 
 Do I assume correctly, that these files I specify as external
 content will be included in the lyx archive? That would be a great
 advantage.

Just a quick follow up - to add a template, do I have to add it to the
existing external_templates file, or can I have the additional
template in my .lyx folder (which subfolder?)?

Rainer

 
 Rainer
 
 
 Jürgen
 
 

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8FvWUACgkQoYgNqgF2egr+ZgCeKb25x/kj8vUAJIoJOPbYpipk
FKMAnRUpTXdvhBhA+1JsCPOuVX6ymdyG
=Zg+6
-END PGP SIGNATURE-


Re: LyX 2.0.2 [Texlive2007] on Fedora 15 [en_US] - Problem with Japanese output

2012-01-05 Thread Richard Heck

On 01/05/2012 04:33 AM, nomnex wrote:

On Fri, 30 Dec 2011 23:06:17 +
José Matosjama...@lyx.org  wrote:

# rpm -i
# http://jnovy.fedorapeople.org/texlive/packages.f15/texlive-release.noarch.rpm

The advantage of this approach is that it gives the most recent
texlive version.

Sorry for replying late. I am currently reading the LyX guides,
before to start a LaTex book. LyX is a great piece of software, and I
like it.

I am now aware that my question is not LyX related, but some
Fedora experienced users on the list might want to help with the issue:

I am a Fedora desktop user. The Fedora repository Texlive version is old
(2007), and some parts (modules?) are missing due to license problems,
among which: Japanese input CJK, some fonts, etc.
Installing LyX from the repository install Texlive2007 as one of the
dependencies and everything works out of the box.

I am left with 2 choices:

a. As suggested by José Mato, installing the Fedora testing Texlive2011
version.

b. Installing the Texlive2011 ISO.

Method A would be the easiest, with my level of knowledge. However
reading the Fedora forum, it is not recommended [It is not a statement,
this is what I read, see url below] (I am not positive if the CJK module
(or Ptex ?) - and some Japanese document classes - are include with
this version. CJK is what I need most).

http://forums.fedoraforum.org/showthread.php?t=262135mode=linear
http://fedoraproject.org/wiki/Features/TeXLive

Method B might be optimal, but I am worry about dependencies
problems. The proper installation itself. And the latex front-end
software settings (I have installed LyX and Texmaker).
I've been using the TeXLive 2011 packages from jnovy for some time now. 
There were some weird font problems for a bit, but those got solved a 
while ago. I've seen none of the issues that people were complaining 
about on the forum (which was several months ago). The one issue you 
will have to deal with is that this repo splits everything up into about 
a zillion different packages. So, as you work, you will need to install 
packages as you need them. But this is easy, because you can just do 
things like:

# sudo yum install 'tex(prettyref.sty)'
and that will install texlive-prettyref-2011. I.e., you don't have to 
know the package name, just the file name.


Richard



Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Rainer M Krug wrote:
 One more question: how can I deal with a function which requires two
 paramerer, e.g. \textattachfile{FILENAME.EXT}{THE TEXT OF THE LINK} in
 a module? Is there anywhere an example on how an inset with two
 parametern looks?

In Paragraphy styles (not in layouts I think), you can specify RequiredArgs. 
See Customization.lyx.

A workaround in layouts is to simply insert }{ as a separator. This is a bad 
hack, though.

  However, I do not think such a module is the way to go. I would
  rather try with an external material template. Have a look at the
  pdfpages template for a model (in the file external_templates).
 
 Makes sense - never thought about that.
 I'll look into that and think about it. For the moment, I am going to
 use the module.
 
 Do I assume correctly, that these files I specify as external content
 will be included in the lyx archive? That would be a great advantage.

They should. And there are many more advantages. The file paths are known to 
LyX, you can have preview, you can easily define options, etc.

Jürgen


Re: Qt: was Slow scrolling

2012-01-05 Thread Richard Heck

On 01/05/2012 05:17 AM, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/01/12 10:58, Jean-Marc Lasgouttes wrote:

Le 05/01/2012 09:40, Olivier Ripoll a écrit :

On 05.01.2012 05:16, Jerry wrote:

Do the developers monitor this list? Or does someone need to
file a bug report for the slow scrolling problem?

Jerry

Yes, they are looking at it. If you look at the thread, you'll
see several names of LyX developers (not exhautively: Pavel
Sanda, Richard Heck, Jean-Marc Lasgouttes, André Pönitz)

The problem is that we have yet to pinpoint the root cause. I see
two major points:

- we have experimental code that seems to improve the situation on
linux. We'll probably learn more once it is deployed to many
people. I am not sure there are plans to port to branch yet. This
may be useful for cases where different people see different
speeds.

- there is a part of the code that we know should be rewritten: to
compute metrics (size of words), we work at glyph level, while
painting is done at word level. This is what creates display
problems with OS X when the is kerning/ligatures effects. The
paint single char pref that has been discussed makes everything
work at glyph level, which is correct but slow. What we need is to
do all at word level (except for RtL text, which is a different
story). Unfortunately, this part of code is a can of worm and
nobody dares touching it.

If I look at the number of emails flying around on this issue, one
should look at options how this can be fixed. I must admit I do not
know the inner workings of LyX, so I might be completely off.

I nobody dares to touch this code (I would guess because of time
requirements once one starts fixing it), one could try to raise funds
to pay somebody (preferably somebody who knows LyX's inner workings)
to address this issue - it seems to be on many peoples mind.
I think it's more of an issue of pure fear. That code is extremely 
complicated, and it would be very easy to mess things up worse instead 
of fixing them. So, speaking as branch maintainer, that kind of re-write 
definitely isn't happening in the 2.0.x series.


Richard



Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Rainer M Krug wrote:
 Just a quick follow up - to add a template, do I have to add it to the
 existing external_templates file, or can I have the additional
 template in my .lyx folder (which subfolder?)?

external_templates itself states it clearly:

# This file contains the definitions of those External Templates that are
# part of the official LyX distribution.
# Feel free to create your own External Templates, storing them in
# .lyx/external_templates

Alas, LyX does only read one of those files (the personal one, if there is 
one), so you have to copy the whole external_templates file to your .lyx 
folder and _add_ yours there. At least that's how it used to be. Maybe the 
situation has improved.

Jürgen


Which fonts to match LyX output in other applications?

2012-01-05 Thread Matthias Hunstig
Hello,

I need to create some figures for inclusion in a LyX document, using different 
Windows applications (mainly Corel Draw and MATLAB). I want the font in these 
figures to be as close as possible to the fonts in my main document. How can I 
find out which fonts I should use to match
a) the normal text font
b) the math mode font (for both latin and greek letters)
and where do I find the appropriote font files?

The current document in question uses book (koma-script) with all font settings 
on standard.

I know there is PSfrag and I have experimented with it, but I do not really 
want to use it. I would prefer a simpler (and less perfectly looking) solution.

Thanks

Matthias



Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/01/12 16:16, Jürgen Spitzmüller wrote:
 Rainer M Krug wrote:
 Just a quick follow up - to add a template, do I have to add it 
 to the existing external_templates file, or can I have the 
 additional template in my .lyx folder (which subfolder?)?
 
 external_templates itself states it clearly:
 
 # This file contains the definitions of those External Templates 
 that are # part of the official LyX distribution. # Feel free to 
 create your own External Templates, storing them in # 
 .lyx/external_templates
 
 Alas, LyX does only read one of those files (the personal one, if 
 there is one), so you have to copy the whole external_templates 
 file to your .lyx folder and _add_ yours there. At least that's
 how it used to be. Maybe the situation has improved.

Thanks a lot for the info - I should have looked closer.
But it would be nice, if both would be read and just added to each other.

Cheers,

Rainer

 
 Jürgen


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8Fz4cACgkQoYgNqgF2egoPVgCghKcR2evoplz7URftrCXc0buq
q24An0KqPl09V6Y97KghYNUexVVjeYL3
=9Yem
-END PGP SIGNATURE-


Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/01/12 16:12, Jürgen Spitzmüller wrote:
 Rainer M Krug wrote:
 One more question: how can I deal with a function which requires
 two paramerer, e.g. \textattachfile{FILENAME.EXT}{THE TEXT OF THE
 LINK} in a module? Is there anywhere an example on how an inset
 with two parametern looks?
 
 In Paragraphy styles (not in layouts I think), you can specify
 RequiredArgs. See Customization.lyx.

I'll do so - thanks.

 
 A workaround in layouts is to simply insert }{ as a separator. This
 is a bad hack, though.

Ugly hack - but an option.

 
 However, I do not think such a module is the way to go. I
 would rather try with an external material template. Have a
 look at the pdfpages template for a model (in the file
 external_templates).
 
 Makes sense - never thought about that. I'll look into that and
 think about it. For the moment, I am going to use the module.
 
 Do I assume correctly, that these files I specify as external
 content will be included in the lyx archive? That would be a
 great advantage.
 
 They should. And there are many more advantages. The file paths are
 known to LyX, you can have preview, you can easily define options,
 etc.

Agreed - I think I will go that way.

Cheers,

Rainer

 
 Jürgen


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8Fz+IACgkQoYgNqgF2egrNXwCfZoKNRmoqK/K05/Z6IGpqgx1O
thsAnRujP9lDnoqyHoa4W9xwsw6x2ooH
=Lqn5
-END PGP SIGNATURE-


Re: mathrm

2012-01-05 Thread Wolfgang Engelmann
Am Donnerstag, 5. Januar 2012, 14:53:38 schrieb Guenter Milde:
 On 2012-01-05, Wolfgang Engelmann wrote:
  I use
  \mathrm{K}^{+}
  to get an upright K^+ (K-Ion) (and other items such as units)
  and guess the following message on the terminal from which I start lyx
  has to do with it:
  
  [Unknown [sub [mathrm [char E mathalpha]] [char e mathalpha][char x
  mathalpha]]]
  
  Do I have to include some package or use another method?
 
 I cannot reproduce this. No messages appear on my terminal (LyX svn on
 Debian Linux started from x-terminal emulator).

The reason for the error messages was not the  \mathrm{K}^{+} in the text, 
as a minimal example showed, but an entrance in a reference, which I got 
from a data bank. Shame on me, I should have checked first with and without 
bibliography.
Thanks Guenter and Julio,

Wolfgang


Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Rainer M Krug wrote:
 Thanks a lot for the info - I should have looked closer.
 But it would be nice, if both would be read and just added to each other.

Yes. That's actually
http://www.lyx.org/trac/ticket/3983

Jürgen


Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jean-Marc Lasgouttes

Le 05/01/2012 17:32, Jürgen Spitzmüller a écrit :

Rainer M Krug wrote:

Thanks a lot for the info - I should have looked closer.
But it would be nice, if both would be read and just added to each other.


Yes. That's actually
http://www.lyx.org/trac/ticket/3983


I think we should not read both files, since the semantics of replacing 
a system file by a user one should be preserved. It would be better to 
load a external_templates.user file (or any better name you come up 
with), like we load several flavors of lyxrc files (lyxrc.dist, 
lyxrc.defaults, preferences).


JMarc



Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote:
 I think we should not read both files, since the semantics of replacing 
 a system file by a user one should be preserved. It would be better to 
 load a external_templates.user file (or any better name you come up 
 with), like we load several flavors of lyxrc files (lyxrc.dist, 
 lyxrc.defaults, preferences).

I'm not sure I understand. IMHO the user file should be read after the system 
file. So any external template in the system file that is not in the user file 
should be kept, new user-contributed files should be added. If templates are 
in both files, the user version should override the system version.

Having said that, I wonder if it would not be better to split this file into 
one file per template, having templates/pdfpages.template, 
templates/xfig.template etc. Then we could read all *.template files in both 
directories, and stick with the practice of reading only one of each, like we 
do for *.layout etc.

Jürgen



Re: Slow scrolling

2012-01-05 Thread Olivier Ripoll

On 05.01.2012 10:13, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE-

[...]





If the issue I reported is the same (it seems the definition of
slow scrolling can cover different behaviours), it happens also
on Windows 7.

BR,

O.


Interesting. So now we have reports of slow scrolling problems on
multiple versions of OS X and multiple versions of Windows, where
the problem got worse with 2.0.2 relative to 2.0.1.

I don't think we have any reports of problems on Linux yet. Don't
some versions of Linux use Qt as their native GUI engine? If so,
maybe somehow there is less chance to mess things up since it would
then be the native engine for those systems.


Slow scrolling and skipping are subjective - maybe the problem does
exist under Linux, b ut the Linux users are more tolerant :-) (I use
Linux...)


Hi,

Somehow subjective: skipping versus no skipping is objective. :-)

Also, high CPU usage (seen by Jerry and I) is objective, as you can see 
it in the task manager, measured by the OS. Not to mention the fan 
speeding up.


Best regards,

O.



But seriously: to really evaluate this, one would possibly need screen
recordings of the actual scrolling and one person can evaluate them.
Or installation of the OS in a virtual machine, and then checking (but
this would not be representative for all systems).

So I guess a howto to record the actual scrolling on screen and a
website where this can be posted, should help.

Cheers,

Rainer





Re: Which fonts to match LyX output in other applications?

2012-01-05 Thread Olivier Ripoll

On 05.01.2012 16:53, Matthias Hunstig wrote:

Hello,

I need to create some figures for inclusion in a LyX document, using different 
Windows applications (mainly Corel Draw and MATLAB). I want the font in these 
figures to be as close as possible to the fonts in my main document. How can I 
find out which fonts I should use to match
a) the normal text font
b) the math mode font (for both latin and greek letters)
and where do I find the appropriote font files?

The current document in question uses book (koma-script) with all font settings on 
standard.

I know there is PSfrag and I have experimented with it, but I do not really 
want to use it. I would prefer a simpler (and less perfectly looking) solution.

Thanks

Matthias


Hi,

I think the default are Computer Modern or Latin Modern, and 
according to wikipedia, you can download ttf versions at

http://www.ctan.org/tex-archive/fonts/cm/ps-type1/bakoma/ttf/

The file names there remind me of what I used 10 years ago to solve the 
same problem.


Best regards,

Olivier



Re: Slow scrolling

2012-01-05 Thread André Pönitz
On Thu, Jan 05, 2012 at 09:28:58AM +0100, Olivier Ripoll wrote:
 To check if this is the culprit one may add the following line to your
 preferences file:
 \force_paint_single_char false
 On a Mac this is the file ~/Library/Application
 Support/LyX-2.0/preferences.
 (Broken cursor placement for long lines should be one consequence.)
 
 Will try this when I have some time.
 
 I did not see significant changes with or without this line.

Out of curiosity: Can you try the same with \use_pixmap_cache false ?

Andre'


Identifying unused/unreferenced labels

2012-01-05 Thread charles reid
Hi all -

The LyX 1.6 What's New page (http://wiki.lyx.org/LyX/NewInLyX16#outliner)
lists a Navigator feature that is easy spotting of unused/unreferenced
labels. However, I don't see this feature in the Navigator in LyX 2.0.2.
Was this feature eliminated for Lyx version 2? Assuming it was not, it
isn't clear how to find unused/unreferenced labels from the Navigator, and
Google didn't turn up anything useful, so could someone point out the steps?


Thanks,
Charles


Re: Identifying unused/unreferenced labels

2012-01-05 Thread Richard Heck

On 01/05/2012 05:42 PM, charles reid wrote:

Hi all -

The LyX 1.6 What's New page 
(http://wiki.lyx.org/LyX/NewInLyX16#outliner) lists a Navigator 
feature that is easy spotting of unused/unreferenced labels. 
However, I don't see this feature in the Navigator in LyX 2.0.2. Was 
this feature eliminated for Lyx version 2? Assuming it was not, it 
isn't clear how to find unused/unreferenced labels from the Navigator, 
and Google didn't turn up anything useful, so could someone point out 
the steps?


If you go to the navigator and then select Labels and References, 
these are listed in a tree view, with the labels at the head of the tree 
and references to them underneath. If there are no references...


Richard



Re: Identifying unused/unreferenced labels

2012-01-05 Thread charles reid
Ah! I see now. Thanks.


Charles


On Thu, Jan 5, 2012 at 15:02, Richard Heck rgh...@comcast.net wrote:

 On 01/05/2012 05:42 PM, charles reid wrote:

 Hi all -

 The LyX 1.6 What's New page (http://wiki.lyx.org/LyX/**
 NewInLyX16#outliner http://wiki.lyx.org/LyX/NewInLyX16#outliner) lists
 a Navigator feature that is easy spotting of unused/unreferenced labels.
 However, I don't see this feature in the Navigator in LyX 2.0.2. Was this
 feature eliminated for Lyx version 2? Assuming it was not, it isn't clear
 how to find unused/unreferenced labels from the Navigator, and Google
 didn't turn up anything useful, so could someone point out the steps?

  If you go to the navigator and then select Labels and References,
 these are listed in a tree view, with the labels at the head of the tree
 and references to them underneath. If there are no references...

 Richard




! Missing $ inserted.

2012-01-05 Thread Gerry Clare
I am a fairly new LyX user. I recently edited a chapter (Document class 
'report') that I had previously had no trouble compiling. I now get the 
following errors:

! Missing $ inserted.
! Extra }, or forgotten $.
! LaTeX Error: Command \item invalid in math mode.
! LaTeX Error: Something's wrong--perhaps a missing \item.
! Extra }, or forgotten \endgroup.

Although I have read some suggestions on Google, I can't seem to get to the 
bottom of these errors.

Any suggestions?

Thanks!

Re: ! Missing $ inserted.

2012-01-05 Thread Steve Litt
On Thursday, January 05, 2012 06:43:45 PM Gerry Clare wrote:
 I am a fairly new LyX user. I recently edited a chapter (Document
 class 'report') that I had previously had no trouble compiling. I
 now get the following errors:
 
 ! Missing $ inserted.
 ! Extra }, or forgotten $.
 ! LaTeX Error: Command \item invalid in math mode.
 ! LaTeX Error: Something's wrong--perhaps a missing \item.
 ! Extra }, or forgotten \endgroup.
 
 Although I have read some suggestions on Google, I can't seem to
 get to the bottom of these errors.
 
 Any suggestions?

Hi Gerry,

Because I know very little of LaTeX, the underlying technology of LyX, 
the way I fix these type of problems is divide and conquer. First I 
back up my file for safe keeping. Then I split it roughly in half, and 
see if the symptom remains. If it does, I split it in half again. If 
it's still there, I split it in half again, etc.

Of course, sometimes the symptom goes away when I take material away, 
so when it goes away, I put back half the material I last took away. 
Keep half-splitting it and pretty soon you'll get it down to a tiny 
document that exhibits the problem, and the root cause becomes 
obvious.

This works for just about any situation where LyX fails to compile to 
PDF etc.

Hope this helps.

SteveT

Steve Litt:  http://www.troubleshooters.com
My new 99 cent Kindle book:  http://www.amazon.com/dp/B006QTBLA2


Re: ! Missing $ inserted.

2012-01-05 Thread David L. Johnson

On 01/05/2012 06:43 PM, Gerry Clare wrote:

I am a fairly new LyX user. I recently edited a chapter (Document class 
'report') that I had previously had no trouble compiling. I now get the 
following errors:

! Missing $ inserted.
! Extra }, or forgotten $.
! LaTeX Error: Command \item invalid in math mode.
! LaTeX Error: Something's wrong--perhaps a missing \item.
! Extra }, or forgotten \endgroup.



Many of these sorts of errors occur because of a mistaken environment 
setting.  For example, if you accidentally have a whole bunch of stuff 
included in a heading type environment, it can mess things up badly.  
Of course, if you have some ERT included, you might have a problem 
there, too.  LyX is really quite good at writing tex that actually 
compiles, so if it doesn't, there is usually some sort of unnoticed 
mistake somewhere.


The previous suggestion is a good one, though.  Break the file up (after 
saving it) into pieces to see in which piece the problem lies.  If you 
still can't isolate it, put the smallest bad chunk of the document on 
the list, and I'll take a  look at it.


--

David L. Johnson

The lottery is a tax on those who fail to understand mathematics.



Re: ! Missing $ inserted.

2012-01-05 Thread Murat Yildizoglu
To locate the source of such problems, I export the file to latex and manually 
compile it to latex in a terminal (or command window in Windows). The 
compilation will give you a line number. You can open the latex file in a 
simple text editor and go to the line to have an idea of the part of the 
document that poses problem. 

--
Murat Yildizoglu
yi...@u-bordeaux4.fr

Le 6 janv. 2012 à 03:07, David L. Johnson david.john...@lehigh.edu a écrit :

 On 01/05/2012 06:43 PM, Gerry Clare wrote:
 I am a fairly new LyX user. I recently edited a chapter (Document class 
 'report') that I had previously had no trouble compiling. I now get the 
 following errors:
 
 ! Missing $ inserted.
 ! Extra }, or forgotten $.
 ! LaTeX Error: Command \item invalid in math mode.
 ! LaTeX Error: Something's wrong--perhaps a missing \item.
 ! Extra }, or forgotten \endgroup.
 
 
 Many of these sorts of errors occur because of a mistaken environment 
 setting.  For example, if you accidentally have a whole bunch of stuff 
 included in a heading type environment, it can mess things up badly.  Of 
 course, if you have some ERT included, you might have a problem there, too.  
 LyX is really quite good at writing tex that actually compiles, so if it 
 doesn't, there is usually some sort of unnoticed mistake somewhere.
 
 The previous suggestion is a good one, though.  Break the file up (after 
 saving it) into pieces to see in which piece the problem lies.  If you still 
 can't isolate it, put the smallest bad chunk of the document on the list, and 
 I'll take a  look at it.
 
 -- 
 
 David L. Johnson
 
 The lottery is a tax on those who fail to understand mathematics.
 


Re: Strange biblatex error on a different machine

2012-01-05 Thread Dominik Waßenhoven
.:|Peter Baumgartner|:. wrote:

 File: authoryear-icomp.cbx 2011/06/08 v1.5 biblatex citation style

Compare the version number of this file. Is it the same? If not, you
have different versions of biblatex.

Regards,
Dominik.-
-- 



Re: Slow scrolling

2012-01-05 Thread Olivier Ripoll

On 04.01.2012 22:39, Jerry wrote:


On Jan 4, 2012, at 8:46 AM, James Sutherland wrote:

[...]


FWIW, I have been noticing this issue on my Mac as well with LyX 2.0.2
(binary installation) and Mac OSX 10.7.2. It has occurred for me with
small documents as well as large ones. Mouse-scrolling lags substantially.

I just tried it on another Mac system running OSX 10.6.8 and LyX
2.0.0. No problems there. I then updated to LyX 2.0.2 on 10.6.8 and
there were no problems with that either.

So it appears that this issue is unique to LyX on OSX 10.7.x?


No—I'm on OS X 10.6.8.
Jerry


James




If the issue I reported is the same (it seems the definition of slow 
scrolling can cover different behaviours), it happens also on Windows 7.


BR,

O.



Re: Slow scrolling

2012-01-05 Thread Olivier Ripoll

On 04.01.2012 10:03, Olivier Ripoll wrote:

On 03.01.2012 21:36, Stephan Witt wrote:

Am 03.01.2012 um 17:15 schrieb Olivier Ripoll:

[...]


Hi,

I'm almost sure it depends on Qt-Version.


IIRC, I checked the file properties of QtCore4 and QtGUI4 dlls and both
files were version 4.7.4.0 in LyX 2.0.1 and 2.0.2.
But perhaps my memories are confused there.


I double-checked, same Qt version is used on the 2.0.1 and 2.0.2 windows 
binaries.


[...]


To check if this is the culprit one may add the following line to your
preferences file:
\force_paint_single_char false
On a Mac this is the file ~/Library/Application
Support/LyX-2.0/preferences.
(Broken cursor placement for long lines should be one consequence.)


Will try this when I have some time.


I did not see significant changes with or without this line.

[...]

Best regards,

O.



Help User Guide set as Document Defaults

2012-01-05 Thread nomnex
Beginner mistake...

I am currently reading the User guide (document class: book
(KOMA-Script)). By chance it is read only.

I clicked Save as Document Defaults by mistake.

Now, how do I get back to the Default document? Can re-generated a
Default document by removing a file (e.g. lyxrc.defaults) in ~./lxy
or in /usr/share/? Else?

Setting the class back to Article and Save as Document Default
won't help with the document settings of the User Guide. And, of
course, I don't remember the initial Default settings.

Thanks in advance.

-- 
nomnex nom...@gmail.com
Freenode: nomnex
Registered Linux user #505281. Be counted at: http://linuxcounter.net


Re: Qt: was Slow scrolling

2012-01-05 Thread Olivier Ripoll

On 05.01.2012 05:16, Jerry wrote:

Do the developers monitor this list? Or does someone need to file a bug report 
for the slow scrolling problem?

Jerry


Yes, they are looking at it. If you look at the thread, you'll see 
several names of LyX developers (not exhautively: Pavel Sanda, Richard 
Heck, Jean-Marc Lasgouttes, André Pönitz)


As for the bug report, I ave the impression there are 2 bugs reported in 
the thread under the slow scrolling umbrella:


- high CPU usage and jumpy scrolling (versus smooth), as you reported in 
your message, which is what I observe also. Seems unrealetd to the OS, 
as you are on OS X, I'm on Windows 7. This bug may also be multiple 
ones, as you mention 2.0.1 also has issues while it is flawless for me 
(I do not think it is Qt-version related)


- time needed to reach the bottom of a document, which seems to be 
discussed in the context of OS X only. This may be Qt-version related.


I think Pavel Sanda listed also one recent change related to X11 (Linux 
and cousins).


Best regards,

O.



Re: Slow scrolling

2012-01-05 Thread Jerry

On Jan 5, 2012, at 1:26 AM, Olivier Ripoll wrote:

 On 04.01.2012 22:39, Jerry wrote:
 
 On Jan 4, 2012, at 8:46 AM, James Sutherland wrote:
 [...]
 
 FWIW, I have been noticing this issue on my Mac as well with LyX 2.0.2
 (binary installation) and Mac OSX 10.7.2. It has occurred for me with
 small documents as well as large ones. Mouse-scrolling lags substantially.
 
 I just tried it on another Mac system running OSX 10.6.8 and LyX
 2.0.0. No problems there. I then updated to LyX 2.0.2 on 10.6.8 and
 there were no problems with that either.
 
 So it appears that this issue is unique to LyX on OSX 10.7.x?
 
 No—I'm on OS X 10.6.8.
 Jerry
 
 James
 
 
 If the issue I reported is the same (it seems the definition of slow 
 scrolling can cover different behaviours), it happens also on Windows 7.
 
 BR,
 
 O.
 
Interesting. So now we have reports of slow scrolling problems on multiple 
versions of OS X and multiple versions of Windows, where the problem got worse 
with 2.0.2 relative to 2.0.1.

I don't think we have any reports of problems on Linux yet. Don't some versions 
of Linux use Qt as their native GUI engine? If so, maybe somehow there is less 
chance to mess things up since it would then be the native engine for those 
systems.

For those who have reported no problems I would respectfully submit that your 
perception is different than that of others and/or your tolerance for interface 
idiosyncrasies is better or you have lower expectations. For anyone who cares 
to compare and who doesn't think their (OS X) box has a problem, simply open 
any PDF into Preview or Skim or any significantly long text file in TextEdit 
and flick through it with the two-finger trackpad swipe or whatever equivalent 
you have with a mouse, then try the same with a LyX file. You should see a 
world of difference. Personally, the two-finger swipe to scroll is totally 
addictive and so effective that often I use that as a shortcut to go all the 
way to the top or bottom of a document instead of using other means.

Jerry

Re: Qt: was Slow scrolling

2012-01-05 Thread Jean-Marc Lasgouttes

Le 05/01/2012 02:40, André Pönitz a écrit :

The main performance problems I have seesn so far are due to an abuse of
the toolkit, not caused _by_ the toolkit (except for the remote raster
painter problem perhaps). Just start at RowPainter::paintChars() and
walk down through all the mess _before_ it actually hits Qt's drawText()
It is slow? You bet.


The question is whether the Xorg takes 90% cpu complaints will go away 
with Abdel new patch. If they don't, it means that there are some slow 
operations on the Qt side that we do not understand (i.e. things we 
should avoid to use). I am not sure that our code in 
rowPainter::paintChars is so costly (except the fact that all 
metrics/painting should be done word-wise) I do not remember it showing 
so high in profiler. I'll have to check again some day.


JMarc


Re: Slow scrolling

2012-01-05 Thread Jerry

On Jan 4, 2012, at 9:13 PM, Jerry wrote:

 
 On Jan 4, 2012, at 3:03 PM, Stephan Witt wrote:
 
 I've prepared a LyX-package with Qt-4.8.0 and the upload is here:
 
 http://dl.dropbox.com/u/27842660/LyX-2.1.0svn%2Bqt4.8.0-cocoa.dmg
 http://dl.dropbox.com/u/27842660/LyX-2.1.0svn%2Bqt4.8.0-cocoa.dmg.sig
 
 The Qt 4.8.0 ChangeLog contains this:
 
 Qt for Mac OS X
 ---
 - Alien widgets is now used by default for Qt/Cocoa on Mac OS X. 
 - Qt/Cocoa on Mac OS X has now full support for the raster paint engine.
 - QApplication has now implemented macEventFilter for Qt/Cocoa
 - HarfBuzz can now be used as an optional text layout engine on Mac OS X. 
 [QTBUG-17728]
 - Qt shows some love to OS X Lion (10.7).
 
 Perhaps this is an improvement on Lion? Please, can someone give it a try?
 
 Stephan
 
 10.6.8, 2.1svn
 Scrolling User's Guide takes 13 seconds.
 No misplaced cursor.
 
 This scroll rate is between what I measured for 2.0.0 and 2.0.2 using the 
 special preference file line.
 
 Subjectively, for me, the somewhat slower difference for 2.1svn puts the 
 experience back into painful regime, but it is still better than 2.0.2 
 without the special preference file line.
 
 Jerry

After adding \force_paint_single_char false to the preferences file for 2.1svn:
Scrolling User's Guide takes 9 seconds on first pass, 7-8 seconds for 
subsequent passes.
The cursor is misplaced on long line of m's.

Another artifact with these conditions appears: when click-dragging over text 
to select it, _some_ letters at and to the right of the position of the cursor 
will jump a few pixels left and right as the cursor passes over them. Doing 
this over a long line of m's is especially fun. It's as though characters under 
the selection color are being drawn with a different metric than the ones that 
have not been selected yet.

Normal scrolling (trackpad, thumb bar) is noticeably better than any of the 
other results I have reported. But the cursor problem is present now.

Jerry

Re: Slow scrolling

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/01/12 09:41, Jerry wrote:
 
 On Jan 5, 2012, at 1:26 AM, Olivier Ripoll wrote:
 
 On 04.01.2012 22:39, Jerry wrote:
 
 On Jan 4, 2012, at 8:46 AM, James Sutherland wrote:
 [...]
 
 FWIW, I have been noticing this issue on my Mac as well with
 LyX 2.0.2 (binary installation) and Mac OSX 10.7.2. It has
 occurred for me with small documents as well as large ones.
 Mouse-scrolling lags substantially.
 
 I just tried it on another Mac system running OSX 10.6.8 and
 LyX 2.0.0. No problems there. I then updated to LyX 2.0.2 on
 10.6.8 and there were no problems with that either.
 
 So it appears that this issue is unique to LyX on OSX
 10.7.x?
 
 No—I'm on OS X 10.6.8. Jerry
 
 James
 
 
 If the issue I reported is the same (it seems the definition of
 slow scrolling can cover different behaviours), it happens also
 on Windows 7.
 
 BR,
 
 O.
 
 Interesting. So now we have reports of slow scrolling problems on
 multiple versions of OS X and multiple versions of Windows, where
 the problem got worse with 2.0.2 relative to 2.0.1.
 
 I don't think we have any reports of problems on Linux yet. Don't
 some versions of Linux use Qt as their native GUI engine? If so,
 maybe somehow there is less chance to mess things up since it would
 then be the native engine for those systems.

Slow scrolling and skipping are subjective - maybe the problem does
exist under Linux, b ut the Linux users are more tolerant :-) (I use
Linux...)

But seriously: to really evaluate this, one would possibly need screen
recordings of the actual scrolling and one person can evaluate them.
Or installation of the OS in a virtual machine, and then checking (but
this would not be representative for all systems).

So I guess a howto to record the actual scrolling on screen and a
website where this can be posted, should help.

Cheers,

Rainer

 
 For those who have reported no problems I would respectfully
 submit that your perception is different than that of others and/or
 your tolerance for interface idiosyncrasies is better or you have
 lower expectations. For anyone who cares to compare and who doesn't
 think their (OS X) box has a problem, simply open any PDF into
 Preview or Skim or any significantly long text file in TextEdit and
 flick through it with the two-finger trackpad swipe or whatever
 equivalent you have with a mouse, then try the same with a LyX
 file. You should see a world of difference. Personally, the
 two-finger swipe to scroll is totally addictive and so effective
 that often I use that as a shortcut to go all the way to the top or
 bottom of a document instead of using other means.
 
 Jerry


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8FacwACgkQoYgNqgF2egq75ACfbq59XXDko3cKWkkeeVwaCF1h
IGYAn0+5y2QgpoSnRYD7cCS6AplIxIbA
=R2cU
-END PGP SIGNATURE-


Re: Slow scrolling

2012-01-05 Thread Stephan Witt
Am 05.01.2012 um 09:41 schrieb Jerry:

 
 On Jan 5, 2012, at 1:26 AM, Olivier Ripoll wrote:
 
 On 04.01.2012 22:39, Jerry wrote:
 
 On Jan 4, 2012, at 8:46 AM, James Sutherland wrote:
 [...]
 
 FWIW, I have been noticing this issue on my Mac as well with LyX 2.0.2
 (binary installation) and Mac OSX 10.7.2. It has occurred for me with
 small documents as well as large ones. Mouse-scrolling lags substantially.
 
 I just tried it on another Mac system running OSX 10.6.8 and LyX
 2.0.0. No problems there. I then updated to LyX 2.0.2 on 10.6.8 and
 there were no problems with that either.
 
 So it appears that this issue is unique to LyX on OSX 10.7.x?
 
 No—I'm on OS X 10.6.8.
 Jerry
 
 James
 
 
 If the issue I reported is the same (it seems the definition of slow 
 scrolling can cover different behaviours), it happens also on Windows 7.
 
 BR,
 
 O.
 
 Interesting. So now we have reports of slow scrolling problems on multiple 
 versions of OS X and multiple versions of Windows, where the problem got 
 worse with 2.0.2 relative to 2.0.1.

Interesting indeed.

 I don't think we have any reports of problems on Linux yet. Don't some 
 versions of Linux use Qt as their native GUI engine? If so, maybe somehow 
 there is less chance to mess things up since it would then be the native 
 engine for those systems.

It's LyX using Qt as its 'native GUI engine' - on all platforms. Of course the 
layers below Qt is different.

 For those who have reported no problems I would respectfully submit that 
 your perception is different than that of others and/or your tolerance for 
 interface idiosyncrasies is better or you have lower expectations. For anyone 
 who cares to compare and who doesn't think their (OS X) box has a problem, 
 simply open any PDF into Preview or Skim or any significantly long text file 
 in TextEdit and flick through it with the two-finger trackpad swipe or 
 whatever equivalent you have with a mouse, then try the same with a LyX file. 
 You should see a world of difference. Personally, the two-finger swipe to 
 scroll is totally addictive and so effective that often I use that as a 
 shortcut to go all the way to the top or bottom of a document instead of 
 using other means.

I tried this now:
* start LyX 2.0.2 from distribution disk image
* open LyX users guide (english) and maximize it
* start PDF view (in Preview)
* scroll from top to bottom with two-finger swipe in Preview - at least 12..14 
seconds
* scroll from top to bottom with two-finger swipe in LyX window - 8..10 seconds

I have to admit it looks more smooth with Preview. But I'd rate LyX feeling not 
that bad.

Stephan

PS. Numbers are taken by looking at the clock at the right corner of the menu 
bar.
Perhaps not that exact...

Re: Slow scrolling

2012-01-05 Thread Stephan Witt
Am 05.01.2012 um 10:02 schrieb Jerry:

 
 On Jan 4, 2012, at 9:13 PM, Jerry wrote:
 
 
 On Jan 4, 2012, at 3:03 PM, Stephan Witt wrote:
 
 I've prepared a LyX-package with Qt-4.8.0 and the upload is here:
 
 http://dl.dropbox.com/u/27842660/LyX-2.1.0svn%2Bqt4.8.0-cocoa.dmg
 http://dl.dropbox.com/u/27842660/LyX-2.1.0svn%2Bqt4.8.0-cocoa.dmg.sig
 
 The Qt 4.8.0 ChangeLog contains this:
 
 Qt for Mac OS X
 ---
 - Alien widgets is now used by default for Qt/Cocoa on Mac OS X. 
 - Qt/Cocoa on Mac OS X has now full support for the raster paint engine.
 - QApplication has now implemented macEventFilter for Qt/Cocoa
 - HarfBuzz can now be used as an optional text layout engine on Mac OS X. 
 [QTBUG-17728]
 - Qt shows some love to OS X Lion (10.7).
 
 Perhaps this is an improvement on Lion? Please, can someone give it a try?
 
 Stephan
 
 10.6.8, 2.1svn
 Scrolling User's Guide takes 13 seconds.
 No misplaced cursor.
 
 This scroll rate is between what I measured for 2.0.0 and 2.0.2 using the 
 special preference file line.
 
 Subjectively, for me, the somewhat slower difference for 2.1svn puts the 
 experience back into painful regime, but it is still better than 2.0.2 
 without the special preference file line.
 
 Jerry
 
 After adding \force_paint_single_char false to the preferences file for 
 2.1svn:
 Scrolling User's Guide takes 9 seconds on first pass, 7-8 seconds for 
 subsequent passes.
 The cursor is misplaced on long line of m's.
 
 Another artifact with these conditions appears: when click-dragging over text 
 to select it, _some_ letters at and to the right of the position of the 
 cursor will jump a few pixels left and right as the cursor passes over them. 
 Doing this over a long line of m's is especially fun. It's as though 
 characters under the selection color are being drawn with a different metric 
 than the ones that have not been selected yet.
 
 Normal scrolling (trackpad, thumb bar) is noticeably better than any of the 
 other results I have reported. But the cursor problem is present now.

Thank you for doing this job. So, at least there is some hope :)

Stephan

Re: LyX 2.0.2 [Texlive2007] on Fedora 15 [en_US] - Problem with Japanese output

2012-01-05 Thread nomnex
 On Fri, 30 Dec 2011 23:06:17 +
 José Matos jama...@lyx.org wrote:
 
 # rpm -i
 # 
 http://jnovy.fedorapeople.org/texlive/packages.f15/texlive-release.noarch.rpm
 
 The advantage of this approach is that it gives the most recent
 texlive version.

Sorry for replying late. I am currently reading the LyX guides,
before to start a LaTex book. LyX is a great piece of software, and I
like it.

I am now aware that my question is not LyX related, but some
Fedora experienced users on the list might want to help with the issue:

I am a Fedora desktop user. The Fedora repository Texlive version is old
(2007), and some parts (modules?) are missing due to license problems,
among which: Japanese input CJK, some fonts, etc.
Installing LyX from the repository install Texlive2007 as one of the
dependencies and everything works out of the box.

I am left with 2 choices:

a. As suggested by José Mato, installing the Fedora testing Texlive2011
version.

b. Installing the Texlive2011 ISO.

Method A would be the easiest, with my level of knowledge. However
reading the Fedora forum, it is not recommended [It is not a statement,
this is what I read, see url below] (I am not positive if the CJK module
(or Ptex ?) - and some Japanese document classes - are include with
this version. CJK is what I need most).

http://forums.fedoraforum.org/showthread.php?t=262135mode=linear
http://fedoraproject.org/wiki/Features/TeXLive

Method B might be optimal, but I am worry about dependencies
problems. The proper installation itself. And the latex front-end
software settings (I have installed LyX and Texmaker).

I could use some advice.
Thanks in advance.

-- 
nomnex nom...@gmail.com
Freenode: nomnex
Registered Linux user #505281. Be counted at: http://linuxcounter.net


Attach lyx file to pdf - question and feature idea

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I just discovered the attachfile2 LaTeX package, which enables me to
attach files to a pdf file, and it works very nicely:

1) add
   \usepackage{attachfile2}
to the preamble

2) add
   \attachfile{/path/to/document.lyx}
into an ERT box in the document where the link to the attachment
should be located

That's it.

Now I have two questions concerning my manual implementation:

1) is there a variable which I could use so that the ERT always works?
I know about \jobname{}, bu it seems this does not get expanded in the
command \attachfile{}?

2) is there a way that I can put \attachfile{} in the preamble, so
that it gets automatically added as an additional last page of the
document? In this way, I could easily control it without changing
anything in the actual content of the document.

Thinking ahead: I think it would be nice, tio have the option to do
this automatically, i.e. have a checkbox in the document settings,
(under pdf) that the .lyx file or the lyx archive could be added as an
attachment.

Even one step further, additional export formats could also be
attached, e.g. a .rtf version for editing?

Any suggestions / comments?

Cheers,

Rainer


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8FdBIACgkQoYgNqgF2egpVMACdGVjuNzdwbc8XiEaBeDYzy9Ob
rNAAnA3prPMWT9OvKUE77JVVo3hx+kvU
=7jkU
-END PGP SIGNATURE-


Re: Qt: was Slow scrolling

2012-01-05 Thread Jean-Marc Lasgouttes

Le 05/01/2012 09:40, Olivier Ripoll a écrit :

On 05.01.2012 05:16, Jerry wrote:

Do the developers monitor this list? Or does someone need to file a
bug report for the slow scrolling problem?

Jerry


Yes, they are looking at it. If you look at the thread, you'll see
several names of LyX developers (not exhautively: Pavel Sanda, Richard
Heck, Jean-Marc Lasgouttes, André Pönitz)


The problem is that we have yet to pinpoint the root cause. I see two 
major points:


- we have experimental code that seems to improve the situation on 
linux. We'll probably learn more once it is deployed to many people. I 
am not sure there are plans to port to branch yet. This may be useful 
for cases where different people see different speeds.


- there is a part of the code that we know should be rewritten: to 
compute metrics (size of words), we work at glyph level, while painting 
is done at word level. This is what creates display problems with OS X 
when the is kerning/ligatures effects. The paint single char pref that 
has been discussed makes everything work at glyph level, which is 
correct but slow. What we need is to do all at word level (except for 
RtL text, which is a different story). Unfortunately, this part of code 
is a can of worm and nobody dares touching it.


JMarc


Re: Qt: was Slow scrolling

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/01/12 10:58, Jean-Marc Lasgouttes wrote:
 Le 05/01/2012 09:40, Olivier Ripoll a écrit :
 On 05.01.2012 05:16, Jerry wrote:
 Do the developers monitor this list? Or does someone need to
 file a bug report for the slow scrolling problem?
 
 Jerry
 
 Yes, they are looking at it. If you look at the thread, you'll
 see several names of LyX developers (not exhautively: Pavel
 Sanda, Richard Heck, Jean-Marc Lasgouttes, André Pönitz)
 
 The problem is that we have yet to pinpoint the root cause. I see
 two major points:
 
 - we have experimental code that seems to improve the situation on 
 linux. We'll probably learn more once it is deployed to many
 people. I am not sure there are plans to port to branch yet. This
 may be useful for cases where different people see different
 speeds.
 
 - there is a part of the code that we know should be rewritten: to 
 compute metrics (size of words), we work at glyph level, while
 painting is done at word level. This is what creates display
 problems with OS X when the is kerning/ligatures effects. The
 paint single char pref that has been discussed makes everything
 work at glyph level, which is correct but slow. What we need is to
 do all at word level (except for RtL text, which is a different
 story). Unfortunately, this part of code is a can of worm and
 nobody dares touching it.

If I look at the number of emails flying around on this issue, one
should look at options how this can be fixed. I must admit I do not
know the inner workings of LyX, so I might be completely off.

I nobody dares to touch this code (I would guess because of time
requirements once one starts fixing it), one could try to raise funds
to pay somebody (preferably somebody who knows LyX's inner workings)
to address this issue - it seems to be on many peoples mind.

Cheers,

Rainer


 
 JMarc


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8FeLcACgkQoYgNqgF2egqWJwCfaqqoP9Rxzs8J1ZK8tgqLCW5M
Y4UAn0u47pmpgS3fYORvbt+J0u3AWTS3
=N3hn
-END PGP SIGNATURE-


Re: Strange biblatex error on a different machine

2012-01-05 Thread Peter Baumgartner
Dominik,

You were right! The installation of my coauthor is using an older version,
which was uploaded manually to a place in the tex path which has precedence
over the new installation.

I'm a little embarrassed as I should have checked the versions first of all.
Thanks for your help!

Peter 




mathrm

2012-01-05 Thread Wolfgang Engelmann
I use 
\mathrm{K}^{+}
to get an upright K^+ (K-Ion) (and other items such as units)
and guess the following message on the terminal from which I start lyx has 
to do with it: 

[Unknown [sub [mathrm [char E mathalpha]] [char e mathalpha][char x 
mathalpha]]]

Do I have to include some package or use another method?

Wolfgang


Re: mathrm

2012-01-05 Thread Julio Rojas
But it compiles? I have tested it out of the box and it does so.
-
Julio Rojas
jcredbe...@gmail.com


On Thu, Jan 5, 2012 at 11:39 AM, Wolfgang Engelmann 
engelm...@uni-tuebingen.de wrote:

 I use
 \mathrm{K}^{+}
 to get an upright K^+ (K-Ion) (and other items such as units)
 and guess the following message on the terminal from which I start lyx has
 to do with it:

 [Unknown [sub [mathrm [char E mathalpha]] [char e mathalpha][char x
 mathalpha]]]

 Do I have to include some package or use another method?

 Wolfgang



Re: Qt: was Slow scrolling

2012-01-05 Thread Murat Yildizoglu
I would like to see the problem on other computers. In my case (I hope that
you have received the video I have sent), I would rather prefer the
developers to work on more fundamental issues, I am happy with what I have
(I can only state on my case before seing the videos of others) ;-)

Murat

2012/1/5 Rainer M Krug r.m.k...@gmail.com

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 05/01/12 10:58, Jean-Marc Lasgouttes wrote:
  Le 05/01/2012 09:40, Olivier Ripoll a écrit :
  On 05.01.2012 05:16, Jerry wrote:
  Do the developers monitor this list? Or does someone need to
  file a bug report for the slow scrolling problem?
 
  Jerry
 
  Yes, they are looking at it. If you look at the thread, you'll
  see several names of LyX developers (not exhautively: Pavel
  Sanda, Richard Heck, Jean-Marc Lasgouttes, André Pönitz)
 
  The problem is that we have yet to pinpoint the root cause. I see
  two major points:
 
  - we have experimental code that seems to improve the situation on
  linux. We'll probably learn more once it is deployed to many
  people. I am not sure there are plans to port to branch yet. This
  may be useful for cases where different people see different
  speeds.
 
  - there is a part of the code that we know should be rewritten: to
  compute metrics (size of words), we work at glyph level, while
  painting is done at word level. This is what creates display
  problems with OS X when the is kerning/ligatures effects. The
  paint single char pref that has been discussed makes everything
  work at glyph level, which is correct but slow. What we need is to
  do all at word level (except for RtL text, which is a different
  story). Unfortunately, this part of code is a can of worm and
  nobody dares touching it.

 If I look at the number of emails flying around on this issue, one
 should look at options how this can be fixed. I must admit I do not
 know the inner workings of LyX, so I might be completely off.

 I nobody dares to touch this code (I would guess because of time
 requirements once one starts fixing it), one could try to raise funds
 to pay somebody (preferably somebody who knows LyX's inner workings)
 to address this issue - it seems to be on many peoples mind.

 Cheers,

 Rainer


 
  JMarc


 - --
 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
 Biology, UCT), Dipl. Phys. (Germany)

 Centre of Excellence for Invasion Biology
 Stellenbosch University
 South Africa

 Tel :   +33 - (0)9 53 10 27 44
 Cell:   +33 - (0)6 85 62 59 98
 Fax :   +33 - (0)9 58 10 27 44

 Fax (D):+49 - (0)3 21 21 25 22 44

 email:  rai...@krugs.de

 Skype:  RMkrug
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.11 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk8FeLcACgkQoYgNqgF2egqWJwCfaqqoP9Rxzs8J1ZK8tgqLCW5M
 Y4UAn0u47pmpgS3fYORvbt+J0u3AWTS3
 =N3hn
 -END PGP SIGNATURE-




-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

Bureau : F-331

yi...@u-bordeaux4.fr

http://yildizoglu.info

http://www.twitter.com/yildizoglu


Re: Scrolling video

2012-01-05 Thread Liviu Andronic
Murat,


On Thu, Jan 5, 2012 at 12:06 PM, Murat Yildizoglu myi...@gmail.com wrote:
 First with the touchpad, then with the right bar. Under Osx Lion (see my 
 previous mail for my config).

Please do not send such big attachments on public mailing lists. Best
is to use a hosting service such as MediaFire [1] or tinyupload [2]
and to paste the link in your e-mail.

Regards
Liviu

[1] http://alternativeto.net/software/mediafire/
[2] http://tinyupload.com/


Report (was: Qt: was Slow scrolling)

2012-01-05 Thread Pavel Sanda
Jean-Marc Lasgouttes wrote:
 Le 05/01/2012 02:40, André Pönitz a écrit :
 The main performance problems I have seesn so far are due to an abuse of
 the toolkit, not caused _by_ the toolkit (except for the remote raster

please... there were many cases we have no clue where the problem is.
it can be lyx, qt, X, card drivers. to summarize the whole thing by saying
that all is abuse of qt smells like problem with your affiliation ;)

 painter problem perhaps). Just start at RowPainter::paintChars() and
 walk down through all the mess _before_ it actually hits Qt's drawText()
 It is slow? You bet.

 The question is whether the Xorg takes 90% cpu complaints will go away 
 with Abdel new patch. 

thats question indeed. this bug is mysterious and i can reproduce it unreliably
on one older notebook i'm sitting now on (ATI radeon, linux closed source 
drivers)
in ordinary case:
\use_qimage false scrolling has 72% X - 22% lyx (of cpu time)
\use_qimage true scrolling has 48% - 48% and feels somewhat slower

which unfortunately shows that speed up might happen on nvidia while it
slow down the thing at other system.

secondly - up to now i was able to trigger the case of 97% X - 2% lyx only with 
\use_qimage false. in this case lyx is almost unusable and it seems i need
already running another lyx instance in system to trigger it.

whats really funny is that it seems that i'm able to repeat it quite more 
reliably
in screnario first instance is \use_qimage true and second false.
sometimes it doesn't happen in this scenario and it never happened (up to now)
vice versa in false-true scenario. dont ask me why this should matter...

so there is some chance the worst case scenario is gone in trunk.

pavel


Re: Report (was: Qt: was Slow scrolling)

2012-01-05 Thread Pavel Sanda
Pavel Sanda wrote:
 whats really funny is that it seems that i'm able to repeat it quite more 
 reliably
 in screnario first instance is \use_qimage true and second false.
 sometimes it doesn't happen in this scenario and it never happened (up to now)
 vice versa in false-true scenario. dont ask me why this should matter...

and whats interesting its buffer dependent as someone reported few days later.
the worst scenario happens with user guide, when i open introduction, this 
issue disappears.

so i switched off change tracking in user guide and the slowness is gone :)
when i switch on tracking on introduction the problem is not there.
hmm maybe the problem is with the content of user guide? no, when i delete all 
except first two pages and accept CT (only text no special insets remain) the 
problem is still there.

it also doesn't explain why such CT thing appears only in random instances of 
lyx.

and i did not take any substances today...
pavel


Re: mathrm

2012-01-05 Thread Guenter Milde
On 2012-01-05, Wolfgang Engelmann wrote:
 I use 
 \mathrm{K}^{+}
 to get an upright K^+ (K-Ion) (and other items such as units)
 and guess the following message on the terminal from which I start lyx has 
 to do with it: 

 [Unknown [sub [mathrm [char E mathalpha]] [char e mathalpha][char x 
 mathalpha]]]

 Do I have to include some package or use another method?

I cannot reproduce this. No messages appear on my terminal (LyX svn on
Debian Linux started from x-terminal emulator).

Do the messages appear:
* when typing the commands in a math-box
* when selecting the text \mathrm{K}^{+} and converting to math with
  Ctrl-m
* when opening a file containing this math, or
* when compiling?

Maybe a minimal example file could help further (e.g. to see whether it
is not *missing* a package but *using* a package that creates the
problem).

Günter




Re: Image width in figure floats

2012-01-05 Thread Guenter Milde
On 2012-01-03, Maria Gouskova wrote:
 On Tue, Jan 3, 2012 at 3:29 AM, Guenter Milde mi...@users.sf.net wrote:
 On 2012-01-02, Maria Gouskova wrote:

...

 I specify the width of the image in the figure properties as 100% of
 line width. Typesetting via pdflatex works fine, with the image scaled
 appropriately. Typesetting via ps2pdf or dvipdfm does not scale the
 image--it spills over onto the margin and off the page.

 I cannot reproduce here. Tried inserting a scaled one-page PDF document
 (without wrapping in a float). The output of
 PDF (pdflatex),
 PDF (ps2pdf), and
 PDF (dvipdfm)
 is exactly the same (with proper scaling of the indcluded graphic).

 Okay. Are your OS and LyX version the same?

I don't think so (Debian Linux, lyx home-compiled from SVN (trunk)).

In order to investigate and find the source of the problem, we need a
minimal working example: the smallest and least complex LyX (+image) file
that shows the problem at your site.

(Preparing such a minimal example sometimes already leads to a solution :-)

Günter



How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I have written this small module to make attaching files to a pdf
easier. It works nice, unless I have e.g. a _ in the file name, as
then the text in the inset is escaped, i.e. newfile_1.lyx becomes
newfile\_.lyx, which is obviously not found. Is there a way of
treating the test in the inset as is and not escape it?

For illustration, I attach the module and two lyx files - newfile1.lyx
works, newfile_1.lyx does not.

Thanks,

Rainer

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8Fr/cACgkQoYgNqgF2egpyrwCeMbs4HQPPwM3X/WRTpvorSmI/
6S8AnAieoxm1mtRCg93lyaTPg0j75rf5
=8RYB
-END PGP SIGNATURE-
#\DeclareLyXModule{Attach}
#DescriptionBegin
#Attaches a file into the pdf file
#DescriptionEnd
# Author: Rainer M Krug rai...@krugs.de

Format 11

InsetLayout attachFile
LyXType   custom
LabelString   attach
LatexType command
LatexName myOwnAttachFile
Decorationclassic
LabelFont
  Color   green
  Sizesmalll
EndFont
OptionalArgs  1
MultiPar  false
Preamble
\RequirePackage{attachfile2}
\newcommand{\myOwnAttachFile}[1]{\attachfile{#1}}
EndPreamble
End


newfile1.lyx
Description: application/lyx


newfile_1.lyx
Description: application/lyx


attach.module.sig
Description: Binary data


newfile1.lyx.sig
Description: Binary data


newfile_1.lyx.sig
Description: Binary data


Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Rainer M Krug wrote:
 I have written this small module to make attaching files to a pdf
 easier. It works nice, unless I have e.g. a _ in the file name, as
 then the text in the inset is escaped, i.e. newfile_1.lyx becomes
 newfile\_.lyx, which is obviously not found. Is there a way of
 treating the test in the inset as is and not escape it?

PassThru 1

However, I do not think such a module is the way to go. I would rather try 
with an external material template. Have a look at the pdfpages template for a 
model (in the file external_templates).

Jürgen


Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/01/12 15:22, Jürgen Spitzmüller wrote:
 Rainer M Krug wrote:
 I have written this small module to make attaching files to a
 pdf easier. It works nice, unless I have e.g. a _ in the file
 name, as then the text in the inset is escaped, i.e.
 newfile_1.lyx becomes newfile\_.lyx, which is obviously not
 found. Is there a way of treating the test in the inset as is
 and not escape it?
 
 PassThru 1

Thanks - that's working now.

One more question: how can I deal with a function which requires two
paramerer, e.g. \textattachfile{FILENAME.EXT}{THE TEXT OF THE LINK} in
a module? Is there anywhere an example on how an inset with two
parametern looks?

 
 However, I do not think such a module is the way to go. I would
 rather try with an external material template. Have a look at the
 pdfpages template for a model (in the file external_templates).

Makes sense - never thought about that.
I'll look into that and think about it. For the moment, I am going to
use the module.

Do I assume correctly, that these files I specify as external content
will be included in the lyx archive? That would be a great advantage.

Rainer

 
 Jürgen


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8FuiEACgkQoYgNqgF2egrVEgCbBsJGKPbF5mH2MG5kVHg7pORx
28sAnAuKQ0qveH5SAwOzkGFz9HzYD8IE
=1TNH
-END PGP SIGNATURE-


Re: Help User Guide set as Document Defaults

2012-01-05 Thread Richard Heck

On 01/05/2012 03:34 AM, nomnex wrote:

Beginner mistake...

I am currently reading the User guide (document class: book
(KOMA-Script)). By chance it is read only.

I clicked Save as Document Defaults by mistake.

Now, how do I get back to the Default document? Can re-generated a
Default document by removing a file (e.g. lyxrc.defaults) in ~./lxy
or in /usr/share/? Else?
The default document is just a LyX file. It's saved at 
templates/default.lyx, in your user directory. Just delete it.


Richard



Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/01/12 15:56, Rainer M Krug wrote:
 On 05/01/12 15:22, Jürgen Spitzmüller wrote:
 Rainer M Krug wrote:
 I have written this small module to make attaching files to a 
 pdf easier. It works nice, unless I have e.g. a _ in the file 
 name, as then the text in the inset is escaped, i.e. 
 newfile_1.lyx becomes newfile\_.lyx, which is obviously not 
 found. Is there a way of treating the test in the inset as
 is and not escape it?
 
 PassThru 1
 
 Thanks - that's working now.
 
 One more question: how can I deal with a function which requires
 two paramerer, e.g. \textattachfile{FILENAME.EXT}{THE TEXT OF THE
 LINK} in a module? Is there anywhere an example on how an inset
 with two parametern looks?
 
 
 However, I do not think such a module is the way to go. I would 
 rather try with an external material template. Have a look at
 the pdfpages template for a model (in the file
 external_templates).
 
 Makes sense - never thought about that. I'll look into that and
 think about it. For the moment, I am going to use the module.
 
 Do I assume correctly, that these files I specify as external
 content will be included in the lyx archive? That would be a great
 advantage.

Just a quick follow up - to add a template, do I have to add it to the
existing external_templates file, or can I have the additional
template in my .lyx folder (which subfolder?)?

Rainer

 
 Rainer
 
 
 Jürgen
 
 

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8FvWUACgkQoYgNqgF2egr+ZgCeKb25x/kj8vUAJIoJOPbYpipk
FKMAnRUpTXdvhBhA+1JsCPOuVX6ymdyG
=Zg+6
-END PGP SIGNATURE-


Re: LyX 2.0.2 [Texlive2007] on Fedora 15 [en_US] - Problem with Japanese output

2012-01-05 Thread Richard Heck

On 01/05/2012 04:33 AM, nomnex wrote:

On Fri, 30 Dec 2011 23:06:17 +
José Matosjama...@lyx.org  wrote:

# rpm -i
# http://jnovy.fedorapeople.org/texlive/packages.f15/texlive-release.noarch.rpm

The advantage of this approach is that it gives the most recent
texlive version.

Sorry for replying late. I am currently reading the LyX guides,
before to start a LaTex book. LyX is a great piece of software, and I
like it.

I am now aware that my question is not LyX related, but some
Fedora experienced users on the list might want to help with the issue:

I am a Fedora desktop user. The Fedora repository Texlive version is old
(2007), and some parts (modules?) are missing due to license problems,
among which: Japanese input CJK, some fonts, etc.
Installing LyX from the repository install Texlive2007 as one of the
dependencies and everything works out of the box.

I am left with 2 choices:

a. As suggested by José Mato, installing the Fedora testing Texlive2011
version.

b. Installing the Texlive2011 ISO.

Method A would be the easiest, with my level of knowledge. However
reading the Fedora forum, it is not recommended [It is not a statement,
this is what I read, see url below] (I am not positive if the CJK module
(or Ptex ?) - and some Japanese document classes - are include with
this version. CJK is what I need most).

http://forums.fedoraforum.org/showthread.php?t=262135mode=linear
http://fedoraproject.org/wiki/Features/TeXLive

Method B might be optimal, but I am worry about dependencies
problems. The proper installation itself. And the latex front-end
software settings (I have installed LyX and Texmaker).
I've been using the TeXLive 2011 packages from jnovy for some time now. 
There were some weird font problems for a bit, but those got solved a 
while ago. I've seen none of the issues that people were complaining 
about on the forum (which was several months ago). The one issue you 
will have to deal with is that this repo splits everything up into about 
a zillion different packages. So, as you work, you will need to install 
packages as you need them. But this is easy, because you can just do 
things like:

# sudo yum install 'tex(prettyref.sty)'
and that will install texlive-prettyref-2011. I.e., you don't have to 
know the package name, just the file name.


Richard



Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Rainer M Krug wrote:
 One more question: how can I deal with a function which requires two
 paramerer, e.g. \textattachfile{FILENAME.EXT}{THE TEXT OF THE LINK} in
 a module? Is there anywhere an example on how an inset with two
 parametern looks?

In Paragraphy styles (not in layouts I think), you can specify RequiredArgs. 
See Customization.lyx.

A workaround in layouts is to simply insert }{ as a separator. This is a bad 
hack, though.

  However, I do not think such a module is the way to go. I would
  rather try with an external material template. Have a look at the
  pdfpages template for a model (in the file external_templates).
 
 Makes sense - never thought about that.
 I'll look into that and think about it. For the moment, I am going to
 use the module.
 
 Do I assume correctly, that these files I specify as external content
 will be included in the lyx archive? That would be a great advantage.

They should. And there are many more advantages. The file paths are known to 
LyX, you can have preview, you can easily define options, etc.

Jürgen


Re: Qt: was Slow scrolling

2012-01-05 Thread Richard Heck

On 01/05/2012 05:17 AM, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/01/12 10:58, Jean-Marc Lasgouttes wrote:

Le 05/01/2012 09:40, Olivier Ripoll a écrit :

On 05.01.2012 05:16, Jerry wrote:

Do the developers monitor this list? Or does someone need to
file a bug report for the slow scrolling problem?

Jerry

Yes, they are looking at it. If you look at the thread, you'll
see several names of LyX developers (not exhautively: Pavel
Sanda, Richard Heck, Jean-Marc Lasgouttes, André Pönitz)

The problem is that we have yet to pinpoint the root cause. I see
two major points:

- we have experimental code that seems to improve the situation on
linux. We'll probably learn more once it is deployed to many
people. I am not sure there are plans to port to branch yet. This
may be useful for cases where different people see different
speeds.

- there is a part of the code that we know should be rewritten: to
compute metrics (size of words), we work at glyph level, while
painting is done at word level. This is what creates display
problems with OS X when the is kerning/ligatures effects. The
paint single char pref that has been discussed makes everything
work at glyph level, which is correct but slow. What we need is to
do all at word level (except for RtL text, which is a different
story). Unfortunately, this part of code is a can of worm and
nobody dares touching it.

If I look at the number of emails flying around on this issue, one
should look at options how this can be fixed. I must admit I do not
know the inner workings of LyX, so I might be completely off.

I nobody dares to touch this code (I would guess because of time
requirements once one starts fixing it), one could try to raise funds
to pay somebody (preferably somebody who knows LyX's inner workings)
to address this issue - it seems to be on many peoples mind.
I think it's more of an issue of pure fear. That code is extremely 
complicated, and it would be very easy to mess things up worse instead 
of fixing them. So, speaking as branch maintainer, that kind of re-write 
definitely isn't happening in the 2.0.x series.


Richard



Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Rainer M Krug wrote:
 Just a quick follow up - to add a template, do I have to add it to the
 existing external_templates file, or can I have the additional
 template in my .lyx folder (which subfolder?)?

external_templates itself states it clearly:

# This file contains the definitions of those External Templates that are
# part of the official LyX distribution.
# Feel free to create your own External Templates, storing them in
# .lyx/external_templates

Alas, LyX does only read one of those files (the personal one, if there is 
one), so you have to copy the whole external_templates file to your .lyx 
folder and _add_ yours there. At least that's how it used to be. Maybe the 
situation has improved.

Jürgen


Which fonts to match LyX output in other applications?

2012-01-05 Thread Matthias Hunstig
Hello,

I need to create some figures for inclusion in a LyX document, using different 
Windows applications (mainly Corel Draw and MATLAB). I want the font in these 
figures to be as close as possible to the fonts in my main document. How can I 
find out which fonts I should use to match
a) the normal text font
b) the math mode font (for both latin and greek letters)
and where do I find the appropriote font files?

The current document in question uses book (koma-script) with all font settings 
on standard.

I know there is PSfrag and I have experimented with it, but I do not really 
want to use it. I would prefer a simpler (and less perfectly looking) solution.

Thanks

Matthias



Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/01/12 16:16, Jürgen Spitzmüller wrote:
 Rainer M Krug wrote:
 Just a quick follow up - to add a template, do I have to add it 
 to the existing external_templates file, or can I have the 
 additional template in my .lyx folder (which subfolder?)?
 
 external_templates itself states it clearly:
 
 # This file contains the definitions of those External Templates 
 that are # part of the official LyX distribution. # Feel free to 
 create your own External Templates, storing them in # 
 .lyx/external_templates
 
 Alas, LyX does only read one of those files (the personal one, if 
 there is one), so you have to copy the whole external_templates 
 file to your .lyx folder and _add_ yours there. At least that's
 how it used to be. Maybe the situation has improved.

Thanks a lot for the info - I should have looked closer.
But it would be nice, if both would be read and just added to each other.

Cheers,

Rainer

 
 Jürgen


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8Fz4cACgkQoYgNqgF2egoPVgCghKcR2evoplz7URftrCXc0buq
q24An0KqPl09V6Y97KghYNUexVVjeYL3
=9Yem
-END PGP SIGNATURE-


Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/01/12 16:12, Jürgen Spitzmüller wrote:
 Rainer M Krug wrote:
 One more question: how can I deal with a function which requires
 two paramerer, e.g. \textattachfile{FILENAME.EXT}{THE TEXT OF THE
 LINK} in a module? Is there anywhere an example on how an inset
 with two parametern looks?
 
 In Paragraphy styles (not in layouts I think), you can specify
 RequiredArgs. See Customization.lyx.

I'll do so - thanks.

 
 A workaround in layouts is to simply insert }{ as a separator. This
 is a bad hack, though.

Ugly hack - but an option.

 
 However, I do not think such a module is the way to go. I
 would rather try with an external material template. Have a
 look at the pdfpages template for a model (in the file
 external_templates).
 
 Makes sense - never thought about that. I'll look into that and
 think about it. For the moment, I am going to use the module.
 
 Do I assume correctly, that these files I specify as external
 content will be included in the lyx archive? That would be a
 great advantage.
 
 They should. And there are many more advantages. The file paths are
 known to LyX, you can have preview, you can easily define options,
 etc.

Agreed - I think I will go that way.

Cheers,

Rainer

 
 Jürgen


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8Fz+IACgkQoYgNqgF2egrNXwCfZoKNRmoqK/K05/Z6IGpqgx1O
thsAnRujP9lDnoqyHoa4W9xwsw6x2ooH
=Lqn5
-END PGP SIGNATURE-


Re: mathrm

2012-01-05 Thread Wolfgang Engelmann
Am Donnerstag, 5. Januar 2012, 14:53:38 schrieb Guenter Milde:
 On 2012-01-05, Wolfgang Engelmann wrote:
  I use
  \mathrm{K}^{+}
  to get an upright K^+ (K-Ion) (and other items such as units)
  and guess the following message on the terminal from which I start lyx
  has to do with it:
  
  [Unknown [sub [mathrm [char E mathalpha]] [char e mathalpha][char x
  mathalpha]]]
  
  Do I have to include some package or use another method?
 
 I cannot reproduce this. No messages appear on my terminal (LyX svn on
 Debian Linux started from x-terminal emulator).

The reason for the error messages was not the  \mathrm{K}^{+} in the text, 
as a minimal example showed, but an entrance in a reference, which I got 
from a data bank. Shame on me, I should have checked first with and without 
bibliography.
Thanks Guenter and Julio,

Wolfgang


Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Rainer M Krug wrote:
 Thanks a lot for the info - I should have looked closer.
 But it would be nice, if both would be read and just added to each other.

Yes. That's actually
http://www.lyx.org/trac/ticket/3983

Jürgen


Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jean-Marc Lasgouttes

Le 05/01/2012 17:32, Jürgen Spitzmüller a écrit :

Rainer M Krug wrote:

Thanks a lot for the info - I should have looked closer.
But it would be nice, if both would be read and just added to each other.


Yes. That's actually
http://www.lyx.org/trac/ticket/3983


I think we should not read both files, since the semantics of replacing 
a system file by a user one should be preserved. It would be better to 
load a external_templates.user file (or any better name you come up 
with), like we load several flavors of lyxrc files (lyxrc.dist, 
lyxrc.defaults, preferences).


JMarc



Re: How to prevent escaping for LaTeX when in module?

2012-01-05 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote:
 I think we should not read both files, since the semantics of replacing 
 a system file by a user one should be preserved. It would be better to 
 load a external_templates.user file (or any better name you come up 
 with), like we load several flavors of lyxrc files (lyxrc.dist, 
 lyxrc.defaults, preferences).

I'm not sure I understand. IMHO the user file should be read after the system 
file. So any external template in the system file that is not in the user file 
should be kept, new user-contributed files should be added. If templates are 
in both files, the user version should override the system version.

Having said that, I wonder if it would not be better to split this file into 
one file per template, having templates/pdfpages.template, 
templates/xfig.template etc. Then we could read all *.template files in both 
directories, and stick with the practice of reading only one of each, like we 
do for *.layout etc.

Jürgen



Re: Slow scrolling

2012-01-05 Thread Olivier Ripoll

On 05.01.2012 10:13, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE-

[...]





If the issue I reported is the same (it seems the definition of
slow scrolling can cover different behaviours), it happens also
on Windows 7.

BR,

O.


Interesting. So now we have reports of slow scrolling problems on
multiple versions of OS X and multiple versions of Windows, where
the problem got worse with 2.0.2 relative to 2.0.1.

I don't think we have any reports of problems on Linux yet. Don't
some versions of Linux use Qt as their native GUI engine? If so,
maybe somehow there is less chance to mess things up since it would
then be the native engine for those systems.


Slow scrolling and skipping are subjective - maybe the problem does
exist under Linux, b ut the Linux users are more tolerant :-) (I use
Linux...)


Hi,

Somehow subjective: skipping versus no skipping is objective. :-)

Also, high CPU usage (seen by Jerry and I) is objective, as you can see 
it in the task manager, measured by the OS. Not to mention the fan 
speeding up.


Best regards,

O.



But seriously: to really evaluate this, one would possibly need screen
recordings of the actual scrolling and one person can evaluate them.
Or installation of the OS in a virtual machine, and then checking (but
this would not be representative for all systems).

So I guess a howto to record the actual scrolling on screen and a
website where this can be posted, should help.

Cheers,

Rainer





Re: Which fonts to match LyX output in other applications?

2012-01-05 Thread Olivier Ripoll

On 05.01.2012 16:53, Matthias Hunstig wrote:

Hello,

I need to create some figures for inclusion in a LyX document, using different 
Windows applications (mainly Corel Draw and MATLAB). I want the font in these 
figures to be as close as possible to the fonts in my main document. How can I 
find out which fonts I should use to match
a) the normal text font
b) the math mode font (for both latin and greek letters)
and where do I find the appropriote font files?

The current document in question uses book (koma-script) with all font settings on 
standard.

I know there is PSfrag and I have experimented with it, but I do not really 
want to use it. I would prefer a simpler (and less perfectly looking) solution.

Thanks

Matthias


Hi,

I think the default are Computer Modern or Latin Modern, and 
according to wikipedia, you can download ttf versions at

http://www.ctan.org/tex-archive/fonts/cm/ps-type1/bakoma/ttf/

The file names there remind me of what I used 10 years ago to solve the 
same problem.


Best regards,

Olivier



Re: Slow scrolling

2012-01-05 Thread André Pönitz
On Thu, Jan 05, 2012 at 09:28:58AM +0100, Olivier Ripoll wrote:
 To check if this is the culprit one may add the following line to your
 preferences file:
 \force_paint_single_char false
 On a Mac this is the file ~/Library/Application
 Support/LyX-2.0/preferences.
 (Broken cursor placement for long lines should be one consequence.)
 
 Will try this when I have some time.
 
 I did not see significant changes with or without this line.

Out of curiosity: Can you try the same with \use_pixmap_cache false ?

Andre'


Identifying unused/unreferenced labels

2012-01-05 Thread charles reid
Hi all -

The LyX 1.6 What's New page (http://wiki.lyx.org/LyX/NewInLyX16#outliner)
lists a Navigator feature that is easy spotting of unused/unreferenced
labels. However, I don't see this feature in the Navigator in LyX 2.0.2.
Was this feature eliminated for Lyx version 2? Assuming it was not, it
isn't clear how to find unused/unreferenced labels from the Navigator, and
Google didn't turn up anything useful, so could someone point out the steps?


Thanks,
Charles


Re: Identifying unused/unreferenced labels

2012-01-05 Thread Richard Heck

On 01/05/2012 05:42 PM, charles reid wrote:

Hi all -

The LyX 1.6 What's New page 
(http://wiki.lyx.org/LyX/NewInLyX16#outliner) lists a Navigator 
feature that is easy spotting of unused/unreferenced labels. 
However, I don't see this feature in the Navigator in LyX 2.0.2. Was 
this feature eliminated for Lyx version 2? Assuming it was not, it 
isn't clear how to find unused/unreferenced labels from the Navigator, 
and Google didn't turn up anything useful, so could someone point out 
the steps?


If you go to the navigator and then select Labels and References, 
these are listed in a tree view, with the labels at the head of the tree 
and references to them underneath. If there are no references...


Richard



Re: Identifying unused/unreferenced labels

2012-01-05 Thread charles reid
Ah! I see now. Thanks.


Charles


On Thu, Jan 5, 2012 at 15:02, Richard Heck rgh...@comcast.net wrote:

 On 01/05/2012 05:42 PM, charles reid wrote:

 Hi all -

 The LyX 1.6 What's New page (http://wiki.lyx.org/LyX/**
 NewInLyX16#outliner http://wiki.lyx.org/LyX/NewInLyX16#outliner) lists
 a Navigator feature that is easy spotting of unused/unreferenced labels.
 However, I don't see this feature in the Navigator in LyX 2.0.2. Was this
 feature eliminated for Lyx version 2? Assuming it was not, it isn't clear
 how to find unused/unreferenced labels from the Navigator, and Google
 didn't turn up anything useful, so could someone point out the steps?

  If you go to the navigator and then select Labels and References,
 these are listed in a tree view, with the labels at the head of the tree
 and references to them underneath. If there are no references...

 Richard




! Missing $ inserted.

2012-01-05 Thread Gerry Clare
I am a fairly new LyX user. I recently edited a chapter (Document class 
'report') that I had previously had no trouble compiling. I now get the 
following errors:

! Missing $ inserted.
! Extra }, or forgotten $.
! LaTeX Error: Command \item invalid in math mode.
! LaTeX Error: Something's wrong--perhaps a missing \item.
! Extra }, or forgotten \endgroup.

Although I have read some suggestions on Google, I can't seem to get to the 
bottom of these errors.

Any suggestions?

Thanks!

Re: ! Missing $ inserted.

2012-01-05 Thread Steve Litt
On Thursday, January 05, 2012 06:43:45 PM Gerry Clare wrote:
 I am a fairly new LyX user. I recently edited a chapter (Document
 class 'report') that I had previously had no trouble compiling. I
 now get the following errors:
 
 ! Missing $ inserted.
 ! Extra }, or forgotten $.
 ! LaTeX Error: Command \item invalid in math mode.
 ! LaTeX Error: Something's wrong--perhaps a missing \item.
 ! Extra }, or forgotten \endgroup.
 
 Although I have read some suggestions on Google, I can't seem to
 get to the bottom of these errors.
 
 Any suggestions?

Hi Gerry,

Because I know very little of LaTeX, the underlying technology of LyX, 
the way I fix these type of problems is divide and conquer. First I 
back up my file for safe keeping. Then I split it roughly in half, and 
see if the symptom remains. If it does, I split it in half again. If 
it's still there, I split it in half again, etc.

Of course, sometimes the symptom goes away when I take material away, 
so when it goes away, I put back half the material I last took away. 
Keep half-splitting it and pretty soon you'll get it down to a tiny 
document that exhibits the problem, and the root cause becomes 
obvious.

This works for just about any situation where LyX fails to compile to 
PDF etc.

Hope this helps.

SteveT

Steve Litt:  http://www.troubleshooters.com
My new 99 cent Kindle book:  http://www.amazon.com/dp/B006QTBLA2


Re: ! Missing $ inserted.

2012-01-05 Thread David L. Johnson

On 01/05/2012 06:43 PM, Gerry Clare wrote:

I am a fairly new LyX user. I recently edited a chapter (Document class 
'report') that I had previously had no trouble compiling. I now get the 
following errors:

! Missing $ inserted.
! Extra }, or forgotten $.
! LaTeX Error: Command \item invalid in math mode.
! LaTeX Error: Something's wrong--perhaps a missing \item.
! Extra }, or forgotten \endgroup.



Many of these sorts of errors occur because of a mistaken environment 
setting.  For example, if you accidentally have a whole bunch of stuff 
included in a heading type environment, it can mess things up badly.  
Of course, if you have some ERT included, you might have a problem 
there, too.  LyX is really quite good at writing tex that actually 
compiles, so if it doesn't, there is usually some sort of unnoticed 
mistake somewhere.


The previous suggestion is a good one, though.  Break the file up (after 
saving it) into pieces to see in which piece the problem lies.  If you 
still can't isolate it, put the smallest bad chunk of the document on 
the list, and I'll take a  look at it.


--

David L. Johnson

The lottery is a tax on those who fail to understand mathematics.



Re: ! Missing $ inserted.

2012-01-05 Thread Murat Yildizoglu
To locate the source of such problems, I export the file to latex and manually 
compile it to latex in a terminal (or command window in Windows). The 
compilation will give you a line number. You can open the latex file in a 
simple text editor and go to the line to have an idea of the part of the 
document that poses problem. 

--
Murat Yildizoglu
yi...@u-bordeaux4.fr

Le 6 janv. 2012 à 03:07, David L. Johnson david.john...@lehigh.edu a écrit :

 On 01/05/2012 06:43 PM, Gerry Clare wrote:
 I am a fairly new LyX user. I recently edited a chapter (Document class 
 'report') that I had previously had no trouble compiling. I now get the 
 following errors:
 
 ! Missing $ inserted.
 ! Extra }, or forgotten $.
 ! LaTeX Error: Command \item invalid in math mode.
 ! LaTeX Error: Something's wrong--perhaps a missing \item.
 ! Extra }, or forgotten \endgroup.
 
 
 Many of these sorts of errors occur because of a mistaken environment 
 setting.  For example, if you accidentally have a whole bunch of stuff 
 included in a heading type environment, it can mess things up badly.  Of 
 course, if you have some ERT included, you might have a problem there, too.  
 LyX is really quite good at writing tex that actually compiles, so if it 
 doesn't, there is usually some sort of unnoticed mistake somewhere.
 
 The previous suggestion is a good one, though.  Break the file up (after 
 saving it) into pieces to see in which piece the problem lies.  If you still 
 can't isolate it, put the smallest bad chunk of the document on the list, and 
 I'll take a  look at it.
 
 -- 
 
 David L. Johnson
 
 The lottery is a tax on those who fail to understand mathematics.
 


  1   2   >