Re: Building LyX layout for Copernicus Journals, class definition and estimate of time span?

2008-12-02 Thread Maarten Smoorenburg
Good email to the Copernicus people! But I have some news as well:

-  reinstalled all lyx stuff I ever had and put your layout and template in
the proper directories, before my first start up; your "save .layout in
.template folder" trick did not work :)
- Now I can create PDF from the template! So, my installation must have been
corrupted!

- But I was really bothered by the babel-thing. So I switched it off
(Tools>Preferences>Language Settings ; unmark babel), while making sure that
the default language English is used. Now I could add the a .bib file and
build my PDF's.

Now there's is one more thing: the journal editors want the authors to use
British English. This implies that you use the English(UK) babel package for
the spell check. So, stating this language as the default language and
switching off the babel package again causes the  infinite loop!

Conclusion: definitely 100% sure that the maintainers of the copernicus
package should make it compatible with the babel package!

Does this work for you as well? Regards,

Maarten


On Tue, Dec 2, 2008 at 12:37 AM, Uwe Stöhr <[EMAIL PROTECTED]> wrote:

> Maarten Smoorenburg schrieb:
>
>  I am sorry, but I have done it as you described in the wiki. From MiKTeX
>> the
>> class is found and I can build my edited version of the template.tex file.
>> All is put in the zip I attached. All citations are typesetted correctly!
>>
>
> Because you don't use babel. The infinite loop is caused by a bug in
> copernicus regarding the babel package. babel is one of the very basic
> packages and every other package must be able to handle it. I'll inform the
> authors of copernicus.
>
>  I see from the log file that the copernicus.cls is found in the directory
>> you indicated in the wiki. So there's is something wrong with the
>> reconfiguring of LyX, as copernicus is not mentioned in the config.lst
>> file
>> of my LyX installation.
>>
>
> Then it seems that you have another copernicus.layout file on your
> computer. To test this out, copy my layout file to the same folder where you
> have stored my copernicus.lyx example file. Then reconfigure LyX again and
> try to process the copernicus.lyx.
> Now it must work as LyX then use the right layout file.
>
> regards Uwe
>


Re: Building LyX layout for Copernicus Journals, class definition and estimate of time span?

2008-12-01 Thread Uwe Stöhr

Maarten Smoorenburg schrieb:


I am sorry, but I have done it as you described in the wiki. From MiKTeX the
class is found and I can build my edited version of the template.tex file.
All is put in the zip I attached. All citations are typesetted correctly!


Because you don't use babel. The infinite loop is caused by a bug in copernicus regarding the babel 
package. babel is one of the very basic packages and every other package must be able to handle it. 
I'll inform the authors of copernicus.



I see from the log file that the copernicus.cls is found in the directory
you indicated in the wiki. So there's is something wrong with the
reconfiguring of LyX, as copernicus is not mentioned in the config.lst file
of my LyX installation.


Then it seems that you have another copernicus.layout file on your computer. To test this out, copy 
my layout file to the same folder where you have stored my copernicus.lyx example file. Then 
reconfigure LyX again and try to process the copernicus.lyx.

Now it must work as LyX then use the right layout file.

regards Uwe


Re: Building LyX layout for Copernicus Journals, class definition and estimate of time span?

2008-12-01 Thread Uwe Stöhr

Maarten Smoorenburg schrieb:

reconfigured a couple of times (all following you 
instructions in the wiki). But the layout still does not work; error 
message when starting up the copernicus.lyx layout:

/ "the copernicus class could not be loaded"/


Then you have not installed the LaTeX-package copernicus. It should work when you exactly follow the 
steps in

http://wiki.lyx.org/Examples/Copernicus

One more comment: I figure you reference to the 'acmsiggraph.zip 
' in 
the wiki is incorrect


I fixed this now. But as it is a Wiki, every fix is welcome, so you are invited to add or correct 
informations in our Wiki.


And one other thing: I have used BiBTeX with a document with the 
copernicus.cls class in TeXniCenter and it worked alright...


Can you please send me the LaTeX and BibTeX file you used for this?
For me this doesn't work, also not with the template.tex file that is bundled in the copernicus 
LaTeX package using plain TeX (not LyX).


regards Uwe


Re: Building LyX layout for Copernicus Journals, class definition and estimate of time span?

2008-12-01 Thread Maarten Smoorenburg
Hi Uwe,

Great work! But unfortunately for me, it does not work. I have copied your
.layout file and template file into my own template and layout directories
and reconfigured a couple of times (all following you instructions in the
wiki). But the layout still does not work; error message when starting up
the copernicus.lyx layout:
* "the copernicus class could not be loaded"*

And still, no sign of any copernicus stuff in my 'configure.log' file. So...
there's something wrong in my LyX version (WindowsXP with MiKTeX 2.7  and
LyX 1.6)?

One more comment: I figure you reference to the
'acmsiggraph.zip'
in the wiki is incorrect, as it referres to "
http://publications.copernicus.org/Copernicus_LaTeX_Package.zip";.

And one other thing: I have used BiBTeX with a document with the
copernicus.cls class in TeXniCenter and it worked alright... so I am
guessing the bibtex error is not in the copernicus.cls, but has to do with
the LyX call to the class... maybe some incompatible packages?

Hope you can help me out on this!

Maarten

On Mon, Dec 1, 2008 at 1:52 AM, Uwe Stöhr <[EMAIL PROTECTED]> wrote:

> Maarten Smoorenburg schrieb:
>
>  I am trying to submit an article for publication by using the
>> copernicus.cls
>> class. This class is used by many journals that are published by the
>> European Geophysical Union (EGU) and I would like to publish in HESS. I
>> jsut
>> wrote the article in a simple article layout and now want to use the
>> copernicus.cls class for publishing
>>
>> Currently, there is no layout file available for the copernicus.cls
>>
>
> I have now built a layout file for copernicus:
>
> Please test it out and report back. If it works, I'll include it to the
> next LyX release.
>
> The latest version of the copernicus.cls file contains a bug regarding
> BibTeX. When a document uses one of the LaTeX commands \cite, \citep, or
> \citet to reference an entry of a BibTeX file, latex.exe is send to an
> infinite loop.
>
> regards Uwe
>


Re: Building LyX layout for Copernicus Journals, class definition and estimate of time span?

2008-11-30 Thread Uwe Stöhr

Maarten Smoorenburg schrieb:


I am trying to submit an article for publication by using the copernicus.cls
class. This class is used by many journals that are published by the
European Geophysical Union (EGU) and I would like to publish in HESS. I jsut
wrote the article in a simple article layout and now want to use the
copernicus.cls class for publishing

Currently, there is no layout file available for the copernicus.cls 


I have now built a layout file for copernicus:

Please test it out and report back. If it works, I'll include it to the next 
LyX release.

The latest version of the copernicus.cls file contains a bug regarding BibTeX. When a document uses 
one of the LaTeX commands \cite, \citep, or \citet to reference an entry of a BibTeX file, latex.exe 
is send to an infinite loop.


regards Uwe


Re: Building LyX layout for Copernicus Journals, class definition and estimate of time span?

2008-11-24 Thread rgheck

Maarten Smoorenburg wrote:
Allright, here's a zip of all my layouts (I modified a few article 
layouts). Some area recognised by LyX as unavailable and give the 
mentioned error message, others (i.e., copernicus and hess layouts) 
give the message 'The document class copernicus (or hess) could not be 
loaded.


I also added the configure.log file and some of the copernicus LaTeX 
class and style files + documentation. My aim is to build one 
copernicus layout, for which the user must specify the journal 
abbreviation in the LyX custon class options field of the document 
settings.


Hope you can see anything more than I in the logfile? Ciao

Hmm. Works for me! Both your copernicus.layout and hess.layout load just 
fine---except that the ClassOptions thing doesn't seem to like commas. 
So you need to do this:

   ClassOptions
  Other "hess,ms"
   End
with the quotes.

Your configure file doesn't contain any check for copernicus, which is 
strange. Can you reconfigure again, and then post both the configure log 
and the file textclass.lst? You can also try deleting your textclass.lst 
and forcing configure to regenerate it.


Richard



Re: Building LyX layout for Copernicus Journals, class definition and estimate of time span?

2008-11-24 Thread Richard Heck

Maarten Smoorenburg wrote:
Yes sure... And now it is in the 'unavailable' part of the document 
class list of LyX... so what you suggest?


Then LyX for some reason isn't finding the LaTeX class file. That's when 
it lists things as unavailable.


What is your layout file named? What is the class file named? Maybe you 
should post the layout. And also the configure.log file that's dumped in 
your user directory when you reconfigure.


rh



Re: Building LyX layout for Copernicus Journals, class definition and estimate of time span?

2008-11-24 Thread Maarten Smoorenburg
Yes sure... And now it is in the 'unavailable' part of the document class
list of LyX... so what you suggest?


On Mon, Nov 24, 2008 at 5:18 PM, Richard Heck <[EMAIL PROTECTED]> wrote:

> Maarten Smoorenburg wrote:
>
>> Now I've added your suggestion; ClassOptions
>> Other hess,ms
>>  End
>>
>> But, still it doesnot work, I get the error message when trying to define
>> in Document Settings:
>> /"The layout file... is not usable. This is probably because a LaTeX class
>> or style file required by it is not available./"
>>
>>  Did you Tools>Reconfigure?
>
> Richard
>
>


Re: Building LyX layout for Copernicus Journals, class definition and estimate of time span?

2008-11-24 Thread Maarten Smoorenburg
Now I've added your suggestion;
ClassOptions
 Other hess,ms
  End

But, still it doesnot work, I get the error message when trying to define in
Document Settings:
*"The layout file... is not usable. This is probably because a LaTeX class
or style file required by it is not available.*"

It does recognize the class options though.

In TeXniCenter, I can compile some document with the specified
copernicus.cls settings, so I think I do not miss out on LaTeX files in my
MiKTeX 2.7.

I see two problems myself:
- some default packages of LyX amsmath.sty cannot work with the
copernicus.cls document class
- some required environments (running author, conclusions, introduction
etc.) are not standard in LyX

I see some other layouts require ".inc" files. Do I need to write one of
these too? And how to handle these two copernicus.cls specific problems;
anybody knows of other journals / layouts with these features as examples?

Cheers,

Maarten


On Wed, Nov 19, 2008 at 5:15 PM, Richard Heck <[EMAIL PROTECTED]> wrote:

> Maarten Smoorenburg wrote:
>
>> Thank you Richard for the quick reply. But I must say that one thing is
>> still not clear to me:
>>
>> I normal LaTeX, I have to state the document class as follows:
>>
>> \documentclass[journal abbreviation, ms]{copernicus},
>>
>> where copernicus refers to the document class to be used (copernicus.cls)
>> and the other two are options for respectively the journal title (in my case
>> "hess") and the column style ("ms" means that the article is compiled in
>> one-column style, which is common for submission of papers).
>>
>> Now I tried various things to put this as a layout file, for example:
>>
>> \DeclareLaTeXClass[copernicus]{article(hess)}
>> or:
>> \DeclareLaTeXClass[[hess,ms]{copernicus}]{article (HESS)}
>>
>> But this doesnot work: I cannot use it as a layout from LyX at all! Now, I
>> wonder: How would you suggest to put the options and the document class in
>> the \DeclareLaTeXClass line? Or do you have examples from other classes?
>>
>>  Can't do it those ways. Try adding this:
>   ClassOptions
>  Other hess,ms
>   End
> I think that will work. If not, just enter the options manually for now in
> Document>Settings, and we can figure it out later.
>
> rh
>
>


Re: Building LyX layout for Copernicus Journals, class definition and estimate of time span?

2008-11-24 Thread Richard Heck

Maarten Smoorenburg wrote:
Now I've added your suggestion; 
ClassOptions

 Other hess,ms
  End

But, still it doesnot work, I get the error message when trying to 
define in Document Settings:
/"The layout file... is not usable. This is probably because a LaTeX 
class or style file required by it is not available./"



Did you Tools>Reconfigure?

Richard



Re: Building LyX layout for Copernicus Journals, class definition and estimate of time span?

2008-11-19 Thread Richard Heck

Maarten Smoorenburg wrote:
Thank you Richard for the quick reply. But I must say that one thing 
is still not clear to me:


I normal LaTeX, I have to state the document class as follows:

\documentclass[journal abbreviation, ms]{copernicus},

where copernicus refers to the document class to be used 
(copernicus.cls) and the other two are options for respectively the 
journal title (in my case "hess") and the column style ("ms" means 
that the article is compiled in one-column style, which is common for 
submission of papers).


Now I tried various things to put this as a layout file, for example:

\DeclareLaTeXClass[copernicus]{article(hess)}
or:
\DeclareLaTeXClass[[hess,ms]{copernicus}]{article (HESS)}

But this doesnot work: I cannot use it as a layout from LyX at all! 
Now, I wonder: How would you suggest to put the options and the 
document class in the \DeclareLaTeXClass line? Or do you have examples 
from other classes?



Can't do it those ways. Try adding this:
   ClassOptions
  Other hess,ms
   End
I think that will work. If not, just enter the options manually for now 
in Document>Settings, and we can figure it out later.


rh



Re: Building LyX layout for Copernicus Journals, class definition and estimate of time span?

2008-11-19 Thread Maarten Smoorenburg
Thank you Richard for the quick reply. But I must say that one thing is
still not clear to me:

I normal LaTeX, I have to state the document class as follows:

\documentclass[journal abbreviation, ms]{copernicus},

where copernicus refers to the document class to be used (copernicus.cls)
and the other two are options for respectively the journal title (in my case
"hess") and the column style ("ms" means that the article is compiled in
one-column style, which is common for submission of papers).

Now I tried various things to put this as a layout file, for example:

\DeclareLaTeXClass[copernicus]{article(hess)}
or:
\DeclareLaTeXClass[[hess,ms]{copernicus}]{article (HESS)}

But this doesnot work: I cannot use it as a layout from LyX at all! Now, I
wonder: How would you suggest to put the options and the document class in
the \DeclareLaTeXClass line? Or do you have examples from other classes?

Thanks so much!

MS



On Wed, Nov 19, 2008 at 4:52 PM, Richard Heck <[EMAIL PROTECTED]> wrote:

> Maarten Smoorenburg wrote:
>
>> I am trying to submit an article for publication by using the
>> copernicus.cls
>> class. This class is used by many journals that are published by the
>> European Geophysical Union (EGU) and I would like to publish in HESS. I
>> jsut
>> wrote the article in a simple article layout and now want to use the
>> copernicus.cls class for publishing
>>
>> Currently, there is no layout file available for the copernicus.cls and
>> rather than copy-pasting all my LyX generated LaTeX code paragraph by
>> paragraphy to a 'normal' tex editor (e.g., TeXnicCenter),
>>
>>
> If you want to go this way, just do File>Export>LaTeX. This will create
> yourfile.tex in the directory where the LyX file lives. Then you can open it
> and do as you please.
>
>  I would like to
>> build a LyX layout file. I've read some posts about building layouts, but
>> I'm already stuck at the first definition of the class: this is because
>> copernicus.cls is an article style class, which has to be called like
>> this:
>>
>> \documentclass[journal abbreviation]{copernicus}
>>
>> Now I have 2 questions:
>> - how do I set this document class in a layout file?
>>
>>
>>
> By default, the document class is the same as the layout name. So you just
> call it copernicus.layout. You can also do:
>   \DeclareLaTeXClass[copernicus]{Copernicus}
> and call it whatever you like.
>
>  - how much time would it cost me, all in all to build such a thing, all
>> the
>> way (without any layout programming experience?).
>>
>>
>>
> As the other responder said, you can probably get a working layout very
> simply. This is because article.cls and copernicus.cls will share a lot of
> their environments. Getting new things that are in copernicus and not in
> article to work can be done a bit at a time. Really the best thing is to
> look at the existing layouts and then just copy one and play with it, so you
> can see what the various commands do.
>
> rh
>
>


Re: Building LyX layout for Copernicus Journals, class definition and estimate of time span?

2008-11-19 Thread Richard Heck

Maarten Smoorenburg wrote:

I am trying to submit an article for publication by using the copernicus.cls
class. This class is used by many journals that are published by the
European Geophysical Union (EGU) and I would like to publish in HESS. I jsut
wrote the article in a simple article layout and now want to use the
copernicus.cls class for publishing

Currently, there is no layout file available for the copernicus.cls and
rather than copy-pasting all my LyX generated LaTeX code paragraph by
paragraphy to a 'normal' tex editor (e.g., TeXnicCenter), 

  
If you want to go this way, just do File>Export>LaTeX. This will create 
yourfile.tex in the directory where the LyX file lives. Then you can 
open it and do as you please.



I would like to
build a LyX layout file. I've read some posts about building layouts, but
I'm already stuck at the first definition of the class: this is because
copernicus.cls is an article style class, which has to be called like this:

\documentclass[journal abbreviation]{copernicus}

Now I have 2 questions:
- how do I set this document class in a layout file?

  
By default, the document class is the same as the layout name. So you 
just call it copernicus.layout. You can also do:

   \DeclareLaTeXClass[copernicus]{Copernicus}
and call it whatever you like.


- how much time would it cost me, all in all to build such a thing, all the
way (without any layout programming experience?).

  
As the other responder said, you can probably get a working layout very 
simply. This is because article.cls and copernicus.cls will share a lot 
of their environments. Getting new things that are in copernicus and not 
in article to work can be done a bit at a time. Really the best thing is 
to look at the existing layouts and then just copy one and play with it, 
so you can see what the various commands do.


rh



Re: Building LyX layout for Copernicus Journals, class definition and estimate of time span?

2008-11-19 Thread Andrés Becerra Sandoval
On Wed, Nov 19, 2008 at 6:01 AM, Maarten Smoorenburg
<[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I am trying to submit an article for publication by using the copernicus.cls
> class. This class is used by many journals that are published by the
> European Geophysical Union (EGU) and I would like to publish in HESS. I jsut
> wrote the article in a simple article layout and now want to use the
> copernicus.cls class for publishing
>
> Currently, there is no layout file available for the copernicus.cls and
> rather than copy-pasting all my LyX generated LaTeX code paragraph by
> paragraphy to a 'normal' tex editor (e.g., TeXnicCenter), I would like to
> build a LyX layout file. I've read some posts about building layouts, but
> I'm already stuck at the first definition of the class: this is because
> copernicus.cls is an article style class, which has to be called like this:
>
> \documentclass[journal abbreviation]{copernicus}
>
> Now I have 2 questions:
> - how do I set this document class in a layout file?
> - how much time would it cost me, all in all to build such a thing, all the
> way (without any layout programming experience?).
>
> Thanks for your input! Cheers
>
> Maarten S.
> Windows XP, LyX 1.6
>

The quick and dirty answer (assuming you are in Unix/Linux):

cp /usr/share/lyx/layouts/article.layout .lyx/layouts/
cd .lyx/layouts/
mv article.layout copernicus.layout
edit copernicus.layout with any text editor
change the second line :
# \DeclareLaTeXClass{article}
to
# \DeclareLaTeXClass{copernicus}
run Tools -> Reconfigure in Lyx menu
restart lyx
create a new document with the class copernicus

All this class environments and commands not existent in article can
be introduced through ERT in LyX.

-- 
  Andrés


Building LyX layout for Copernicus Journals, class definition and estimate of time span?

2008-11-19 Thread Maarten Smoorenburg
Hi there,

I am trying to submit an article for publication by using the copernicus.cls
class. This class is used by many journals that are published by the
European Geophysical Union (EGU) and I would like to publish in HESS. I jsut
wrote the article in a simple article layout and now want to use the
copernicus.cls class for publishing

Currently, there is no layout file available for the copernicus.cls and
rather than copy-pasting all my LyX generated LaTeX code paragraph by
paragraphy to a 'normal' tex editor (e.g., TeXnicCenter), I would like to
build a LyX layout file. I've read some posts about building layouts, but
I'm already stuck at the first definition of the class: this is because
copernicus.cls is an article style class, which has to be called like this:

\documentclass[journal abbreviation]{copernicus}

Now I have 2 questions:
- how do I set this document class in a layout file?
- how much time would it cost me, all in all to build such a thing, all the
way (without any layout programming experience?).

Thanks for your input! Cheers

Maarten S.
Windows XP, LyX 1.6