documentstructure

2009-03-17 Thread Wolfgang Engelmann
somehow I managed to get the documentstructure (Gliederung) of my lyx (1.6) 
document on top of my text. It used to be at the left of the document and I 
would like to have it back this way but can't find the way how to do it. 
Wolfgang


Re: documentstructure

2009-03-17 Thread Jürgen Spitzmüller
Wolfgang Engelmann wrote:
 somehow I managed to get the documentstructure (Gliederung) of my lyx
 (1.6) document on top of my text. It used to be at the left of the document
 and I would like to have it back this way but can't find the way how to do
 it.

You can drag it with the mouse.

Jürgen



Re: documentstructure

2009-03-17 Thread Wolfgang Engelmann
Am Tuesday 17 March 2009 09:23:24 schrieb Jürgen Spitzmüller:
 Wolfgang Engelmann wrote:
  somehow I managed to get the documentstructure (Gliederung) of my lyx
  (1.6) document on top of my text. It used to be at the left of the
  document and I would like to have it back this way but can't find the way
  how to do it.

 You can drag it with the mouse.

 Jürgen

So easy! Should have thought of it.
Thanks, Jürgen


Wolfgang


Re: some beamer questions

2009-03-17 Thread Paul A. Rubin

s nedunuri wrote:
Just started using beamer. I think its great. I was unable to find a beamer 
manual [entry] for lyx but i've been able to figure out most of what i need 
from looking at the examples. Couple of qs:


1. When i create a block, how do i get the block contents to actually appear 
inside the block. So what i currently have is:

Block (ERT[{title}] body): [[ {some heading} ]]
block contents

where [[ and ]] indicate a red ERT box. There seems to be some way of 
letting lyx know that the contents belong inside the blue box that appears 
on the output (b/c i see it done in the examples) but i cant figure it out


Nest the content under the Block environment (Edit  Increase List 
Depth).  The content can be a different environment (e.g., enumeration).


2. Suppose you have a program listing or a math array, and you want to 
animate the replacement of certain sections of the code or the introduction 
of certain pieces of code, how might that be done. I see a reference to 
overlays but the examples i looked at didn't contain them 



See sections 9.2 and 9.3 of the Beamer user guide.  You'll need to 
surround the animated material with ERT, using one of the commands 
(\onslide, \only, \visible etc.) described in the manual.  If you need 
something to occupy the space when the material is not visible, you 
might try \alt.  I've attached a small example.


/Paul


animated equation.lyx
Description: application/lyx


Cannot view pdf help-math: (xargs.sty not found)

2009-03-17 Thread Waluyo Adi Siswanto
I just compile 1.6.2 from source in Ubuntu 8.04, and I try to view pdf
help-math, but Error List dialog appear: LateX Error:File'xargs.sty' not
found.

I have the same problem in 1.6.1.

I don't know how to view pdf this help-math. Is it a bug or something
missing in my Texlive (2007).


Regards
was



Classic Vs. Alternative Windows Installers

2009-03-17 Thread Reuven Segev
Hi,

I have been using LyX for about 5 years now and was always mystified by the
existence of the two versions of the installer. 

I have the 1.6.1 classical installed at the moment and in the past I used also
the alternative one.

With the 1.6.2 unavailable yet im the classic version: 
 - Does it make sense to wait?
 - Will the alternative installer remove the 1.6.1 classic or co-exist with
it? (I understand I cannot use the updater.)
 - In case I use the alternative installer, will I have to insert all my
preferences, customization, etc. again?

Will appreciate you help on the matter.

AND THANKS A LOT FOR THE GREAT PIECE OF SOFTWARE AND USEFUL WORK ENVIRONMENT.

Reuven 



How to make a single list environment

2009-03-17 Thread Steve Litt
Hi all,

I want to make a clone of the Itemize environment, only with narrower spacing. 
After didlling around with some Itemize LaTeX found in non-book environments, 
I figured I'd just roll my own. I already know how to make a 2 environment 
list, with the outer environment defining the list, and each instance of the 
inner environment defining one item.

That would be just fine in LaTeX, but it's inconvenient in LyX. So I'm trying 
to make something like Itemize, which both creates the list and makes each 
paragraph an item. The following simple LaTeX came dang close to working:

\newcommand*{\starlabel}{*}
% ### Vertically denser than Itemize Outline ###
\newenvironment{outlineL}{
\list{}{
\let\makelabel\starlabel
\setlength\parsep{-2pt}
\setlength\labelsep{0.2in}
}

\item[]
}{
\endlist
}


The preceding is close but no cigar, because it prints the star only on the 
first item of each list or sublist, as shown in the attached graphic. I 
experimented with putting the star in the first arg of the list, nothing 
showed up. I put it in the squarebrackets following item, no joy.

What's the correct way to do this?

Thanks

Steve Litt
Recession Relief Package
http://www.recession-relief.US



test.pdf
Description: Adobe PDF document


Re: Cannot view pdf help-math: (xargs.sty not found)

2009-03-17 Thread Ignacio García
Tue, 17 Mar 2009 08:59:41 -0700
Waluyo Adi Siswanto wrote

 I just compile 1.6.2 from source in Ubuntu 8.04, and I try to view pdf
 help-math, but Error List dialog appear: LateX Error:File'xargs.sty' not
 found.

 I have the same problem in 1.6.1.

 I don't know how to view pdf this help-math. Is it a bug or something
 missing in my Texlive (2007).

 xargs is not included in texlive 2007
You can download and install it from CTAN
http://www.ctan.org/tex-archive/macros/latex/contrib/xargs/

(Or you can install texlive-2008  manually, as it is not available in
Ubuntu 8.04 .deb repos)

Regards
Ignacio


Re: Cannot view pdf help-math: (xargs.sty not found)

2009-03-17 Thread Uwe Stöhr

Waluyo Adi Siswanto schrieb:


I just compile 1.6.2 from source in Ubuntu 8.04, and I try to view pdf
help-math, but Error List dialog appear: LateX Error:File'xargs.sty' not
found.


I don't explicitly load this package in Math.lyx, so it seems that another 
package needs this.

What you need is to install this LaTeX-package. Since TeXLive 208 this is easy: open teXLive's 
package manager, select there the LaTeX-package named xargs, and install it. (I don't know how a 
package is installed with TeXLive 2007 on Linux.


regards Uwe


Re: Classic Vs. Alternative Windows Installers

2009-03-17 Thread Uwe Stöhr

Reuven Segev schrieb:

With the 1.6.2 unavailable yet im the classic version: 
 - Does it make sense to wait?


Both installers should work in every case, so I think you can give it a try.
(OK, I'm not objective, because I provide the alternative installer ;-) .)


 - Will the alternative installer remove the 1.6.1 classic or co-exist with 
it?


It should leave LyX 1.6.1 installed, but note that this could lead to intereferences between LyX 
1.6.1 and 1.6.2 in general. So I recommend to uninstall LyX 1.6.1 and install 1.6.2 afterwards.



 - In case I use the alternative installer, will I have to insert all my
preferences, customization, etc. again?


Your preferences should be kept as they are, even when you uninstall LyX. (The uninstaller has a 
checkbox for this feature). To be sure, safe your preferences (look in LyX's preferences to see the 
path where they are stored.


regards Uwe


Re: How to make a single list environment

2009-03-17 Thread Guenter Milde
On 2009-03-17, Steve Litt wrote:

 I want to make a clone of the Itemize environment, only with narrower
 spacing. 
...

 What's the correct way to do this?

a) if you want vertical space for separating paragraphs, use the
   'parskip' package and not the LyX GUI setting (there is a bugreport
   about this on bugzilla).
   
b) use a LaTeX package that provides for this, e.g. 'enumitem'.
   
   Hint: search for the LyX module for enumitem on wiki.lyx.org.

Günter



Re: Why does lyx use it's own keyboard instead of the systems?

2009-03-17 Thread Dov Feldstern

Micha Feigin wrote:

On Tue, 10 Mar 2009 11:44:46 +0200
Ronen Abravanel ron...@gmail.com wrote:


Before you rush into this change - Consider the following usecase:
Switching to math - When I'm in math-mode, I always want my keyboard layout
to be English. While In windows, The current keyboard layout override the
global one (If you put the cursor in an Hebrew context, the language will
switch to Hebrew, If you put your cursor in English context - you'll write
in English).
When I'm writing document, I want the Ctrl+m will be the only thing I need
to do in order to start typing math. Ctrl-m Alt-Shift Is match to
expensive..



good point, but you also have two input senarios in math.
1. Entering parameters (regular typing). AFAIK it should always be in english
because I don't think that latex can handle anything else
2. in text mode inside math mode, where you want to be able to type both
(although at the moment it requires explicitly entering the \R{} macro to get
hebrew in there

Does everyone agree on the first point and are you willing to manually change
in the second case or do you want some other behviour?


So - If LyX will use the native-system-keyboard-layout - It will have to be
able to change it depending the current context (Math\Regular) - And in
every OS.

On Tue, Mar 10, 2009 at 9:59 AM, Abdelrazak Younes you...@lyx.org wrote:


Micha Feigin wrote:


Sorry, sent off list by mistake

On Mon, 9 Mar 2009 22:05:51 +0100
Jean-Marc Lasgouttes lasgout...@lyx.org wrote:

 There are two issues. For running the dictionary you need to know  the

language.
For hebrew and arabic it's another issue, you need to know the  system
language
so that you know directionality. Hebrew is right to left. For  hebrew
characters
it may be easy to decide, for what about spaces and numbers? For  these
we need
to know the system keyboard language and not guess it from the
 character.

Under windows I know it's possible since for example word does it.
 Question is
whether this is possible to know under linux (I guess so since  there
are panel
applets that show the language). Which again comes down to the  question
whether
there is a technical issue why to work this way or not.


So you want to change language when the keyboard layout is changed at
 system level, right?
I never thought of these layouts as indicators of the actual  language.
If Qt gives us
this information, we should be able to do it.

JMarc



For every other program the system language is used for input (alt-shift
in my
case). So for example when writing mail or using oowriter I change the
system
language to change input. Lyx is the only exeption where I __have__ to
keep the
system language for english and bind (f12 in this case) to language
hebrew. It
makes things incosistent and non-intuitive, esspecially for new users.


I agree. For RTL languages, it makes a lot of sense to change the current
language together with the system. Advanced users wishing to change the
language independently should be able to disable this feature though.

Now, you have to find someone willing to implement this feature ;-)

FYI, a year or two ago I advocated that the text direction should be based
uniquely on the encoding, independently of the language settings, like Qt
does. But I failed to convince other developers.

Dov, are you reading this? ;-)

Abdel.



A little late, but yes, I am still lurking on the mailing lists... ;)

I think the main reason (to answer the title question) is that we don't know how 
to get/set the system-wide keyboard language in a cross-platform way. If it's 
possible to do that, then I think it should be fairly simple to implement a 
solution along the following lines:


Ideally, if it *were* possible to detect the system-wide keyboard language 
setting, then LyX should (optionally! for users that *want* this feature) set 
it's internal language to the system-wide setting, plain and simple. The only 
thing to make sure, though, is that in the same manner, whenever LyX chooses to 
change it's internal language, it should also *set* the system-wide keyboard 
setting to that language. I think that that would solve the issue raised by 
Ronen: when entering a math inset, LyX would set the internal, as well as the 
system-wide, language to english (or latex, technically? I forget the exact 
details), which would mean that the math text would be set correctly; and when 
exiting that inset, LyX automatically sets the language back to whatever it was 
before entering the inset. Similarly, when moving the cursor over existing text, 
LyX changes the language to match the underlying text. I'm almost certain that 
LyX already does all of this language setting --- except that not at the 
system-wide level, that's what would have to be added.


Note, however, that even if this is implemented, I think I would *still* choose 
to use LyX's keymaps, for reasons that I've explained elsewhere (last time 
around was at 

Re: Weird problem with bibtex from LyX (but not from Latex)-- SOLVED

2009-03-17 Thread Stefano Franchi
On Monday 16 March 2009 04:59:18 Guenter Milde wrote:
 On 2009-03-15, Stefano Franchi wrote:
  3. The preamble of the master document calls the \bibliography commands
 with 4 .bib files

 As the preamble is free LaTeX source (like ERT), lyx is not aware of
 the \bibliography call there.

 Where are your .bib files?

  launching lyx from console and looking at the output reveals that the
  problem is that bibtex cannot find the bib files:
 
  However, If I export to the whole manuscript to latex (plain) and
  compile from the command line everything works fine, all the bib
  references are found, etcetera.

 LyX uses a temporary directory. This might be the cause. You can try to
 disable the temporary directory (I don't know how exactly but guess
 that giving an empty path for the TempDir in Toolssettings helps).

  2. I tried creating soft links to the actual files in the local
 directory and substituting just file names for absolute paths.  No
 difference.

 I would try to put (or link) the *.bib files into a directory in the
 BIBINPUTS path, so it is found by LaTeX/BibTeX from everywhere.

 .. and substituting just file names for absolute paths.


 Günter

Problem solved. It tuned out to be two small problems, actually, which is why 
I was lost. I am typing what I found out for future reference and general 
posterity:

1. Thanks to Richard's and Gunter's explanations I know now what LyX does 
behind the scene when it compiles a .lyx to .pdf
Result: LyX will not find the bib files if both these conditions are true (Of 
course they both were in my case...):

a-  BibLatex is used for the bib references
b- the bib files are located in the document's directory and referred to by 
relative pathnames

This is because LyX does its behind the scene work by copying all the files it 
needs to a remote directory (/tmp/ on Linux) and doing the latex 
compilation there. If b is true and a is false, LyX strategy will work: the 
bib files declared within LyX will be copied as well, and everything is fine. 
When using BibLatex, however, the files are declared in the preamble, which LyX 
ignores, and will not get copied. BibTex will then use the relative pathnames 
from a remote directory and fail

Exporting to Latex, on the other hand, will work, because the exported .tex 
files are located in the original directory alongside the .bib files.

Moral of the story: never use relative pathnames with BibLatex unless you want 
to export to Latex everytime you want your references to come out right.

2. Second problem: It turns out that the preamble command needed to specify 
.bib files in Biblatex can accept comma-separated multiple files ONLY IF there 
are no spaces separating them. Otherwise BibteX will fail with a rather 
cryptic error message which it took me a while to decode. Of course, the 
comma space sequence is so deeply engrained in my fingers that I hadn't even 
noticed I was typing extra spaces. 
Moral of the story: Never put spaces in the \bibliography command


Cheers,

S.



 



__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237



beamer trouble in 1.6.2

2009-03-17 Thread fuyuki hane
hank you for LyX 1.6.2.
The beamer in LyX 1.6.2 doesn't seem to convert correctly from the LyX
code to the latex code.
But The beamer in LyX 1.6.1 is OK.

I think that geometry part is different between 1.6.1 and 1.6.2.

The exported latex codes show as follows:
%% LyX 1.6.2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[table]{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[paperwidth=128mm,paperheight=96mm]{geometry}
\geometry{verbose}
\usepackage{relsize}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{amssymb}

\makeatletter

%% LyX 1.6.1 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[table]{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\geometry{verbose,paperwidth=128mm,paperheight=96mm}
\usepackage{relsize}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{amssymb}

\makeatletter


documentstructure

2009-03-17 Thread Wolfgang Engelmann
somehow I managed to get the documentstructure (Gliederung) of my lyx (1.6) 
document on top of my text. It used to be at the left of the document and I 
would like to have it back this way but can't find the way how to do it. 
Wolfgang


Re: documentstructure

2009-03-17 Thread Jürgen Spitzmüller
Wolfgang Engelmann wrote:
 somehow I managed to get the documentstructure (Gliederung) of my lyx
 (1.6) document on top of my text. It used to be at the left of the document
 and I would like to have it back this way but can't find the way how to do
 it.

You can drag it with the mouse.

Jürgen



Re: documentstructure

2009-03-17 Thread Wolfgang Engelmann
Am Tuesday 17 March 2009 09:23:24 schrieb Jürgen Spitzmüller:
 Wolfgang Engelmann wrote:
  somehow I managed to get the documentstructure (Gliederung) of my lyx
  (1.6) document on top of my text. It used to be at the left of the
  document and I would like to have it back this way but can't find the way
  how to do it.

 You can drag it with the mouse.

 Jürgen

So easy! Should have thought of it.
Thanks, Jürgen


Wolfgang


Re: some beamer questions

2009-03-17 Thread Paul A. Rubin

s nedunuri wrote:
Just started using beamer. I think its great. I was unable to find a beamer 
manual [entry] for lyx but i've been able to figure out most of what i need 
from looking at the examples. Couple of qs:


1. When i create a block, how do i get the block contents to actually appear 
inside the block. So what i currently have is:

Block (ERT[{title}] body): [[ {some heading} ]]
block contents

where [[ and ]] indicate a red ERT box. There seems to be some way of 
letting lyx know that the contents belong inside the blue box that appears 
on the output (b/c i see it done in the examples) but i cant figure it out


Nest the content under the Block environment (Edit  Increase List 
Depth).  The content can be a different environment (e.g., enumeration).


2. Suppose you have a program listing or a math array, and you want to 
animate the replacement of certain sections of the code or the introduction 
of certain pieces of code, how might that be done. I see a reference to 
overlays but the examples i looked at didn't contain them 



See sections 9.2 and 9.3 of the Beamer user guide.  You'll need to 
surround the animated material with ERT, using one of the commands 
(\onslide, \only, \visible etc.) described in the manual.  If you need 
something to occupy the space when the material is not visible, you 
might try \alt.  I've attached a small example.


/Paul


animated equation.lyx
Description: application/lyx


Cannot view pdf help-math: (xargs.sty not found)

2009-03-17 Thread Waluyo Adi Siswanto
I just compile 1.6.2 from source in Ubuntu 8.04, and I try to view pdf
help-math, but Error List dialog appear: LateX Error:File'xargs.sty' not
found.

I have the same problem in 1.6.1.

I don't know how to view pdf this help-math. Is it a bug or something
missing in my Texlive (2007).


Regards
was



Classic Vs. Alternative Windows Installers

2009-03-17 Thread Reuven Segev
Hi,

I have been using LyX for about 5 years now and was always mystified by the
existence of the two versions of the installer. 

I have the 1.6.1 classical installed at the moment and in the past I used also
the alternative one.

With the 1.6.2 unavailable yet im the classic version: 
 - Does it make sense to wait?
 - Will the alternative installer remove the 1.6.1 classic or co-exist with
it? (I understand I cannot use the updater.)
 - In case I use the alternative installer, will I have to insert all my
preferences, customization, etc. again?

Will appreciate you help on the matter.

AND THANKS A LOT FOR THE GREAT PIECE OF SOFTWARE AND USEFUL WORK ENVIRONMENT.

Reuven 



How to make a single list environment

2009-03-17 Thread Steve Litt
Hi all,

I want to make a clone of the Itemize environment, only with narrower spacing. 
After didlling around with some Itemize LaTeX found in non-book environments, 
I figured I'd just roll my own. I already know how to make a 2 environment 
list, with the outer environment defining the list, and each instance of the 
inner environment defining one item.

That would be just fine in LaTeX, but it's inconvenient in LyX. So I'm trying 
to make something like Itemize, which both creates the list and makes each 
paragraph an item. The following simple LaTeX came dang close to working:

\newcommand*{\starlabel}{*}
% ### Vertically denser than Itemize Outline ###
\newenvironment{outlineL}{
\list{}{
\let\makelabel\starlabel
\setlength\parsep{-2pt}
\setlength\labelsep{0.2in}
}

\item[]
}{
\endlist
}


The preceding is close but no cigar, because it prints the star only on the 
first item of each list or sublist, as shown in the attached graphic. I 
experimented with putting the star in the first arg of the list, nothing 
showed up. I put it in the squarebrackets following item, no joy.

What's the correct way to do this?

Thanks

Steve Litt
Recession Relief Package
http://www.recession-relief.US



test.pdf
Description: Adobe PDF document


Re: Cannot view pdf help-math: (xargs.sty not found)

2009-03-17 Thread Ignacio García
Tue, 17 Mar 2009 08:59:41 -0700
Waluyo Adi Siswanto wrote

 I just compile 1.6.2 from source in Ubuntu 8.04, and I try to view pdf
 help-math, but Error List dialog appear: LateX Error:File'xargs.sty' not
 found.

 I have the same problem in 1.6.1.

 I don't know how to view pdf this help-math. Is it a bug or something
 missing in my Texlive (2007).

 xargs is not included in texlive 2007
You can download and install it from CTAN
http://www.ctan.org/tex-archive/macros/latex/contrib/xargs/

(Or you can install texlive-2008  manually, as it is not available in
Ubuntu 8.04 .deb repos)

Regards
Ignacio


Re: Cannot view pdf help-math: (xargs.sty not found)

2009-03-17 Thread Uwe Stöhr

Waluyo Adi Siswanto schrieb:


I just compile 1.6.2 from source in Ubuntu 8.04, and I try to view pdf
help-math, but Error List dialog appear: LateX Error:File'xargs.sty' not
found.


I don't explicitly load this package in Math.lyx, so it seems that another 
package needs this.

What you need is to install this LaTeX-package. Since TeXLive 208 this is easy: open teXLive's 
package manager, select there the LaTeX-package named xargs, and install it. (I don't know how a 
package is installed with TeXLive 2007 on Linux.


regards Uwe


Re: Classic Vs. Alternative Windows Installers

2009-03-17 Thread Uwe Stöhr

Reuven Segev schrieb:

With the 1.6.2 unavailable yet im the classic version: 
 - Does it make sense to wait?


Both installers should work in every case, so I think you can give it a try.
(OK, I'm not objective, because I provide the alternative installer ;-) .)


 - Will the alternative installer remove the 1.6.1 classic or co-exist with 
it?


It should leave LyX 1.6.1 installed, but note that this could lead to intereferences between LyX 
1.6.1 and 1.6.2 in general. So I recommend to uninstall LyX 1.6.1 and install 1.6.2 afterwards.



 - In case I use the alternative installer, will I have to insert all my
preferences, customization, etc. again?


Your preferences should be kept as they are, even when you uninstall LyX. (The uninstaller has a 
checkbox for this feature). To be sure, safe your preferences (look in LyX's preferences to see the 
path where they are stored.


regards Uwe


Re: How to make a single list environment

2009-03-17 Thread Guenter Milde
On 2009-03-17, Steve Litt wrote:

 I want to make a clone of the Itemize environment, only with narrower
 spacing. 
...

 What's the correct way to do this?

a) if you want vertical space for separating paragraphs, use the
   'parskip' package and not the LyX GUI setting (there is a bugreport
   about this on bugzilla).
   
b) use a LaTeX package that provides for this, e.g. 'enumitem'.
   
   Hint: search for the LyX module for enumitem on wiki.lyx.org.

Günter



Re: Why does lyx use it's own keyboard instead of the systems?

2009-03-17 Thread Dov Feldstern

Micha Feigin wrote:

On Tue, 10 Mar 2009 11:44:46 +0200
Ronen Abravanel ron...@gmail.com wrote:


Before you rush into this change - Consider the following usecase:
Switching to math - When I'm in math-mode, I always want my keyboard layout
to be English. While In windows, The current keyboard layout override the
global one (If you put the cursor in an Hebrew context, the language will
switch to Hebrew, If you put your cursor in English context - you'll write
in English).
When I'm writing document, I want the Ctrl+m will be the only thing I need
to do in order to start typing math. Ctrl-m Alt-Shift Is match to
expensive..



good point, but you also have two input senarios in math.
1. Entering parameters (regular typing). AFAIK it should always be in english
because I don't think that latex can handle anything else
2. in text mode inside math mode, where you want to be able to type both
(although at the moment it requires explicitly entering the \R{} macro to get
hebrew in there

Does everyone agree on the first point and are you willing to manually change
in the second case or do you want some other behviour?


So - If LyX will use the native-system-keyboard-layout - It will have to be
able to change it depending the current context (Math\Regular) - And in
every OS.

On Tue, Mar 10, 2009 at 9:59 AM, Abdelrazak Younes you...@lyx.org wrote:


Micha Feigin wrote:


Sorry, sent off list by mistake

On Mon, 9 Mar 2009 22:05:51 +0100
Jean-Marc Lasgouttes lasgout...@lyx.org wrote:

 There are two issues. For running the dictionary you need to know  the

language.
For hebrew and arabic it's another issue, you need to know the  system
language
so that you know directionality. Hebrew is right to left. For  hebrew
characters
it may be easy to decide, for what about spaces and numbers? For  these
we need
to know the system keyboard language and not guess it from the
 character.

Under windows I know it's possible since for example word does it.
 Question is
whether this is possible to know under linux (I guess so since  there
are panel
applets that show the language). Which again comes down to the  question
whether
there is a technical issue why to work this way or not.


So you want to change language when the keyboard layout is changed at
 system level, right?
I never thought of these layouts as indicators of the actual  language.
If Qt gives us
this information, we should be able to do it.

JMarc



For every other program the system language is used for input (alt-shift
in my
case). So for example when writing mail or using oowriter I change the
system
language to change input. Lyx is the only exeption where I __have__ to
keep the
system language for english and bind (f12 in this case) to language
hebrew. It
makes things incosistent and non-intuitive, esspecially for new users.


I agree. For RTL languages, it makes a lot of sense to change the current
language together with the system. Advanced users wishing to change the
language independently should be able to disable this feature though.

Now, you have to find someone willing to implement this feature ;-)

FYI, a year or two ago I advocated that the text direction should be based
uniquely on the encoding, independently of the language settings, like Qt
does. But I failed to convince other developers.

Dov, are you reading this? ;-)

Abdel.



A little late, but yes, I am still lurking on the mailing lists... ;)

I think the main reason (to answer the title question) is that we don't know how 
to get/set the system-wide keyboard language in a cross-platform way. If it's 
possible to do that, then I think it should be fairly simple to implement a 
solution along the following lines:


Ideally, if it *were* possible to detect the system-wide keyboard language 
setting, then LyX should (optionally! for users that *want* this feature) set 
it's internal language to the system-wide setting, plain and simple. The only 
thing to make sure, though, is that in the same manner, whenever LyX chooses to 
change it's internal language, it should also *set* the system-wide keyboard 
setting to that language. I think that that would solve the issue raised by 
Ronen: when entering a math inset, LyX would set the internal, as well as the 
system-wide, language to english (or latex, technically? I forget the exact 
details), which would mean that the math text would be set correctly; and when 
exiting that inset, LyX automatically sets the language back to whatever it was 
before entering the inset. Similarly, when moving the cursor over existing text, 
LyX changes the language to match the underlying text. I'm almost certain that 
LyX already does all of this language setting --- except that not at the 
system-wide level, that's what would have to be added.


Note, however, that even if this is implemented, I think I would *still* choose 
to use LyX's keymaps, for reasons that I've explained elsewhere (last time 
around was at 

Re: Weird problem with bibtex from LyX (but not from Latex)-- SOLVED

2009-03-17 Thread Stefano Franchi
On Monday 16 March 2009 04:59:18 Guenter Milde wrote:
 On 2009-03-15, Stefano Franchi wrote:
  3. The preamble of the master document calls the \bibliography commands
 with 4 .bib files

 As the preamble is free LaTeX source (like ERT), lyx is not aware of
 the \bibliography call there.

 Where are your .bib files?

  launching lyx from console and looking at the output reveals that the
  problem is that bibtex cannot find the bib files:
 
  However, If I export to the whole manuscript to latex (plain) and
  compile from the command line everything works fine, all the bib
  references are found, etcetera.

 LyX uses a temporary directory. This might be the cause. You can try to
 disable the temporary directory (I don't know how exactly but guess
 that giving an empty path for the TempDir in Toolssettings helps).

  2. I tried creating soft links to the actual files in the local
 directory and substituting just file names for absolute paths.  No
 difference.

 I would try to put (or link) the *.bib files into a directory in the
 BIBINPUTS path, so it is found by LaTeX/BibTeX from everywhere.

 .. and substituting just file names for absolute paths.


 Günter

Problem solved. It tuned out to be two small problems, actually, which is why 
I was lost. I am typing what I found out for future reference and general 
posterity:

1. Thanks to Richard's and Gunter's explanations I know now what LyX does 
behind the scene when it compiles a .lyx to .pdf
Result: LyX will not find the bib files if both these conditions are true (Of 
course they both were in my case...):

a-  BibLatex is used for the bib references
b- the bib files are located in the document's directory and referred to by 
relative pathnames

This is because LyX does its behind the scene work by copying all the files it 
needs to a remote directory (/tmp/ on Linux) and doing the latex 
compilation there. If b is true and a is false, LyX strategy will work: the 
bib files declared within LyX will be copied as well, and everything is fine. 
When using BibLatex, however, the files are declared in the preamble, which LyX 
ignores, and will not get copied. BibTex will then use the relative pathnames 
from a remote directory and fail

Exporting to Latex, on the other hand, will work, because the exported .tex 
files are located in the original directory alongside the .bib files.

Moral of the story: never use relative pathnames with BibLatex unless you want 
to export to Latex everytime you want your references to come out right.

2. Second problem: It turns out that the preamble command needed to specify 
.bib files in Biblatex can accept comma-separated multiple files ONLY IF there 
are no spaces separating them. Otherwise BibteX will fail with a rather 
cryptic error message which it took me a while to decode. Of course, the 
comma space sequence is so deeply engrained in my fingers that I hadn't even 
noticed I was typing extra spaces. 
Moral of the story: Never put spaces in the \bibliography command


Cheers,

S.



 



__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237



beamer trouble in 1.6.2

2009-03-17 Thread fuyuki hane
hank you for LyX 1.6.2.
The beamer in LyX 1.6.2 doesn't seem to convert correctly from the LyX
code to the latex code.
But The beamer in LyX 1.6.1 is OK.

I think that geometry part is different between 1.6.1 and 1.6.2.

The exported latex codes show as follows:
%% LyX 1.6.2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[table]{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[paperwidth=128mm,paperheight=96mm]{geometry}
\geometry{verbose}
\usepackage{relsize}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{amssymb}

\makeatletter

%% LyX 1.6.1 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[table]{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\geometry{verbose,paperwidth=128mm,paperheight=96mm}
\usepackage{relsize}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{amssymb}

\makeatletter


document>structure

2009-03-17 Thread Wolfgang Engelmann
somehow I managed to get the document>structure (Gliederung) of my lyx (1.6) 
document on top of my text. It used to be at the left of the document and I 
would like to have it back this way but can't find the way how to do it. 
Wolfgang


Re: document>structure

2009-03-17 Thread Jürgen Spitzmüller
Wolfgang Engelmann wrote:
> somehow I managed to get the document>structure (Gliederung) of my lyx
> (1.6) document on top of my text. It used to be at the left of the document
> and I would like to have it back this way but can't find the way how to do
> it.

You can drag it with the mouse.

Jürgen



Re: document>structure

2009-03-17 Thread Wolfgang Engelmann
Am Tuesday 17 March 2009 09:23:24 schrieb Jürgen Spitzmüller:
> Wolfgang Engelmann wrote:
> > somehow I managed to get the document>structure (Gliederung) of my lyx
> > (1.6) document on top of my text. It used to be at the left of the
> > document and I would like to have it back this way but can't find the way
> > how to do it.
>
> You can drag it with the mouse.
>
> Jürgen

So easy! Should have thought of it.
Thanks, Jürgen


Wolfgang


Re: some beamer questions

2009-03-17 Thread Paul A. Rubin

s nedunuri wrote:
Just started using beamer. I think its great. I was unable to find a beamer 
manual [entry] for lyx but i've been able to figure out most of what i need 
from looking at the examples. Couple of qs:


1. When i create a block, how do i get the block contents to actually appear 
inside the block. So what i currently have is:

Block (ERT[{title}] body): [[ {some heading} ]]


where [[ and ]] indicate a red ERT box. There seems to be some way of 
letting lyx know that the contents belong inside the blue box that appears 
on the output (b/c i see it done in the examples) but i cant figure it out


Nest the content under the Block environment (Edit > Increase List 
Depth).  The content can be a different environment (e.g., enumeration).


2. Suppose you have a program listing or a math array, and you want to 
animate the replacement of certain sections of the code or the introduction 
of certain pieces of code, how might that be done. I see a reference to 
overlays but the examples i looked at didn't contain them 



See sections 9.2 and 9.3 of the Beamer user guide.  You'll need to 
surround the animated material with ERT, using one of the commands 
(\onslide, \only, \visible etc.) described in the manual.  If you need 
something to occupy the space when the material is not visible, you 
might try \alt.  I've attached a small example.


/Paul


animated equation.lyx
Description: application/lyx


Cannot view pdf help-math: (xargs.sty not found)

2009-03-17 Thread Waluyo Adi Siswanto
I just compile 1.6.2 from source in Ubuntu 8.04, and I try to view pdf
help-math, but Error List dialog appear: LateX Error:File'xargs.sty' not
found.

I have the same problem in 1.6.1.

I don't know how to view pdf this help-math. Is it a bug or something
missing in my Texlive (2007).


Regards
was



Classic Vs. Alternative Windows Installers

2009-03-17 Thread Reuven Segev
Hi,

I have been using LyX for about 5 years now and was always mystified by the
existence of the two versions of the installer. 

I have the 1.6.1 "classical" installed at the moment and in the past I used also
the "alternative" one.

With the 1.6.2 unavailable yet im the classic version: 
 - Does it make sense to wait?
 - Will the "alternative" installer remove the 1.6.1 "classic" or co-exist with
it? (I understand I cannot use the updater.)
 - In case I use the alternative installer, will I have to insert all my
preferences, customization, etc. again?

Will appreciate you help on the matter.

AND THANKS A LOT FOR THE GREAT PIECE OF SOFTWARE AND USEFUL WORK ENVIRONMENT.

Reuven 



How to make a single list environment

2009-03-17 Thread Steve Litt
Hi all,

I want to make a clone of the Itemize environment, only with narrower spacing. 
After didlling around with some Itemize LaTeX found in non-book environments, 
I figured I'd just roll my own. I already know how to make a 2 environment 
list, with the outer environment defining the list, and each instance of the 
inner environment defining one item.

That would be just fine in LaTeX, but it's inconvenient in LyX. So I'm trying 
to make something like Itemize, which both creates the list and makes each 
paragraph an item. The following simple LaTeX came dang close to working:

\newcommand*{\starlabel}{*}
% ### Vertically denser than Itemize Outline ###
\newenvironment{outlineL}{
\list{}{
\let\makelabel\starlabel
\setlength\parsep{-2pt}
\setlength\labelsep{0.2in}
}

\item[]
}{
\endlist
}


The preceding is close but no cigar, because it prints the star only on the 
first item of each list or sublist, as shown in the attached graphic. I 
experimented with putting the star in the first arg of the list, nothing 
showed up. I put it in the squarebrackets following item, no joy.

What's the correct way to do this?

Thanks

Steve Litt
Recession Relief Package
http://www.recession-relief.US



test.pdf
Description: Adobe PDF document


Re: Cannot view pdf help-math: (xargs.sty not found)

2009-03-17 Thread Ignacio García
Tue, 17 Mar 2009 08:59:41 -0700
Waluyo Adi Siswanto wrote

> I just compile 1.6.2 from source in Ubuntu 8.04, and I try to view pdf
> help-math, but Error List dialog appear: LateX Error:File'xargs.sty' not
> found.

> I have the same problem in 1.6.1.

> I don't know how to view pdf this help-math. Is it a bug or something
> missing in my Texlive (2007).

 xargs is not included in texlive 2007
You can download and install it from CTAN
http://www.ctan.org/tex-archive/macros/latex/contrib/xargs/

(Or you can install texlive-2008  manually, as it is not available in
Ubuntu 8.04 .deb repos)

Regards
Ignacio


Re: Cannot view pdf help-math: (xargs.sty not found)

2009-03-17 Thread Uwe Stöhr

Waluyo Adi Siswanto schrieb:


I just compile 1.6.2 from source in Ubuntu 8.04, and I try to view pdf
help-math, but Error List dialog appear: LateX Error:File'xargs.sty' not
found.


I don't explicitly load this package in Math.lyx, so it seems that another 
package needs this.

What you need is to install this LaTeX-package. Since TeXLive 208 this is easy: open teXLive's 
package manager, select there the LaTeX-package named "xargs", and install it. (I don't know how a 
package is installed with TeXLive 2007 on Linux.


regards Uwe


Re: Classic Vs. Alternative Windows Installers

2009-03-17 Thread Uwe Stöhr

Reuven Segev schrieb:

With the 1.6.2 unavailable yet im the classic version: 
 - Does it make sense to wait?


Both installers should work in every case, so I think you can give it a try.
(OK, I'm not objective, because I provide the alternative installer ;-) .)


 - Will the "alternative" installer remove the 1.6.1 "classic" or co-exist with 
it?


It should leave LyX 1.6.1 installed, but note that this could lead to intereferences between LyX 
1.6.1 and 1.6.2 in general. So I recommend to uninstall LyX 1.6.1 and install 1.6.2 afterwards.



 - In case I use the alternative installer, will I have to insert all my
preferences, customization, etc. again?


Your preferences should be kept as they are, even when you uninstall LyX. (The uninstaller has a 
checkbox for this feature). To be sure, safe your preferences (look in LyX's preferences to see the 
path where they are stored.


regards Uwe


Re: How to make a single list environment

2009-03-17 Thread Guenter Milde
On 2009-03-17, Steve Litt wrote:

> I want to make a clone of the Itemize environment, only with narrower
> spacing. 
...

> What's the correct way to do this?

a) if you want vertical space for separating paragraphs, use the
   'parskip' package and not the LyX GUI setting (there is a bugreport
   about this on bugzilla).
   
b) use a LaTeX package that provides for this, e.g. 'enumitem'.
   
   Hint: search for the LyX module for enumitem on wiki.lyx.org.

Günter



Re: Why does lyx use it's own keyboard instead of the systems?

2009-03-17 Thread Dov Feldstern

Micha Feigin wrote:

On Tue, 10 Mar 2009 11:44:46 +0200
Ronen Abravanel  wrote:


Before you rush into this change - Consider the following usecase:
Switching to math - When I'm in math-mode, I always want my keyboard layout
to be English. While In windows, The current keyboard layout override the
global one (If you put the cursor in an Hebrew context, the language will
switch to Hebrew, If you put your cursor in English context - you'll write
in English).
When I'm writing document, I want the Ctrl+m will be the only thing I need
to do in order to start typing math. "Ctrl-m Alt-Shift" Is match to
expensive..



good point, but you also have two input senarios in math.
1. Entering parameters (regular typing). AFAIK it should always be in english
because I don't think that latex can handle anything else
2. in text mode inside math mode, where you want to be able to type both
(although at the moment it requires explicitly entering the \R{} macro to get
hebrew in there

Does everyone agree on the first point and are you willing to manually change
in the second case or do you want some other behviour?


So - If LyX will use the native-system-keyboard-layout - It will have to be
able to change it depending the current context (Math\Regular) - And in
every OS.

On Tue, Mar 10, 2009 at 9:59 AM, Abdelrazak Younes  wrote:


Micha Feigin wrote:


Sorry, sent off list by mistake

On Mon, 9 Mar 2009 22:05:51 +0100
Jean-Marc Lasgouttes  wrote:

 There are two issues. For running the dictionary you need to know  the

language.
For hebrew and arabic it's another issue, you need to know the  system
language
so that you know directionality. Hebrew is right to left. For  hebrew
characters
it may be easy to decide, for what about spaces and numbers? For  these
we need
to know the system keyboard language and not guess it from the
 character.

Under windows I know it's possible since for example word does it.
 Question is
whether this is possible to know under linux (I guess so since  there
are panel
applets that show the language). Which again comes down to the  question
whether
there is a technical issue why to work this way or not.


So you want to change language when the keyboard layout is changed at
 system level, right?
I never thought of these layouts as indicators of the actual  language.
If Qt gives us
this information, we should be able to do it.

JMarc



For every other program the system language is used for input (alt-shift
in my
case). So for example when writing mail or using oowriter I change the
system
language to change input. Lyx is the only exeption where I __have__ to
keep the
system language for english and bind (f12 in this case) to language
hebrew. It
makes things incosistent and non-intuitive, esspecially for new users.


I agree. For RTL languages, it makes a lot of sense to change the current
language together with the system. Advanced users wishing to change the
language independently should be able to disable this feature though.

Now, you have to find someone willing to implement this feature ;-)

FYI, a year or two ago I advocated that the text direction should be based
uniquely on the encoding, independently of the language settings, like Qt
does. But I failed to convince other developers.

Dov, are you reading this? ;-)

Abdel.



A little late, but yes, I am still lurking on the mailing lists... ;)

I think the main reason (to answer the title question) is that we don't know how 
to get/set the system-wide keyboard language in a cross-platform way. If it's 
possible to do that, then I think it should be fairly simple to implement a 
solution along the following lines:


Ideally, if it *were* possible to detect the system-wide keyboard language 
setting, then LyX should (optionally! for users that *want* this feature) set 
it's internal language to the system-wide setting, plain and simple. The only 
thing to make sure, though, is that in the same manner, whenever LyX chooses to 
change it's internal language, it should also *set* the system-wide keyboard 
setting to that language. I think that that would solve the issue raised by 
Ronen: when entering a math inset, LyX would set the internal, as well as the 
system-wide, language to english (or latex, technically? I forget the exact 
details), which would mean that the math text would be set correctly; and when 
exiting that inset, LyX automatically sets the language back to whatever it was 
before entering the inset. Similarly, when moving the cursor over existing text, 
LyX changes the language to match the underlying text. I'm almost certain that 
LyX already does all of this language setting --- except that not at the 
system-wide level, that's what would have to be added.


Note, however, that even if this is implemented, I think I would *still* choose 
to use LyX's keymaps, for reasons that I've explained elsewhere (last time 
around was at 

Re: Weird problem with bibtex from LyX (but not from Latex)--> SOLVED

2009-03-17 Thread Stefano Franchi
On Monday 16 March 2009 04:59:18 Guenter Milde wrote:
> On 2009-03-15, Stefano Franchi wrote:
> > 3. The preamble of the master document calls the \bibliography commands
> >with 4 .bib files
>
> As the preamble is "free LaTeX source" (like ERT), lyx is not aware of
> the \bibliography call there.
>
> Where are your .bib files?
>
> > launching lyx from console and looking at the output reveals that the
> > problem is that bibtex cannot find the bib files:
> >
> > However, If I export to the whole manuscript to latex (plain) and
> > compile from the command line everything works fine, all the bib
> > references are found, etcetera.
>
> LyX uses a temporary directory. This might be the cause. You can try to
> disable the temporary directory (I don't know how exactly but guess
> that giving an empty path for the TempDir in Tools>settings helps).
>
> > 2. I tried creating soft links to the actual files in the local
> >directory and substituting just file names for absolute paths.  No
> >difference.
>
> I would try to put (or link) the *.bib files into a directory in the
> BIBINPUTS path, so it is found by LaTeX/BibTeX from everywhere.
>
> .. and substituting just file names for absolute paths.
>
>
> Günter

Problem solved. It tuned out to be two small problems, actually, which is why 
I was lost. I am typing what I found out for future reference and general 
posterity:

1. Thanks to Richard's and Gunter's explanations I know now what LyX does 
behind the scene when it compiles a .lyx to .pdf
Result: LyX will not find the bib files if both these conditions are true (Of 
course they both were in my case...):

a-  BibLatex is used for the bib references
b- the bib files are located in the document's directory and referred to by 
relative pathnames

This is because LyX does its behind the scene work by copying all the files it 
needs to a remote directory (/tmp/ on Linux) and doing the latex 
compilation there. If b is true and a is false, LyX strategy will work: the 
bib files declared within LyX will be copied as well, and everything is fine. 
When using BibLatex, however, the files are declared in the preamble, which LyX 
ignores, and will not get copied. BibTex will then use the relative pathnames 
from a remote directory and fail

Exporting to Latex, on the other hand, will work, because the exported .tex 
files are located in the original directory alongside the .bib files.

Moral of the story: never use relative pathnames with BibLatex unless you want 
to export to Latex everytime you want your references to come out right.

2. Second problem: It turns out that the preamble command needed to specify 
.bib files in Biblatex can accept comma-separated multiple files ONLY IF there 
are no spaces separating them. Otherwise BibteX will fail with a rather 
cryptic error message which it took me a while to decode. Of course, the 
"comma space" sequence is so deeply engrained in my fingers that I hadn't even 
noticed I was typing extra spaces. 
Moral of the story: Never put spaces in the \bibliography command


Cheers,

S.



 



__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas A University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237



beamer trouble in 1.6.2

2009-03-17 Thread fuyuki hane
hank you for LyX 1.6.2.
The beamer in LyX 1.6.2 doesn't seem to convert correctly from the LyX
code to the latex code.
But The beamer in LyX 1.6.1 is OK.

I think that geometry part is different between 1.6.1 and 1.6.2.

The exported latex codes show as follows:
%% LyX 1.6.2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[table]{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[paperwidth=128mm,paperheight=96mm]{geometry}
\geometry{verbose}
\usepackage{relsize}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{amssymb}

\makeatletter

%% LyX 1.6.1 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[table]{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\geometry{verbose,paperwidth=128mm,paperheight=96mm}
\usepackage{relsize}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{amssymb}

\makeatletter