Re: PROBLEMS with REVTEX on: LyX 1.1.6fix2

2001-05-30 Thread Jean-Marc Lasgouttes

> "Peter" == Peter D Drummond <[EMAIL PROTECTED]> writes:

Peter> Thanks - Dekel, Herbert I tried Dekel Tsur's suggestion of
Peter> changing the Lyx preferences. Unfortunately, these are not
Peter> available on the popup menu, but have to be handcoded - I guess
Peter> you would need to re-edit the file every time you changed
Peter> preferences?

No the content should not be lost. It has not been added to the
preference popup because I am reluctant to allow UI changes in fix
series (it is not that Dekel did not try to get this in :)

JMarc



Re: PROBLEMS with REVTEX on: LyX 1.1.6fix2

2001-05-30 Thread Peter D Drummond

Thanks - Dekel, Herbert

I tried Dekel Tsur's suggestion of changing
the Lyx preferences. Unfortunately, these are not available
on the popup menu, but have to be handcoded - I guess
you would need to re-edit the file every time you
changed preferences?

The good news is that it does work. I haven't been able
to figure out why the Latex here gives an error, while
Herbert Voss's does not. The Latex I use is running under
Tru64 (not Linux). I've also re-installed the Revtex Class
file from the latest distribution of Lyx. No change.
I haven't tried changing the Revtex Class file.

Peter Drummond.


Dekel Tsur wrote:
> 
> On Tue, May 29, 2001 at 11:02:39AM +1000, Peter D Drummond wrote:
> > This doesn't help, unfortunately. The `english' option
> > still gets added, and this breaks REVTEX. I guess the
> > same would occur if I changed to `german' - it seems
> > you can't have a `null' option.
> 
> One option is to fix the revtex.cls file.
> Add the following lines to it:
> 
> \DeclareOption{english}{
>  \PackageWarning{revtex}{Ignoring LaTeX option \CurrentOption}
> }
> 
> at the appropriate place (e.g., just before the other \DeclareOption
> commands).
> 
> > Solution would be if LyX could delete the language
> > option when there is no language package chosen. RevTex
> > 4 will solve the problem RSN, but it would be nice to have backward
> > compatibility!!
> 
> Another solution is to add one or two of the following lines to
> ~/.lyx/preferences
> 
> \language_use_babel "false"
> \language_global_options "false"
> 
> (return the preferences->languages->language->package to the default)
> 
> The first line will cause LyX to not use babel (and not put the english
> option) when the language is the default language (english).
> The second line will put the language options as arguments to \usepackage
> instead as arguments to \documentclass.

-- 
Physics Department, University of Queensland, St Lucia 4072, 
Queensland, Australia. Tel:+61-7-3365-3404  Fax:+61-7-3365-1242
[EMAIL PROTECTED]; www.physics.uq.edu.au/people/drummond



Re: PROBLEMS with REVTEX on: LyX 1.1.6fix2

2001-05-29 Thread Dekel Tsur

On Tue, May 29, 2001 at 11:02:39AM +1000, Peter D Drummond wrote:
> This doesn't help, unfortunately. The `english' option
> still gets added, and this breaks REVTEX. I guess the
> same would occur if I changed to `german' - it seems
> you can't have a `null' option.

One option is to fix the revtex.cls file.
Add the following lines to it:

\DeclareOption{english}{
 \PackageWarning{revtex}{Ignoring LaTeX option \CurrentOption}
}

at the appropriate place (e.g., just before the other \DeclareOption
commands).

> Solution would be if LyX could delete the language
> option when there is no language package chosen. RevTex
> 4 will solve the problem RSN, but it would be nice to have backward
> compatibility!!

Another solution is to add one or two of the following lines to
~/.lyx/preferences

\language_use_babel "false"
\language_global_options "false"

(return the preferences->languages->language->package to the default)

The first line will cause LyX to not use babel (and not put the english
option) when the language is the default language (english).
The second line will put the language options as arguments to \usepackage
instead as arguments to \documentclass.



Re: PROBLEMS with REVTEX on: LyX 1.1.6fix2

2001-05-28 Thread Peter D Drummond

> what happens, when you delete in
> edit->preferences->languages->language->package
> the entry usepackage{babel}?
> 
> HErbert


This doesn't help, unfortunately. The `english' option
still gets added, and this breaks REVTEX. I guess the
same would occur if I changed to `german' - it seems
you can't have a `null' option.

The attached files (short!) demonstrate the problem.
Start with a valid REVTEX file (TEstLYX.tex) - no
language options are needed, since PHYS REV is only
published in English :-)

Next, TEstLYX.lyx gives the imported file - I
include no figures here, since ReLyx has problems
importing figures - due to the centering command
bug, which is still around :-(

This won't Latex anymore, in LyX1.1.6fix2. Problem
is the same whether or not babel is included in the
preferences panel. By the way - terrific job, whoever
thought of that neat panel!!

To understand why, export to Latex giving TEstLYXa.tex. Front-matter is
changed, with the unwanted `english'
option included. Problem is, this doesn't work with
the Revtex class-file.

Solution would be if LyX could delete the language
option when there is no language package chosen. RevTex
4 will solve the problem RSN, but it would be nice to have backward
compatibility!!

thanks - Peter Drummond.

PS - Lyx got presented very well at the CCP2000
conference last year - so you might get more physicists.




-- 
Physics Department, University of Queensland, St Lucia 4072, 
Queensland, Australia. Tel:+61-7-3365-3404  Fax:+61-7-3365-1242
[EMAIL PROTECTED]; www.physics.uq.edu.au/people/drummond
Herbert Voss wrote:
 TEstLYX.tex

#This file was created by  Tue May 29 10:34:33 2001
#LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team
\lyxformat 2.15
\textclass revtex
\options preprint,aps

\layout Standard


\latex latex 

\backslash preprint{version: Brisbane, 
\backslash today}
\latex default 

\layout Title

Testing Lyx on REVTEX
\layout Author

P.
\protected_separator 
D.
\protected_separator 
Drummond
\layout Address

Department of Physics, University of Queensland, St Lucia 4067, Queensland,
 Australia 
\layout Abstract

We test Lyx 1.16fix2 on REVTEX!
\layout Section

Introduction
\layout Standard

will it work OK with REVTEX?
\the_end

 TEstLYXa.tex


Re: PROBLEMS with REVTEX on: LyX 1.1.6fix2

2001-05-28 Thread Herbert Voss

 
> The problem is that as soon as I try to dvi the file, it
> complains of a babel error. It seems babel is incompatible
> with REVTEX (??). Is there any way to stop the use of this
> package if you don't need it?
> 
what happens, when you delete in 
edit->preferences->languages->language->package
the entry usepackage{babel}?

HErbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/





[Peter D Drummond ] PROBLEMS with REVTEX on: LyX 1.1.6fix2

2001-05-28 Thread Jean-Marc Lasgouttes


I think people on this list will be in a better situation than me to
answer to Peter's questions.

JMarc

--- Start of forwarded message ---
Date: Thu, 24 May 2001 19:17:12 +1000
From: Peter D Drummond <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: PROBLEMS with REVTEX on: LyX 1.1.6fix2

Hi Guys -

first off - thanks for the great program!! Lyx is really
improving, especially the 1.1.6, which has some terrific
features. Also, the latest release even installs on
Tru64 (which 1.1.6fix1 couldn't).

However, I have a  problem with the latest release -
I can't get it to compile my REVTEX papers! These are the
old REVTEX (PHYS. REV still didn't officially release
the new version).

The problem is that as soon as I try to dvi the file, it
complains of a babel error. It seems babel is incompatible
with REVTEX (??). Is there any way to stop the use of this
package if you don't need it?

Next, I can try to export to latex. This is OK, since I can
then delete the babel manually, and it works fine. But, if
I re-import it - same problem but worse, since the figures
won't re-import correctly.

I mentioned this bug before - it is an incompatibility
between the centering syntax which Lyx uses on export
of figures, and the syntax which ReLyx expects. You can't
export and then import figures.

Finally, if I try to change the document class to REVTEX4,
within Lyx, then it is a real mess, with copious Latex
errors reported in the bibliography. I could go back to latex 
- there must be a better way:)

yours, Peter Drummond.


-- 
Physics Department, University of Queensland, St Lucia 4072, 
Queensland, Australia. Tel:+61-7-3365-3404  Fax:+61-7-3365-1242
[EMAIL PROTECTED]; www.physics.uq.edu.au/people/drummond

--- End of forwarded message ---