Re: Opening LyX-2.0 Files in LyX-1.6.5

2010-03-24 Thread rgheck

On 03/24/2010 06:55 PM, Jack Desert wrote:

I found myself wanting to open the same document sometimes in LyX 2.0
and sometimes in LyX 1.6.5. Oh sure, a LyX 1.6.5 document opens fine
in LyX 2.0, but I ran into an error when trying open a LyX 2.0
document in LyX 1.6.5.

So I did a little experimentation. I copied the LyX 2.0 lyx/lib/lyx2lyx
folder into the LyX 1.6.5 lyx/lib/ directory. Then recompiled LyX 1.6.5.
Voilá. Now I can open the same file with either version of LyX. Am I
violating any taboo here? Does this void the LyX warranty?

   
This is normal. The lyx2lyx script shipped with 1.6.5 converts PRIOR 
formats to the 1.6 format and vice versa. The version of lyx2lyx 
presently in trunk will convert *any* (existing) format to any other 
(existing) format. Since it's a self-contained python script, you can 
indeed do precisely what you've done.


rh



Re: Opening LyX-2.0 Files in LyX-1.6.5

2010-03-24 Thread Jack Desert

> >  Does this void the LyX warranty?  
> >   
> 
> Which warranty ?

The "free software double-your-money-back if it doesn't solve all your
problems and bring world peace" warranty. That's the one I was
referring to ;)


-- 
~~~
Jack Desert --Writer, Entrepeneur
Author and Spokesman: www.LetsEATalready.com
Software Developer:   http://GrooveTask.org
Email: jwo...@gmail.com
~~~


Re: Opening LyX-2.0 Files in LyX-1.6.5

2010-03-24 Thread Vincent van Ravesteijn

Jack Desert schreef:

Am I violating any taboo here?


No, as long as you know what you're doing. At least you're now testing 
the lyx2lyx script.


 Does this void the LyX warranty?  
  


Which warranty ?

Vincent


Re: Opening LyX-2.0 Files in LyX-1.6.5

2010-03-24 Thread Uwe Stöhr

Jack Desert schrieb:


I found myself wanting to open the same document sometimes in LyX 2.0
and sometimes in LyX 1.6.5. Oh sure, a LyX 1.6.5 document opens fine
in LyX 2.0, but I ran into an error when trying open a LyX 2.0
document in LyX 1.6.5.


Of course, because LyX 2.0 is not released, so you cannot expect that 
the stable LyX 1.6.5 will understand files created with a version that 
is in alpha-state (not feature complete and with lots of crashes).


In general, don't use development previews of LyX 2.0 for any real-life 
document, only for testing!


Once LyX 2.0 is finally released, the last LyX 1.6.x version will 
support files created with LyX 2.0.


regards Uwe


Opening LyX-2.0 Files in LyX-1.6.5

2010-03-24 Thread Jack Desert
I found myself wanting to open the same document sometimes in LyX 2.0
and sometimes in LyX 1.6.5. Oh sure, a LyX 1.6.5 document opens fine
in LyX 2.0, but I ran into an error when trying open a LyX 2.0
document in LyX 1.6.5.  

So I did a little experimentation. I copied the LyX 2.0 lyx/lib/lyx2lyx
folder into the LyX 1.6.5 lyx/lib/ directory. Then recompiled LyX 1.6.5.
Voilá. Now I can open the same file with either version of LyX. Am I
violating any taboo here? Does this void the LyX warranty?  

-Jack

-- 
~~~
Jack Desert --Writer, Entrepeneur
Author and Spokesman: www.LetsEATalready.com
Software Developer:   http://GrooveTask.org
Email: jwo...@gmail.com
~~


Re: Changes to LyX-Code with beamer

2010-03-24 Thread Julien Rioux

On 24/03/2010 5:19 PM, Kevin Middleton wrote:


I'm trying to alter the appearance of LyX-Code in a beamer presentation by 
following a couple of previous posts to:

http://www.mail-archive.com/lyx-users-uqbj+gopo4+hph1hqnu...@public.gmane.org/msg44992.html

http://www.mail-archive.com/lyx-users-uqbj+gopo4+hph1hqnu...@public.gmane.org/msg30149.html

I copied lyxmacros.inc from Resources/layouts in LyX.app bundle (I'm using OS X 
and LyX 1.6.5) into ~/Library/Application Support/LyX-1.6/layouts. I changed 
owner and group to my user name and user group.

As a test, I tried changing \normalfont to \rmfamily and \smaller. (I don't 
want this, but it seemed like a good way to see if it was working.)

[cut]
Preamble
\newenvironment{lyxcode}
{\par\begin{list}{}{
\setlength{\leftmargin}{\0in}
\setlength{\listparindent}{0pt}% needed for AMS 
classes
\raggedright
\setlength{\itemsep}{0pt}
\setlength{\parsep}{0pt}
\normalfont\rmfamily\smaller}%
 \item[]}
{\end{list}}
EndPreamble
[cut]

I reconfigured LyX, quit, and restarted. When compiled my beamer presentation, 
the font remains unchanged in the PDF output (still typewriter).

I also tried an article class document, and the LyX-Code output correctly set 
in Roman, so I think that my hack of lyxmacros.inc is working.

Does anyone know how I can get beamer to recognize these changes? Is there an 
appropriate \setbeamerfont option?

Any suggestions would be appreciated.

Thanks,
Kevin




You are close, but...

Look at the beamer.layout file. This is the file you want to edit. Put 
your own version in your user directory (I presume ~/Library/Application 
Support/LyX-1.6/layouts is correct but I am alien to Apple's OS).


Reason: beamer.layout redefines the LyX-Code environment.

--
Julien


Changes to LyX-Code with beamer

2010-03-24 Thread Kevin Middleton

I'm trying to alter the appearance of LyX-Code in a beamer presentation by 
following a couple of previous posts to:

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg44992.html

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg30149.html

I copied lyxmacros.inc from Resources/layouts in LyX.app bundle (I'm using OS X 
and LyX 1.6.5) into ~/Library/Application Support/LyX-1.6/layouts. I changed 
owner and group to my user name and user group.

As a test, I tried changing \normalfont to \rmfamily and \smaller. (I don't 
want this, but it seemed like a good way to see if it was working.)

[cut]
Preamble
\newenvironment{lyxcode}
{\par\begin{list}{}{
\setlength{\leftmargin}{\0in}
\setlength{\listparindent}{0pt}% needed for AMS 
classes
\raggedright
\setlength{\itemsep}{0pt}
\setlength{\parsep}{0pt}
\normalfont\rmfamily\smaller}%
 \item[]}
{\end{list}}
EndPreamble
[cut]

I reconfigured LyX, quit, and restarted. When compiled my beamer presentation, 
the font remains unchanged in the PDF output (still typewriter).

I also tried an article class document, and the LyX-Code output correctly set 
in Roman, so I think that my hack of lyxmacros.inc is working.

Does anyone know how I can get beamer to recognize these changes? Is there an 
appropriate \setbeamerfont option?

Any suggestions would be appreciated.

Thanks,
Kevin



Re: Layout file not usable

2010-03-24 Thread rgheck

On 03/24/2010 12:17 PM, Tim Wescott wrote:

Guenter Milde wrote:

On 22.03.10, Tim Wescott wrote:

Guenter Milde wrote:
You will need to install more of texlive than just the basics 
(which are

auto-installed as a LyX dependency).

I think I have a handle on this, but it sure changes the meaning of
"create from template" away from "oh look at all these handy,
helpful templates!"  Something more like "Oh look at this ready-made
minefield!"


You might file an enhancement/bug report to ask for disabling
not-supported templates (or a warning) similar to what is done if you
select a non-supported document class under Document>Settings.

I don't think this is very easy to do. Templates are just files, and 
what shows them is just a file browser. We can't ask the file browser 
not to show files that don't have associated LaTeX classes.




If you have enough disk-space and a fast internet connection, you can
also consider installing the full texlive suite (I don't remember the
name of the meta package just now).
I generally don't start filing enhancement/bug reports on software 
until I've had at least a little bit of mileage with it.  As an 
absolute newbie it's an even bet between whether my problems stem from 
a real issue with the software or from my own ignorance.


I think this may be an exception, though -- it certainly would be 
helpful for everyone, and far less confusing for newbies, to do this.  
And you _do_ want newbies to have a positive experience, lest they run 
screaming back to their nice, comfortable WSIWYG editor, and fail to 
lend their support to your community.


What do you mean here by "do this"? Do you mean, "install the full 
texlive suite"? If so, then, first, LyX has no control over this. It's a 
packaging question and, on Linux, that means that each distribution gets 
to decide for itself what LyX's dependencies are. Similarly, the Windows 
and Mac packagers decide about this on their platforms. Second, it's 
arguable that LaTeX shouldn't be a dependency of LyX at all. Helge 
Hafting, who often posts here, frequently points out that LyX can be 
used as an editor without LaTeX. You might want to install it that way, 
for example, on a netbook that had minimal disk space so you could work 
on LyX files on your netbook. You wouldn't be able to view them as pdf 
or whatever, but you don't always need to do that. Third, even if we do 
want LaTeX to be a dependency, you really don't want to install 
absolutely every package that texlive makes available. That is a huge 
number of packages. And, finally, I don't know what texlive includes 
these days, but until not very long ago, some of the templates LyX ships 
were for use with document classes that weren't available at all through 
texlive. You have to go get them yourself if you want to use them. 
That's in the nature of an extensible system like LaTeX.


rh



Re: Layout file not usable

2010-03-24 Thread Tim Wescott

Guenter Milde wrote:

On 22.03.10, Tim Wescott wrote:
  

Guenter Milde wrote:


On 2010-03-22, Tim Wescott wrote:
  


  

You will need to install more of texlive than just the basics (which are
auto-installed as a LyX dependency).
  


...

  

I think I have a handle on this, but it sure changes the meaning of
"create from template" away from "oh look at all these handy,
helpful templates!"  Something more like "Oh look at this ready-made
minefield!"



You might file an enhancement/bug report to ask for disabling
not-supported templates (or a warning) similar to what is done if you
select a non-supported document class under Document>Settings.


If you have enough disk-space and a fast internet connection, you can
also consider installing the full texlive suite (I don't remember the
name of the meta package just now).

Günter

  
I generally don't start filing enhancement/bug reports on software until 
I've had at least a little bit of mileage with it.  As an absolute 
newbie it's an even bet between whether my problems stem from a real 
issue with the software or from my own ignorance.


I think this may be an exception, though -- it certainly would be 
helpful for everyone, and far less confusing for newbies, to do this.  
And you _do_ want newbies to have a positive experience, lest they run 
screaming back to their nice, comfortable WSIWYG editor, and fail to 
lend their support to your community.


--
Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com




Re: Layout file not usable

2010-03-24 Thread Tim Wescott

Guenter Milde wrote:

On 2010-03-22, Tim Wescott wrote:

  
I'm working hard at being a brand-new user, but I'm still a 
user-wannabe, because things ain't working!  I'm using Ubuntu 9.10, 
brand shiny new installation of Lyx.  I try to create a document from a 
template (any template, but I'll use latex8 as an example)



Really *any*?? 


Just to sort out principal failure: Could you test with a new standard
document (Ctrl-N), type a simple sentence and view the PDF?

  

and I get the following:



  

The layout file requested by this document, latex8.layout, is not
usable. This is probably because a LaTeX class or style file required
by it is not available. See the Customization documentation for more
information. LyX will not be able to produce output.



This indicates that a latex document-class is missing. 

  

I tried reconfigure -- no luck.



  

I tried running texhash -- no luck.



  
I verified that /usr/share/lyx/layouts is there, and that it has 
latex8.layout (and all the others that didn't work) in it.



You will need to install more of texlive than just the basics (which are
auto-installed as a LyX dependency).

In your example, you should look for latex8.cls or latex8.sty. If it is
not on your system, try e.g. `apt-file find latex8.cls`` to see which
package you need to install. (Actually, I did not find a package that
ships latex8 for Debian, so this might even be a "download from CTAN and
install 'by hand'" documentclass, however, you might e.g. find the
seminar class in texlive-latex-recommended.)

Günter


  

Got it figured out -- thanks.

--
Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com




Re: references to labels on starred sections

2010-03-24 Thread Julio Rojas
Of course, this is what I originally suggested.
-
Julio Rojas
jcredbe...@gmail.com



On Wed, Mar 24, 2010 at 11:27 AM, Wolfgang Engelmann
 wrote:
> Am Wednesday 24 March 2010 11:00:11 schrieb Julio Rojas:
>> Cross references are made to the number the section have. Starred
>> environments are not numbered, thus a cross reference is not possible.
>> This is what I meant with my answer. You cannot refer to "In section
>> foo", because "foo" doesn't have a value.
>> -
>> Julio Rojas
>> jcredbe...@gmail.com
>
> But you could of course say
>  In the section on page foo we discuss the matter further.
> Wolfgang
>
>>
>> On Wed, Mar 24, 2010 at 9:28 AM, E. Kaplan  wrote:
>> > I thought my post stated exactly what the problem was:
>> > I attach a label (say:foo) to something (say, a starred section*).  That
>> > label should now be available for cross-reference, so I could say
>> > elsewhere: In section foo we discuss the matter further.  Somehow this
>> > does not work, although the manual suggests that it should.
>> >
>> > (I am using Lyx 1.6.4 [TexLive] on Kubuntu 9.10 64 bit).
>> >
>> > EK
>> >
>> >
>> > On 3/24/2010 3:46 AM, Julio Rojas wrote:
>> >
>> > This seems kind of weird: how can you refer to something that is not
>> > numbered? I think you should refer to the page with
>> > "\pageref{marker}".
>> > -
>> > Julio Rojas
>> > jcredbe...@gmail.com
>> >
>> >
>> >
>> > On Tue, Mar 23, 2010 at 10:54 PM, Ehud Kaplan 
>> > wrote:
>> >
>> >
>> > If I want to refer to a label attached to a starred section (or
>> > subsection, etc.), how do I do it?
>> > The pdf output comes out blank.
>> > Thanks,
>> > EK
>
>
>
> --
> -
> Wolfgang Engelmann
> Schlossgartenstrasse 22
> D-72070 Tübingen
> Tel 07071 68325
>


Re: references to labels on starred sections

2010-03-24 Thread Wolfgang Engelmann
Am Wednesday 24 March 2010 11:00:11 schrieb Julio Rojas:
> Cross references are made to the number the section have. Starred
> environments are not numbered, thus a cross reference is not possible.
> This is what I meant with my answer. You cannot refer to "In section
> foo", because "foo" doesn't have a value.
> -
> Julio Rojas
> jcredbe...@gmail.com

But you could of course say 
 In the section on page foo we discuss the matter further.  
Wolfgang

>
> On Wed, Mar 24, 2010 at 9:28 AM, E. Kaplan  wrote:
> > I thought my post stated exactly what the problem was:
> > I attach a label (say:foo) to something (say, a starred section*).  That
> > label should now be available for cross-reference, so I could say
> > elsewhere: In section foo we discuss the matter further.  Somehow this
> > does not work, although the manual suggests that it should.
> >
> > (I am using Lyx 1.6.4 [TexLive] on Kubuntu 9.10 64 bit).
> >
> > EK
> >
> >
> > On 3/24/2010 3:46 AM, Julio Rojas wrote:
> >
> > This seems kind of weird: how can you refer to something that is not
> > numbered? I think you should refer to the page with
> > "\pageref{marker}".
> > -
> > Julio Rojas
> > jcredbe...@gmail.com
> >
> >
> >
> > On Tue, Mar 23, 2010 at 10:54 PM, Ehud Kaplan 
> > wrote:
> >
> >
> > If I want to refer to a label attached to a starred section (or
> > subsection, etc.), how do I do it?
> > The pdf output comes out blank.
> > Thanks,
> > EK



-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: references to labels on starred sections

2010-03-24 Thread Julio Rojas
Cross references are made to the number the section have. Starred
environments are not numbered, thus a cross reference is not possible.
This is what I meant with my answer. You cannot refer to "In section
foo", because "foo" doesn't have a value.
-
Julio Rojas
jcredbe...@gmail.com



On Wed, Mar 24, 2010 at 9:28 AM, E. Kaplan  wrote:
> I thought my post stated exactly what the problem was:
> I attach a label (say:foo) to something (say, a starred section*).  That
> label should now be available for cross-reference, so I could say elsewhere:
> In section foo we discuss the matter further.  Somehow this does not work,
> although the manual suggests that it should.
>
> (I am using Lyx 1.6.4 [TexLive] on Kubuntu 9.10 64 bit).
>
> EK
>
>
> On 3/24/2010 3:46 AM, Julio Rojas wrote:
>
> This seems kind of weird: how can you refer to something that is not
> numbered? I think you should refer to the page with
> "\pageref{marker}".
> -
> Julio Rojas
> jcredbe...@gmail.com
>
>
>
> On Tue, Mar 23, 2010 at 10:54 PM, Ehud Kaplan  wrote:
>
>
> If I want to refer to a label attached to a starred section (or subsection,
> etc.), how do I do it?
> The pdf output comes out blank.
> Thanks,
> EK
>
>
>


Re: references to labels on starred sections

2010-03-24 Thread E. Kaplan

I thought my post stated exactly what the problem was:
I attach a label (say:foo) to something (say, a starred section*).  That 
label should now be available for cross-reference, so I could say 
elsewhere: In section foo we discuss the matter further.  Somehow this 
does not work, although the manual suggests that it should.


(I am using Lyx 1.6.4 [TexLive] on Kubuntu 9.10 64 bit).

EK


On 3/24/2010 3:46 AM, Julio Rojas wrote:

This seems kind of weird: how can you refer to something that is not
numbered? I think you should refer to the page with
"\pageref{marker}".
-
Julio Rojas
jcredbe...@gmail.com



On Tue, Mar 23, 2010 at 10:54 PM, Ehud Kaplan  wrote:
   

If I want to refer to a label attached to a starred section (or subsection,
etc.), how do I do it?
The pdf output comes out blank.
Thanks,
EK


 


Re: references to labels on starred sections

2010-03-24 Thread Julio Rojas
This seems kind of weird: how can you refer to something that is not
numbered? I think you should refer to the page with
"\pageref{marker}".
-
Julio Rojas
jcredbe...@gmail.com



On Tue, Mar 23, 2010 at 10:54 PM, Ehud Kaplan  wrote:
> If I want to refer to a label attached to a starred section (or subsection,
> etc.), how do I do it?
> The pdf output comes out blank.
> Thanks,
> EK
>
>