Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread Craig
Other things I've tried:
* Disabling Xinerama did not prevent the crash
* Creating a new user, logging in to a new X session and running LyX resulted 
in the same crash

Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread William Seager
On Wednesday 23 May 2012 08:09:33 Craig wrote:
 Creating a new user, logging in to a new X session and running LyX
 resulted in the same crash

can a non-root user run lyx sudo? 
-- 
William Seager
University of Toronto Scarborough
www.utsc.utoronto.ca/~seager


Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread Pavel Sanda
Pavel Sanda wrote:
 Craig wrote:
  Then I get:
  
  
  Error returned from iconv
  EILSEQ An invalid multibyte sequence has been encountered in the input.
  When converting from UCS-4LE to UTF-8.
  Input: 0xd0 0x61 0x16 0x3f 0xc0 0x7f 0x0 0x0 0xe0 0xe5 0xf2 0x0 0x0 0x0 0x0 
  0x0 0x0 0xaf 0xe9 0x0 0x0 0x0 0x0 0x0 0xc0 

another shot in the darkness - do you have correctly set locales?

 
 This is the important part.
 Can you try running lyx -dbg any and look on the console. It will output 
 tons of messages
 but I suspect that something interesting can be found page or two before this 
 line...
 Debuging flags won't help here I guess.
 Pavel


Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread Craig
 can a non-root user run lyx sudo? 

Yes.  A non-root user can run lyx with sudo and it works fine.


Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread Craig
 another shot in the darkness - do you have correctly set locales?

$ cat locale.gen 
en_US ISO-8859-1
en_US.UTF-8 UTF-8

$ env | grep LANG
LANG=en_US.UTF-8
GDM_LANG=en_US.UTF-8



Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread Nico Williams
strace lyx running as root and not, then look to see what system calls
are failing in the latter case leading up to the segfault.  That might
give you a clue as to where else to look.

Nico
--


How to load xr-hyper before hyperref?

2012-05-23 Thread Rudi Gaelzer
I'd like to use the facilities of the xr-hyper package to
cross-reference equations (or other things) labelled in another doc
and at the same time create a pdf (using xetex) with the whole
hyper-ref stuff (using the hyperref package).

The problem is, the xr-hyper pack should be loaded on the preamble
BEFORE hyperref, otherwise errors such as Paragraph ended before ...
was complete can appear.

The only place I can order LyX to load xr-hyper is on the doc's local
preamble, but in this case, the package will be loaded always after
hyperref.

Is there any way I can circumvent this limitation?

Thanks.

-- 
Rudi Gaelzer
Registered Linux user # 153741


Re: Change math Language - critical

2012-05-23 Thread Rudi Gaelzer
Ignacio, the best solution is to define a math macro: go to the beginning of 
your text and click on  
Insert - Math - Macro
An ERT box will appear, where you can (re)define your macro.  In place of 
\newmacroname type \sen.  In the TeX box type:
\mathop \mathrm{sen}\nolimits
In the LyX box simply type:
\mathrm{sen}

That's all, you'll be able to see the coveted sen symbol in instant preview 
and the output (dvi, eps, pdf) will also be correctly rendered.

I do that all the time with my texts in Portuguese for mathematical symbols 
such as sen, senh, sech, cosech, cotan, cosec, etc.

If you want to use the macros in other docs, save them in, say, 
Spanish-macros.lyx and then simply do Insert - File - Child Document... to 
input (not include) the macros in any other doc.

On Saturday 19 May 2012 09:45:31 Julio Rojas wrote:
 What a bummer...
 
 One question. Shouldn't it be better that Lyx recognizes localization
 and instead of using \sin uses \sen? Is it even possible or
 desirably?
 
 The really good question is why, oh why, LaTeX doesn't do it
 automatically so Lyx has to do it only on-screen.
 
 Regards.
 -
 Julio Rojas
 jcredbe...@gmail.com
 
 
 On Sat, May 19, 2012 at 8:48 AM, Ignacio García
 
 ignacio.gmora...@gmail.com wrote:
  On fry 8 May 2012 Kenedy Torcatt wrote
  
  Hey guys... I'm working with lyx in spanish, The mathematical operator
  like sin are showing in english sin. I need this math operators in
  spanish, I mean sen.
  How can I do this with lyx? I'm using latest version 2.0.3.
  
  Thankyou in advance.
  
  P.S: I already set the language in spanish, everything else is fine
  
  (in spanish).
  
  The function 'sen' is predefined in the latex package babel-spanish,
  so you write in math mode the command \sen and you get sen, that's all
  E.g., in math mode insert
  \sen space a
  
  
  and the output is
  sen a
  This command are not available in the math panels
  
  There is info about the functions predefined in Spanish (sen, arcsen,
  tg,...)
  in the section 15.1 of the spanish version manual 'Math' (Ecuaciones)
  
  
  
  I.G.
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Re: How to load xr-hyper before hyperref?

2012-05-23 Thread Richard Heck

On 05/23/2012 03:41 PM, Rudi Gaelzer wrote:

I'd like to use the facilities of the xr-hyper package to
cross-reference equations (or other things) labelled in another doc
and at the same time create a pdf (using xetex) with the whole
hyper-ref stuff (using the hyperref package).

The problem is, the xr-hyper pack should be loaded on the preamble
BEFORE hyperref, otherwise errors such as Paragraph ended before ...
was complete can appear.

The only place I can order LyX to load xr-hyper is on the doc's local
preamble, but in this case, the package will be loaded always after
hyperref.

Is there any way I can circumvent this limitation?

Prevent LyX loading hyperref by putting:
Provides hyperrer 1
into Local Layout. Then load it yourself.

rh



Multibib possible in Lyx?

2012-05-23 Thread Vivek Sharma
I am writing my CV and would
 like to do the following:
1. add bibliography under 
different sections:
 Books, Peer reviewed papers published,
 Submitted, Conference 
presentations.   
2. I have in my bibtex file the
 necessary entries with keyword as 
'BOOKS', 'Peer reviewed publications' etc.
3. I would like all entries with key
word BOOKS under section BOOKS 
printed in chronological order 
with most recent 
first. and all entries 
with keyword  printed in 
chronological order with 
most recent first under section 
 and so on. I know some people have done
 
this using biblatex or multibib in latex.
 I wonder if anyone has done it in Lyx 
and if so be willing to share how this 
was done.



Re: How to load xr-hyper before hyperref?

2012-05-23 Thread Guenter Milde
On 2012-05-23, Rudi Gaelzer wrote:
 I'd like to use the facilities of the xr-hyper package to
 cross-reference equations (or other things) labelled in another doc
 and at the same time create a pdf (using xetex) with the whole
 hyper-ref stuff (using the hyperref package).

 The problem is, the xr-hyper pack should be loaded on the preamble
 BEFORE hyperref, otherwise errors such as Paragraph ended before ...
 was complete can appear.

 The only place I can order LyX to load xr-hyper is on the doc's local
 preamble, but in this case, the package will be loaded always after
 hyperref.

 Is there any way I can circumvent this limitation?

Just untick the use hyperref box in DocumentSettingsPDF-...
and load/configure hyperref in the LaTeX preamble.

Günter




Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread Craig


I was able to download the tarball, build it in /opt and run LyX 2.0.3 
successfully.  Clearly this is a Gentoo packaging issue of some kind.  I then 
went back and tried some other things and now LyX runs correctly!  I performed 
the following steps, which may not make much sense to you unless you're a 
Gentoo user:

* Re-emerged lyx (tried this yesterday).  Still crashed. 
* Updated world 
* Re-emerged qt-core and qt-gui.  Still crashed. 
* Logged out and logged back in 
* Messed with xetex and luatex USE flags.  Previously, hadapp-office/lyx 
xetex -luatex in package.use.  Removed xetex flag. 
* Re-emerged lyx.  Now it runs!
    *Re-enabled xetex USE flag and re-compiled LyX, 
although I had to put the xetex flag in make.conf in order for LyX to 
recognize it.  LyX still runs! 


Now, does it run because I had to re-emerge qt 
and then re-emerge lyx?  Did I need to log out to unload the old copies 
of QT from memory?  I thought I had isolated the xetex flag as the 
problem, but now that works fine too! 


Thank you to everyone who invested time in this...I wish we had a better 
resolution than tried random stuff and it worked.  My best guess is that it 
has something to do with the exact order in which I installed TexLive, LyX, and 
QT, and the USE flags that were enabled at the time each was installed.  
Portage is normally really good about finding this kind of problem, but no 
package manager can be perfect...



Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread Pavel Sanda
Craig wrote:
 Now, does it run because I had to re-emerge qt 
 and then re-emerge lyx?  Did I need to log out to unload the old copies 
 of QT from memory?

one of these, perhaps. 

I thought I had isolated the xetex flag as the 
 problem, but now that works fine too! 

xetex use flag only pull texlive dependencies, it makes no difference as far as 
lyx compilation is concerned.
so i dont think this was the issue.

pavel


Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread Craig
Other things I've tried:
* Disabling Xinerama did not prevent the crash
* Creating a new user, logging in to a new X session and running LyX resulted 
in the same crash

Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread William Seager
On Wednesday 23 May 2012 08:09:33 Craig wrote:
 Creating a new user, logging in to a new X session and running LyX
 resulted in the same crash

can a non-root user run lyx sudo? 
-- 
William Seager
University of Toronto Scarborough
www.utsc.utoronto.ca/~seager


Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread Pavel Sanda
Pavel Sanda wrote:
 Craig wrote:
  Then I get:
  
  
  Error returned from iconv
  EILSEQ An invalid multibyte sequence has been encountered in the input.
  When converting from UCS-4LE to UTF-8.
  Input: 0xd0 0x61 0x16 0x3f 0xc0 0x7f 0x0 0x0 0xe0 0xe5 0xf2 0x0 0x0 0x0 0x0 
  0x0 0x0 0xaf 0xe9 0x0 0x0 0x0 0x0 0x0 0xc0 

another shot in the darkness - do you have correctly set locales?

 
 This is the important part.
 Can you try running lyx -dbg any and look on the console. It will output 
 tons of messages
 but I suspect that something interesting can be found page or two before this 
 line...
 Debuging flags won't help here I guess.
 Pavel


Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread Craig
 can a non-root user run lyx sudo? 

Yes.  A non-root user can run lyx with sudo and it works fine.


Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread Craig
 another shot in the darkness - do you have correctly set locales?

$ cat locale.gen 
en_US ISO-8859-1
en_US.UTF-8 UTF-8

$ env | grep LANG
LANG=en_US.UTF-8
GDM_LANG=en_US.UTF-8



Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread Nico Williams
strace lyx running as root and not, then look to see what system calls
are failing in the latter case leading up to the segfault.  That might
give you a clue as to where else to look.

Nico
--


How to load xr-hyper before hyperref?

2012-05-23 Thread Rudi Gaelzer
I'd like to use the facilities of the xr-hyper package to
cross-reference equations (or other things) labelled in another doc
and at the same time create a pdf (using xetex) with the whole
hyper-ref stuff (using the hyperref package).

The problem is, the xr-hyper pack should be loaded on the preamble
BEFORE hyperref, otherwise errors such as Paragraph ended before ...
was complete can appear.

The only place I can order LyX to load xr-hyper is on the doc's local
preamble, but in this case, the package will be loaded always after
hyperref.

Is there any way I can circumvent this limitation?

Thanks.

-- 
Rudi Gaelzer
Registered Linux user # 153741


Re: Change math Language - critical

2012-05-23 Thread Rudi Gaelzer
Ignacio, the best solution is to define a math macro: go to the beginning of 
your text and click on  
Insert - Math - Macro
An ERT box will appear, where you can (re)define your macro.  In place of 
\newmacroname type \sen.  In the TeX box type:
\mathop \mathrm{sen}\nolimits
In the LyX box simply type:
\mathrm{sen}

That's all, you'll be able to see the coveted sen symbol in instant preview 
and the output (dvi, eps, pdf) will also be correctly rendered.

I do that all the time with my texts in Portuguese for mathematical symbols 
such as sen, senh, sech, cosech, cotan, cosec, etc.

If you want to use the macros in other docs, save them in, say, 
Spanish-macros.lyx and then simply do Insert - File - Child Document... to 
input (not include) the macros in any other doc.

On Saturday 19 May 2012 09:45:31 Julio Rojas wrote:
 What a bummer...
 
 One question. Shouldn't it be better that Lyx recognizes localization
 and instead of using \sin uses \sen? Is it even possible or
 desirably?
 
 The really good question is why, oh why, LaTeX doesn't do it
 automatically so Lyx has to do it only on-screen.
 
 Regards.
 -
 Julio Rojas
 jcredbe...@gmail.com
 
 
 On Sat, May 19, 2012 at 8:48 AM, Ignacio García
 
 ignacio.gmora...@gmail.com wrote:
  On fry 8 May 2012 Kenedy Torcatt wrote
  
  Hey guys... I'm working with lyx in spanish, The mathematical operator
  like sin are showing in english sin. I need this math operators in
  spanish, I mean sen.
  How can I do this with lyx? I'm using latest version 2.0.3.
  
  Thankyou in advance.
  
  P.S: I already set the language in spanish, everything else is fine
  
  (in spanish).
  
  The function 'sen' is predefined in the latex package babel-spanish,
  so you write in math mode the command \sen and you get sen, that's all
  E.g., in math mode insert
  \sen space a
  
  
  and the output is
  sen a
  This command are not available in the math panels
  
  There is info about the functions predefined in Spanish (sen, arcsen,
  tg,...)
  in the section 15.1 of the spanish version manual 'Math' (Ecuaciones)
  
  
  
  I.G.
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Re: How to load xr-hyper before hyperref?

2012-05-23 Thread Richard Heck

On 05/23/2012 03:41 PM, Rudi Gaelzer wrote:

I'd like to use the facilities of the xr-hyper package to
cross-reference equations (or other things) labelled in another doc
and at the same time create a pdf (using xetex) with the whole
hyper-ref stuff (using the hyperref package).

The problem is, the xr-hyper pack should be loaded on the preamble
BEFORE hyperref, otherwise errors such as Paragraph ended before ...
was complete can appear.

The only place I can order LyX to load xr-hyper is on the doc's local
preamble, but in this case, the package will be loaded always after
hyperref.

Is there any way I can circumvent this limitation?

Prevent LyX loading hyperref by putting:
Provides hyperrer 1
into Local Layout. Then load it yourself.

rh



Multibib possible in Lyx?

2012-05-23 Thread Vivek Sharma
I am writing my CV and would
 like to do the following:
1. add bibliography under 
different sections:
 Books, Peer reviewed papers published,
 Submitted, Conference 
presentations.   
2. I have in my bibtex file the
 necessary entries with keyword as 
'BOOKS', 'Peer reviewed publications' etc.
3. I would like all entries with key
word BOOKS under section BOOKS 
printed in chronological order 
with most recent 
first. and all entries 
with keyword  printed in 
chronological order with 
most recent first under section 
 and so on. I know some people have done
 
this using biblatex or multibib in latex.
 I wonder if anyone has done it in Lyx 
and if so be willing to share how this 
was done.



Re: How to load xr-hyper before hyperref?

2012-05-23 Thread Guenter Milde
On 2012-05-23, Rudi Gaelzer wrote:
 I'd like to use the facilities of the xr-hyper package to
 cross-reference equations (or other things) labelled in another doc
 and at the same time create a pdf (using xetex) with the whole
 hyper-ref stuff (using the hyperref package).

 The problem is, the xr-hyper pack should be loaded on the preamble
 BEFORE hyperref, otherwise errors such as Paragraph ended before ...
 was complete can appear.

 The only place I can order LyX to load xr-hyper is on the doc's local
 preamble, but in this case, the package will be loaded always after
 hyperref.

 Is there any way I can circumvent this limitation?

Just untick the use hyperref box in DocumentSettingsPDF-...
and load/configure hyperref in the LaTeX preamble.

Günter




Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread Craig


I was able to download the tarball, build it in /opt and run LyX 2.0.3 
successfully.  Clearly this is a Gentoo packaging issue of some kind.  I then 
went back and tried some other things and now LyX runs correctly!  I performed 
the following steps, which may not make much sense to you unless you're a 
Gentoo user:

* Re-emerged lyx (tried this yesterday).  Still crashed. 
* Updated world 
* Re-emerged qt-core and qt-gui.  Still crashed. 
* Logged out and logged back in 
* Messed with xetex and luatex USE flags.  Previously, hadapp-office/lyx 
xetex -luatex in package.use.  Removed xetex flag. 
* Re-emerged lyx.  Now it runs!
    *Re-enabled xetex USE flag and re-compiled LyX, 
although I had to put the xetex flag in make.conf in order for LyX to 
recognize it.  LyX still runs! 


Now, does it run because I had to re-emerge qt 
and then re-emerge lyx?  Did I need to log out to unload the old copies 
of QT from memory?  I thought I had isolated the xetex flag as the 
problem, but now that works fine too! 


Thank you to everyone who invested time in this...I wish we had a better 
resolution than tried random stuff and it worked.  My best guess is that it 
has something to do with the exact order in which I installed TexLive, LyX, and 
QT, and the USE flags that were enabled at the time each was installed.  
Portage is normally really good about finding this kind of problem, but no 
package manager can be perfect...



Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread Pavel Sanda
Craig wrote:
 Now, does it run because I had to re-emerge qt 
 and then re-emerge lyx?  Did I need to log out to unload the old copies 
 of QT from memory?

one of these, perhaps. 

I thought I had isolated the xetex flag as the 
 problem, but now that works fine too! 

xetex use flag only pull texlive dependencies, it makes no difference as far as 
lyx compilation is concerned.
so i dont think this was the issue.

pavel


Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread Craig
Other things I've tried:
* Disabling Xinerama did not prevent the crash
* Creating a new user, logging in to a new X session and running LyX resulted 
in the same crash

Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread William Seager
On Wednesday 23 May 2012 08:09:33 Craig wrote:
> Creating a new user, logging in to a new X session and running LyX
> resulted in the same crash

can a non-root user run lyx sudo? 
-- 
William Seager
University of Toronto Scarborough
www.utsc.utoronto.ca/~seager


Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread Pavel Sanda
Pavel Sanda wrote:
> Craig wrote:
> > Then I get:
> > 
> > 
> > Error returned from iconv
> > EILSEQ An invalid multibyte sequence has been encountered in the input.
> > When converting from UCS-4LE to UTF-8.
> > Input: 0xd0 0x61 0x16 0x3f 0xc0 0x7f 0x0 0x0 0xe0 0xe5 0xf2 0x0 0x0 0x0 0x0 
> > 0x0 0x0 0xaf 0xe9 0x0 0x0 0x0 0x0 0x0 0xc0 

another shot in the darkness - do you have correctly set locales?

> 
> This is the important part.
> Can you try running "lyx -dbg any" and look on the console. It will output 
> tons of messages
> but I suspect that something interesting can be found page or two before this 
> line...
> Debuging flags won't help here I guess.
> Pavel


Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread Craig
> can a non-root user run lyx sudo? 

Yes.  A non-root user can run lyx with sudo and it works fine.


Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread Craig
> another shot in the darkness - do you have correctly set locales?

$ cat locale.gen 
en_US ISO-8859-1
en_US.UTF-8 UTF-8

$ env | grep LANG
LANG=en_US.UTF-8
GDM_LANG=en_US.UTF-8



Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread Nico Williams
strace lyx running as root and not, then look to see what system calls
are failing in the latter case leading up to the segfault.  That might
give you a clue as to where else to look.

Nico
--


How to load xr-hyper before hyperref?

2012-05-23 Thread Rudi Gaelzer
I'd like to use the facilities of the xr-hyper package to
cross-reference equations (or other things) labelled in another doc
and at the same time create a pdf (using xetex) with the whole
hyper-ref stuff (using the hyperref package).

The problem is, the xr-hyper pack should be loaded on the preamble
BEFORE hyperref, otherwise errors such as "Paragraph ended before ...
was complete" can appear.

The only place I can order LyX to load xr-hyper is on the doc's local
preamble, but in this case, the package will be loaded always after
hyperref.

Is there any way I can circumvent this limitation?

Thanks.

-- 
Rudi Gaelzer
Registered Linux user # 153741


Re: Change math Language - critical

2012-05-23 Thread Rudi Gaelzer
Ignacio, the best solution is to define a math macro: go to the beginning of 
your text and click on  
Insert -> Math -> Macro
An ERT box will appear, where you can (re)define your macro.  In place of 
\newmacroname type \sen.  In the TeX box type:
\mathop \mathrm{sen}\nolimits
In the LyX box simply type:
\mathrm{sen}

That's all, you'll be able to see the coveted "sen" symbol in instant preview 
and the output (dvi, eps, pdf) will also be correctly rendered.

I do that all the time with my texts in Portuguese for mathematical symbols 
such as sen, senh, sech, cosech, cotan, cosec, etc.

If you want to use the macros in other docs, save them in, say, 
Spanish-macros.lyx and then simply do Insert -> File -> Child Document... to 
input (not include) the macros in any other doc.

On Saturday 19 May 2012 09:45:31 Julio Rojas wrote:
> What a bummer...
> 
> One question. Shouldn't it be better that Lyx recognizes localization
> and instead of using "\sin" uses "\sen"? Is it even possible or
> desirably?
> 
> The really good question is why, oh why, LaTeX doesn't do it
> automatically so Lyx has to do it only on-screen.
> 
> Regards.
> -
> Julio Rojas
> jcredbe...@gmail.com
> 
> 
> On Sat, May 19, 2012 at 8:48 AM, Ignacio García
> 
>  wrote:
> > On fry 8 May 2012 Kenedy Torcatt wrote
> > 
> >> Hey guys... I'm working with lyx in spanish, The mathematical operator
> >> like sin are showing in english "sin". I need this math operators in
> >> spanish, I mean "sen".
> >> How can I do this with lyx? I'm using latest version 2.0.3.
> >> 
> >> Thankyou in advance.
> >> 
> >> P.S: I already set the language in spanish, everything else is fine
> > 
> > (in spanish).
> > 
> > The function 'sen' is predefined in the latex package babel-spanish,
> > so you write in math mode the command \sen and you get sen, that's all
> > E.g., in math mode insert
> > \sen space a
> > 
> > 
> > and the output is
> > sen a
> > This command are not available in the math panels
> > 
> > There is info about the functions predefined in Spanish (sen, arcsen,
> > tg,...)
> > in the section 15.1 of the spanish version manual 'Math' (Ecuaciones)
> > 
> > 
> > 
> > I.G.
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Re: How to load xr-hyper before hyperref?

2012-05-23 Thread Richard Heck

On 05/23/2012 03:41 PM, Rudi Gaelzer wrote:

I'd like to use the facilities of the xr-hyper package to
cross-reference equations (or other things) labelled in another doc
and at the same time create a pdf (using xetex) with the whole
hyper-ref stuff (using the hyperref package).

The problem is, the xr-hyper pack should be loaded on the preamble
BEFORE hyperref, otherwise errors such as "Paragraph ended before ...
was complete" can appear.

The only place I can order LyX to load xr-hyper is on the doc's local
preamble, but in this case, the package will be loaded always after
hyperref.

Is there any way I can circumvent this limitation?

Prevent LyX loading hyperref by putting:
Provides hyperrer 1
into Local Layout. Then load it yourself.

rh



Multibib possible in Lyx?

2012-05-23 Thread Vivek Sharma
I am writing my CV and would
 like to do the following:
1. add bibliography under 
different sections:
 Books, Peer reviewed papers published,
 Submitted, Conference 
presentations.   
2. I have in my bibtex file the
 necessary entries with keyword as 
'BOOKS', 'Peer reviewed publications' etc.
3. I would like all entries with key
word "BOOKS" under section BOOKS 
printed in chronological order 
with most recent 
first. and all entries 
with keyword "" printed in 
chronological order with 
most recent first under section ""
 and so on. I know some people have done
 
this using biblatex or multibib in latex.
 I wonder if anyone has done it in Lyx 
and if so be willing to share how this 
was done.



Re: How to load xr-hyper before hyperref?

2012-05-23 Thread Guenter Milde
On 2012-05-23, Rudi Gaelzer wrote:
> I'd like to use the facilities of the xr-hyper package to
> cross-reference equations (or other things) labelled in another doc
> and at the same time create a pdf (using xetex) with the whole
> hyper-ref stuff (using the hyperref package).

> The problem is, the xr-hyper pack should be loaded on the preamble
> BEFORE hyperref, otherwise errors such as "Paragraph ended before ...
> was complete" can appear.

> The only place I can order LyX to load xr-hyper is on the doc's local
> preamble, but in this case, the package will be loaded always after
> hyperref.

> Is there any way I can circumvent this limitation?

Just untick the "use hyperref" box in Document>Settings>PDF-...
and load/configure hyperref in the LaTeX preamble.

Günter




Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread Craig


I was able to download the tarball, build it in /opt and run LyX 2.0.3 
successfully.  Clearly this is a Gentoo packaging issue of some kind.  I then 
went back and tried some other things and now LyX runs correctly!  I performed 
the following steps, which may not make much sense to you unless you're a 
Gentoo user:

* Re-emerged lyx (tried this yesterday).  Still crashed. 
* Updated world 
* Re-emerged qt-core and qt-gui.  Still crashed. 
* Logged out and logged back in 
* Messed with xetex and luatex USE flags.  Previously, hadapp-office/lyx 
xetex -luatex in package.use.  Removed xetex flag. 
* Re-emerged lyx.  Now it runs!
    *Re-enabled xetex USE flag and re-compiled LyX, 
although I had to put the xetex flag in make.conf in order for LyX to 
recognize it.  LyX still runs! 


Now, does it run because I had to re-emerge qt 
and then re-emerge lyx?  Did I need to log out to unload the old copies 
of QT from memory?  I thought I had isolated the xetex flag as the 
problem, but now that works fine too! 


Thank you to everyone who invested time in this...I wish we had a better 
resolution than "tried random stuff and it worked."  My best guess is that it 
has something to do with the exact order in which I installed TexLive, LyX, and 
QT, and the USE flags that were enabled at the time each was installed.  
Portage is normally really good about finding this kind of problem, but no 
package manager can be perfect...



Re: LyX SEGSEGV crash just after GUI window appears

2012-05-23 Thread Pavel Sanda
Craig wrote:
> Now, does it run because I had to re-emerge qt 
> and then re-emerge lyx?  Did I need to log out to unload the old copies 
> of QT from memory?

one of these, perhaps. 

>I thought I had isolated the xetex flag as the 
> problem, but now that works fine too! 

xetex use flag only pull texlive dependencies, it makes no difference as far as 
lyx compilation is concerned.
so i dont think this was the issue.

pavel