Re: How to get a preview for "custom" graphics format?

2009-08-12 Thread Guenter Milde
On 2009-08-11, Pavel Sanda wrote:
> Daniel Lohmann wrote:
>> that mean that it is *not possible* to achieve goal (1) (the preview in 
>> LyX, everything else works) via file formats and converters only?

> unless imagemagick convert utility knows how to deal with it (i think
> it doesn't) i'm not aware of such a plain route.

As the tkiz -> PDF (ps2pdf) conversion seems to work, the problem should be
solvable with a definition for PDF (ps2pdf) -> PNG.

However, there might be another problem at the base, as I remember that (at
least with newer QT versions) PDF can be shown in LyX also without further
definitions.

Günter



Re: Problems with indentation and linguistics module (covington)

2009-08-12 Thread Jürgen Spitzmüller
Johannes Knaus wrote:
> After some days of playing around I still haven't found a solution to  
> the problem. Indeed it seems a very tricky business.
>
> It seems that \leftmargin is completely ignored:

There are two things to be considered here:

1. leftmargin is differentiated per indendation level (\leftmargini, 
\leftmarginii, etc.)

2. \leftmargin needs to be set before the list starts.

Try something like:

\renewenvironment{example}{%
\setlength\leftmargini{3.05em}
\begin{examples}%
\settowidth{\labelwidth}{(0.00)}%
\item}
{\end{examples}}

HTH,
Jürgen


RE: Re: Lyx 1.6.3 Can I ditch the pointNclick list of open files below the toolbars???

2009-08-12 Thread Vincent van Ravesteijn - TNW
 
>Perhaps this "automagic" behavior is dependent on the windowmanager?

Then you'd really have to try the Windows windowmanager :)

Vincent


More ... on Chapter styles for Lyx

2009-08-12 Thread Frederick Noronha [फ़रेदरिक नोरो नया]
Just to share... I found some good chapter styles for Lyx here, but am
still finding some challenges in adapting them:
http://wiki.lyx.org/LyX/UsingMemoirInLyX
FN
-- 
FN +91-9822122436 P +91-832-2409490
Konkani adages  http://konkani-adages.notlong.com/
Medieval Goa http://medieval-goa.notlong.com/


Re: How to get a preview for "custom" graphics format?

2009-08-12 Thread Pavel Sanda
Guenter Milde wrote:
> On 2009-08-11, Pavel Sanda wrote:
> > Daniel Lohmann wrote:
> >> that mean that it is *not possible* to achieve goal (1) (the preview in 
> >> LyX, everything else works) via file formats and converters only?
> 
> > unless imagemagick convert utility knows how to deal with it (i think
> > it doesn't) i'm not aware of such a plain route.
> 
> As the tkiz -> PDF (ps2pdf) conversion seems to work, the problem should be
> solvable with a definition for PDF (ps2pdf) -> PNG.

i didn't read the original post carefully, this might be an option indeed.
pavel


Re: Problems with indentation and linguistics module (covington)

2009-08-12 Thread Johannes Knaus

Yes! That does it!

A big Thank You from Johannes.


Am 12.08.2009 um 10:33 schrieb Jürgen Spitzmüller:


Johannes Knaus wrote:

After some days of playing around I still haven't found a solution to
the problem. Indeed it seems a very tricky business.

It seems that \leftmargin is completely ignored:


There are two things to be considered here:

1. leftmargin is differentiated per indendation level (\leftmargini,
\leftmarginii, etc.)

2. \leftmargin needs to be set before the list starts.

Try something like:

\renewenvironment{example}{%
\setlength\leftmargini{3.05em}
\begin{examples}%
\settowidth{\labelwidth}{(0.00)}%
\item}
{\end{examples}}

HTH,
Jürgen




Re: Go Away Drawer

2009-08-12 Thread Bruce Pourciau


On Aug 11, 2009, at 11:29 AM, Vincent van Ravesteijn - TNW wrote:



In LyX 1.6.3, how cam I make the Table of Contents drawer go away?


By pressing the small 'x' ?


Thanks, Vincent. Didn't see any small 'x', but unchecking Outline in  
the Document menu worked. I guess I was assuming that the drawer would  
be controlled in the View menu.


Bruce


lyx 1.6.2 + Ubuntu 9.04 = slow typing

2009-08-12 Thread Alex M
Hi!

I would like to share my experience with solving very frustrating problem with 
typing in lyx 1.6.x under Ubuntu 9.04. Maybe this will help someone else or 
even lead to a fix in a next lyx version.

Recently I've upgraded to Ubuntu 9.04. After that, I could not continue my work 
in lyx 1.6.2. When typing, I experienced a very large delay (like seconds) 
before all symbols would appear on screen. 

I read through all posts in lyx mailing list with similar symptoms (just 2 or 
3). The only solution there that worked was to buy a new video card.

What I've done next:

1) Installed lyx 1.6.0 - the same typing delay. Installed lyx 1.5.7 - no typing 
delays. Returned back to lyx 1.6.2.

2) Looked at the CPU utilization. When typing, Xorg ate up to 50% CPU.
Then I resized lyx window to be smaller. CPU utilization fall down, and typing 
delay decreased. I resized lyx to be 25% of the screen - typing delay almost 
disappeared.

3) I looked which video card I have (lspci |grep Display) - Intel Corporation 
82945G/GZ Integrated Graphics Controller (rev 02)
I googled for problems with Intel graphics under Ubuntu 9, and found this link 
useful:
http://ubuntuforums.org/showthread.php?t=1130582=ubuntu+slow+update
+jaunty

4) I tried different solutions from the link above and mostly got my X broken 
or no effect. Finally this one worked for me:

- open xorg.conf (sudo gedit /etc/X11/xorg.conf)
- go to section "Device", mine was
Section "Device"
Identifier  "Configured Video Device"
EndSection
- add Option "MigrationHeuristic" "greedy" so the section looks now like this
Section "Device"
Identifier  "Configured Video Device"
Option  "MigrationHeuristic""greedy"
EndSection
- restart X or reboot.

Now I have almost no typing delays in lyx 1.6.2 (at least, typing speed is the 
same as in lyx 1.5.7 on my PC).



Re: lyx 1.6.2 + Ubuntu 9.04 = slow typing

2009-08-12 Thread Richard Talley
I'd be very interested in knowing what your Xorg CPU utilization is
like now. I'm having a similar problem on an old server running
Xubuntu 9.04, where Xorg is hogging the CPU. Thanks.  -- Rich

On Wed, Aug 12, 2009 at 6:41 AM, Alex M wrote:
> Hi!
>
> I would like to share my experience with solving very frustrating problem with
> typing in lyx 1.6.x under Ubuntu 9.04. Maybe this will help someone else or
> even lead to a fix in a next lyx version.
>
> Recently I've upgraded to Ubuntu 9.04. After that, I could not continue my 
> work
> in lyx 1.6.2. When typing, I experienced a very large delay (like seconds)
> before all symbols would appear on screen.
>
> I read through all posts in lyx mailing list with similar symptoms (just 2 or
> 3). The only solution there that worked was to buy a new video card.
>
> What I've done next:
>
> 1) Installed lyx 1.6.0 - the same typing delay. Installed lyx 1.5.7 - no 
> typing
> delays. Returned back to lyx 1.6.2.
>
> 2) Looked at the CPU utilization. When typing, Xorg ate up to 50% CPU.
> Then I resized lyx window to be smaller. CPU utilization fall down, and typing
> delay decreased. I resized lyx to be 25% of the screen - typing delay almost
> disappeared.
>
> 3) I looked which video card I have (lspci |grep Display) - Intel Corporation
> 82945G/GZ Integrated Graphics Controller (rev 02)
> I googled for problems with Intel graphics under Ubuntu 9, and found this link
> useful:
> http://ubuntuforums.org/showthread.php?t=1130582=ubuntu+slow+update
> +jaunty
>
> 4) I tried different solutions from the link above and mostly got my X broken
> or no effect. Finally this one worked for me:
>
> - open xorg.conf (sudo gedit /etc/X11/xorg.conf)
> - go to section "Device", mine was
> Section "Device"
>        Identifier      "Configured Video Device"
> EndSection
> - add Option "MigrationHeuristic" "greedy" so the section looks now like this
> Section "Device"
>        Identifier      "Configured Video Device"
>        Option          "MigrationHeuristic"            "greedy"
> EndSection
> - restart X or reboot.
>
> Now I have almost no typing delays in lyx 1.6.2 (at least, typing speed is the
> same as in lyx 1.5.7 on my PC).
>
>


Re: Lyx 1.6.3 Can I ditch the pointNclick list of open files below the toolbars???

2009-08-12 Thread BH
On Fri, Aug 7, 2009 at 12:46 PM, Vincent van
Ravesteijn wrote:
>
>> But if I close the otherwise useless standard toolbar, the scrollbox
>> isn't on the screen, thus it doesn't open so that I can select
>> chapter,(or other {is it called section type?} choice from list...)
>> Thus the viability of the shortcut sequence I described requires that
>> the standard toolbar be turned on...
>
> Magically, the dropdownbox is also shown when the toolbar is hidden (after
> Alt-P )

>From what I can tell, this is true only if the standard toolbar has
been visible in the relevant window at some time in the past -- at
least on Mac. If as I do (and Joe apparently does) you set your ui
file not to load the standard toolbar, then Alt-P does nothing.
But once you make the toolbar visible and then invisible, Alt-P
does its magic.

BH


Re: lyx 1.6.2 + Ubuntu 9.04 = slow typing

2009-08-12 Thread Alex M
Richard Talley  writes:

> 
> I'd be very interested in knowing what your Xorg CPU utilization is
> like now. I'm having a similar problem on an old server running
> Xubuntu 9.04, where Xorg is hogging the CPU. Thanks.  -- Rich

Xorg uses 10-20% CPU now, usually 10%.



Re: Problems with indentation and linguistics module (covington)

2009-08-12 Thread Jürgen Spitzmüller
Johannes Knaus wrote:
> Yes! That does it!

It's now documented on the wiki, together with some related information:
http://wiki.lyx.org/LyX/LinguistLyX#toc16

Jürgen


Re: changing margins in article class when using Beamer

2009-08-12 Thread Paul A. Rubin

Graham M Smith wrote:

rh
If you can find some macro that is defined in this case, but not in 
the other case, then all you need is:

\ifx\thatmacro\undefined\relax\else
 your stuff here 
\fi
I don't know what \thatmacro might be, though.
Thanks, but unfortunately, this doesn't mean very much to me, I confess 
I was hoping for a single options line in the preamble :-(


Graham



Any particular reason you are switching to the article class for 
handouts, as opposed to using the handout option in the class options field?


/Paul



Re: How to embed a spreadsheet in LyX or LaTeX?

2009-08-12 Thread Paul A. Rubin

rgheck wrote:

On 08/11/2009 03:31 PM, Steve Litt wrote:

How can I embed a spreadsheet (MS Excel I assume) into a LyX or LaTeX
document?
   

If you do want it to be editable, then I have no idea.



This could turn into a viewer issue (at least partially), depending on 
what Steve has in mind.  There are four "levels" of embedding I can 
think of:


1.  Static (data is copied in once, does not change if the spreadsheet 
changes).  There've been a few responses on the list along those lines.


2.  Dynamic (the LyX doc contains a non-interactive table, but it 
automagically updates if the spreadsheet changes).  With other programs, 
this typically requires DDE (on Windows), but it could probably be faked 
with a script that the user would run manually.  The script would have 
to crank up the spreadsheet and dump the relevant table(s) to some sort 
of intermediate file(s) (CSV?).


3.  Static link (user sees a link in the LyX doc, clicks it to open the 
spreadsheet in an external program).  I doubt this is what Steve wants, 
since embedding links in LyX docs is well known.


4.  Dynamic link (user sees a table in the LyX doc, and can interact 
with it, making changes in the spreadsheet).  This would typically occur 
with the user reading the finished product (PDF, DVI) in a viewer, not 
reading it in LyX, so you get into issues of whether the viewer program 
supports this sort of embedding.  For instance, if you export the 
document in HTML and view it in a browser, I think there are browser 
plugins that let you edit a spreadsheet in situ (although I confess I've 
never done it).


/Paul



Re: lyx 1.6.2 + Ubuntu 9.04 = slow typing

2009-08-12 Thread Paul A. Rubin

Alex M wrote:

Hi!

I would like to share my experience with solving very frustrating problem with 
typing in lyx 1.6.x under Ubuntu 9.04. Maybe this will help someone else or 
even lead to a fix in a next lyx version.


Recently I've upgraded to Ubuntu 9.04. After that, I could not continue my work 
in lyx 1.6.2. When typing, I experienced a very large delay (like seconds) 
before all symbols would appear on screen. 

I read through all posts in lyx mailing list with similar symptoms (just 2 or 
3). The only solution there that worked was to buy a new video card.


What I've done next:

1) Installed lyx 1.6.0 - the same typing delay. Installed lyx 1.5.7 - no typing 
delays. Returned back to lyx 1.6.2.


2) Looked at the CPU utilization. When typing, Xorg ate up to 50% CPU.
Then I resized lyx window to be smaller. CPU utilization fall down, and typing 
delay decreased. I resized lyx to be 25% of the screen - typing delay almost 
disappeared.


3) I looked which video card I have (lspci |grep Display) - Intel Corporation 
82945G/GZ Integrated Graphics Controller (rev 02)
I googled for problems with Intel graphics under Ubuntu 9, and found this link 
useful:

http://ubuntuforums.org/showthread.php?t=1130582=ubuntu+slow+update
+jaunty

4) I tried different solutions from the link above and mostly got my X broken 
or no effect. Finally this one worked for me:


- open xorg.conf (sudo gedit /etc/X11/xorg.conf)
- go to section "Device", mine was
Section "Device"
Identifier  "Configured Video Device"
EndSection
- add Option "MigrationHeuristic" "greedy" so the section looks now like this
Section "Device"
Identifier  "Configured Video Device"
Option  "MigrationHeuristic"  "greedy"
EndSection
- restart X or reboot.

Now I have almost no typing delays in lyx 1.6.2 (at least, typing speed is the 
same as in lyx 1.5.7 on my PC).





This is worth posting to the wiki, if you're so inclined.

/Paul



Re: changing margins in article class when using Beamer

2009-08-12 Thread Graham M Smith

Paul
Any particular reason you are switching to the article class for 
handouts, as opposed to using the handout option in the class options 
field?

Mmmm,

I'm not switching to the article class, I'm switching to the "article 
(Beamer)" class. I realise now that I described this as "beamer article" 
class in my original post.


However, I can't see a handout option under  class options assuming this 
is meant to be under Document settings|document class.


The document class options predefined is ticked but greyed out with [No 
options predefined] in the field.


This is when Document Class "presentation(Beamer)" is selected.

Am I in the wrong place? A simple handout option would be nice.  This is 
1.6.2 on Ubuntu 9.04


Thanks,

Graham




Re: How to embed a spreadsheet in LyX or LaTeX?

2009-08-12 Thread Les Denham
On Wednesday 12 August 2009, Paul A. Rubin wrote:
> Dynamic link (user sees a table in the LyX doc, and can interact
> with it, making changes in the spreadsheet).  This would typically occur
> with the user reading the finished product (PDF, DVI) in a viewer, not
> reading it in LyX, so you get into issues of whether the viewer program
> supports this sort of embedding.  For instance, if you export the
> document in HTML and view it in a browser, I think there are browser
> plugins that let you edit a spreadsheet in situ (although I confess I've
> never done it).

This kind of approach is possible in theory: for example, if you have a figure 
in LyX which is a Grace file, editing that file in Grace will change the 
figure in Lyx immediately.  That is not the same as just editing an image: 
the Grace file is actually displayed in LyX using Grace in a command line 
mode.

The problem with a spreadsheet is that Excel does not (as far as I know) have 
a command line interface.  Neither does OpenOffice.org.  Gnumeric has a 
Python API which might be usable, but I haven't tried it.  The best 
possibility I'm aware of is the Perl module XLSperl 
(http://search.cpan.org/~jonallen/XLSperl-0.7/bin/XLSperl) which could be 
used to build an image from specified sheet, rows and columns. Once you have 
done this, the Perl script could be used in a converter (XLS->EPS, for 
example). But I don't think it would be a trivial task to do this.

-- 
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


Re: lyx 1.6.2 + Ubuntu 9.04 = slow typing

2009-08-12 Thread Sven Hoexter
On Wed, Aug 12, 2009 at 11:38:26AM -0400, Paul A. Rubin wrote:

Hi,

> >3) I looked which video card I have (lspci |grep Display) - Intel
> >Corporation 82945G/GZ Integrated Graphics Controller (rev 02)
> >I googled for problems with Intel graphics under Ubuntu 9, and
> >found this link useful:
> >http://ubuntuforums.org/showthread.php?t=1130582=ubuntu+slow+update
> >+jaunty
> 
> This is worth posting to the wiki, if you're so inclined.

Intel drivers for the older chips are currently broken and in most cases
unusable. Phoronix wrote about it several times. The newer 9x chips seem to
work again with Linux 2.6.30+ and the latest 2.9 Intel drivers.

I've downgraded all my (Debian) systems with Intel 8x chips to an older
Xorg version and the  2.3.2-2+lenny6 intel driver from Lenny. Currently that
still works but someday it will break for sure.

So all in all I doubt this is somehow relevant for LyX it's more of a general
issue.

Sven
-- 
They're the cowards We are rebels
We got the power to fight the devil
   [ AIV - We are rebels ]


Re: How to embed a spreadsheet in LyX or LaTeX?

2009-08-12 Thread John McCabe-Dansted
On Wed, Aug 12, 2009 at 11:36 PM, Paul A. Rubin wrote:
> This could turn into a viewer issue (at least partially), depending on what
> Steve has in mind.  There are four "levels" of embedding I can think of:

Adding spreadsheet to Insert->File->External Material sounds like a
good start. Like how .fig is handled but with something like
PyODConverter instead of transfig.
   http://www.oooninja.com/2008/02/batch-command-line-file-conversion-with.html

Presumbaly PyODConverter can convert any xls file that OO supports.

-- 
John C. McCabe-Dansted


unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread zweetsmoel
Hello,

it always happens when you need the bloody thing ;-)

i urgently need to edit and render my CV with lyx. unfortunately lyx
gives the following error when starting:  symbol lookup error:
src/lyx: undefined symbol: _Z13qFlagLocationPKc

i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
from source,... but nothing helps :\  googling did not save my day, so
i'm asking here, because i'm stuck. please any suggestions? my
guess this is Qt related, but i have not a single clue how to fix that

running on ubuntu 9.04, with qt 4.5 (i think)


thank you!
regards
Michael


Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread Vincent van Ravesteijn

zweetsmoel schreef:

Hello,

it always happens when you need the bloody thing ;-)

i urgently need to edit and render my CV with lyx. unfortunately lyx
gives the following error when starting:  symbol lookup error:
src/lyx: undefined symbol: _Z13qFlagLocationPKc

i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
from source,... but nothing helps :\  googling did not save my day, so
i'm asking here, because i'm stuck. please any suggestions? my
guess this is Qt related, but i have not a single clue how to fix that

running on ubuntu 9.04, with qt 4.5 (i think)

  
First quess: you compiled against qt 4.4 and try to run with qt 4.5. Or 
the other way around.


Vincent


Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread rgheck

On 08/12/2009 02:21 PM, zweetsmoel wrote:

Hello,

it always happens when you need the bloody thing ;-)

i urgently need to edit and render my CV with lyx. unfortunately lyx
gives the following error when starting:  symbol lookup error:
src/lyx: undefined symbol: _Z13qFlagLocationPKc

i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
from source,... but nothing helps :\  googling did not save my day, so
i'm asking here, because i'm stuck. please any suggestions? my
guess this is Qt related, but i have not a single clue how to fix that

running on ubuntu 9.04, with qt 4.5 (i think)

   

It does seem to have something to do with Qt, but I'm not sure what.

Some people seem to have had better luck with 1.6.1, which you could 
also try.


Andre, I'm bringing you in, as you're the guru for this kind of thing.

rh



Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread zweetsmoel
On Wed, Aug 12, 2009 at 8:27 PM, rgheck wrote:
> On 08/12/2009 02:21 PM, zweetsmoel wrote:
>>
>> Hello,
>>
>> it always happens when you need the bloody thing ;-)
>>
>> i urgently need to edit and render my CV with lyx. unfortunately lyx
>> gives the following error when starting:  symbol lookup error:
>> src/lyx: undefined symbol: _Z13qFlagLocationPKc
>>
>> i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
>> from source,... but nothing helps :\  googling did not save my day, so
>> i'm asking here, because i'm stuck. please any suggestions? my
>> guess this is Qt related, but i have not a single clue how to fix that
>>
>> running on ubuntu 9.04, with qt 4.5 (i think)
>>
>>
>
> It does seem to have something to do with Qt, but I'm not sure what.
>
> Some people seem to have had better luck with 1.6.1, which you could also
> try.
>
> Andre, I'm bringing you in, as you're the guru for this kind of thing.
>
> rh
>
>

i'll try 1.6.1 as compiling 1.6.3 wasn't too difficult

i replied to vincent, but i noticed it was sent to him only, sorry for that.
my question was: how can i check the exact qt version installed on my
ubuntu box?

thx
michael


Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread Andre Poenitz
On Wed, Aug 12, 2009 at 08:21:00PM +0200, zweetsmoel wrote:
> Hello,
> 
> it always happens when you need the bloody thing ;-)
> 
> i urgently need to edit and render my CV with lyx. unfortunately lyx
> gives the following error when starting:  symbol lookup error:
> src/lyx: undefined symbol: _Z13qFlagLocationPKc
> 
> i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
> from source,... but nothing helps :\  googling did not save my day, so
> i'm asking here, because i'm stuck. please any suggestions? my
> guess this is Qt related, but i have not a single clue how to fix that
> 
> running on ubuntu 9.04, with qt 4.5 (i think)

The LyX your are trying to start wants to use an older version of Qt
than the one that was used when LyX was compiled.

This may e.g. happen when you use a self-compiled recent version of Qt
to build LyX and on startup it picks up the older system version. 
Setting LD_LIBRARY_PATH apropriately helps in those cases.

Andre'


Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread zweetsmoel
On Wed, Aug 12, 2009 at 8:40 PM, Andre
Poenitz wrote:
> On Wed, Aug 12, 2009 at 08:21:00PM +0200, zweetsmoel wrote:
>> Hello,
>>
>> it always happens when you need the bloody thing ;-)
>>
>> i urgently need to edit and render my CV with lyx. unfortunately lyx
>> gives the following error when starting:  symbol lookup error:
>> src/lyx: undefined symbol: _Z13qFlagLocationPKc
>>
>> i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
>> from source,... but nothing helps :\  googling did not save my day, so
>> i'm asking here, because i'm stuck. please any suggestions? my
>> guess this is Qt related, but i have not a single clue how to fix that
>>
>> running on ubuntu 9.04, with qt 4.5 (i think)
>
> The LyX your are trying to start wants to use an older version of Qt
> than the one that was used when LyX was compiled.
>
> This may e.g. happen when you use a self-compiled recent version of Qt
> to build LyX and on startup it picks up the older system version.
> Setting LD_LIBRARY_PATH apropriately helps in those cases.
>
> Andre'
>


i've build 1.6.1, but exactly the same error :\ ...

andre, thx for the suggestions, but i did not compile Qt myself. it's
the standard ubuntu qt libs.
could you please elaborate on how to use 'setting LD_LIBRARY_PATH'?
i'm not sure that i understand what you mean.

thank you
M


Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread rgheck

On 08/12/2009 03:18 PM, zweetsmoel wrote:

On Wed, Aug 12, 2009 at 8:40 PM, Andre
Poenitz  wrote:
   

On Wed, Aug 12, 2009 at 08:21:00PM +0200, zweetsmoel wrote:
 

Hello,

it always happens when you need the bloody thing ;-)

i urgently need to edit and render my CV with lyx. unfortunately lyx
gives the following error when starting:  symbol lookup error:
src/lyx: undefined symbol: _Z13qFlagLocationPKc

i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
from source,... but nothing helps :\  googling did not save my day, so
i'm asking here, because i'm stuck. please any suggestions? my
guess this is Qt related, but i have not a single clue how to fix that

running on ubuntu 9.04, with qt 4.5 (i think)
   

The LyX your are trying to start wants to use an older version of Qt
than the one that was used when LyX was compiled.

This may e.g. happen when you use a self-compiled recent version of Qt
to build LyX and on startup it picks up the older system version.
Setting LD_LIBRARY_PATH apropriately helps in those cases.

Andre'

 


for your information, when i compile lyx (either 1.6.1/2/3), i get
this info when finished:

   
Is it possible that you have two versions of Qt installed, accidentally? 
Is it possible that the Qt libraries and Qt headers are not the same?


Are you sure that you managed to completely uninstall the old LyX? You 
might try compiling LyX and then NOT installing it, but rather running 
it "in place". So, after compilation finishes, type "src/lyx" to run it.


Richard


Richard



Re: How to embed a spreadsheet in LyX or LaTeX?

2009-08-12 Thread Jeremy
On Wednesday 12 August 2009, Les Denham wrote:
> On Wednesday 12 August 2009, Paul A. Rubin wrote:
> > Dynamic link (user sees a table in the LyX doc, and can interact
> > with it, making changes in the spreadsheet).  This would typically occur
> > with the user reading the finished product (PDF, DVI) in a viewer, not
> > reading it in LyX, so you get into issues of whether the viewer program
> > supports this sort of embedding.  For instance, if you export the
> > document in HTML and view it in a browser, I think there are browser
> > plugins that let you edit a spreadsheet in situ (although I confess I've
> > never done it).
>
> This kind of approach is possible in theory: for example, if you have a
> figure in LyX which is a Grace file, editing that file in Grace will change
> the figure in Lyx immediately.  That is not the same as just editing an
> image: the Grace file is actually displayed in LyX using Grace in a command
> line mode.
>
> The problem with a spreadsheet is that Excel does not (as far as I know)
> have a command line interface.  Neither does OpenOffice.org.  Gnumeric has
> a Python API which might be usable, but I haven't tried it.  The best
> possibility I'm aware of is the Perl module XLSperl
> (http://search.cpan.org/~jonallen/XLSperl-0.7/bin/XLSperl) which could be
> used to build an image from specified sheet, rows and columns. Once you
> have done this, the Perl script could be used in a converter (XLS->EPS, for
> example). But I don't think it would be a trivial task to do this.

If all you need is row+column data from an excel spreadsheet, you could also 
use the perl module Spreadsheet::ParseExcel
to parse the excel file, and then write the cells out in latex tabular format. 
Then just \input{exceltable.tex}. I've done something similar to generate 
longtables using excel data. Of course if you want charts, etc. from the excel 
file, that would be more difficult.

You could use something like the following perl code to parse your excel file 
and output a latex table:

#!/usr/bin/perl 

use strict; 

use warnings;   

#use Text::CSV; 

use Text::CSV_XS;   

use Spreadsheet::ParseExcel;


if($#ARGV!=1){  

   print "Usage $0 excelfile outfile";  
 
   exit;

}   

my $file  = $ARGV[0];
my $ofile = $ARGV[1];
open (TEX, ">$ofile") or die $!;
 

my @fields;
_xls();
close TEX
exit; 

# need to quote latex special characters
sub latexquote(){
   my $s=$_[0];  
   $s =~ s/&/\\&/g;
   $s =~ s/#/\\#/g;
   $s =~ s/\$/\\\$/g;
   $s =~ s/%/\\%/g;  
   $s =~ s/{/\\{/g;  
   $s =~ s/}/\\}/g;  
   $s =~ s/_/\\_/g;  
   $s =~ s/\.\ /\.\\\ /g;
   return $s;
   1;
}

sub print_record()
{ 
   my $flds = $_[0];
   if(ref($flds) ne 'ARRAY' ) { die "Expected array ref, not $flds\n"; }
   #unless (@_ == 1 && ref($flds) eq 'ARRAY') { die "usage: 
print_record(array_ref)\n"; }
   my $l...@$flds;  
 

   for(my $i=0; $i<$len; $i++)
   { 
  print(TEX, "\&") if($i !=0); #Tab Character
  print(TEX, ($flds->[$i]); 
   } print(TEX, " \n");  #End of Row   
}   

sub process_xls()
{
   my $oExcel = new Spreadsheet::ParseExcel;

   my $oBook = $oExcel->Parse($ARGV[0]);
   my($iR, $iC, $oWkS, $oWkC, $fld);
   print "FILE  :", $oBook->{File} , "\n";
   print "COUNT :", $oBook->{SheetCount} , "\n";

   print "AUTHOR:", $oBook->{Author} , "\n" if defined $oBook->{Author};

   print(TEX, "\\begin{tabular}");
   #print {column formatting}
   #print column headings

   # Loop over sheets
   for(my $iSheet=0; $iSheet < $oBook->{SheetCount} ; $iSheet++)
   {
  $oWkS = $oBook->{Worksheet}[$iSheet]; 
  print "- SHEET:", $oWkS->{Name}, "\n";

Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread zweetsmoel
On Wed, Aug 12, 2009 at 8:40 PM, Andre
Poenitz wrote:
> On Wed, Aug 12, 2009 at 08:21:00PM +0200, zweetsmoel wrote:
>> Hello,
>>
>> it always happens when you need the bloody thing ;-)
>>
>> i urgently need to edit and render my CV with lyx. unfortunately lyx
>> gives the following error when starting:  symbol lookup error:
>> src/lyx: undefined symbol: _Z13qFlagLocationPKc
>>
>> i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
>> from source,... but nothing helps :\  googling did not save my day, so
>> i'm asking here, because i'm stuck. please any suggestions? my
>> guess this is Qt related, but i have not a single clue how to fix that
>>
>> running on ubuntu 9.04, with qt 4.5 (i think)
>
> The LyX your are trying to start wants to use an older version of Qt
> than the one that was used when LyX was compiled.
>
> This may e.g. happen when you use a self-compiled recent version of Qt
> to build LyX and on startup it picks up the older system version.
> Setting LD_LIBRARY_PATH apropriately helps in those cases.
>
> Andre'
>

for your information, when i compile lyx (either 1.6.1/2/3), i get
this info when finished:

Configuration
  Host type:i686-pc-linux-gnu
  Special build flags:   use-ispell
  C   Compiler: gcc
  C   Compiler LyX flags:
  C   Compiler flags:-O2
  C++ Compiler: g++ (4.3.3)
  C++ Compiler LyX flags:
  C++ Compiler flags:-O2
  Linker flags:
  Linker user flags:
  Qt 4 Frontend:
  Qt 4 version: 4.5.0
  Packaging:posix
  LyX binary dir:   /usr/local/bin
  LyX files dir:/usr/local/share/lyx

Configuration of LyX was successful.
Type 'make' to compile the program,
and then 'make install' to install it.



hope this helps,
Michael


Re: How to get a preview for "custom" graphics format?

2009-08-12 Thread Florian Rubach

Daniel Lohmann schrieb:

Hi,


...

So here is what I want to achieve:

I have some TikZ figures (which are actually stand-alone 
LaTeX-documents with the extension .tikz) that I want to embed (not 
the source, but the PDF/EPS via \includegraphics) into my LyX document 
in a way that (1) the LyX-Preview does work (2) PDF generation does 
work, and (3) the .tikz-file is opened in vim when I select "Edit 
externally..."

...


Your  help is highly appreciated!

Daniel

Hello Daniel!

I'm sorry I can't help you, I just want to tell you that I'm also 
interested in having a preview for TikZ-Graphics. So if there's any 
progress in achieving that, please share it!


Regards,
Florian




Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread Andre Poenitz
On Wed, Aug 12, 2009 at 09:15:17PM +0200, zweetsmoel wrote:
> On Wed, Aug 12, 2009 at 8:40 PM, Andre
> Poenitz wrote:
> > On Wed, Aug 12, 2009 at 08:21:00PM +0200, zweetsmoel wrote:
> >> Hello,
> >>
> >> it always happens when you need the bloody thing ;-)
> >>
> >> i urgently need to edit and render my CV with lyx. unfortunately lyx
> >> gives the following error when starting:  symbol lookup error:
> >> src/lyx: undefined symbol: _Z13qFlagLocationPKc
> >>
> >> i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
> >> from source,... but nothing helps :\  googling did not save my day, so
> >> i'm asking here, because i'm stuck. please any suggestions? my
> >> guess this is Qt related, but i have not a single clue how to fix that
> >>
> >> running on ubuntu 9.04, with qt 4.5 (i think)
> >
> > The LyX your are trying to start wants to use an older version of Qt
> > than the one that was used when LyX was compiled.
> >
> > This may e.g. happen when you use a self-compiled recent version of Qt
> > to build LyX and on startup it picks up the older system version.
> > Setting LD_LIBRARY_PATH apropriately helps in those cases.
> >
> > Andre'
> 
> 
> i've build 1.6.1, but exactly the same error :\ ...
> 
> andre, thx for the suggestions, but i did not compile Qt myself. it's
> the standard ubuntu qt libs.

I am reasonably sure that the scenario you describe cannot occur
with only a single version of Qt on your system.

If you only used only packages form your distribution the only
explanation I have is that the development package you use (i.e.
libqt4-dev) does not match the installed libraries. Either there's
a difference in version of both, or you use the development package
with a set of defines that's incompatible with the the installed
version.

The latter seems actually be rather likely as qFlagLocation is
only used if QT_NO_DEBUG is _not_ set, i.e. you use the Qt in
"debug" mode. The system Qt is most likely not in debug mode. 

If this is the reason you need to make sure that QT_NO_DEBUG is
defined when you compile LyX. I have no idea how Ubuntu packages
the Qt development package, but I guess configuring LyX with
"CXXFLAGS=-DQT_NO_DEBUG ./configure" or similar might help.

Andre'

PS:

> could you please elaborate on how to use 'setting LD_LIBRARY_PATH'?
> i'm not sure that i understand what you mean.

That's only relevant for the case where you have multiple versions
of Qt on your system, so let's ignore this for now.


Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread zweetsmoel
On Wed, Aug 12, 2009 at 9:45 PM, Andre
Poenitz wrote:
> On Wed, Aug 12, 2009 at 09:15:17PM +0200, zweetsmoel wrote:
>> On Wed, Aug 12, 2009 at 8:40 PM, Andre
>> Poenitz wrote:
>> > On Wed, Aug 12, 2009 at 08:21:00PM +0200, zweetsmoel wrote:
>> >> Hello,
>> >>
>> >> it always happens when you need the bloody thing ;-)
>> >>
>> >> i urgently need to edit and render my CV with lyx. unfortunately lyx
>> >> gives the following error when starting:  symbol lookup error:
>> >> src/lyx: undefined symbol: _Z13qFlagLocationPKc
>> >>
>> >> i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
>> >> from source,... but nothing helps :\  googling did not save my day, so
>> >> i'm asking here, because i'm stuck. please any suggestions? my
>> >> guess this is Qt related, but i have not a single clue how to fix that
>> >>
>> >> running on ubuntu 9.04, with qt 4.5 (i think)
>> >
>> > The LyX your are trying to start wants to use an older version of Qt
>> > than the one that was used when LyX was compiled.
>> >
>> > This may e.g. happen when you use a self-compiled recent version of Qt
>> > to build LyX and on startup it picks up the older system version.
>> > Setting LD_LIBRARY_PATH apropriately helps in those cases.
>> >
>> > Andre'
>>
>>
>> i've build 1.6.1, but exactly the same error :\ ...
>>
>> andre, thx for the suggestions, but i did not compile Qt myself. it's
>> the standard ubuntu qt libs.
>
> I am reasonably sure that the scenario you describe cannot occur
> with only a single version of Qt on your system.
>
> If you only used only packages form your distribution the only
> explanation I have is that the development package you use (i.e.
> libqt4-dev) does not match the installed libraries. Either there's
> a difference in version of both, or you use the development package
> with a set of defines that's incompatible with the the installed
> version.
>
> The latter seems actually be rather likely as qFlagLocation is
> only used if QT_NO_DEBUG is _not_ set, i.e. you use the Qt in
> "debug" mode. The system Qt is most likely not in debug mode.
>
> If this is the reason you need to make sure that QT_NO_DEBUG is
> defined when you compile LyX. I have no idea how Ubuntu packages
> the Qt development package, but I guess configuring LyX with
> "CXXFLAGS=-DQT_NO_DEBUG ./configure" or similar might help.
>
> Andre'
>
> PS:
>
>> could you please elaborate on how to use 'setting LD_LIBRARY_PATH'?
>> i'm not sure that i understand what you mean.
>
> That's only relevant for the case where you have multiple versions
> of Qt on your system, so let's ignore this for now.
>

only another error message...
src/lyx: symbol lookup error: src/lyx: undefined symbol:
_ZN8QPainter10drawPixmapERK7QPointFRK7QPixmap

ok, this is definitely a qt error. even qtconfig won't launch, it
gotta be qt related. but what exactly? i tried removing &
re-installing all qt packages and many others; and i wasn't able to
find duplicate qt libs, but i'm not really an expert in libs and devs.

too bad, that's gonna be a CV made with ms-office. yak... ;-)

thanks for the feedback folks
michael


Find All and Emphasize

2009-08-12 Thread Bruce Pourciau
Is there a simple way to go back through a document and italicize  
(emphasize) all occurrences of a certain word?


Bruce


Re: changing margins in article class when using Beamer

2009-08-12 Thread Paul A. Rubin

Graham M Smith wrote:

Paul
Any particular reason you are switching to the article class for 
handouts, as opposed to using the handout option in the class options 
field?

Mmmm,

I'm not switching to the article class, I'm switching to the "article 
(Beamer)" class. I realise now that I described this as "beamer article" 
class in my original post.


That's ok, I understood what you meant -- just not why you did it.  I 
don't use article (Beamer), but my impression is that it's purpose is to 
facilitate turning a slideshow into a paper (either after the fact or in 
parallel development).  I don't think it's really intended to reproduce 
slides in slide-like form (although I could be wrong), and in any case 
it seems to be overkill for handouts (unless maybe you mean to annotate 
the handouts a fair bit).


However, I can't see a handout option under  class options assuming this 
is meant to be under Document settings|document class.


You have to fill it in.


The document class options predefined is ticked but greyed out with [No 
options predefined] in the field.


This is when Document Class "presentation(Beamer)" is selected.

Am I in the wrong place? A simple handout option would be nice.  This is 
1.6.2 on Ubuntu 9.04


You're in the right place but perhaps misunderstanding the dialog a bit. 
   The grayed-out box is for options that were preselected (which I 
suspect means forced on you) by the layout file.  Grayed out is a good 
thing IMHO -- it means all the options are up to you.


The "Custom" box beneath it is where you specify class options of your 
choosing, by typing them in (the same way you would if you were using 
straight LaTeX).  It presumes that you know what options work with the 
class you chose.


In this case, just type the word 'handout' (no quotes) in the "Custom" 
field and then View->PDF (pdflatex).  What you get is a bunch of slides, 
one per page, same margins as the original.  The main differences are 
that overlays and sequential alerting are eliminated.  So, for instance, 
if you have a slide with five bullets, each in a separate overlay, that 
was five pages in the original PDF but one page (all bullets showing) in 
the handout version.


It's common to want to print multiple slides on one page for handouts. 
That's usually best accomplished in the printer settings or in the 
viewer.  For instance, if you use Acrobat Reader, File > Print has a 
'Page scaling' entry that lets yo specify multiple pages per sheet. 
Pretty much the same story if you use Evince (aka 'Document Viewer') -- 
look at the 'Page Setup tab' in the print dialog, 'Pages per side'.


I'm not sure, but I think Beamer even includes some macros that can add 
annotations/notes to slides that will display in handout mode (if that's 
important to you).  Personally, I usually just pass out the slides 
themselves, one or two slides per sheet (four per sheet works if your 
audience has good eyesight and no intention of taking notes on the slides).


/Paul



Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread Andre Poenitz
On Wed, Aug 12, 2009 at 10:16:41PM +0200, zweetsmoel wrote:
> only another error message...
> src/lyx: symbol lookup error: src/lyx: undefined symbol:
> _ZN8QPainter10drawPixmapERK7QPointFRK7QPixmap
> 
> ok, this is definitely a qt error. even qtconfig won't launch, it
> gotta be qt related. but what exactly?

Something with your installation. Really.

> i tried removing &
> re-installing all qt packages and many others; and i wasn't able to
> find duplicate qt libs, but i'm not really an expert in libs and devs.

Andre'

PS:

> too bad, that's gonna be a CV made with ms-office. yak... ;-)

Plain LaTeX works for CVs - possibly even better than LyX as that's one
of the rare cases where "finger painting" is acceptable. And it would
yield the same bonus point in an application as using LyX would...


Re: changing margins in article class when using Beamer

2009-08-12 Thread Graham M Smith

Paul


That's ok, I understood what you meant -- just not why you did it.  I 
don't use article (Beamer), but my impression is that it's purpose is 
to facilitate turning a slideshow into a paper (either after the fact 
or in parallel development).  I don't think it's really intended to 
reproduce slides in slide-like form (although I could be wrong), and 
in any case it seems to be overkill for handouts (unless maybe you 
mean to annotate the handouts a fair bit).
Ah, but we have a fundamental misunderstanding. The reason I started 
using Beamer was the very fact that I could prepare slides and lecture 
notes (article) in parallel.  I don't want a print out of the slides in 
a slide-like form.  I use the slide content as an outline for my 
lecture, but expand on this (with more text than you would want to put 
on the slides), and additional diagrams, examples, reference list etc as 
a class hand out. So students get properly written (and illustrated)  
hand outs, for my lectures.


In fact it was this capability that brought me to latex/beamer in the 
first place after a plea on various forums for any ideas on how I could 
keep my handouts and presentations in sync so I didn't have to try and 
keep two documents (Powerpoint and Word) up to date and in sync.  But 
Beamer became available in Lyx before I managed to develop any real 
expertise in Latex, even though I had started to rewrite all my lecture 
material in Latex


I have put up with the wide margins up to now, but it seems a waste of 
paper, and it would be useful to allow diagrams and graphs to expand 
across the full page width.


Am I in the wrong place? A simple handout option would be nice.  This 
is 1.6.2 on Ubuntu 9.04



In this case, just type the word 'handout' (no quotes) in the "Custom" 
field and then View->PDF (pdflatex).  What you get is a bunch of 
slides, one per page, same margins as the original. 
Ahh, now that is still useful, as I still produce a single copy like 
this for myself (as a guide for my lecture), but do it by commenting in 
and out the following lines in the preamble (lifted from one of my 
original Latex presentations)


%\usepackage{pgfpages}

%\pgfpagesuselayout{4 on 1}[a4paper,border shrink=2mm]

%\setbeamercolor{background canvas}{bg=black!1}

%\setbeamertemplate{footline}[page number]


Now that we aren't talking at cross purposes :-), have you any 
suggestions on my original question.



I could of course add a line for the margins in the preamble that I 
comment out and in depending on the output, but I was hoping for 
something a bit more automated than that.



Graham





Re: Find All and Emphasize

2009-08-12 Thread rgheck

On 08/12/2009 04:34 PM, Bruce Pourciau wrote:
Is there a simple way to go back through a document and italicize 
(emphasize) all occurrences of a certain word?


Not within LyX itself. The best way to do it is to run a script of some 
sort on the .lyx file. E.g.:


sed -e 's/ that / \n\n\\emph on\nthat\n\\emph default\n /g' < t.lyx >tt.lyx

is a dumb sed one-liner that almost does it.

rh



Re: changing margins in article class when using Beamer

2009-08-12 Thread Paul Johnson
On Wed, Aug 12, 2009 at 5:13 PM, Graham M
Smith wrote:
> Paul
>>
>
> I could of course add a line for the margins in the preamble that I comment
> out and in depending on the output, but I was hoping for something a bit
> more automated than that.
>

I thank you for bringing the beamer(article) to my attention. That is
very handy for me as well. I can see that if I insert some branches,
then I can really customize which material is included in the article
output.  Nice!

To answer  your margin question, I wonder how you changed the margins?
In all of the beamer examples I find, the margin options are grayed
out and I can't change them.

That means we need to make the change either in the preamble or in the
lyx layout or latex style file.  Blech. I started to think "there has
to be a better way" and this way seems to do it.

\oddsidemargin 0.0in
\textwidth 6.0in
%%testing: does following have any effect?
%%\evensidemargin 0.0in

In the example beamer file with the lyx distribution, this does work
for me to make the margins smaller.

I got the idea from this document:

http://www.image.ufl.edu/help/latex/margins.shtml

In case you want to set more parameters.   This works in LyX because
lyx invokes the geometry package early in the startup, so if you put
these in your preamble, it all ends up good.

HTH!

pj




-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas


Re: How to get a preview for "custom" graphics format?

2009-08-12 Thread Paul Johnson
On Fri, Aug 7, 2009 at 9:52 AM, Daniel
Lohmann wrote:
> Hi,
>
>
>
> So here is what I want to achieve:
>
> I have some TikZ figures (which are actually stand-alone LaTeX-documents
> with the extension .tikz) that I want to embed (not the source, but the
> PDF/EPS via \includegraphics) into my LyX document in a way that (1) the
> LyX-Preview does work (2) PDF generation does work, and (3) the .tikz-file
> is opened in vim when I select "Edit externally..."
>
I am sorry if I am telling you something you already know, but...

It seems to me you are throwing away the value of TikZ by doing this.

Recall that one of the strengths of TikZ/pgf is that the fonts and
such in the figure will match the document. If you persist in keeping
the TikZ as stand alone latex documents, you are destroying that
possibility.  I don't think the document will ever compile because of
the duplicate preambles and such that the latex system encounters.

On the  other hand, if the TikZ file is just the TikZ figure, then I'd
be more optimistic.

But I don't think it is wise to convert the tikz to pdf and embed that
with includegraphics.
Rather, I think you just want to include the tikz code itself. You can
just use input on the TikZ figure itself. If you put that inside a LyX
floating graphic or a minipage, it "just works" in the final
processing. In Lyx, choose "Insert" "File" "Child Document" and then
choose your tikz text file.  As long as it is just the figure, it is
all good. I've just tested it, and it does work.

But you won't get an in-document preview in LyX without a  bit of
messing about.  I think that's where the other guy who refers you to
the Dia code has a good idea.  I've tried to figure that part out, but
no solution yet. We need a way to tell LyX to pass the Tikz figure
code straight through to LaTeX, but we also want an on-screen preview
of what that will be like.  But it is inherently impossible to get a
preview of what that will be like without compiling the whole
document.  A conundrum for me.


-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas


Re: bibLatex with Lyx

2009-08-12 Thread Paul Johnson
you did not make a complete install of biblatex. It is much more than
just that one style file. In linux, these are the installed files from
biblatex:

usr/share/texmf
/usr/share/texmf/bibtex
/usr/share/texmf/bibtex/csf
/usr/share/texmf/bibtex/csf/biblatex
/usr/share/texmf/bibtex/csf/biblatex/bibtoolrsc
/usr/share/texmf/bibtex/csf/biblatex/winansi_no.csf
/usr/share/texmf/bibtex/csf/biblatex/latin1_se.csf
/usr/share/texmf/bibtex/csf/biblatex/latin9_se.csf
/usr/share/texmf/bibtex/csf/biblatex/latin9_no.csf
/usr/share/texmf/bibtex/csf/biblatex/latin1_no.csf
/usr/share/texmf/bibtex/csf/biblatex/latin1.csf
/usr/share/texmf/bibtex/csf/biblatex/README
/usr/share/texmf/bibtex/csf/biblatex/winansi_dk.csf
/usr/share/texmf/bibtex/csf/biblatex/latin9_dk.csf
/usr/share/texmf/bibtex/csf/biblatex/latin1_de.csf
/usr/share/texmf/bibtex/csf/biblatex/winansi.csf
/usr/share/texmf/bibtex/csf/biblatex/latin9.csf
/usr/share/texmf/bibtex/csf/biblatex/winansi_se.csf
/usr/share/texmf/bibtex/csf/biblatex/latin1_dk.csf
/usr/share/texmf/bibtex/csf/biblatex/latin9_de.csf
/usr/share/texmf/bibtex/csf/biblatex/winansi_de.csf
/usr/share/texmf/bibtex/bst
/usr/share/texmf/bibtex/bst/biblatex
/usr/share/texmf/bibtex/bst/biblatex/biblatex.bst
/usr/share/texmf/tex
/usr/share/texmf/tex/latex
/usr/share/texmf/tex/latex/biblatex
/usr/share/texmf/tex/latex/biblatex/biblatex.def
/usr/share/texmf/tex/latex/biblatex/lbx
/usr/share/texmf/tex/latex/biblatex/lbx/canadian.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/swedish.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/portuges.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/UKenglish.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/norsk.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/brazilian.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/nynorsk.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/naustrian.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/norwegian.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/australian.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/portuguese.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/german.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/spanish.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/ngerman.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/austrian.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/brazil.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/american.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/british.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/newzealand.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/USenglish.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/danish.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/english.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/italian.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/french.lbx
/usr/share/texmf/tex/latex/biblatex/biblatex.cfg
/usr/share/texmf/tex/latex/biblatex/bbx
/usr/share/texmf/tex/latex/biblatex/bbx/debug.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/authoryear.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/alphabetic.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/authortitle-tcomp.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/authoryear-comp.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/numeric.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/authortitle-comp.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/verbose-note.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/authortitle.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/standard.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/numeric-comp.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/authortitle-ibid.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/numeric-verb.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/verbose-inote.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/verbose-trad1.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/authortitle-terse.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/draft.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/authortitle-icomp.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/alphabetic-verb.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/reading.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/verbose-ibid.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/authoryear-ibid.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/verbose.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/verbose-trad2.bbx
/usr/share/texmf/tex/latex/biblatex/biblatex.sty
/usr/share/texmf/tex/latex/biblatex/bibnatex.def
/usr/share/texmf/tex/latex/biblatex/cbx
/usr/share/texmf/tex/latex/biblatex/cbx/verbose-trad1.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/alphabetic-verb.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/authortitle-comp.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/authoryear-comp.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/draft.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/authoryear-ibid.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/numeric-comp.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/authortitle.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/numeric.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/debug.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/authoryear.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/numeric-verb.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/alphabetic.cbx

Re: How to get a preview for custom graphics format?

2009-08-12 Thread Guenter Milde
On 2009-08-11, Pavel Sanda wrote:
 Daniel Lohmann wrote:
 that mean that it is *not possible* to achieve goal (1) (the preview in 
 LyX, everything else works) via file formats and converters only?

 unless imagemagick convert utility knows how to deal with it (i think
 it doesn't) i'm not aware of such a plain route.

As the tkiz - PDF (ps2pdf) conversion seems to work, the problem should be
solvable with a definition for PDF (ps2pdf) - PNG.

However, there might be another problem at the base, as I remember that (at
least with newer QT versions) PDF can be shown in LyX also without further
definitions.

Günter



Re: Problems with indentation and linguistics module (covington)

2009-08-12 Thread Jürgen Spitzmüller
Johannes Knaus wrote:
 After some days of playing around I still haven't found a solution to  
 the problem. Indeed it seems a very tricky business.

 It seems that \leftmargin is completely ignored:

There are two things to be considered here:

1. leftmargin is differentiated per indendation level (\leftmargini, 
\leftmarginii, etc.)

2. \leftmargin needs to be set before the list starts.

Try something like:

\renewenvironment{example}{%
\setlength\leftmargini{3.05em}
\begin{examples}%
\settowidth{\labelwidth}{(0.00)}%
\item}
{\end{examples}}

HTH,
Jürgen


RE: Re: Lyx 1.6.3 Can I ditch the pointNclick list of open files below the toolbars???

2009-08-12 Thread Vincent van Ravesteijn - TNW
 
Perhaps this automagic behavior is dependent on the windowmanager?

Then you'd really have to try the Windows windowmanager :)

Vincent


More ... on Chapter styles for Lyx

2009-08-12 Thread Frederick Noronha [फ़रेदरिक नोरो नया]
Just to share... I found some good chapter styles for Lyx here, but am
still finding some challenges in adapting them:
http://wiki.lyx.org/LyX/UsingMemoirInLyX
FN
-- 
FN +91-9822122436 P +91-832-2409490
Konkani adages  http://konkani-adages.notlong.com/
Medieval Goa http://medieval-goa.notlong.com/


Re: How to get a preview for custom graphics format?

2009-08-12 Thread Pavel Sanda
Guenter Milde wrote:
 On 2009-08-11, Pavel Sanda wrote:
  Daniel Lohmann wrote:
  that mean that it is *not possible* to achieve goal (1) (the preview in 
  LyX, everything else works) via file formats and converters only?
 
  unless imagemagick convert utility knows how to deal with it (i think
  it doesn't) i'm not aware of such a plain route.
 
 As the tkiz - PDF (ps2pdf) conversion seems to work, the problem should be
 solvable with a definition for PDF (ps2pdf) - PNG.

i didn't read the original post carefully, this might be an option indeed.
pavel


Re: Problems with indentation and linguistics module (covington)

2009-08-12 Thread Johannes Knaus

Yes! That does it!

A big Thank You from Johannes.


Am 12.08.2009 um 10:33 schrieb Jürgen Spitzmüller:


Johannes Knaus wrote:

After some days of playing around I still haven't found a solution to
the problem. Indeed it seems a very tricky business.

It seems that \leftmargin is completely ignored:


There are two things to be considered here:

1. leftmargin is differentiated per indendation level (\leftmargini,
\leftmarginii, etc.)

2. \leftmargin needs to be set before the list starts.

Try something like:

\renewenvironment{example}{%
\setlength\leftmargini{3.05em}
\begin{examples}%
\settowidth{\labelwidth}{(0.00)}%
\item}
{\end{examples}}

HTH,
Jürgen




Re: Go Away Drawer

2009-08-12 Thread Bruce Pourciau


On Aug 11, 2009, at 11:29 AM, Vincent van Ravesteijn - TNW wrote:



In LyX 1.6.3, how cam I make the Table of Contents drawer go away?


By pressing the small 'x' ?


Thanks, Vincent. Didn't see any small 'x', but unchecking Outline in  
the Document menu worked. I guess I was assuming that the drawer would  
be controlled in the View menu.


Bruce


lyx 1.6.2 + Ubuntu 9.04 = slow typing

2009-08-12 Thread Alex M
Hi!

I would like to share my experience with solving very frustrating problem with 
typing in lyx 1.6.x under Ubuntu 9.04. Maybe this will help someone else or 
even lead to a fix in a next lyx version.

Recently I've upgraded to Ubuntu 9.04. After that, I could not continue my work 
in lyx 1.6.2. When typing, I experienced a very large delay (like seconds) 
before all symbols would appear on screen. 

I read through all posts in lyx mailing list with similar symptoms (just 2 or 
3). The only solution there that worked was to buy a new video card.

What I've done next:

1) Installed lyx 1.6.0 - the same typing delay. Installed lyx 1.5.7 - no typing 
delays. Returned back to lyx 1.6.2.

2) Looked at the CPU utilization. When typing, Xorg ate up to 50% CPU.
Then I resized lyx window to be smaller. CPU utilization fall down, and typing 
delay decreased. I resized lyx to be 25% of the screen - typing delay almost 
disappeared.

3) I looked which video card I have (lspci |grep Display) - Intel Corporation 
82945G/GZ Integrated Graphics Controller (rev 02)
I googled for problems with Intel graphics under Ubuntu 9, and found this link 
useful:
http://ubuntuforums.org/showthread.php?t=1130582highlight=ubuntu+slow+update
+jaunty

4) I tried different solutions from the link above and mostly got my X broken 
or no effect. Finally this one worked for me:

- open xorg.conf (sudo gedit /etc/X11/xorg.conf)
- go to section Device, mine was
Section Device
Identifier  Configured Video Device
EndSection
- add Option MigrationHeuristic greedy so the section looks now like this
Section Device
Identifier  Configured Video Device
Option  MigrationHeuristicgreedy
EndSection
- restart X or reboot.

Now I have almost no typing delays in lyx 1.6.2 (at least, typing speed is the 
same as in lyx 1.5.7 on my PC).



Re: lyx 1.6.2 + Ubuntu 9.04 = slow typing

2009-08-12 Thread Richard Talley
I'd be very interested in knowing what your Xorg CPU utilization is
like now. I'm having a similar problem on an old server running
Xubuntu 9.04, where Xorg is hogging the CPU. Thanks.  -- Rich

On Wed, Aug 12, 2009 at 6:41 AM, Alex Mm...@mail.ru wrote:
 Hi!

 I would like to share my experience with solving very frustrating problem with
 typing in lyx 1.6.x under Ubuntu 9.04. Maybe this will help someone else or
 even lead to a fix in a next lyx version.

 Recently I've upgraded to Ubuntu 9.04. After that, I could not continue my 
 work
 in lyx 1.6.2. When typing, I experienced a very large delay (like seconds)
 before all symbols would appear on screen.

 I read through all posts in lyx mailing list with similar symptoms (just 2 or
 3). The only solution there that worked was to buy a new video card.

 What I've done next:

 1) Installed lyx 1.6.0 - the same typing delay. Installed lyx 1.5.7 - no 
 typing
 delays. Returned back to lyx 1.6.2.

 2) Looked at the CPU utilization. When typing, Xorg ate up to 50% CPU.
 Then I resized lyx window to be smaller. CPU utilization fall down, and typing
 delay decreased. I resized lyx to be 25% of the screen - typing delay almost
 disappeared.

 3) I looked which video card I have (lspci |grep Display) - Intel Corporation
 82945G/GZ Integrated Graphics Controller (rev 02)
 I googled for problems with Intel graphics under Ubuntu 9, and found this link
 useful:
 http://ubuntuforums.org/showthread.php?t=1130582highlight=ubuntu+slow+update
 +jaunty

 4) I tried different solutions from the link above and mostly got my X broken
 or no effect. Finally this one worked for me:

 - open xorg.conf (sudo gedit /etc/X11/xorg.conf)
 - go to section Device, mine was
 Section Device
        Identifier      Configured Video Device
 EndSection
 - add Option MigrationHeuristic greedy so the section looks now like this
 Section Device
        Identifier      Configured Video Device
        Option          MigrationHeuristic            greedy
 EndSection
 - restart X or reboot.

 Now I have almost no typing delays in lyx 1.6.2 (at least, typing speed is the
 same as in lyx 1.5.7 on my PC).




Re: Lyx 1.6.3 Can I ditch the pointNclick list of open files below the toolbars???

2009-08-12 Thread BH
On Fri, Aug 7, 2009 at 12:46 PM, Vincent van
Ravesteijnv.f.vanraveste...@tudelft.nl wrote:

 But if I close the otherwise useless standard toolbar, the scrollbox
 isn't on the screen, thus it doesn't open so that I can select
 chapter,(or other {is it called section type?} choice from list...)
 Thus the viability of the shortcut sequence I described requires that
 the standard toolbar be turned on...

 Magically, the dropdownbox is also shown when the toolbar is hidden (after
 Alt-P space)

From what I can tell, this is true only if the standard toolbar has
been visible in the relevant window at some time in the past -- at
least on Mac. If as I do (and Joe apparently does) you set your ui
file not to load the standard toolbar, then Alt-Pspace does nothing.
But once you make the toolbar visible and then invisible, Alt-Pspace
does its magic.

BH


Re: lyx 1.6.2 + Ubuntu 9.04 = slow typing

2009-08-12 Thread Alex M
Richard Talley rich.tal...@... writes:

 
 I'd be very interested in knowing what your Xorg CPU utilization is
 like now. I'm having a similar problem on an old server running
 Xubuntu 9.04, where Xorg is hogging the CPU. Thanks.  -- Rich

Xorg uses 10-20% CPU now, usually 10%.



Re: Problems with indentation and linguistics module (covington)

2009-08-12 Thread Jürgen Spitzmüller
Johannes Knaus wrote:
 Yes! That does it!

It's now documented on the wiki, together with some related information:
http://wiki.lyx.org/LyX/LinguistLyX#toc16

Jürgen


Re: changing margins in article class when using Beamer

2009-08-12 Thread Paul A. Rubin

Graham M Smith wrote:

rh
If you can find some macro that is defined in this case, but not in 
the other case, then all you need is:

\ifx\thatmacro\undefined\relax\else
 your stuff here 
\fi
I don't know what \thatmacro might be, though.
Thanks, but unfortunately, this doesn't mean very much to me, I confess 
I was hoping for a single options line in the preamble :-(


Graham



Any particular reason you are switching to the article class for 
handouts, as opposed to using the handout option in the class options field?


/Paul



Re: How to embed a spreadsheet in LyX or LaTeX?

2009-08-12 Thread Paul A. Rubin

rgheck wrote:

On 08/11/2009 03:31 PM, Steve Litt wrote:

How can I embed a spreadsheet (MS Excel I assume) into a LyX or LaTeX
document?
   

If you do want it to be editable, then I have no idea.



This could turn into a viewer issue (at least partially), depending on 
what Steve has in mind.  There are four levels of embedding I can 
think of:


1.  Static (data is copied in once, does not change if the spreadsheet 
changes).  There've been a few responses on the list along those lines.


2.  Dynamic (the LyX doc contains a non-interactive table, but it 
automagically updates if the spreadsheet changes).  With other programs, 
this typically requires DDE (on Windows), but it could probably be faked 
with a script that the user would run manually.  The script would have 
to crank up the spreadsheet and dump the relevant table(s) to some sort 
of intermediate file(s) (CSV?).


3.  Static link (user sees a link in the LyX doc, clicks it to open the 
spreadsheet in an external program).  I doubt this is what Steve wants, 
since embedding links in LyX docs is well known.


4.  Dynamic link (user sees a table in the LyX doc, and can interact 
with it, making changes in the spreadsheet).  This would typically occur 
with the user reading the finished product (PDF, DVI) in a viewer, not 
reading it in LyX, so you get into issues of whether the viewer program 
supports this sort of embedding.  For instance, if you export the 
document in HTML and view it in a browser, I think there are browser 
plugins that let you edit a spreadsheet in situ (although I confess I've 
never done it).


/Paul



Re: lyx 1.6.2 + Ubuntu 9.04 = slow typing

2009-08-12 Thread Paul A. Rubin

Alex M wrote:

Hi!

I would like to share my experience with solving very frustrating problem with 
typing in lyx 1.6.x under Ubuntu 9.04. Maybe this will help someone else or 
even lead to a fix in a next lyx version.


Recently I've upgraded to Ubuntu 9.04. After that, I could not continue my work 
in lyx 1.6.2. When typing, I experienced a very large delay (like seconds) 
before all symbols would appear on screen. 

I read through all posts in lyx mailing list with similar symptoms (just 2 or 
3). The only solution there that worked was to buy a new video card.


What I've done next:

1) Installed lyx 1.6.0 - the same typing delay. Installed lyx 1.5.7 - no typing 
delays. Returned back to lyx 1.6.2.


2) Looked at the CPU utilization. When typing, Xorg ate up to 50% CPU.
Then I resized lyx window to be smaller. CPU utilization fall down, and typing 
delay decreased. I resized lyx to be 25% of the screen - typing delay almost 
disappeared.


3) I looked which video card I have (lspci |grep Display) - Intel Corporation 
82945G/GZ Integrated Graphics Controller (rev 02)
I googled for problems with Intel graphics under Ubuntu 9, and found this link 
useful:

http://ubuntuforums.org/showthread.php?t=1130582highlight=ubuntu+slow+update
+jaunty

4) I tried different solutions from the link above and mostly got my X broken 
or no effect. Finally this one worked for me:


- open xorg.conf (sudo gedit /etc/X11/xorg.conf)
- go to section Device, mine was
Section Device
Identifier  Configured Video Device
EndSection
- add Option MigrationHeuristic greedy so the section looks now like this
Section Device
Identifier  Configured Video Device
Option  MigrationHeuristic  greedy
EndSection
- restart X or reboot.

Now I have almost no typing delays in lyx 1.6.2 (at least, typing speed is the 
same as in lyx 1.5.7 on my PC).





This is worth posting to the wiki, if you're so inclined.

/Paul



Re: changing margins in article class when using Beamer

2009-08-12 Thread Graham M Smith

Paul
Any particular reason you are switching to the article class for 
handouts, as opposed to using the handout option in the class options 
field?

Mmmm,

I'm not switching to the article class, I'm switching to the article 
(Beamer) class. I realise now that I described this as beamer article 
class in my original post.


However, I can't see a handout option under  class options assuming this 
is meant to be under Document settings|document class.


The document class options predefined is ticked but greyed out with [No 
options predefined] in the field.


This is when Document Class presentation(Beamer) is selected.

Am I in the wrong place? A simple handout option would be nice.  This is 
1.6.2 on Ubuntu 9.04


Thanks,

Graham




Re: How to embed a spreadsheet in LyX or LaTeX?

2009-08-12 Thread Les Denham
On Wednesday 12 August 2009, Paul A. Rubin wrote:
 Dynamic link (user sees a table in the LyX doc, and can interact
 with it, making changes in the spreadsheet).  This would typically occur
 with the user reading the finished product (PDF, DVI) in a viewer, not
 reading it in LyX, so you get into issues of whether the viewer program
 supports this sort of embedding.  For instance, if you export the
 document in HTML and view it in a browser, I think there are browser
 plugins that let you edit a spreadsheet in situ (although I confess I've
 never done it).

This kind of approach is possible in theory: for example, if you have a figure 
in LyX which is a Grace file, editing that file in Grace will change the 
figure in Lyx immediately.  That is not the same as just editing an image: 
the Grace file is actually displayed in LyX using Grace in a command line 
mode.

The problem with a spreadsheet is that Excel does not (as far as I know) have 
a command line interface.  Neither does OpenOffice.org.  Gnumeric has a 
Python API which might be usable, but I haven't tried it.  The best 
possibility I'm aware of is the Perl module XLSperl 
(http://search.cpan.org/~jonallen/XLSperl-0.7/bin/XLSperl) which could be 
used to build an image from specified sheet, rows and columns. Once you have 
done this, the Perl script could be used in a converter (XLS-EPS, for 
example). But I don't think it would be a trivial task to do this.

-- 
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


Re: lyx 1.6.2 + Ubuntu 9.04 = slow typing

2009-08-12 Thread Sven Hoexter
On Wed, Aug 12, 2009 at 11:38:26AM -0400, Paul A. Rubin wrote:

Hi,

 3) I looked which video card I have (lspci |grep Display) - Intel
 Corporation 82945G/GZ Integrated Graphics Controller (rev 02)
 I googled for problems with Intel graphics under Ubuntu 9, and
 found this link useful:
 http://ubuntuforums.org/showthread.php?t=1130582highlight=ubuntu+slow+update
 +jaunty
 
 This is worth posting to the wiki, if you're so inclined.

Intel drivers for the older chips are currently broken and in most cases
unusable. Phoronix wrote about it several times. The newer 9x chips seem to
work again with Linux 2.6.30+ and the latest 2.9 Intel drivers.

I've downgraded all my (Debian) systems with Intel 8x chips to an older
Xorg version and the  2.3.2-2+lenny6 intel driver from Lenny. Currently that
still works but someday it will break for sure.

So all in all I doubt this is somehow relevant for LyX it's more of a general
issue.

Sven
-- 
They're the cowards We are rebels
We got the power to fight the devil
   [ AIV - We are rebels ]


Re: How to embed a spreadsheet in LyX or LaTeX?

2009-08-12 Thread John McCabe-Dansted
On Wed, Aug 12, 2009 at 11:36 PM, Paul A. Rubinru...@msu.edu wrote:
 This could turn into a viewer issue (at least partially), depending on what
 Steve has in mind.  There are four levels of embedding I can think of:

Adding spreadsheet to Insert-File-External Material sounds like a
good start. Like how .fig is handled but with something like
PyODConverter instead of transfig.
   http://www.oooninja.com/2008/02/batch-command-line-file-conversion-with.html

Presumbaly PyODConverter can convert any xls file that OO supports.

-- 
John C. McCabe-Dansted


unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread zweetsmoel
Hello,

it always happens when you need the bloody thing ;-)

i urgently need to edit and render my CV with lyx. unfortunately lyx
gives the following error when starting:  symbol lookup error:
src/lyx: undefined symbol: _Z13qFlagLocationPKc

i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
from source,... but nothing helps :\  googling did not save my day, so
i'm asking here, because i'm stuck. please any suggestions? my
guess this is Qt related, but i have not a single clue how to fix that

running on ubuntu 9.04, with qt 4.5 (i think)


thank you!
regards
Michael


Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread Vincent van Ravesteijn

zweetsmoel schreef:

Hello,

it always happens when you need the bloody thing ;-)

i urgently need to edit and render my CV with lyx. unfortunately lyx
gives the following error when starting:  symbol lookup error:
src/lyx: undefined symbol: _Z13qFlagLocationPKc

i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
from source,... but nothing helps :\  googling did not save my day, so
i'm asking here, because i'm stuck. please any suggestions? my
guess this is Qt related, but i have not a single clue how to fix that

running on ubuntu 9.04, with qt 4.5 (i think)

  
First quess: you compiled against qt 4.4 and try to run with qt 4.5. Or 
the other way around.


Vincent


Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread rgheck

On 08/12/2009 02:21 PM, zweetsmoel wrote:

Hello,

it always happens when you need the bloody thing ;-)

i urgently need to edit and render my CV with lyx. unfortunately lyx
gives the following error when starting:  symbol lookup error:
src/lyx: undefined symbol: _Z13qFlagLocationPKc

i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
from source,... but nothing helps :\  googling did not save my day, so
i'm asking here, because i'm stuck. please any suggestions? my
guess this is Qt related, but i have not a single clue how to fix that

running on ubuntu 9.04, with qt 4.5 (i think)

   

It does seem to have something to do with Qt, but I'm not sure what.

Some people seem to have had better luck with 1.6.1, which you could 
also try.


Andre, I'm bringing you in, as you're the guru for this kind of thing.

rh



Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread zweetsmoel
On Wed, Aug 12, 2009 at 8:27 PM, rgheckrgh...@bobjweil.com wrote:
 On 08/12/2009 02:21 PM, zweetsmoel wrote:

 Hello,

 it always happens when you need the bloody thing ;-)

 i urgently need to edit and render my CV with lyx. unfortunately lyx
 gives the following error when starting:  symbol lookup error:
 src/lyx: undefined symbol: _Z13qFlagLocationPKc

 i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
 from source,... but nothing helps :\  googling did not save my day, so
 i'm asking here, because i'm stuck. please any suggestions? my
 guess this is Qt related, but i have not a single clue how to fix that

 running on ubuntu 9.04, with qt 4.5 (i think)



 It does seem to have something to do with Qt, but I'm not sure what.

 Some people seem to have had better luck with 1.6.1, which you could also
 try.

 Andre, I'm bringing you in, as you're the guru for this kind of thing.

 rh



i'll try 1.6.1 as compiling 1.6.3 wasn't too difficult

i replied to vincent, but i noticed it was sent to him only, sorry for that.
my question was: how can i check the exact qt version installed on my
ubuntu box?

thx
michael


Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread Andre Poenitz
On Wed, Aug 12, 2009 at 08:21:00PM +0200, zweetsmoel wrote:
 Hello,
 
 it always happens when you need the bloody thing ;-)
 
 i urgently need to edit and render my CV with lyx. unfortunately lyx
 gives the following error when starting:  symbol lookup error:
 src/lyx: undefined symbol: _Z13qFlagLocationPKc
 
 i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
 from source,... but nothing helps :\  googling did not save my day, so
 i'm asking here, because i'm stuck. please any suggestions? my
 guess this is Qt related, but i have not a single clue how to fix that
 
 running on ubuntu 9.04, with qt 4.5 (i think)

The LyX your are trying to start wants to use an older version of Qt
than the one that was used when LyX was compiled.

This may e.g. happen when you use a self-compiled recent version of Qt
to build LyX and on startup it picks up the older system version. 
Setting LD_LIBRARY_PATH apropriately helps in those cases.

Andre'


Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread zweetsmoel
On Wed, Aug 12, 2009 at 8:40 PM, Andre
Poenitzandre.poen...@mathematik.tu-chemnitz.de wrote:
 On Wed, Aug 12, 2009 at 08:21:00PM +0200, zweetsmoel wrote:
 Hello,

 it always happens when you need the bloody thing ;-)

 i urgently need to edit and render my CV with lyx. unfortunately lyx
 gives the following error when starting:  symbol lookup error:
 src/lyx: undefined symbol: _Z13qFlagLocationPKc

 i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
 from source,... but nothing helps :\  googling did not save my day, so
 i'm asking here, because i'm stuck. please any suggestions? my
 guess this is Qt related, but i have not a single clue how to fix that

 running on ubuntu 9.04, with qt 4.5 (i think)

 The LyX your are trying to start wants to use an older version of Qt
 than the one that was used when LyX was compiled.

 This may e.g. happen when you use a self-compiled recent version of Qt
 to build LyX and on startup it picks up the older system version.
 Setting LD_LIBRARY_PATH apropriately helps in those cases.

 Andre'



i've build 1.6.1, but exactly the same error :\ ...

andre, thx for the suggestions, but i did not compile Qt myself. it's
the standard ubuntu qt libs.
could you please elaborate on how to use 'setting LD_LIBRARY_PATH'?
i'm not sure that i understand what you mean.

thank you
M


Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread rgheck

On 08/12/2009 03:18 PM, zweetsmoel wrote:

On Wed, Aug 12, 2009 at 8:40 PM, Andre
Poenitzandre.poen...@mathematik.tu-chemnitz.de  wrote:
   

On Wed, Aug 12, 2009 at 08:21:00PM +0200, zweetsmoel wrote:
 

Hello,

it always happens when you need the bloody thing ;-)

i urgently need to edit and render my CV with lyx. unfortunately lyx
gives the following error when starting:  symbol lookup error:
src/lyx: undefined symbol: _Z13qFlagLocationPKc

i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
from source,... but nothing helps :\  googling did not save my day, so
i'm asking here, because i'm stuck. please any suggestions? my
guess this is Qt related, but i have not a single clue how to fix that

running on ubuntu 9.04, with qt 4.5 (i think)
   

The LyX your are trying to start wants to use an older version of Qt
than the one that was used when LyX was compiled.

This may e.g. happen when you use a self-compiled recent version of Qt
to build LyX and on startup it picks up the older system version.
Setting LD_LIBRARY_PATH apropriately helps in those cases.

Andre'

 


for your information, when i compile lyx (either 1.6.1/2/3), i get
this info when finished:

   
Is it possible that you have two versions of Qt installed, accidentally? 
Is it possible that the Qt libraries and Qt headers are not the same?


Are you sure that you managed to completely uninstall the old LyX? You 
might try compiling LyX and then NOT installing it, but rather running 
it in place. So, after compilation finishes, type src/lyx to run it.


Richard


Richard



Re: How to embed a spreadsheet in LyX or LaTeX?

2009-08-12 Thread Jeremy
On Wednesday 12 August 2009, Les Denham wrote:
 On Wednesday 12 August 2009, Paul A. Rubin wrote:
  Dynamic link (user sees a table in the LyX doc, and can interact
  with it, making changes in the spreadsheet).  This would typically occur
  with the user reading the finished product (PDF, DVI) in a viewer, not
  reading it in LyX, so you get into issues of whether the viewer program
  supports this sort of embedding.  For instance, if you export the
  document in HTML and view it in a browser, I think there are browser
  plugins that let you edit a spreadsheet in situ (although I confess I've
  never done it).

 This kind of approach is possible in theory: for example, if you have a
 figure in LyX which is a Grace file, editing that file in Grace will change
 the figure in Lyx immediately.  That is not the same as just editing an
 image: the Grace file is actually displayed in LyX using Grace in a command
 line mode.

 The problem with a spreadsheet is that Excel does not (as far as I know)
 have a command line interface.  Neither does OpenOffice.org.  Gnumeric has
 a Python API which might be usable, but I haven't tried it.  The best
 possibility I'm aware of is the Perl module XLSperl
 (http://search.cpan.org/~jonallen/XLSperl-0.7/bin/XLSperl) which could be
 used to build an image from specified sheet, rows and columns. Once you
 have done this, the Perl script could be used in a converter (XLS-EPS, for
 example). But I don't think it would be a trivial task to do this.

If all you need is row+column data from an excel spreadsheet, you could also 
use the perl module Spreadsheet::ParseExcel
to parse the excel file, and then write the cells out in latex tabular format. 
Then just \input{exceltable.tex}. I've done something similar to generate 
longtables using excel data. Of course if you want charts, etc. from the excel 
file, that would be more difficult.

You could use something like the following perl code to parse your excel file 
and output a latex table:

#!/usr/bin/perl 

use strict; 

use warnings;   

#use Text::CSV; 

use Text::CSV_XS;   

use Spreadsheet::ParseExcel;


if($#ARGV!=1){  

   print Usage $0 excelfile outfile;  
 
   exit;

}   

my $file  = $ARGV[0];
my $ofile = $ARGV[1];
open (TEX, $ofile) or die $!;
 

my @fields;
process_xls();
close TEX
exit; 

# need to quote latex special characters
sub latexquote(){
   my $s=$_[0];  
   $s =~ s//\\/g;
   $s =~ s/#/\\#/g;
   $s =~ s/\$/\\\$/g;
   $s =~ s/%/\\%/g;  
   $s =~ s/{/\\{/g;  
   $s =~ s/}/\\}/g;  
   $s =~ s/_/\\_/g;  
   $s =~ s/\.\ /\.\\\ /g;
   return $s;
   1;
}

sub print_record()
{ 
   my $flds = $_[0];
   if(ref($flds) ne 'ARRAY' ) { die Expected array ref, not $flds\n; }
   #unless (@_ == 1  ref($flds) eq 'ARRAY') { die usage: 
print_record(array_ref)\n; }
   my $l...@$flds;  
 

   for(my $i=0; $i$len; $i++)
   { 
  print(TEX, \) if($i !=0); #Tab Character
  print(TEX, latexquote($flds-[$i]); 
   } print(TEX,  \n);  #End of Row   
}   

sub process_xls()
{
   my $oExcel = new Spreadsheet::ParseExcel;

   my $oBook = $oExcel-Parse($ARGV[0]);
   my($iR, $iC, $oWkS, $oWkC, $fld);
   print FILE  :, $oBook-{File} , \n;
   print COUNT :, $oBook-{SheetCount} , \n;

   print AUTHOR:, $oBook-{Author} , \n if defined $oBook-{Author};

   print(TEX, \\begin{tabular});
   #print {column formatting}
   #print column headings

   # Loop over sheets
   for(my $iSheet=0; $iSheet  $oBook-{SheetCount} ; $iSheet++)
   {
  $oWkS = $oBook-{Worksheet}[$iSheet]; 
  print - SHEET:, $oWkS-{Name}, \n;

  # Loop over all 

Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread zweetsmoel
On Wed, Aug 12, 2009 at 8:40 PM, Andre
Poenitzandre.poen...@mathematik.tu-chemnitz.de wrote:
 On Wed, Aug 12, 2009 at 08:21:00PM +0200, zweetsmoel wrote:
 Hello,

 it always happens when you need the bloody thing ;-)

 i urgently need to edit and render my CV with lyx. unfortunately lyx
 gives the following error when starting:  symbol lookup error:
 src/lyx: undefined symbol: _Z13qFlagLocationPKc

 i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
 from source,... but nothing helps :\  googling did not save my day, so
 i'm asking here, because i'm stuck. please any suggestions? my
 guess this is Qt related, but i have not a single clue how to fix that

 running on ubuntu 9.04, with qt 4.5 (i think)

 The LyX your are trying to start wants to use an older version of Qt
 than the one that was used when LyX was compiled.

 This may e.g. happen when you use a self-compiled recent version of Qt
 to build LyX and on startup it picks up the older system version.
 Setting LD_LIBRARY_PATH apropriately helps in those cases.

 Andre'


for your information, when i compile lyx (either 1.6.1/2/3), i get
this info when finished:

Configuration
  Host type:i686-pc-linux-gnu
  Special build flags:   use-ispell
  C   Compiler: gcc
  C   Compiler LyX flags:
  C   Compiler flags:-O2
  C++ Compiler: g++ (4.3.3)
  C++ Compiler LyX flags:
  C++ Compiler flags:-O2
  Linker flags:
  Linker user flags:
  Qt 4 Frontend:
  Qt 4 version: 4.5.0
  Packaging:posix
  LyX binary dir:   /usr/local/bin
  LyX files dir:/usr/local/share/lyx

Configuration of LyX was successful.
Type 'make' to compile the program,
and then 'make install' to install it.



hope this helps,
Michael


Re: How to get a preview for custom graphics format?

2009-08-12 Thread Florian Rubach

Daniel Lohmann schrieb:

Hi,


...

So here is what I want to achieve:

I have some TikZ figures (which are actually stand-alone 
LaTeX-documents with the extension .tikz) that I want to embed (not 
the source, but the PDF/EPS via \includegraphics) into my LyX document 
in a way that (1) the LyX-Preview does work (2) PDF generation does 
work, and (3) the .tikz-file is opened in vim when I select Edit 
externally...

...


Your  help is highly appreciated!

Daniel

Hello Daniel!

I'm sorry I can't help you, I just want to tell you that I'm also 
interested in having a preview for TikZ-Graphics. So if there's any 
progress in achieving that, please share it!


Regards,
Florian




Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread Andre Poenitz
On Wed, Aug 12, 2009 at 09:15:17PM +0200, zweetsmoel wrote:
 On Wed, Aug 12, 2009 at 8:40 PM, Andre
 Poenitzandre.poen...@mathematik.tu-chemnitz.de wrote:
  On Wed, Aug 12, 2009 at 08:21:00PM +0200, zweetsmoel wrote:
  Hello,
 
  it always happens when you need the bloody thing ;-)
 
  i urgently need to edit and render my CV with lyx. unfortunately lyx
  gives the following error when starting:  symbol lookup error:
  src/lyx: undefined symbol: _Z13qFlagLocationPKc
 
  i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
  from source,... but nothing helps :\  googling did not save my day, so
  i'm asking here, because i'm stuck. please any suggestions? my
  guess this is Qt related, but i have not a single clue how to fix that
 
  running on ubuntu 9.04, with qt 4.5 (i think)
 
  The LyX your are trying to start wants to use an older version of Qt
  than the one that was used when LyX was compiled.
 
  This may e.g. happen when you use a self-compiled recent version of Qt
  to build LyX and on startup it picks up the older system version.
  Setting LD_LIBRARY_PATH apropriately helps in those cases.
 
  Andre'
 
 
 i've build 1.6.1, but exactly the same error :\ ...
 
 andre, thx for the suggestions, but i did not compile Qt myself. it's
 the standard ubuntu qt libs.

I am reasonably sure that the scenario you describe cannot occur
with only a single version of Qt on your system.

If you only used only packages form your distribution the only
explanation I have is that the development package you use (i.e.
libqt4-dev) does not match the installed libraries. Either there's
a difference in version of both, or you use the development package
with a set of defines that's incompatible with the the installed
version.

The latter seems actually be rather likely as qFlagLocation is
only used if QT_NO_DEBUG is _not_ set, i.e. you use the Qt in
debug mode. The system Qt is most likely not in debug mode. 

If this is the reason you need to make sure that QT_NO_DEBUG is
defined when you compile LyX. I have no idea how Ubuntu packages
the Qt development package, but I guess configuring LyX with
CXXFLAGS=-DQT_NO_DEBUG ./configure or similar might help.

Andre'

PS:

 could you please elaborate on how to use 'setting LD_LIBRARY_PATH'?
 i'm not sure that i understand what you mean.

That's only relevant for the case where you have multiple versions
of Qt on your system, so let's ignore this for now.


Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread zweetsmoel
On Wed, Aug 12, 2009 at 9:45 PM, Andre
Poenitzandre.poen...@mathematik.tu-chemnitz.de wrote:
 On Wed, Aug 12, 2009 at 09:15:17PM +0200, zweetsmoel wrote:
 On Wed, Aug 12, 2009 at 8:40 PM, Andre
 Poenitzandre.poen...@mathematik.tu-chemnitz.de wrote:
  On Wed, Aug 12, 2009 at 08:21:00PM +0200, zweetsmoel wrote:
  Hello,
 
  it always happens when you need the bloody thing ;-)
 
  i urgently need to edit and render my CV with lyx. unfortunately lyx
  gives the following error when starting:  symbol lookup error:
  src/lyx: undefined symbol: _Z13qFlagLocationPKc
 
  i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
  from source,... but nothing helps :\  googling did not save my day, so
  i'm asking here, because i'm stuck. please any suggestions? my
  guess this is Qt related, but i have not a single clue how to fix that
 
  running on ubuntu 9.04, with qt 4.5 (i think)
 
  The LyX your are trying to start wants to use an older version of Qt
  than the one that was used when LyX was compiled.
 
  This may e.g. happen when you use a self-compiled recent version of Qt
  to build LyX and on startup it picks up the older system version.
  Setting LD_LIBRARY_PATH apropriately helps in those cases.
 
  Andre'


 i've build 1.6.1, but exactly the same error :\ ...

 andre, thx for the suggestions, but i did not compile Qt myself. it's
 the standard ubuntu qt libs.

 I am reasonably sure that the scenario you describe cannot occur
 with only a single version of Qt on your system.

 If you only used only packages form your distribution the only
 explanation I have is that the development package you use (i.e.
 libqt4-dev) does not match the installed libraries. Either there's
 a difference in version of both, or you use the development package
 with a set of defines that's incompatible with the the installed
 version.

 The latter seems actually be rather likely as qFlagLocation is
 only used if QT_NO_DEBUG is _not_ set, i.e. you use the Qt in
 debug mode. The system Qt is most likely not in debug mode.

 If this is the reason you need to make sure that QT_NO_DEBUG is
 defined when you compile LyX. I have no idea how Ubuntu packages
 the Qt development package, but I guess configuring LyX with
 CXXFLAGS=-DQT_NO_DEBUG ./configure or similar might help.

 Andre'

 PS:

 could you please elaborate on how to use 'setting LD_LIBRARY_PATH'?
 i'm not sure that i understand what you mean.

 That's only relevant for the case where you have multiple versions
 of Qt on your system, so let's ignore this for now.


only another error message...
src/lyx: symbol lookup error: src/lyx: undefined symbol:
_ZN8QPainter10drawPixmapERK7QPointFRK7QPixmap

ok, this is definitely a qt error. even qtconfig won't launch, it
gotta be qt related. but what exactly? i tried removing 
re-installing all qt packages and many others; and i wasn't able to
find duplicate qt libs, but i'm not really an expert in libs and devs.

too bad, that's gonna be a CV made with ms-office. yak... ;-)

thanks for the feedback folks
michael


Find All and Emphasize

2009-08-12 Thread Bruce Pourciau
Is there a simple way to go back through a document and italicize  
(emphasize) all occurrences of a certain word?


Bruce


Re: changing margins in article class when using Beamer

2009-08-12 Thread Paul A. Rubin

Graham M Smith wrote:

Paul
Any particular reason you are switching to the article class for 
handouts, as opposed to using the handout option in the class options 
field?

Mmmm,

I'm not switching to the article class, I'm switching to the article 
(Beamer) class. I realise now that I described this as beamer article 
class in my original post.


That's ok, I understood what you meant -- just not why you did it.  I 
don't use article (Beamer), but my impression is that it's purpose is to 
facilitate turning a slideshow into a paper (either after the fact or in 
parallel development).  I don't think it's really intended to reproduce 
slides in slide-like form (although I could be wrong), and in any case 
it seems to be overkill for handouts (unless maybe you mean to annotate 
the handouts a fair bit).


However, I can't see a handout option under  class options assuming this 
is meant to be under Document settings|document class.


You have to fill it in.


The document class options predefined is ticked but greyed out with [No 
options predefined] in the field.


This is when Document Class presentation(Beamer) is selected.

Am I in the wrong place? A simple handout option would be nice.  This is 
1.6.2 on Ubuntu 9.04


You're in the right place but perhaps misunderstanding the dialog a bit. 
   The grayed-out box is for options that were preselected (which I 
suspect means forced on you) by the layout file.  Grayed out is a good 
thing IMHO -- it means all the options are up to you.


The Custom box beneath it is where you specify class options of your 
choosing, by typing them in (the same way you would if you were using 
straight LaTeX).  It presumes that you know what options work with the 
class you chose.


In this case, just type the word 'handout' (no quotes) in the Custom 
field and then View-PDF (pdflatex).  What you get is a bunch of slides, 
one per page, same margins as the original.  The main differences are 
that overlays and sequential alerting are eliminated.  So, for instance, 
if you have a slide with five bullets, each in a separate overlay, that 
was five pages in the original PDF but one page (all bullets showing) in 
the handout version.


It's common to want to print multiple slides on one page for handouts. 
That's usually best accomplished in the printer settings or in the 
viewer.  For instance, if you use Acrobat Reader, File  Print has a 
'Page scaling' entry that lets yo specify multiple pages per sheet. 
Pretty much the same story if you use Evince (aka 'Document Viewer') -- 
look at the 'Page Setup tab' in the print dialog, 'Pages per side'.


I'm not sure, but I think Beamer even includes some macros that can add 
annotations/notes to slides that will display in handout mode (if that's 
important to you).  Personally, I usually just pass out the slides 
themselves, one or two slides per sheet (four per sheet works if your 
audience has good eyesight and no intention of taking notes on the slides).


/Paul



Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread Andre Poenitz
On Wed, Aug 12, 2009 at 10:16:41PM +0200, zweetsmoel wrote:
 only another error message...
 src/lyx: symbol lookup error: src/lyx: undefined symbol:
 _ZN8QPainter10drawPixmapERK7QPointFRK7QPixmap
 
 ok, this is definitely a qt error. even qtconfig won't launch, it
 gotta be qt related. but what exactly?

Something with your installation. Really.

 i tried removing 
 re-installing all qt packages and many others; and i wasn't able to
 find duplicate qt libs, but i'm not really an expert in libs and devs.

Andre'

PS:

 too bad, that's gonna be a CV made with ms-office. yak... ;-)

Plain LaTeX works for CVs - possibly even better than LyX as that's one
of the rare cases where finger painting is acceptable. And it would
yield the same bonus point in an application as using LyX would...


Re: changing margins in article class when using Beamer

2009-08-12 Thread Graham M Smith

Paul


That's ok, I understood what you meant -- just not why you did it.  I 
don't use article (Beamer), but my impression is that it's purpose is 
to facilitate turning a slideshow into a paper (either after the fact 
or in parallel development).  I don't think it's really intended to 
reproduce slides in slide-like form (although I could be wrong), and 
in any case it seems to be overkill for handouts (unless maybe you 
mean to annotate the handouts a fair bit).
Ah, but we have a fundamental misunderstanding. The reason I started 
using Beamer was the very fact that I could prepare slides and lecture 
notes (article) in parallel.  I don't want a print out of the slides in 
a slide-like form.  I use the slide content as an outline for my 
lecture, but expand on this (with more text than you would want to put 
on the slides), and additional diagrams, examples, reference list etc as 
a class hand out. So students get properly written (and illustrated)  
hand outs, for my lectures.


In fact it was this capability that brought me to latex/beamer in the 
first place after a plea on various forums for any ideas on how I could 
keep my handouts and presentations in sync so I didn't have to try and 
keep two documents (Powerpoint and Word) up to date and in sync.  But 
Beamer became available in Lyx before I managed to develop any real 
expertise in Latex, even though I had started to rewrite all my lecture 
material in Latex


I have put up with the wide margins up to now, but it seems a waste of 
paper, and it would be useful to allow diagrams and graphs to expand 
across the full page width.


Am I in the wrong place? A simple handout option would be nice.  This 
is 1.6.2 on Ubuntu 9.04



In this case, just type the word 'handout' (no quotes) in the Custom 
field and then View-PDF (pdflatex).  What you get is a bunch of 
slides, one per page, same margins as the original. 
Ahh, now that is still useful, as I still produce a single copy like 
this for myself (as a guide for my lecture), but do it by commenting in 
and out the following lines in the preamble (lifted from one of my 
original Latex presentations)


%\usepackage{pgfpages}

%\pgfpagesuselayout{4 on 1}[a4paper,border shrink=2mm]

%\setbeamercolor{background canvas}{bg=black!1}

%\setbeamertemplate{footline}[page number]


Now that we aren't talking at cross purposes :-), have you any 
suggestions on my original question.



I could of course add a line for the margins in the preamble that I 
comment out and in depending on the output, but I was hoping for 
something a bit more automated than that.



Graham





Re: Find All and Emphasize

2009-08-12 Thread rgheck

On 08/12/2009 04:34 PM, Bruce Pourciau wrote:
Is there a simple way to go back through a document and italicize 
(emphasize) all occurrences of a certain word?


Not within LyX itself. The best way to do it is to run a script of some 
sort on the .lyx file. E.g.:


sed -e 's/ that / \n\n\\emph on\nthat\n\\emph default\n /g'  t.lyx tt.lyx

is a dumb sed one-liner that almost does it.

rh



Re: changing margins in article class when using Beamer

2009-08-12 Thread Paul Johnson
On Wed, Aug 12, 2009 at 5:13 PM, Graham M
Smithgraham.sm...@myotis.co.uk wrote:
 Paul


 I could of course add a line for the margins in the preamble that I comment
 out and in depending on the output, but I was hoping for something a bit
 more automated than that.


I thank you for bringing the beamer(article) to my attention. That is
very handy for me as well. I can see that if I insert some branches,
then I can really customize which material is included in the article
output.  Nice!

To answer  your margin question, I wonder how you changed the margins?
In all of the beamer examples I find, the margin options are grayed
out and I can't change them.

That means we need to make the change either in the preamble or in the
lyx layout or latex style file.  Blech. I started to think there has
to be a better way and this way seems to do it.

\oddsidemargin 0.0in
\textwidth 6.0in
%%testing: does following have any effect?
%%\evensidemargin 0.0in

In the example beamer file with the lyx distribution, this does work
for me to make the margins smaller.

I got the idea from this document:

http://www.image.ufl.edu/help/latex/margins.shtml

In case you want to set more parameters.   This works in LyX because
lyx invokes the geometry package early in the startup, so if you put
these in your preamble, it all ends up good.

HTH!

pj




-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas


Re: How to get a preview for custom graphics format?

2009-08-12 Thread Paul Johnson
On Fri, Aug 7, 2009 at 9:52 AM, Daniel
Lohmanndaniel.lohm...@informatik.uni-erlangen.de wrote:
 Hi,



 So here is what I want to achieve:

 I have some TikZ figures (which are actually stand-alone LaTeX-documents
 with the extension .tikz) that I want to embed (not the source, but the
 PDF/EPS via \includegraphics) into my LyX document in a way that (1) the
 LyX-Preview does work (2) PDF generation does work, and (3) the .tikz-file
 is opened in vim when I select Edit externally...

I am sorry if I am telling you something you already know, but...

It seems to me you are throwing away the value of TikZ by doing this.

Recall that one of the strengths of TikZ/pgf is that the fonts and
such in the figure will match the document. If you persist in keeping
the TikZ as stand alone latex documents, you are destroying that
possibility.  I don't think the document will ever compile because of
the duplicate preambles and such that the latex system encounters.

On the  other hand, if the TikZ file is just the TikZ figure, then I'd
be more optimistic.

But I don't think it is wise to convert the tikz to pdf and embed that
with includegraphics.
Rather, I think you just want to include the tikz code itself. You can
just use input on the TikZ figure itself. If you put that inside a LyX
floating graphic or a minipage, it just works in the final
processing. In Lyx, choose Insert File Child Document and then
choose your tikz text file.  As long as it is just the figure, it is
all good. I've just tested it, and it does work.

But you won't get an in-document preview in LyX without a  bit of
messing about.  I think that's where the other guy who refers you to
the Dia code has a good idea.  I've tried to figure that part out, but
no solution yet. We need a way to tell LyX to pass the Tikz figure
code straight through to LaTeX, but we also want an on-screen preview
of what that will be like.  But it is inherently impossible to get a
preview of what that will be like without compiling the whole
document.  A conundrum for me.


-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas


Re: bibLatex with Lyx

2009-08-12 Thread Paul Johnson
you did not make a complete install of biblatex. It is much more than
just that one style file. In linux, these are the installed files from
biblatex:

usr/share/texmf
/usr/share/texmf/bibtex
/usr/share/texmf/bibtex/csf
/usr/share/texmf/bibtex/csf/biblatex
/usr/share/texmf/bibtex/csf/biblatex/bibtoolrsc
/usr/share/texmf/bibtex/csf/biblatex/winansi_no.csf
/usr/share/texmf/bibtex/csf/biblatex/latin1_se.csf
/usr/share/texmf/bibtex/csf/biblatex/latin9_se.csf
/usr/share/texmf/bibtex/csf/biblatex/latin9_no.csf
/usr/share/texmf/bibtex/csf/biblatex/latin1_no.csf
/usr/share/texmf/bibtex/csf/biblatex/latin1.csf
/usr/share/texmf/bibtex/csf/biblatex/README
/usr/share/texmf/bibtex/csf/biblatex/winansi_dk.csf
/usr/share/texmf/bibtex/csf/biblatex/latin9_dk.csf
/usr/share/texmf/bibtex/csf/biblatex/latin1_de.csf
/usr/share/texmf/bibtex/csf/biblatex/winansi.csf
/usr/share/texmf/bibtex/csf/biblatex/latin9.csf
/usr/share/texmf/bibtex/csf/biblatex/winansi_se.csf
/usr/share/texmf/bibtex/csf/biblatex/latin1_dk.csf
/usr/share/texmf/bibtex/csf/biblatex/latin9_de.csf
/usr/share/texmf/bibtex/csf/biblatex/winansi_de.csf
/usr/share/texmf/bibtex/bst
/usr/share/texmf/bibtex/bst/biblatex
/usr/share/texmf/bibtex/bst/biblatex/biblatex.bst
/usr/share/texmf/tex
/usr/share/texmf/tex/latex
/usr/share/texmf/tex/latex/biblatex
/usr/share/texmf/tex/latex/biblatex/biblatex.def
/usr/share/texmf/tex/latex/biblatex/lbx
/usr/share/texmf/tex/latex/biblatex/lbx/canadian.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/swedish.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/portuges.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/UKenglish.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/norsk.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/brazilian.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/nynorsk.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/naustrian.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/norwegian.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/australian.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/portuguese.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/german.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/spanish.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/ngerman.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/austrian.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/brazil.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/american.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/british.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/newzealand.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/USenglish.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/danish.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/english.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/italian.lbx
/usr/share/texmf/tex/latex/biblatex/lbx/french.lbx
/usr/share/texmf/tex/latex/biblatex/biblatex.cfg
/usr/share/texmf/tex/latex/biblatex/bbx
/usr/share/texmf/tex/latex/biblatex/bbx/debug.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/authoryear.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/alphabetic.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/authortitle-tcomp.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/authoryear-comp.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/numeric.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/authortitle-comp.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/verbose-note.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/authortitle.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/standard.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/numeric-comp.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/authortitle-ibid.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/numeric-verb.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/verbose-inote.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/verbose-trad1.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/authortitle-terse.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/draft.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/authortitle-icomp.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/alphabetic-verb.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/reading.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/verbose-ibid.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/authoryear-ibid.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/verbose.bbx
/usr/share/texmf/tex/latex/biblatex/bbx/verbose-trad2.bbx
/usr/share/texmf/tex/latex/biblatex/biblatex.sty
/usr/share/texmf/tex/latex/biblatex/bibnatex.def
/usr/share/texmf/tex/latex/biblatex/cbx
/usr/share/texmf/tex/latex/biblatex/cbx/verbose-trad1.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/alphabetic-verb.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/authortitle-comp.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/authoryear-comp.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/draft.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/authoryear-ibid.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/numeric-comp.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/authortitle.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/numeric.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/debug.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/authoryear.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/numeric-verb.cbx
/usr/share/texmf/tex/latex/biblatex/cbx/alphabetic.cbx

Re: How to get a preview for custom graphics format?

2009-08-12 Thread Guenter Milde
On 2009-08-11, Pavel Sanda wrote:
 Daniel Lohmann wrote:
 that mean that it is *not possible* to achieve goal (1) (the preview in 
 LyX, everything else works) via file formats and converters only?

 unless imagemagick convert utility knows how to deal with it (i think
 it doesn't) i'm not aware of such a plain route.

As the tkiz - PDF (ps2pdf) conversion seems to work, the problem should be
solvable with a definition for PDF (ps2pdf) - PNG.

However, there might be another problem at the base, as I remember that (at
least with newer QT versions) PDF can be shown in LyX also without further
definitions.

Günter



Re: Problems with indentation and linguistics module (covington)

2009-08-12 Thread Jürgen Spitzmüller
Johannes Knaus wrote:
 After some days of playing around I still haven't found a solution to  
 the problem. Indeed it seems a very tricky business.

 It seems that \leftmargin is completely ignored:

There are two things to be considered here:

1. leftmargin is differentiated per indendation level (\leftmargini, 
\leftmarginii, etc.)

2. \leftmargin needs to be set before the list starts.

Try something like:

\renewenvironment{example}{%
\setlength\leftmargini{3.05em}
\begin{examples}%
\settowidth{\labelwidth}{(0.00)}%
\item}
{\end{examples}}

HTH,
Jürgen


RE: Re: Lyx 1.6.3 Can I ditch the pointNclick list of open files below the toolbars???

2009-08-12 Thread Vincent van Ravesteijn - TNW
 
Perhaps this automagic behavior is dependent on the windowmanager?

Then you'd really have to try the Windows windowmanager :)

Vincent


More ... on Chapter styles for Lyx

2009-08-12 Thread Frederick Noronha [फ़रेदरिक नोरो नया]
Just to share... I found some good chapter styles for Lyx here, but am
still finding some challenges in adapting them:
http://wiki.lyx.org/LyX/UsingMemoirInLyX
FN
-- 
FN +91-9822122436 P +91-832-2409490
Konkani adages  http://konkani-adages.notlong.com/
Medieval Goa http://medieval-goa.notlong.com/


Re: How to get a preview for custom graphics format?

2009-08-12 Thread Pavel Sanda
Guenter Milde wrote:
 On 2009-08-11, Pavel Sanda wrote:
  Daniel Lohmann wrote:
  that mean that it is *not possible* to achieve goal (1) (the preview in 
  LyX, everything else works) via file formats and converters only?
 
  unless imagemagick convert utility knows how to deal with it (i think
  it doesn't) i'm not aware of such a plain route.
 
 As the tkiz - PDF (ps2pdf) conversion seems to work, the problem should be
 solvable with a definition for PDF (ps2pdf) - PNG.

i didn't read the original post carefully, this might be an option indeed.
pavel


Re: Problems with indentation and linguistics module (covington)

2009-08-12 Thread Johannes Knaus

Yes! That does it!

A big Thank You from Johannes.


Am 12.08.2009 um 10:33 schrieb Jürgen Spitzmüller:


Johannes Knaus wrote:

After some days of playing around I still haven't found a solution to
the problem. Indeed it seems a very tricky business.

It seems that \leftmargin is completely ignored:


There are two things to be considered here:

1. leftmargin is differentiated per indendation level (\leftmargini,
\leftmarginii, etc.)

2. \leftmargin needs to be set before the list starts.

Try something like:

\renewenvironment{example}{%
\setlength\leftmargini{3.05em}
\begin{examples}%
\settowidth{\labelwidth}{(0.00)}%
\item}
{\end{examples}}

HTH,
Jürgen




Re: Go Away Drawer

2009-08-12 Thread Bruce Pourciau


On Aug 11, 2009, at 11:29 AM, Vincent van Ravesteijn - TNW wrote:



In LyX 1.6.3, how cam I make the Table of Contents drawer go away?


By pressing the small 'x' ?


Thanks, Vincent. Didn't see any small 'x', but unchecking Outline in  
the Document menu worked. I guess I was assuming that the drawer would  
be controlled in the View menu.


Bruce


lyx 1.6.2 + Ubuntu 9.04 = slow typing

2009-08-12 Thread Alex M
Hi!

I would like to share my experience with solving very frustrating problem with 
typing in lyx 1.6.x under Ubuntu 9.04. Maybe this will help someone else or 
even lead to a fix in a next lyx version.

Recently I've upgraded to Ubuntu 9.04. After that, I could not continue my work 
in lyx 1.6.2. When typing, I experienced a very large delay (like seconds) 
before all symbols would appear on screen. 

I read through all posts in lyx mailing list with similar symptoms (just 2 or 
3). The only solution there that worked was to buy a new video card.

What I've done next:

1) Installed lyx 1.6.0 - the same typing delay. Installed lyx 1.5.7 - no typing 
delays. Returned back to lyx 1.6.2.

2) Looked at the CPU utilization. When typing, Xorg ate up to 50% CPU.
Then I resized lyx window to be smaller. CPU utilization fall down, and typing 
delay decreased. I resized lyx to be 25% of the screen - typing delay almost 
disappeared.

3) I looked which video card I have (lspci |grep Display) - Intel Corporation 
82945G/GZ Integrated Graphics Controller (rev 02)
I googled for problems with Intel graphics under Ubuntu 9, and found this link 
useful:
http://ubuntuforums.org/showthread.php?t=1130582highlight=ubuntu+slow+update
+jaunty

4) I tried different solutions from the link above and mostly got my X broken 
or no effect. Finally this one worked for me:

- open xorg.conf (sudo gedit /etc/X11/xorg.conf)
- go to section Device, mine was
Section Device
Identifier  Configured Video Device
EndSection
- add Option MigrationHeuristic greedy so the section looks now like this
Section Device
Identifier  Configured Video Device
Option  MigrationHeuristicgreedy
EndSection
- restart X or reboot.

Now I have almost no typing delays in lyx 1.6.2 (at least, typing speed is the 
same as in lyx 1.5.7 on my PC).



Re: lyx 1.6.2 + Ubuntu 9.04 = slow typing

2009-08-12 Thread Richard Talley
I'd be very interested in knowing what your Xorg CPU utilization is
like now. I'm having a similar problem on an old server running
Xubuntu 9.04, where Xorg is hogging the CPU. Thanks.  -- Rich

On Wed, Aug 12, 2009 at 6:41 AM, Alex Mm...@mail.ru wrote:
 Hi!

 I would like to share my experience with solving very frustrating problem with
 typing in lyx 1.6.x under Ubuntu 9.04. Maybe this will help someone else or
 even lead to a fix in a next lyx version.

 Recently I've upgraded to Ubuntu 9.04. After that, I could not continue my 
 work
 in lyx 1.6.2. When typing, I experienced a very large delay (like seconds)
 before all symbols would appear on screen.

 I read through all posts in lyx mailing list with similar symptoms (just 2 or
 3). The only solution there that worked was to buy a new video card.

 What I've done next:

 1) Installed lyx 1.6.0 - the same typing delay. Installed lyx 1.5.7 - no 
 typing
 delays. Returned back to lyx 1.6.2.

 2) Looked at the CPU utilization. When typing, Xorg ate up to 50% CPU.
 Then I resized lyx window to be smaller. CPU utilization fall down, and typing
 delay decreased. I resized lyx to be 25% of the screen - typing delay almost
 disappeared.

 3) I looked which video card I have (lspci |grep Display) - Intel Corporation
 82945G/GZ Integrated Graphics Controller (rev 02)
 I googled for problems with Intel graphics under Ubuntu 9, and found this link
 useful:
 http://ubuntuforums.org/showthread.php?t=1130582highlight=ubuntu+slow+update
 +jaunty

 4) I tried different solutions from the link above and mostly got my X broken
 or no effect. Finally this one worked for me:

 - open xorg.conf (sudo gedit /etc/X11/xorg.conf)
 - go to section Device, mine was
 Section Device
        Identifier      Configured Video Device
 EndSection
 - add Option MigrationHeuristic greedy so the section looks now like this
 Section Device
        Identifier      Configured Video Device
        Option          MigrationHeuristic            greedy
 EndSection
 - restart X or reboot.

 Now I have almost no typing delays in lyx 1.6.2 (at least, typing speed is the
 same as in lyx 1.5.7 on my PC).




Re: Lyx 1.6.3 Can I ditch the pointNclick list of open files below the toolbars???

2009-08-12 Thread BH
On Fri, Aug 7, 2009 at 12:46 PM, Vincent van
Ravesteijnv.f.vanraveste...@tudelft.nl wrote:

 But if I close the otherwise useless standard toolbar, the scrollbox
 isn't on the screen, thus it doesn't open so that I can select
 chapter,(or other {is it called section type?} choice from list...)
 Thus the viability of the shortcut sequence I described requires that
 the standard toolbar be turned on...

 Magically, the dropdownbox is also shown when the toolbar is hidden (after
 Alt-P space)

From what I can tell, this is true only if the standard toolbar has
been visible in the relevant window at some time in the past -- at
least on Mac. If as I do (and Joe apparently does) you set your ui
file not to load the standard toolbar, then Alt-Pspace does nothing.
But once you make the toolbar visible and then invisible, Alt-Pspace
does its magic.

BH


Re: lyx 1.6.2 + Ubuntu 9.04 = slow typing

2009-08-12 Thread Alex M
Richard Talley rich.tal...@... writes:

 
 I'd be very interested in knowing what your Xorg CPU utilization is
 like now. I'm having a similar problem on an old server running
 Xubuntu 9.04, where Xorg is hogging the CPU. Thanks.  -- Rich

Xorg uses 10-20% CPU now, usually 10%.



Re: Problems with indentation and linguistics module (covington)

2009-08-12 Thread Jürgen Spitzmüller
Johannes Knaus wrote:
 Yes! That does it!

It's now documented on the wiki, together with some related information:
http://wiki.lyx.org/LyX/LinguistLyX#toc16

Jürgen


Re: changing margins in article class when using Beamer

2009-08-12 Thread Paul A. Rubin

Graham M Smith wrote:

rh
If you can find some macro that is defined in this case, but not in 
the other case, then all you need is:

\ifx\thatmacro\undefined\relax\else
 your stuff here 
\fi
I don't know what \thatmacro might be, though.
Thanks, but unfortunately, this doesn't mean very much to me, I confess 
I was hoping for a single options line in the preamble :-(


Graham



Any particular reason you are switching to the article class for 
handouts, as opposed to using the handout option in the class options field?


/Paul



Re: How to embed a spreadsheet in LyX or LaTeX?

2009-08-12 Thread Paul A. Rubin

rgheck wrote:

On 08/11/2009 03:31 PM, Steve Litt wrote:

How can I embed a spreadsheet (MS Excel I assume) into a LyX or LaTeX
document?
   

If you do want it to be editable, then I have no idea.



This could turn into a viewer issue (at least partially), depending on 
what Steve has in mind.  There are four levels of embedding I can 
think of:


1.  Static (data is copied in once, does not change if the spreadsheet 
changes).  There've been a few responses on the list along those lines.


2.  Dynamic (the LyX doc contains a non-interactive table, but it 
automagically updates if the spreadsheet changes).  With other programs, 
this typically requires DDE (on Windows), but it could probably be faked 
with a script that the user would run manually.  The script would have 
to crank up the spreadsheet and dump the relevant table(s) to some sort 
of intermediate file(s) (CSV?).


3.  Static link (user sees a link in the LyX doc, clicks it to open the 
spreadsheet in an external program).  I doubt this is what Steve wants, 
since embedding links in LyX docs is well known.


4.  Dynamic link (user sees a table in the LyX doc, and can interact 
with it, making changes in the spreadsheet).  This would typically occur 
with the user reading the finished product (PDF, DVI) in a viewer, not 
reading it in LyX, so you get into issues of whether the viewer program 
supports this sort of embedding.  For instance, if you export the 
document in HTML and view it in a browser, I think there are browser 
plugins that let you edit a spreadsheet in situ (although I confess I've 
never done it).


/Paul



Re: lyx 1.6.2 + Ubuntu 9.04 = slow typing

2009-08-12 Thread Paul A. Rubin

Alex M wrote:

Hi!

I would like to share my experience with solving very frustrating problem with 
typing in lyx 1.6.x under Ubuntu 9.04. Maybe this will help someone else or 
even lead to a fix in a next lyx version.


Recently I've upgraded to Ubuntu 9.04. After that, I could not continue my work 
in lyx 1.6.2. When typing, I experienced a very large delay (like seconds) 
before all symbols would appear on screen. 

I read through all posts in lyx mailing list with similar symptoms (just 2 or 
3). The only solution there that worked was to buy a new video card.


What I've done next:

1) Installed lyx 1.6.0 - the same typing delay. Installed lyx 1.5.7 - no typing 
delays. Returned back to lyx 1.6.2.


2) Looked at the CPU utilization. When typing, Xorg ate up to 50% CPU.
Then I resized lyx window to be smaller. CPU utilization fall down, and typing 
delay decreased. I resized lyx to be 25% of the screen - typing delay almost 
disappeared.


3) I looked which video card I have (lspci |grep Display) - Intel Corporation 
82945G/GZ Integrated Graphics Controller (rev 02)
I googled for problems with Intel graphics under Ubuntu 9, and found this link 
useful:

http://ubuntuforums.org/showthread.php?t=1130582highlight=ubuntu+slow+update
+jaunty

4) I tried different solutions from the link above and mostly got my X broken 
or no effect. Finally this one worked for me:


- open xorg.conf (sudo gedit /etc/X11/xorg.conf)
- go to section Device, mine was
Section Device
Identifier  Configured Video Device
EndSection
- add Option MigrationHeuristic greedy so the section looks now like this
Section Device
Identifier  Configured Video Device
Option  MigrationHeuristic  greedy
EndSection
- restart X or reboot.

Now I have almost no typing delays in lyx 1.6.2 (at least, typing speed is the 
same as in lyx 1.5.7 on my PC).





This is worth posting to the wiki, if you're so inclined.

/Paul



Re: changing margins in article class when using Beamer

2009-08-12 Thread Graham M Smith

Paul
Any particular reason you are switching to the article class for 
handouts, as opposed to using the handout option in the class options 
field?

Mmmm,

I'm not switching to the article class, I'm switching to the article 
(Beamer) class. I realise now that I described this as beamer article 
class in my original post.


However, I can't see a handout option under  class options assuming this 
is meant to be under Document settings|document class.


The document class options predefined is ticked but greyed out with [No 
options predefined] in the field.


This is when Document Class presentation(Beamer) is selected.

Am I in the wrong place? A simple handout option would be nice.  This is 
1.6.2 on Ubuntu 9.04


Thanks,

Graham




Re: How to embed a spreadsheet in LyX or LaTeX?

2009-08-12 Thread Les Denham
On Wednesday 12 August 2009, Paul A. Rubin wrote:
 Dynamic link (user sees a table in the LyX doc, and can interact
 with it, making changes in the spreadsheet).  This would typically occur
 with the user reading the finished product (PDF, DVI) in a viewer, not
 reading it in LyX, so you get into issues of whether the viewer program
 supports this sort of embedding.  For instance, if you export the
 document in HTML and view it in a browser, I think there are browser
 plugins that let you edit a spreadsheet in situ (although I confess I've
 never done it).

This kind of approach is possible in theory: for example, if you have a figure 
in LyX which is a Grace file, editing that file in Grace will change the 
figure in Lyx immediately.  That is not the same as just editing an image: 
the Grace file is actually displayed in LyX using Grace in a command line 
mode.

The problem with a spreadsheet is that Excel does not (as far as I know) have 
a command line interface.  Neither does OpenOffice.org.  Gnumeric has a 
Python API which might be usable, but I haven't tried it.  The best 
possibility I'm aware of is the Perl module XLSperl 
(http://search.cpan.org/~jonallen/XLSperl-0.7/bin/XLSperl) which could be 
used to build an image from specified sheet, rows and columns. Once you have 
done this, the Perl script could be used in a converter (XLS-EPS, for 
example). But I don't think it would be a trivial task to do this.

-- 
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


Re: lyx 1.6.2 + Ubuntu 9.04 = slow typing

2009-08-12 Thread Sven Hoexter
On Wed, Aug 12, 2009 at 11:38:26AM -0400, Paul A. Rubin wrote:

Hi,

 3) I looked which video card I have (lspci |grep Display) - Intel
 Corporation 82945G/GZ Integrated Graphics Controller (rev 02)
 I googled for problems with Intel graphics under Ubuntu 9, and
 found this link useful:
 http://ubuntuforums.org/showthread.php?t=1130582highlight=ubuntu+slow+update
 +jaunty
 
 This is worth posting to the wiki, if you're so inclined.

Intel drivers for the older chips are currently broken and in most cases
unusable. Phoronix wrote about it several times. The newer 9x chips seem to
work again with Linux 2.6.30+ and the latest 2.9 Intel drivers.

I've downgraded all my (Debian) systems with Intel 8x chips to an older
Xorg version and the  2.3.2-2+lenny6 intel driver from Lenny. Currently that
still works but someday it will break for sure.

So all in all I doubt this is somehow relevant for LyX it's more of a general
issue.

Sven
-- 
They're the cowards We are rebels
We got the power to fight the devil
   [ AIV - We are rebels ]


Re: How to embed a spreadsheet in LyX or LaTeX?

2009-08-12 Thread John McCabe-Dansted
On Wed, Aug 12, 2009 at 11:36 PM, Paul A. Rubinru...@msu.edu wrote:
 This could turn into a viewer issue (at least partially), depending on what
 Steve has in mind.  There are four levels of embedding I can think of:

Adding spreadsheet to Insert-File-External Material sounds like a
good start. Like how .fig is handled but with something like
PyODConverter instead of transfig.
   http://www.oooninja.com/2008/02/batch-command-line-file-conversion-with.html

Presumbaly PyODConverter can convert any xls file that OO supports.

-- 
John C. McCabe-Dansted


unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread zweetsmoel
Hello,

it always happens when you need the bloody thing ;-)

i urgently need to edit and render my CV with lyx. unfortunately lyx
gives the following error when starting:  symbol lookup error:
src/lyx: undefined symbol: _Z13qFlagLocationPKc

i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
from source,... but nothing helps :\  googling did not save my day, so
i'm asking here, because i'm stuck. please any suggestions? my
guess this is Qt related, but i have not a single clue how to fix that

running on ubuntu 9.04, with qt 4.5 (i think)


thank you!
regards
Michael


Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread Vincent van Ravesteijn

zweetsmoel schreef:

Hello,

it always happens when you need the bloody thing ;-)

i urgently need to edit and render my CV with lyx. unfortunately lyx
gives the following error when starting:  symbol lookup error:
src/lyx: undefined symbol: _Z13qFlagLocationPKc

i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
from source,... but nothing helps :\  googling did not save my day, so
i'm asking here, because i'm stuck. please any suggestions? my
guess this is Qt related, but i have not a single clue how to fix that

running on ubuntu 9.04, with qt 4.5 (i think)

  
First quess: you compiled against qt 4.4 and try to run with qt 4.5. Or 
the other way around.


Vincent


Re: unable to run lyx 1.6.2 and 1.6.3 due to undefined symbol: _Z13qFlagLocationPKc

2009-08-12 Thread rgheck

On 08/12/2009 02:21 PM, zweetsmoel wrote:

Hello,

it always happens when you need the bloody thing ;-)

i urgently need to edit and render my CV with lyx. unfortunately lyx
gives the following error when starting:  symbol lookup error:
src/lyx: undefined symbol: _Z13qFlagLocationPKc

i tried re-installing lyx 1.6.2, re-installing Qt, i even build 1.6.3
from source,... but nothing helps :\  googling did not save my day, so
i'm asking here, because i'm stuck. please any suggestions? my
guess this is Qt related, but i have not a single clue how to fix that

running on ubuntu 9.04, with qt 4.5 (i think)

   

It does seem to have something to do with Qt, but I'm not sure what.

Some people seem to have had better luck with 1.6.1, which you could 
also try.


Andre, I'm bringing you in, as you're the guru for this kind of thing.

rh



  1   2   >