Re: AGU layout

2013-07-31 Thread Scott Kostyshak
On Wed, Jul 31, 2013 at 5:16 PM, Gwen Barnes  wrote:

> Ha, the layout file you attached seems to work.  Thanks! I did have to put
> it in my user layout directory.  I looked and there is already one in the
> application's layout directory, but despite several reconfigs I guess it
> wasn't working.  It's tempting to go back and figure out why it didn't work,
> but I think it's probably smartest to just leave it now that it's working.

Yes, that's a good idea.

> BTW, I was mildly confused because the agutex.layout file says "elsarticle
> textclass definition file" but elsarticle is the latex class for Elsevier
> journals, not AGU journals. (I submit to both. *sigh*)

Thanks, this will be fixed for 2.1.

> Thanks again; I had spent a lot of time on this getting nowhere, so I'm
> really glad it's working now.

Glad it's working!

Best,

Scott


Re: AGU layout

2013-07-31 Thread Gwen Barnes
Scott,


> Attached is the layout file for agutex, but this should be included  with
> LyX. If you still get the layout error, you can copy it to your
> user layout directory and then run Tools > Reconfigure. Restart and see if
> you still get the error.
>

Ha, the layout file you attached seems to work.  Thanks! I did have to put
it in my user layout directory.  I looked and there is already one in the
application's layout directory, but despite several reconfigs I guess it
wasn't working.  It's tempting to go back and figure out why it didn't
work, but I think it's probably smartest to just leave it now that it's
working.

> Scott, thanks. I found those files with a bit of looking.
>
> Why after looking? They weren't included in LyX for you? If not, this
> might explain the layout error you have below.
>
> I guess they were in /Applications/LyX.app/Contents/Resources/templates/
whereas I'd been looking in ~/Library/Application
Support/LyX-2.0/templates, which is what my LyX apparently opens by
default.

BTW, I was mildly confused because the agutex.layout file says "elsarticle
textclass definition file" but elsarticle is the latex class for Elsevier
journals, not AGU journals. (I submit to both. *sigh*)

Thanks again; I had spent a lot of time on this getting nowhere, so I'm
really glad it's working now.

-Gwen

Using LyX version 2.0.6 on Mac 10.8.4


Re: AGU layout

2013-07-31 Thread Scott Kostyshak
On Wed, Jul 31, 2013 at 12:25 PM, Gwen Barnes  wrote:
>> Have you tried New > New from Template and either agutex.lyx or
>> agu_article.lyx ? If I remember correctly, I have had trouble exporting
>> those when testing, but I have no familiarity with AGU.
>
>
> Scott, thanks. I found those files with a bit of looking.

Why after looking? They weren't included in LyX for you? If not, this
might explain the layout error you have below.

> agu_article.lyx opens fine in LyX and uses the AGU article (SGML) document
> class.  But that seems to produce an xhtml file that I don't know what to do
> with.  I just want a pdf like normal.

What operating system are you on? Which LyX version? Do you get a
warning when opening that template? I am on Ubuntu 13.04 and had to
install docbook and sgmltools-lite. After that, LyX tries to make a
PDF for me.

However, I don't think AGU requires docbook. Does it? If not, it
probably shouldn't be in the template. You should probably forget
about this one. I think the next one is the one you want.

> agutex.lyx gives an error when trying to open it that there is not an
> appropriate layout file for the AGUTeX class. What I need (I think), and
> can't find, is a layout file for the AGUTeX class. FWIW, I have compiled the
> default AGUTeX template using the AGUTeX class using latex on the command
> line, so everything on the latex end should be ok.  It's just the LyX layout
> file that's missing, I think.  Is there an AGUTeX layout file somewhere that
> I haven't found?
>
> If not, (unfortunately?) as far as I can tell, the AGUTeX class is not based
> on anything else, like latex's article.  I think they must have built it
> from the ground up.  And if I read the LyX documentation right, that means
> the layout file is going to be a bit more tricky.If there is currently
> no layout file, could someone suggest a good one that I could copy to try to
> tweak for AGUTeX to try to get it working?

This is strange. This layout file should be included by LyX. Your
answers above to which LyX version you are using could lead to clues.
Before you try anything can you go to Tools > Reconfigure ? Does that
complete successfully?

Attached is the layout file for agutex, but this should be included
with LyX. If you still get the layout error, you can copy it to your
user layout directory and then run Tools > Reconfigure. Restart and
see if you still get the error.

agutex.lyx compiles to PDF fine for me. Here is the output:
https://www.dropbox.com/s/70cvhn1dh4t9eyv/agutex.pdf

Best,

Scott


agutex.layout
Description: Binary data


Re: AGU layout

2013-07-31 Thread Scott Kostyshak
On Tue, Jul 30, 2013 at 6:47 PM, Gwen Barnes  wrote:
> Hello,
>
> I need help formatting a paper in LyX for submission to an AGU journal.
> AGU's class file has changed since I last tried to do this in LyX.  AGU
> provides latex classes, etc, here:
>
> http://publications.agu.org/author-resource-center/author-guide/latex-formatting-toolkit/

The zip file contains a style file with date Feb 9, 2008 and class
file with date October 1, 2001.
It looks like only the .tex file was updated recently?

Further, these files are different from the files here:
ftp://ftp.agu.org/journals/latex/journals/Manuscript-Preparation/

I wonder why. We should figure out if the FTP files are old files that
should be updated.

Scott


Re: AGU layout

2013-07-31 Thread Gwen Barnes
>
> Have you tried New > New from Template and either agutex.lyx or
> agu_article.lyx ? If I remember correctly, I have had trouble exporting
> those when testing, but I have no familiarity with AGU.
>

Scott, thanks. I found those files with a bit of looking.

agu_article.lyx opens fine in LyX and uses the AGU article (SGML) document
class.  But that seems to produce an xhtml file that I don't know what to
do with.  I just want a pdf like normal.

agutex.lyx gives an error when trying to open it that there is not an
appropriate layout file for the AGUTeX class. What I need (I think), and
can't find, is a layout file for the AGUTeX class. FWIW, I have compiled
the default AGUTeX template using the AGUTeX class using latex on the
command line, so everything on the latex end should be ok.  It's just the
LyX layout file that's missing, I think.  Is there an AGUTeX layout file
somewhere that I haven't found?

If not, (unfortunately?) as far as I can tell, the AGUTeX class is not
based on anything else, like latex's article.  I think they must have built
it from the ground up.  And if I read the LyX documentation right, that
means the layout file is going to be a bit more tricky.If there is
currently no layout file, could someone suggest a good one that I could
copy to try to tweak for AGUTeX to try to get it working?

Thanks.

-Gwen

Using LyX version 2.0.6 on Mac 10.8.4


Re: AGU layout

2013-07-30 Thread Scott Kostyshak
On Tue, Jul 30, 2013 at 6:47 PM, Gwen Barnes  wrote:
> Is there an AGU lyx template file I can use?

Hi Gwen

Have you tried New > New from Template and either agutex.lyx or
agu_article.lyx ? If I remember correctly, I have had trouble
exporting those when testing, but I have no familiarity with AGU.

Best,

Scott