Re: lyx 2rc1 prefs2prefs

2011-03-10 Thread Evan Mason

> 
> No need to change it, your use case is reasonable.
> 
> I suspect that if you remove the quotes (") around false the script will 
> work. 
> Or at least it will work past that point, more correctly. 
> 
> > Thanks, Evan
> 

Indeed removing the quotes seems to have worked.

Thanks a lot, Evan




Re: lyx 2rc1 prefs2prefs

2011-03-10 Thread Evan Mason
José Matos  lyx.org> writes:

> 
> On Thursday 10 March 2011 15:34:26 José Matos wrote:
> > /home/emason/.lyx/preferences
> 
> OK, now that I read the code I see that test is there. One question, is there 
> a line in your preference file that starts with \language_use_babel? What is 
> its content?
> 
> Regards,
> 

The line is:

\language_use_babel "false"

I had switched off babel in my previous lyx installation (1.6.8) in order to use
the agutext document class. I guess I can try changing it to true in
'preference' and see what happens.

Thanks, Evan




Re: lyx 2rc1 prefs2prefs

2011-03-10 Thread Evan Mason
Jean-Marc Lasgouttes  lyx.org> writes:

> 
> Le 10/03/2011 15:24, Evan Mason a écrit :
> >File "/opt/share/lyx/scripts/prefs2prefs_prefs.py", line 54, in
language_use_babel
> >  val = m.group(1)
> > AttributeError: 'NoneType' object has no attribute 'group'
> 
> What is your python version?
> 
> JMarc


[emason@acacia float_CUS]$ python --version
Python 2.6.4


Evan



lyx 2rc1 prefs2prefs

2011-03-10 Thread Evan Mason
Hi, I want to report a problem with 2rc1.  I have made a trouble-free
installation of the source tarball on Mandriva linux 2010.0.

[emason@acacia .lyx]$ uname -a
Linux acacia.cmima.csic.es 2.6.31.14-desktop-1mnb #1 SMP Wed Nov 24 10:42:07 EST
2010 x86_64 Intel(R) Core(TM) i7 CPU 920  @ 2.67GHz GNU/Linux


But when I try to start lyx I get the following:

[emason@acacia .lyx]$ Traceback (most recent call last):
  File "/usr/local/share/lyx/scripts/prefs2prefs.py", line 192, in 
main(sys.argv)
  File "/usr/local/share/lyx/scripts/prefs2prefs.py", line 168, in main
(update, newline) = c(lines[i])
  File "/opt/share/lyx/scripts/prefs2prefs_prefs.py", line 54, in 
language_use_babel
val = m.group(1)
AttributeError: 'NoneType' object has no attribute 'group'
filetools.cpp(991): Could not run file conversion script prefs2prefs.py.
LyXRC.cpp(395): Unable to convert /home/emason/.lyx/preferences to format 1
Warning: Could not read configuration file

Error while reading the configuration file
preferences.
Please check your installation.


I had a previous lyx (1.6.8) installation, which I removed using make clean.

Grateful for any suggestions,

Evan





Re: agutex layout?

2010-09-15 Thread Evan Mason
Ok, I understand better how this works now and have edited the preamble to give
me line numbers and the inclusion of the figures, not just the figure floats,
using draft mode:

% OPTIONAL: To Create numbered lines uncomment these 2 lines:
 \usepackage{lineno}
 \linenumbers*[1]
% Include figures in draft mode
\setkeys{Gin}{draft=false}

Thanks for the replies,

Evan



Re: agutex layout?

2010-09-09 Thread Evan Mason
> But thats the idea of the draft mode - getting a quick preview of the 
> document without images.
> 
Hi Uwe, I'm still not sure about no figures in draft mode. At
http://www.agu.org/pubs/authors/manuscript_tools/journals/latex/ it says when
making the initial submission you should use draft mode with figures.  Also in
agutmpl.tex there is the option in draft mode to include figures or not.  I've
tried to activate that but I guess agutmpl.tex is not called when using
agutex.layout?

It would also be useful to have the line numbering option that is available in
agutmpl.tex.

Many thanks, Evan




Re: agutex layout?

2010-09-08 Thread Evan Mason
> tetex is no longer under development since 6years so better use TeXLive 
> (after you submitted your paper.).
Ok, I switched over to texlive.

> This is a bug in the agutex.cls file. Can you please report this to the 
> agutex developers because the agutex documentation states that it should 
> work:
>
http://www.agu.org/pubs/authors/manuscript_tools/journals/latex/spec_chars.shtml#accents
I sent a note to author.h...@agu.org.

> > 3. I'm also struggling with the 'Latex error, floats lost' warnings.  I have
> > about 20 figures which previously were embedded in the text, 
> But  I don't get float errors. I guess this comes from your outdated 
> LaTeX system.
The change to texlive and has sorted out the floats lost issue.  I still have to
place a few clear pages between every 4th or 5th figure.

I appreciate all your help with this.

Thanks, Evan





Re: agutex layout?

2010-09-03 Thread Evan Mason

> The location is incorrect. Put the agu-ps.sty and agutex.cls to the folder
> tex/latex/agutex
> Finally execute the command "texhash".

Thanks, that works fine.

> The TeX system on Linux should be TeXLive and TeXLive comes with a 
> graphical interface to install LaTeX-packages. So after putting the cls- 
> and sty-files to tex/latex/agutex you should be able to use the TeXLive 
> package installer GUI to refresh the filename database of TeXLive.

I checked and I seem to have tetex, though texlive is available.  I am using
Mandriva 2010.0.


I have a 25-page article prepared for JGR, I wrote it using article class.  I
have run into a few minor problems with the conversion to agutex.

1. Some of the authors have accents in their names, I had written them as {\'a}
etc, but these now appear as blank spaces.

2. 'galley' mode works fine, but in 'draft' mode my figures don't appear;the
float appears with the the path and figure name printed, but no figure.

3. I'm also struggling with the 'Latex error, floats lost' warnings.  I have
about 20 figures which previously were embedded in the text, but agutex.layout
wants me to have all the figures at the end.  I've read that the way to avoid
the 'floats lost' warning is to put a Clear page every few figures, but do far
this is not working.  I have tried New page between every figure and this still
doesn't work.

Apart from these issues the layout file seems to be good.

Thanks, Evan







Re: agutex layout?

2010-09-02 Thread Evan Mason
Uwe Stöhr  web.de> writes:

> 
> Am 31.08.2010 17:33, schrieb Evan Mason:
> 
> >> It does replace the older ones in that it seems to be the only one they are
> >> offering now.  It's supposed to work for all the different AGU journals.
> >> http://www.agu.org/pubs/helpdesk/
> >
> > Hi, did a new layout file eventually get written for agutex?
> 
> I wrote a layout file for agutex. It requires that you have the AguTeX files:
> ftp://ftp.agu.org/journals/latex/journals/Manuscript-Preparation/
> installed to your LaTeX system.
> 
> The layout file is attached together with a LyX example file. Please test it
our and report back. If 
> it works for you, we can provide it together with the next LyX version.



Thanks for that.  I was successful using your example (agutex.lyx) but less so
with my own lyx file.  Using your example I have
Documents>Settings>Document_class set to agutex, and Class_options>Custom set to
jgrga (if I remove or change jgrga it breaks.)

I have no prior experience with cls and sty files, but have gained some
information through google and Lyx/Help/Customization.

I created the dir /usr/share/texmf/tex/latex/agutex and placed agu-ps.sty and
agutmpl.tex there, then the command mktexlsr.  I placed agutex.cls and
agutex.layout in ~/.lyx/layouts/ and made soft links to them from my working 
dir.


I then followed the Notes and format in agutex.lyx, adjusting my lyx document
and preamble accordingly.

When I try to compile I simply get:

[ema...@acacia NEA_seas_cycle]$ Warning: Output is empty

An empty output file was generated.


I'd be grateful for any pointers on where I might be going wrong?

Thanks, Evan





Re: agutex layout?

2010-08-31 Thread Evan Mason
> It does replace the older ones in that it seems to be the only one they are
> offering now.  It's supposed to work for all the different AGU journals.
> http://www.agu.org/pubs/helpdesk/


Hi, did a new layout file eventually get written for agutex?

Thanks, Evan

 






Re: problem with two languages in a thesis

2009-10-15 Thread Evan Mason
On Thu, Oct 15, 2009 at 6:24 PM, Evan Mason  wrote:

> On Thu, Oct 15, 2009 at 2:59 PM, rgheck  wrote:
>
>> On 10/15/2009 09:32 AM, Les Denham wrote:
>>
>>> On Thursday 15 October 2009 06:40:20 rgheck wrote:
>>>
>>>
>>>> On 10/14/2009 07:05 PM, Evan Mason wrote:
>>>>
>>>>
>>>>> Hi, I have 8 child documents of an English thesis.  Child/chapter 7 is
>>>>> in
>>>>> Spanish.  The 8th child is the appendix.  The problem is that in the
>>>>> appendix lyx continues to use Spanish (Cuadro rather than Table and so
>>>>> on).
>>>>>
>>>>> I started out setting the language in child 7 to Spanish with
>>>>> Documents>
>>>>> Settings.  I have now changed it English, highlighted the entire
>>>>> chapter
>>>>> and set Spanish using Edit>   Text style.  I then highlighted the
>>>>> entire
>>>>> appendix and set it to English in the same way.
>>>>>
>>>>> But this has not worked.  Can anyone tell where I am going wrong?
>>>>>
>>>>>
>>>> Can you produce a really simple set of documents that has this problem?
>>>>
>>>> rh
>>>>
>>>>
>>> Attached is a really simple set of documents, and it seems to work
>>> exactly as
>>> Evan initially assumed.  The parent document is set to English, the first
>>> child
>>> document is set to Spanish in the Document Settings, and the second child
>>> document is set to English in the Document Settings. In the pdflatex
>>> output,
>>> the table in the first child is labeled "Cuadro" not "Table", and the
>>> figure in
>>> the second is "Figure" not "Figura".
>>>
>>> LyX 1.5.7
>>>
>>>
>>>
>> Same here under 1.6.4. So there must be something odd about your
>> documents, Evan. Check and make sure that the settings are all correct.
>>
>> rh
>>
>>
>> Thanks for your replies.  Les, I tried your example and it works for me.
> However, I inserted a nomenclature entry and I find that Nomenclature comes
> out in Spanish (Nomenclatura).  I want to place the Nomenclature at the very
> end after the appendix and before the bibliography.  Does this happen for
> you?
>
> This is were I am now with my document.  The appendix is all in English as
> it should be, it's just the nomenclature.
>
> Evan
>

I've also discovered that after playing around (cutting and pasting
nomenclature entries) with the simple set of documents for 10 mins that I am
back to the original problem where Figure is Figura in the appendix.

Yet grep for spanish gives:

[ema...@msasa toto]$ grep spanish *.lyx
test.lyx:\language spanish
[ema...@msasa toto]$

also

[ema...@msasa toto]$ grep english *.lyx
langtest.lyx:\language english
langtest.lyx:\quotes_language english
test1.lyx:\language english
test1.lyx:\quotes_language english
test.lyx:\quotes_language english
[ema...@msasa toto]$

I'm using 1.6.3.


Re: problem with two languages in a thesis

2009-10-15 Thread Evan Mason
On Thu, Oct 15, 2009 at 2:59 PM, rgheck  wrote:

> On 10/15/2009 09:32 AM, Les Denham wrote:
>
>> On Thursday 15 October 2009 06:40:20 rgheck wrote:
>>
>>
>>> On 10/14/2009 07:05 PM, Evan Mason wrote:
>>>
>>>
>>>> Hi, I have 8 child documents of an English thesis.  Child/chapter 7 is
>>>> in
>>>> Spanish.  The 8th child is the appendix.  The problem is that in the
>>>> appendix lyx continues to use Spanish (Cuadro rather than Table and so
>>>> on).
>>>>
>>>> I started out setting the language in child 7 to Spanish with Documents>
>>>> Settings.  I have now changed it English, highlighted the entire chapter
>>>> and set Spanish using Edit>   Text style.  I then highlighted the entire
>>>> appendix and set it to English in the same way.
>>>>
>>>> But this has not worked.  Can anyone tell where I am going wrong?
>>>>
>>>>
>>> Can you produce a really simple set of documents that has this problem?
>>>
>>> rh
>>>
>>>
>> Attached is a really simple set of documents, and it seems to work exactly
>> as
>> Evan initially assumed.  The parent document is set to English, the first
>> child
>> document is set to Spanish in the Document Settings, and the second child
>> document is set to English in the Document Settings. In the pdflatex
>> output,
>> the table in the first child is labeled "Cuadro" not "Table", and the
>> figure in
>> the second is "Figure" not "Figura".
>>
>> LyX 1.5.7
>>
>>
>>
> Same here under 1.6.4. So there must be something odd about your documents,
> Evan. Check and make sure that the settings are all correct.
>
> rh
>
>
> Thanks for your replies.  Les, I tried your example and it works for me.
However, I inserted a nomenclature entry and I find that Nomenclature comes
out in Spanish (Nomenclatura).  I want to place the Nomenclature at the very
end after the appendix and before the bibliography.  Does this happen for
you?

This is were I am now with my document.  The appendix is all in English as
it should be, it's just the nomenclature.

Evan


problem with two languages in a thesis

2009-10-14 Thread Evan Mason
Hi, I have 8 child documents of an English thesis.  Child/chapter 7 is in
Spanish.  The 8th child is the appendix.  The problem is that in the
appendix lyx continues to use Spanish (Cuadro rather than Table and so on).

I started out setting the language in child 7 to Spanish with Documents >
Settings.  I have now changed it English, highlighted the entire chapter and
set Spanish using Edit > Text style.  I then highlighted the entire appendix
and set it to English in the same way.

But this has not worked.  Can anyone tell where I am going wrong?

Thanks, Evan


Re: lyx crashes - std::bad_alloc

2009-09-14 Thread Evan Mason
On Fri, Sep 11, 2009 at 4:43 PM, Pavel Sanda  wrote:

> Richard Heck wrote:
> > On 09/11/2009 10:31 AM, Manveru wrote:
> >> 2009/9/11 Evan Mason
> >>
> >>> I have 4 Gb.  I've not noticed lyx using a lot of memory, except when
> it
> >>> crashes.
> >>>
> >>>
> >> Does your PNG images contains a lot of white background and only some
> >> lines?
> >> I would be better to give us maximum resolution in pixels of these
> images
> >> and the number of colours used to store that files. PNG files can be
> >> compressed by lossless algorithm, so files could be small for large
> areas
> >> of
> >> single colour, but large uncompressed for displaying. The other
> >> possibility
> >> is that one of your images has failed internal structure and QT (as far
> as
> >> I
> >> remeber, bitmaps are handled by QT routines in LyX) become stupid trying
> >> to
> >> display such image.
> >>
> >>
> > That is very much the kind of problem we'd seen before. (Pavel was the
> > first to notice it, I think.) The caching mechanism is such that it more
> or
> > less stores bitmaps of all those images, and the bitmaps can indeed be
> real
> > big, even if the file size is quite small.
> >
> > So it seems pretty likely that 1.6.4 suffers from some version of this
> bug.
>
> it didn't get fixed and the machinery is such that there is no easy fix.
> even if you use scaled version of the picture, lyx stores the original one.
> only disabling graphics preview or putting such material into childs can
> help.
> pavel
>


I just wanted to let you all know that over the weekend I decided to try
going back to 1.6.3.  I am finding it to be stable, no crashes at all,
whereas with 1.6.4 it was crashing every 1/2 hour or so - even with
Display_Graphics unchecked.

Evan


Re: lyx crashes - std::bad_alloc

2009-09-11 Thread Evan Mason
On Fri, Sep 11, 2009 at 2:54 PM, rgheck  wrote:

> On 09/11/2009 09:33 AM, Manveru wrote:
>
>> 2009/9/11 Evan Mason
>>
>>
>>
>>> Hi,
>>>
>>> I am running lyx 1.6.4 with Mandriva 2008.  Over the last few days Lyx
>>> keeps
>>> freezing, and after a minute or two comes up with the message 'Lyx has
>>> caught an exception... Exception: std::bad_alloc'.  It seems to happen
>>> just
>>> with one particular document I am working on, but I am not totally sure.
>>>
>>> I'd be grateful for any help with a solution to this.
>>>
>>>
>>>
>> You are running out of memory for the application. Is it possible that
>> your
>> Mandriva has any default limits set for the applications? If you are not
>> sure, post us the result of the ulimit command executed on console. (Guys,
>> correct me if I am wrong with ulimit command).
>>
>>
>>
> It's possible, too, though, that LyX is for some reason going nuts on the
> memory allocation. There was an issue about this a while ago involving the
> caching of large images. I can't remember if we resolved that bug or not.
>
> Evan, does this document have lots of large images? It would also be nice
> to know how much memory you have on this machine. You might also run top and
> watch LyX's memory usage.
>
> Richard
>
>
>
I have 4 Gb.  I've not noticed lyx using a lot of memory, except when it
crashes.

Evan


Re: lyx crashes - std::bad_alloc

2009-09-11 Thread Evan Mason
On Fri, Sep 11, 2009 at 2:33 PM, Manveru  wrote:

>
>
> 2009/9/11 Evan Mason 
>
> Hi,
>>
>> I am running lyx 1.6.4 with Mandriva 2008.  Over the last few days Lyx
>> keeps
>> freezing, and after a minute or two comes up with the message 'Lyx has
>> caught an exception... Exception: std::bad_alloc'.  It seems to happen
>> just
>> with one particular document I am working on, but I am not totally sure.
>>
>> I'd be grateful for any help with a solution to this.
>>
>> Many thanks, Evan
>>
>
>
> You are running out of memory for the application. Is it possible that your
> Mandriva has any default limits set for the applications? If you are not
> sure, post us the result of the ulimit command executed on console. (Guys,
> correct me if I am wrong with ulimit command).
>
> --
> Manveru
> jabber: manv...@manveru.pl
> gg: 1624001
>   http://www.manveru.pl
>


For ulimit I get:

[ema...@msasa cb_2009_3km_42]$ ulimit
unlimited

So that seems to be ok.

Evan


Re: lyx crashes - std::bad_alloc

2009-09-11 Thread Evan Mason
On Fri, Sep 11, 2009 at 2:08 PM, rgheck  wrote:

> On 09/11/2009 05:05 AM, Evan Mason wrote:
>
>> Hi,
>>
>> I am running lyx 1.6.4 with Mandriva 2008.  Over the last few days Lyx
>> keeps
>> freezing, and after a minute or two comes up with the message 'Lyx has
>> caught an exception... Exception: std::bad_alloc'.  It seems to happen
>> just
>> with one particular document I am working on, but I am not totally sure.
>>
>> I'd be grateful for any help with a solution to this.
>>
>>
>>
> This does sound like some document-specific issue. Does this document have
> graphics in them? and have you set a scaling factor somewhere along the way?
> That bug was a Qt one, and was supposed to have been fixed, so it's probably
> not that, but it's worth checking.
>
> More info about anything "unusual" in your document might also help.
>
> Otherwise, the obvious thing would be to try to run LyX under a debugger
> and get a backtrace, but to do this properly you'll need to compile LyX
> yourself with the configuration option: --enable-build-type=dev. (I mean,
> you could run the release version under gdb, but the information we'd get
> would not be very helpful.) If you need help on how to do that, let us know.
>
> Richard
>
>
It is the figures causing the problem.  I've put the files to a different
directory so lyx thinks they are missing, and I can now work without this
problem.  My figures are png, there are 12 at present, they are all about
0.5 Mb.

I have set the scaling, usually 30-40% so my figures fit the lyx window.

Nothing else unusual I can think of; there are a couple of tables, but
otherwise it's just text and the figures.

I'm happy to try the debugging, just I am bit busy right now with a thesis
to finish by October.  If it's straightforward I can try to do it.
Compiling lyx is fine, I prefer to do it that way.

Thanks, Evan


lyx crashes - std::bad_alloc

2009-09-11 Thread Evan Mason
Hi,

I am running lyx 1.6.4 with Mandriva 2008.  Over the last few days Lyx keeps
freezing, and after a minute or two comes up with the message 'Lyx has
caught an exception... Exception: std::bad_alloc'.  It seems to happen just
with one particular document I am working on, but I am not totally sure.

I'd be grateful for any help with a solution to this.

Many thanks, Evan


list of figures off the page

2009-09-09 Thread Evan Mason
Hi,

I am using book koma-script.  When I compile my document with pdflatex
everything is fine, but with dvipdfm or ps2pdf the list of figures and
tables are not correct.  They don't wrap, so that each caption just goes off
the page.

I can't be the only one this happens to, but haven't found any other post on
this.

Any help much appreciated,

Evan


Re: nomenclature and table of contents, wrong level

2009-09-01 Thread Evan Mason
On Sat, Aug 22, 2009 at 1:29 PM, Evan Mason  wrote:

> On Thu, Aug 20, 2009 at 6:50 PM, Evan Mason  wrote:
>
>> I have inserted nomenclature into my toc using the FAQ advice (
>> http://wiki.lyx.org/FAQ/Unsorted1#toc13 ).  I am using book-KOMA.  I have
>> an appendix, and the nomencalture and bibliography are at the back of the
>> appendix.
>>
>> In the toc, the bibliography comes out fine, but the nomenclature comes
>> out in the toc as a section of the last chapter of the appendix.  How can I
>> prevent this?
>>
>> Many thanks, Evan
>>
>
> No takers?  :-)
>
> -Evan
>

Please, if anybody can help with this I'd be very grateful.  I have a thesis
deadline soon and I am trying to iron out these last few details...

-Evan


Re: nomenclature and table of contents, wrong level

2009-08-22 Thread Evan Mason
On Thu, Aug 20, 2009 at 6:50 PM, Evan Mason  wrote:

> I have inserted nomenclature into my toc using the FAQ advice (
> http://wiki.lyx.org/FAQ/Unsorted1#toc13 ).  I am using book-KOMA.  I have
> an appendix, and the nomencalture and bibliography are at the back of the
> appendix.
>
> In the toc, the bibliography comes out fine, but the nomenclature comes out
> in the toc as a section of the last chapter of the appendix.  How can I
> prevent this?
>
> Many thanks, Evan
>

No takers?  :-)

-Evan


nomenclature and table of contents, wrong level

2009-08-20 Thread Evan Mason
I have inserted nomenclature into my toc using the FAQ advice (
http://wiki.lyx.org/FAQ/Unsorted1#toc13 ).  I am using book-KOMA.  I have an
appendix, and the nomencalture and bibliography are at the back of the
appendix.

In the toc, the bibliography comes out fine, but the nomenclature comes out
in the toc as a section of the last chapter of the appendix.  How can I
prevent this?

Many thanks, Evan