is the theorem (AMS) numbering inside LyX (on the screen) customizable ?

2009-04-27 Thread Pierrick Mellerin
Hello,

 

I have searched the mailing list archives to find any answer to my problem
without any result, so I post this message. 

 

I would like to know if there is a solution to customize the theorem AMS
numbering inside LyX (by default, LyX displays (on the screen): Theorem 1,
Lemma  2, Corolary 3 etc) for having the same numbering than in the LaTeX
output ?

 

By example, something like that: Theorem 1, Lemma 1, Corolary 1, Theorem 2
etc and, with the theorems (by section) enabled: Theorem 1.1, Lemma 1.1,
Corolary 1.1, Theorem 2.1, Lemma 2.1 etc.

 

I have tested many hacks in the layout files without solution.

 

Thanks in advance.

 

P. Mellerin



RE: is the theorem (AMS) numbering inside LyX (on the screen) customizable ?

2009-04-27 Thread Pierrick Mellerin
Thanks for your answer...

Following your instructions, I do this:

[theorems-ams.inc]
Style Corollary
...
LabelCounter  coroll
...
Preamble
  \theoremstyle{plain}
  \newtheorem{cor}{Corollaire}
EndPreamble
End

[theorems-ams.module]
Counter coroll
End

Now, in the LyX display, the counter for Corollary is different from
Theorem but it is not incremented when I add another corollary:

Theorem 1.1
Corollary 1.1
Theorem 2.1
Corollary 1.1
Etc

Thanks in advance...

Pierrick

-Original Message-
From: rgheck [mailto:rgh...@bobjweil.com] 
Sent: lundi 27 avril 2009 14:16
To: Pierrick Mellerin
Cc: lyx-users@lists.lyx.org
Subject: Re: is the theorem (AMS) numbering inside LyX (on the screen)
customizable ?

Pierrick Mellerin wrote:
 I would like to know if there is a solution to customize the theorem AMS
 numbering inside LyX (by default, LyX displays (on the screen): Theorem 1,
 Lemma  2, Corolary 3 etc) for having the same numbering than in the LaTeX
 output?

   
I'm not sure I understand. The LyX numbering does match the output in my 
case. Both are as you described. Is the question how to get both as you 
next put it?

 By example, something like that: Theorem 1, Lemma 1, Corolary 1, Theorem 2
 etc and, with the theorems (by section) enabled: Theorem 1.1, Lemma 1.1,
 Corolary 1.1, Theorem 2.1, Lemma 2.1 etc.
   

To get this sort of thing, you need to copy the existing theorem layout 
material and replace things like:
  \newtheorem{cor}[thm]{Corollary}
with things like:
  \newtheorem{cor}{Corollary}
The LyX counter can then be defined roughly as follows:
Counter corollary
EndCounter
And then change to use this counter in the Corollary section.

rh




is the theorem (AMS) numbering inside LyX (on the screen) customizable ?

2009-04-27 Thread Pierrick Mellerin
Hello,

 

I have searched the mailing list archives to find any answer to my problem
without any result, so I post this message. 

 

I would like to know if there is a solution to customize the theorem AMS
numbering inside LyX (by default, LyX displays (on the screen): Theorem 1,
Lemma  2, Corolary 3 etc) for having the same numbering than in the LaTeX
output ?

 

By example, something like that: Theorem 1, Lemma 1, Corolary 1, Theorem 2
etc and, with the theorems (by section) enabled: Theorem 1.1, Lemma 1.1,
Corolary 1.1, Theorem 2.1, Lemma 2.1 etc.

 

I have tested many hacks in the layout files without solution.

 

Thanks in advance.

 

P. Mellerin



RE: is the theorem (AMS) numbering inside LyX (on the screen) customizable ?

2009-04-27 Thread Pierrick Mellerin
Thanks for your answer...

Following your instructions, I do this:

[theorems-ams.inc]
Style Corollary
...
LabelCounter  coroll
...
Preamble
  \theoremstyle{plain}
  \newtheorem{cor}{Corollaire}
EndPreamble
End

[theorems-ams.module]
Counter coroll
End

Now, in the LyX display, the counter for Corollary is different from
Theorem but it is not incremented when I add another corollary:

Theorem 1.1
Corollary 1.1
Theorem 2.1
Corollary 1.1
Etc

Thanks in advance...

Pierrick

-Original Message-
From: rgheck [mailto:rgh...@bobjweil.com] 
Sent: lundi 27 avril 2009 14:16
To: Pierrick Mellerin
Cc: lyx-users@lists.lyx.org
Subject: Re: is the theorem (AMS) numbering inside LyX (on the screen)
customizable ?

Pierrick Mellerin wrote:
 I would like to know if there is a solution to customize the theorem AMS
 numbering inside LyX (by default, LyX displays (on the screen): Theorem 1,
 Lemma  2, Corolary 3 etc) for having the same numbering than in the LaTeX
 output?

   
I'm not sure I understand. The LyX numbering does match the output in my 
case. Both are as you described. Is the question how to get both as you 
next put it?

 By example, something like that: Theorem 1, Lemma 1, Corolary 1, Theorem 2
 etc and, with the theorems (by section) enabled: Theorem 1.1, Lemma 1.1,
 Corolary 1.1, Theorem 2.1, Lemma 2.1 etc.
   

To get this sort of thing, you need to copy the existing theorem layout 
material and replace things like:
  \newtheorem{cor}[thm]{Corollary}
with things like:
  \newtheorem{cor}{Corollary}
The LyX counter can then be defined roughly as follows:
Counter corollary
EndCounter
And then change to use this counter in the Corollary section.

rh




is the theorem (AMS) numbering inside LyX (on the screen) customizable ?

2009-04-27 Thread Pierrick Mellerin
Hello,

 

I have searched the mailing list archives to find any answer to my "problem"
without any result, so I post this message. 

 

I would like to know if there is a solution to customize the theorem AMS
numbering inside LyX (by default, LyX displays (on the screen): Theorem 1,
Lemma  2, Corolary 3 etc) for having the same numbering than in the LaTeX
output ?

 

By example, something like that: Theorem 1, Lemma 1, Corolary 1, Theorem 2
etc and, with the "theorems (by section)" enabled: Theorem 1.1, Lemma 1.1,
Corolary 1.1, Theorem 2.1, Lemma 2.1 etc.

 

I have tested many hacks in the layout files without solution.

 

Thanks in advance.

 

P. Mellerin



RE: is the theorem (AMS) numbering inside LyX (on the screen) customizable ?

2009-04-27 Thread Pierrick Mellerin
Thanks for your answer...

Following your instructions, I do this:

[theorems-ams.inc]
Style Corollary
...
LabelCounter  coroll
...
Preamble
  \theoremstyle{plain}
  \newtheorem{cor}{Corollaire}
EndPreamble
End

[theorems-ams.module]
Counter coroll
End

Now, in the LyX display, the counter for Corollary is different from
"Theorem" but it is not incremented when I add another corollary:

Theorem 1.1
Corollary 1.1
Theorem 2.1
Corollary 1.1
Etc

Thanks in advance...

Pierrick

-Original Message-
From: rgheck [mailto:rgh...@bobjweil.com] 
Sent: lundi 27 avril 2009 14:16
To: Pierrick Mellerin
Cc: lyx-users@lists.lyx.org
Subject: Re: is the theorem (AMS) numbering inside LyX (on the screen)
customizable ?

Pierrick Mellerin wrote:
> I would like to know if there is a solution to customize the theorem AMS
> numbering inside LyX (by default, LyX displays (on the screen): Theorem 1,
> Lemma  2, Corolary 3 etc) for having the same numbering than in the LaTeX
> output?
>
>   
I'm not sure I understand. The LyX numbering does match the output in my 
case. Both are as you described. Is the question how to get both as you 
next put it?

> By example, something like that: Theorem 1, Lemma 1, Corolary 1, Theorem 2
> etc and, with the "theorems (by section)" enabled: Theorem 1.1, Lemma 1.1,
> Corolary 1.1, Theorem 2.1, Lemma 2.1 etc.
>   

To get this sort of thing, you need to copy the existing theorem layout 
material and replace things like:
  \newtheorem{cor}[thm]{Corollary}
with things like:
  \newtheorem{cor}{Corollary}
The LyX counter can then be defined roughly as follows:
Counter corollary
EndCounter
And then change to use this counter in the Corollary section.

rh




Re: small bug : mathematical writing of superscript is not instantaneous

2004-03-05 Thread Pierrick Mellerin
Paul Smith wrote:

 when I enter something like x^2 in math mode, the mathematical
writing
 of superscript, x², is not done on the screen. I must close and
re-open
 my document to have it.
 
 I am using LyX-1.3.4 with Fedora Core 1.
 
 I am using the same LyX version on Mandrake 9.2 and that does not
occur.
 
 Paul

The problem is that I'm using Fedora Core 1 in english with a french
keyboard, and the /etc/sysconfig/i18n file is then badly configured by
Fedora. With this configuration, when I use LyX, Konqueror, KNode ... ,
I
can't enter special character like ô, ï, etc. The following solution is
OK,
and someone who uses Fedora Core 1 with LANG=en_US and a layout keyboard
different of en_US (de, ...) can apply it (by replacing fr_FR and
fr
by de ..., for example) :

1. my /etc/sysconfig/i18n is like this :

LC_COLLATE=en_US
LC_CTYPE=fr_FR
LC_MONETARY=en_US
LC_NUMERIC=en_US
LC_MESSAGES=en_US
LC_TIME=en_US
LC_ALL=en_US
LANG=en_US
LANGUAGE=en_US
SUPPORTED=en_US.ISO-8859-15:en_US:en:fr_FR.ISO-8859-15:fr_FR:fr
SYSFONT=latarcyrheb-sun16

2. and my etc/X11/XF86Config :

Identifier  Keyboard0
Driver  keyboard
Option  XkbRules xfree86
Option  XkbModel pc105
Option  XkbLayout fr

PS : I have previously posted this message in gname.editors.lyx.general
but with no effect ...



Re: small bug : mathematical writing of superscript is not instantaneous

2004-03-05 Thread Pierrick Mellerin
Paul Smith wrote:

 when I enter something like x^2 in math mode, the mathematical
writing
 of superscript, x², is not done on the screen. I must close and
re-open
 my document to have it.
 
 I am using LyX-1.3.4 with Fedora Core 1.
 
 I am using the same LyX version on Mandrake 9.2 and that does not
occur.
 
 Paul

The problem is that I'm using Fedora Core 1 in english with a french
keyboard, and the /etc/sysconfig/i18n file is then badly configured by
Fedora. With this configuration, when I use LyX, Konqueror, KNode ... ,
I
can't enter special character like ô, ï, etc. The following solution is
OK,
and someone who uses Fedora Core 1 with LANG=en_US and a layout keyboard
different of en_US (de, ...) can apply it (by replacing fr_FR and
fr
by de ..., for example) :

1. my /etc/sysconfig/i18n is like this :

LC_COLLATE=en_US
LC_CTYPE=fr_FR
LC_MONETARY=en_US
LC_NUMERIC=en_US
LC_MESSAGES=en_US
LC_TIME=en_US
LC_ALL=en_US
LANG=en_US
LANGUAGE=en_US
SUPPORTED=en_US.ISO-8859-15:en_US:en:fr_FR.ISO-8859-15:fr_FR:fr
SYSFONT=latarcyrheb-sun16

2. and my etc/X11/XF86Config :

Identifier  Keyboard0
Driver  keyboard
Option  XkbRules xfree86
Option  XkbModel pc105
Option  XkbLayout fr

PS : I have previously posted this message in gname.editors.lyx.general
but with no effect ...



Re: small bug : mathematical writing of superscript is not instantaneous

2004-03-05 Thread Pierrick Mellerin
Paul Smith wrote:

>> when I enter something like x^2 in math mode, the mathematical
writing
>> of superscript, x², is not done on the screen. I must close and
re-open
>> my document to have it.
>> 
>> I am using LyX-1.3.4 with Fedora Core 1.
> 
> I am using the same LyX version on Mandrake 9.2 and that does not
occur.
> 
> Paul

The problem is that I'm using Fedora Core 1 in english with a french
keyboard, and the "/etc/sysconfig/i18n" file is then badly configured by
Fedora. With this configuration, when I use LyX, Konqueror, KNode ... ,
I
can't enter special character like ô, ï, etc. The following solution is
OK,
and someone who uses Fedora Core 1 with LANG=en_US and a layout keyboard
different of en_US ("de", ...) can apply it (by replacing "fr_FR" and
"fr"
by "de" ..., for example) :

1. my "/etc/sysconfig/i18n" is like this :

LC_COLLATE=en_US
LC_CTYPE=fr_FR
LC_MONETARY=en_US
LC_NUMERIC=en_US
LC_MESSAGES=en_US
LC_TIME=en_US
LC_ALL=en_US
LANG=en_US
LANGUAGE=en_US
SUPPORTED=en_US.ISO-8859-15:en_US:en:fr_FR.ISO-8859-15:fr_FR:fr
SYSFONT=latarcyrheb-sun16

2. and my "etc/X11/XF86Config" :

Identifier  "Keyboard0"
Driver  "keyboard"
Option  "XkbRules" "xfree86"
Option  "XkbModel" "pc105"
Option  "XkbLayout" "fr"

PS : I have previously posted this message in gname.editors.lyx.general
but with no effect ...



small bug : mathematical writing of superscript is not instantaneous

2004-02-29 Thread Pierrick Mellerin
Hello,

when I enter something like x^2 in math mode, the mathematical writing
of superscript, x², is not done on the screen. I must close and re-open
my document to have it.

I am using LyX-1.3.4 with Fedora Core 1.

Best regards,

Pierrick Mellerin.



small bug : mathematical writing of superscript is not instantaneous

2004-02-29 Thread Pierrick Mellerin
Hello,

when I enter something like x^2 in math mode, the mathematical writing
of superscript, x², is not done on the screen. I must close and re-open
my document to have it.

I am using LyX-1.3.4 with Fedora Core 1.

Best regards,

Pierrick Mellerin.



small bug : mathematical writing of superscript is not instantaneous

2004-02-29 Thread Pierrick Mellerin
Hello,

when I enter something like x^2 in math mode, the mathematical writing
of superscript, x², is not done on the screen. I must close and re-open
my document to have it.

I am using LyX-1.3.4 with Fedora Core 1.

Best regards,

Pierrick Mellerin.



Re: lyx-1.3.0-1 - screen mode - TOC - problem with the accentuatedcharacters

2003-02-12 Thread Pierrick Mellerin
On Tue, 2003-02-11 at 22:29, Dekel Tsur wrote:
 On Tue, Feb 11, 2003 at 07:29:04PM +0100, Pierrick Mellerin wrote:
  Hello,
  
  Lyx-1.3.0-1 is a wonderful program ...
  
  I have a little problem with the displaying of the table of contents in
  the screen mode. Accentuated characters (like ??,??,??,...) are not
  displayed ... In the place of these characters, there is a square.
  
  My document is set to french and the enconding is set to auto.
 
 Try changing the menu fonts by using KDE control center
 (you should try changing the general font).
 If you don't have KDE, you can use qtconfig.

In fact, I have changed the etc/sysconfig/i18n file and replaced
utf-8 by iso-8859-1, and all works fine now !

What about the problem between LyX-1.3.0-1qt and UTF-8 ?

Pierrick Mellerin.




Re: lyx-1.3.0-1 - screen mode - TOC - problem with the accentuatedcharacters

2003-02-12 Thread Pierrick Mellerin
On Tue, 2003-02-11 at 22:29, Dekel Tsur wrote:
 On Tue, Feb 11, 2003 at 07:29:04PM +0100, Pierrick Mellerin wrote:
  Hello,
  
  Lyx-1.3.0-1 is a wonderful program ...
  
  I have a little problem with the displaying of the table of contents in
  the screen mode. Accentuated characters (like ??,??,??,...) are not
  displayed ... In the place of these characters, there is a square.
  
  My document is set to french and the enconding is set to auto.
 
 Try changing the menu fonts by using KDE control center
 (you should try changing the general font).
 If you don't have KDE, you can use qtconfig.

In fact, I have changed the etc/sysconfig/i18n file and replaced
utf-8 by iso-8859-1, and all works fine now !

What about the problem between LyX-1.3.0-1qt and UTF-8 ?

Pierrick Mellerin.




Re: lyx-1.3.0-1 - screen mode - TOC - problem with the accentuatedcharacters

2003-02-12 Thread Pierrick Mellerin
On Tue, 2003-02-11 at 22:29, Dekel Tsur wrote:
> On Tue, Feb 11, 2003 at 07:29:04PM +0100, Pierrick Mellerin wrote:
> > Hello,
> > 
> > Lyx-1.3.0-1 is a wonderful program ...
> > 
> > I have a little problem with the displaying of the table of contents in
> > the screen mode. Accentuated characters (like ??,??,??,...) are not
> > displayed ... In the place of these characters, there is a square.
> > 
> > My document is set to french and the enconding is set to auto.
> 
> Try changing the menu fonts by using KDE control center
> (you should try changing the general font).
> If you don't have KDE, you can use qtconfig.

In fact, I have changed the "etc/sysconfig/i18n" file and replaced
"utf-8" by "iso-8859-1", and all works fine now !

What about the problem between LyX-1.3.0-1qt and UTF-8 ?

Pierrick Mellerin.




lyx-1.3.0-1 - screen mode - TOC - problem with the accentuatedcharacters

2003-02-11 Thread Pierrick Mellerin
Hello,

Lyx-1.3.0-1 is a wonderful program ...

I have a little problem with the displaying of the table of contents in
the screen mode. Accentuated characters (like é,è,à,...) are not
displayed ... In the place of these characters, there is a square.

My document is set to french and the enconding is set to auto.

Many thanks in advance and best regards !

Pierrick Mellerin
Lyon, France




lyx-1.3.0-1 - screen mode - TOC - problem with the accentuatedcharacters

2003-02-11 Thread Pierrick Mellerin
Hello,

Lyx-1.3.0-1 is a wonderful program ...

I have a little problem with the displaying of the table of contents in
the screen mode. Accentuated characters (like é,è,à,...) are not
displayed ... In the place of these characters, there is a square.

My document is set to french and the enconding is set to auto.

Many thanks in advance and best regards !

Pierrick Mellerin
Lyon, France




lyx-1.3.0-1 - screen mode - TOC - problem with the accentuatedcharacters

2003-02-11 Thread Pierrick Mellerin
Hello,

Lyx-1.3.0-1 is a wonderful program ...

I have a little problem with the displaying of the table of contents in
the screen mode. Accentuated characters (like é,è,à,...) are not
displayed ... In the place of these characters, there is a square.

My document is set to french and the enconding is set to auto.

Many thanks in advance and best regards !

Pierrick Mellerin
Lyon, France




Question about the math panel

2000-11-03 Thread Pierrick Mellerin

Hello!

I use Lyx 1.1.4 and i would like to know if it is envisaged to improve the
possibilities of the math panel ?  In particular :  the possibility
'ABOVE/BELOW' which makes it possible to write a text above another,etc...
In fact, ideally, the display (on the screen) of all that contains AMS-Math,
like 'Scientific Word'.

I think that this improvement would make Lyx much sensational ... ;)

Thanks.

Pierrick Mellerin.




Question about the math panel

2000-11-03 Thread Pierrick Mellerin

Hello!

I use Lyx 1.1.4 and i would like to know if it is envisaged to improve the
possibilities of the math panel ?  In particular :  the possibility
'ABOVE/BELOW' which makes it possible to write a text above another,etc...
In fact, ideally, the display (on the screen) of all that contains AMS-Math,
like 'Scientific Word'.

I think that this improvement would make Lyx much sensational ... ;)

Thanks.

Pierrick Mellerin.




Question about the math panel

2000-11-03 Thread Pierrick Mellerin

Hello!

I use Lyx 1.1.4 and i would like to know if it is envisaged to improve the
possibilities of the math panel ?  In particular :  the possibility
'ABOVE/BELOW' which makes it possible to write a text above another,etc...
In fact, ideally, the display (on the screen) of all that contains AMS-Math,
like 'Scientific Word'.

I think that this improvement would make Lyx much sensational ... ;)

Thanks.

Pierrick Mellerin.