Re: Self-contained lyx documents

2011-05-01 Thread Julien Rioux

On 01/05/2011 10:41 AM, Richard Heck wrote:

On 04/30/2011 04:55 PM, Guenter Milde wrote:

On 2011-04-27, Richard Heck wrote:

On 04/27/2011 09:33 AM, Jim Oldfield wrote:

Please, can't you encapsulate all of the hassle into lyx modules,  and
allow lyx modules that are in the same directory as the lyx file?  Or
better yet: inside the lyx file?

Yes, we have been  working on this. Hopefully, this will be
implemented in LyX  2.1.

And Enrico's solution to this is (will shortly be) available already in
2.0. You'll find it under FileExportLyX Archive. I'm not sure if it
includes used modules and layouts, though, since those do have to be
installed into the right place.

Niko was asking about two different things:
1. He had to install a LaTeX document class before he could use it
with LaTeX (which LyX uses).

As you say, this is not a LyX issue.

It is. Because of the use of a tempdir, files in the cwd are found by
LaTeX if compiling by hand but not if compiling from within LyX.


Why doesn't our setting \input@path take care of that?

rh




I suspect \input@path doesn't help for the \documentclass{} line. 
Moreover at configure time the class would be marked unavailable when it 
is not found in the tex tree, even though it is in the current dir.


--
Julien



Re: Self-contained lyx documents

2011-05-01 Thread Julien Rioux

On 01/05/2011 10:41 AM, Richard Heck wrote:

On 04/30/2011 04:55 PM, Guenter Milde wrote:

On 2011-04-27, Richard Heck wrote:

On 04/27/2011 09:33 AM, Jim Oldfield wrote:

Please, can't you encapsulate all of the hassle into lyx modules,  and
allow lyx modules that are in the same directory as the lyx file?  Or
better yet: inside the lyx file?

Yes, we have been  working on this. Hopefully, this will be
implemented in LyX  2.1.

And Enrico's solution to this is (will shortly be) available already in
2.0. You'll find it under FileExportLyX Archive. I'm not sure if it
includes used modules and layouts, though, since those do have to be
installed into the right place.

Niko was asking about two different things:
1. He had to install a LaTeX document class before he could use it
with LaTeX (which LyX uses).

As you say, this is not a LyX issue.

It is. Because of the use of a tempdir, files in the cwd are found by
LaTeX if compiling by hand but not if compiling from within LyX.


Why doesn't our setting \input@path take care of that?

rh




I suspect \input@path doesn't help for the \documentclass{} line. 
Moreover at configure time the class would be marked unavailable when it 
is not found in the tex tree, even though it is in the current dir.


--
Julien



Re: Self-contained lyx documents

2011-05-01 Thread Julien Rioux

On 01/05/2011 10:41 AM, Richard Heck wrote:

On 04/30/2011 04:55 PM, Guenter Milde wrote:

On 2011-04-27, Richard Heck wrote:

On 04/27/2011 09:33 AM, Jim Oldfield wrote:

Please, can't you encapsulate all of the hassle into lyx modules,  and
allow lyx modules that are in the same directory as the lyx file?  Or
better yet: inside the lyx file?

Yes, we have been  working on this. Hopefully, this will be
implemented in LyX  2.1.

And Enrico's solution to this is (will shortly be) available already in
2.0. You'll find it under File>Export>LyX Archive. I'm not sure if it
includes used modules and layouts, though, since those do have to be
installed into the right place.

Niko was asking about two different things:
1. He had to install a LaTeX document class before he could use it
with LaTeX (which LyX uses).

As you say, this is not a LyX issue.

It is. Because of the use of a tempdir, files in the cwd are found by
LaTeX if compiling "by hand" but not if compiling from within LyX.


Why doesn't our setting \input@path take care of that?

rh




I suspect \input@path doesn't help for the \documentclass{} line. 
Moreover at configure time the class would be marked unavailable when it 
is not found in the tex tree, even though it is in the current dir.


--
Julien



Re: Self-contained lyx documents

2011-04-30 Thread Guenter Milde
On 2011-04-27, Richard Heck wrote:
 On 04/27/2011 09:33 AM, Jim Oldfield wrote:
 Please, can't you encapsulate all of the hassle into lyx modules,  and
 allow lyx modules that are in the same directory as the lyx file?  Or
 better yet: inside the lyx file?

 Yes, we have been  working on this. Hopefully, this will be
 implemented in LyX  2.1.

 And Enrico's solution to this is (will shortly be) available already in 
 2.0. You'll find it under FileExportLyX Archive. I'm not sure if it 
 includes used modules and layouts, though, since those do have to be 
 installed into the right place.

 Niko was asking about two different things:

 1. He had to install a LaTeX document class before he could use it
with LaTeX (which LyX uses).

 As you say, this is not a LyX issue.

It is. Because of the use of a tempdir, files in the cwd are found by
LaTeX if compiling by hand but not if compiling from within LyX.

Günter



Re: Self-contained lyx documents

2011-04-30 Thread Guenter Milde
On 2011-04-27, Richard Heck wrote:
 On 04/27/2011 09:33 AM, Jim Oldfield wrote:
 Please, can't you encapsulate all of the hassle into lyx modules,  and
 allow lyx modules that are in the same directory as the lyx file?  Or
 better yet: inside the lyx file?

 Yes, we have been  working on this. Hopefully, this will be
 implemented in LyX  2.1.

 And Enrico's solution to this is (will shortly be) available already in 
 2.0. You'll find it under FileExportLyX Archive. I'm not sure if it 
 includes used modules and layouts, though, since those do have to be 
 installed into the right place.

 Niko was asking about two different things:

 1. He had to install a LaTeX document class before he could use it
with LaTeX (which LyX uses).

 As you say, this is not a LyX issue.

It is. Because of the use of a tempdir, files in the cwd are found by
LaTeX if compiling by hand but not if compiling from within LyX.

Günter



Re: Self-contained lyx documents

2011-04-30 Thread Guenter Milde
On 2011-04-27, Richard Heck wrote:
> On 04/27/2011 09:33 AM, Jim Oldfield wrote:
 Please, can't you encapsulate all of the hassle into lyx modules,  and
 allow lyx modules that are in the same directory as the lyx file?  Or
 better yet: inside the lyx file?

>>> Yes, we have been  working on this. Hopefully, this will be
>>> implemented in LyX  2.1.

> And Enrico's solution to this is (will shortly be) available already in 
> 2.0. You'll find it under File>Export>LyX Archive. I'm not sure if it 
> includes used modules and layouts, though, since those do have to be 
> installed into the right place.

>> Niko was asking about two different things:

>> 1. He had to install a LaTeX document class before he could use it
>>with LaTeX (which LyX uses).

> As you say, this is not a LyX issue.

It is. Because of the use of a tempdir, files in the cwd are found by
LaTeX if compiling "by hand" but not if compiling from within LyX.

Günter



Self-contained lyx documents

2011-04-27 Thread Niko Schwarz
Hi guys,

I managed to write an article in lyx in sig-alternate style. I had to
copy the class into my tex installation, run texhash, install some
layout into ~/Library/Application Support/LyX-2.0/layouts. And that's
fine. And then my coworker wanted to see what I'd done, so I sent him
the directory. And now he had to repeat all of my steps.

Guys, I don't mind some hassle to use non-standard classes in my
document. But it makes a huge difference to me if the hassle occurs
for me only (that's fine), or for every coworker (that isn't!).

Please, can't you encapsulate all of the hassle into lyx modules, and
allow lyx modules that are in the same directory as the lyx file? Or
better yet: inside the lyx file?

Niko


-- 
http://scg.unibe.ch/staff/Schwarz
twitter.com/nes1983
Tel: +41 078 612 6354


Re: Self-contained lyx documents

2011-04-27 Thread Vincent van Ravesteijn
 Please, can't you encapsulate all of the hassle into lyx modules, and
 allow lyx modules that are in the same directory as the lyx file? Or
 better yet: inside the lyx file?


Yes, we have been working on this. Hopefully, this will be
implemented in LyX 2.1.

Vincent


Re: Self-contained lyx documents

2011-04-27 Thread Liviu Andronic
On Wed, Apr 27, 2011 at 3:33 PM, Jim Oldfield jim_...@yahoo.co.uk wrote:
 1. He had to install a LaTeX document class before he could use it with LaTeX
 (which LyX uses).

[..]

 Presumably this feature being worked on only changes point (2)? The first 
 point
 is a LaTeX issue, which LyX has no control over.

Well, I *guess* a LyX-only hack would be to put the LaTeX class in
~/.lyx/tex/ and run Reconfigure. LyX already ships several LaTeX
classes in /usr/local/share/lyx-svn/tex/.
Liviu


Re: Self-contained lyx documents

2011-04-27 Thread Richard Heck

On 04/27/2011 09:33 AM, Jim Oldfield wrote:

Please, can't you encapsulate all of the hassle into lyx modules,  and
allow lyx modules that are in the same directory as the lyx file?  Or
better yet: inside the lyx file?


Yes, we have been  working on this. Hopefully, this will be
implemented in LyX  2.1.

And Enrico's solution to this is (will shortly be) available already in 
2.0. You'll find it under FileExportLyX Archive. I'm not sure if it 
includes used modules and layouts, though, since those do have to be 
installed into the right place.



Niko was asking about two different things:

1. He had to install a LaTeX document class before he could use it with LaTeX
(which LyX uses).


As you say, this is not a LyX issue.


2. He had to install a LyX module before he could use it in a LyX document.

If you want to keep your layout internal, then this is also already 
possible in 2.0. Look under DocumentSettingsLocal Layout.


Richard



Self-contained lyx documents

2011-04-27 Thread Niko Schwarz
Hi guys,

I managed to write an article in lyx in sig-alternate style. I had to
copy the class into my tex installation, run texhash, install some
layout into ~/Library/Application Support/LyX-2.0/layouts. And that's
fine. And then my coworker wanted to see what I'd done, so I sent him
the directory. And now he had to repeat all of my steps.

Guys, I don't mind some hassle to use non-standard classes in my
document. But it makes a huge difference to me if the hassle occurs
for me only (that's fine), or for every coworker (that isn't!).

Please, can't you encapsulate all of the hassle into lyx modules, and
allow lyx modules that are in the same directory as the lyx file? Or
better yet: inside the lyx file?

Niko


-- 
http://scg.unibe.ch/staff/Schwarz
twitter.com/nes1983
Tel: +41 078 612 6354


Re: Self-contained lyx documents

2011-04-27 Thread Vincent van Ravesteijn
 Please, can't you encapsulate all of the hassle into lyx modules, and
 allow lyx modules that are in the same directory as the lyx file? Or
 better yet: inside the lyx file?


Yes, we have been working on this. Hopefully, this will be
implemented in LyX 2.1.

Vincent


Re: Self-contained lyx documents

2011-04-27 Thread Liviu Andronic
On Wed, Apr 27, 2011 at 3:33 PM, Jim Oldfield jim_...@yahoo.co.uk wrote:
 1. He had to install a LaTeX document class before he could use it with LaTeX
 (which LyX uses).

[..]

 Presumably this feature being worked on only changes point (2)? The first 
 point
 is a LaTeX issue, which LyX has no control over.

Well, I *guess* a LyX-only hack would be to put the LaTeX class in
~/.lyx/tex/ and run Reconfigure. LyX already ships several LaTeX
classes in /usr/local/share/lyx-svn/tex/.
Liviu


Re: Self-contained lyx documents

2011-04-27 Thread Richard Heck

On 04/27/2011 09:33 AM, Jim Oldfield wrote:

Please, can't you encapsulate all of the hassle into lyx modules,  and
allow lyx modules that are in the same directory as the lyx file?  Or
better yet: inside the lyx file?


Yes, we have been  working on this. Hopefully, this will be
implemented in LyX  2.1.

And Enrico's solution to this is (will shortly be) available already in 
2.0. You'll find it under FileExportLyX Archive. I'm not sure if it 
includes used modules and layouts, though, since those do have to be 
installed into the right place.



Niko was asking about two different things:

1. He had to install a LaTeX document class before he could use it with LaTeX
(which LyX uses).


As you say, this is not a LyX issue.


2. He had to install a LyX module before he could use it in a LyX document.

If you want to keep your layout internal, then this is also already 
possible in 2.0. Look under DocumentSettingsLocal Layout.


Richard



Self-contained lyx documents

2011-04-27 Thread Niko Schwarz
Hi guys,

I managed to write an article in lyx in sig-alternate style. I had to
copy the class into my tex installation, run texhash, install some
layout into ~/Library/Application Support/LyX-2.0/layouts. And that's
fine. And then my coworker wanted to see what I'd done, so I sent him
the directory. And now he had to repeat all of my steps.

Guys, I don't mind some hassle to use non-standard classes in my
document. But it makes a huge difference to me if the hassle occurs
for me only (that's fine), or for every coworker (that isn't!).

Please, can't you encapsulate all of the hassle into lyx modules, and
allow lyx modules that are in the same directory as the lyx file? Or
better yet: inside the lyx file?

Niko


-- 
http://scg.unibe.ch/staff/Schwarz
twitter.com/nes1983
Tel: +41 078 612 6354


Re: Self-contained lyx documents

2011-04-27 Thread Vincent van Ravesteijn
> Please, can't you encapsulate all of the hassle into lyx modules, and
> allow lyx modules that are in the same directory as the lyx file? Or
> better yet: inside the lyx file?
>

Yes, we have been working on this. Hopefully, this will be
implemented in LyX 2.1.

Vincent


Re: Self-contained lyx documents

2011-04-27 Thread Liviu Andronic
On Wed, Apr 27, 2011 at 3:33 PM, Jim Oldfield  wrote:
> 1. He had to install a LaTeX document class before he could use it with LaTeX
> (which LyX uses).
>
[..]
>
> Presumably this feature being worked on only changes point (2)? The first 
> point
> is a LaTeX issue, which LyX has no control over.
>
Well, I *guess* a LyX-only hack would be to put the LaTeX class in
~/.lyx/tex/ and run Reconfigure. LyX already ships several LaTeX
classes in /usr/local/share/lyx-svn/tex/.
Liviu


Re: Self-contained lyx documents

2011-04-27 Thread Richard Heck

On 04/27/2011 09:33 AM, Jim Oldfield wrote:

Please, can't you encapsulate all of the hassle into lyx modules,  and
allow lyx modules that are in the same directory as the lyx file?  Or
better yet: inside the lyx file?


Yes, we have been  working on this. Hopefully, this will be
implemented in LyX  2.1.

And Enrico's solution to this is (will shortly be) available already in 
2.0. You'll find it under File>Export>LyX Archive. I'm not sure if it 
includes used modules and layouts, though, since those do have to be 
installed into the right place.



Niko was asking about two different things:

1. He had to install a LaTeX document class before he could use it with LaTeX
(which LyX uses).


As you say, this is not a LyX issue.


2. He had to install a LyX module before he could use it in a LyX document.

If you want to keep your layout "internal", then this is also already 
possible in 2.0. Look under Document>Settings>Local Layout.


Richard