Re: including sections real-time from other files

2002-11-26 Thread Christian Ridderström
On Mon, 25 Nov 2002, Nirmal Govind wrote:

  all I had to do was change the class of the article-class documents to
  book. Then I used include file? Anyway, I'm going to take my thesis,
 
 Thanks Christian for putting up those files... what I'm trying to do is
 to have my three documents double up as articles and as chapters in a
 book.. so that if I decided to print them out separately, they would
 look like articles and if I decided to print out the whole thing
 together then it would look like a book.. in more practical terms, the
 article-class documents are papers that can be published and when these
 papers are put together, they form a thesis.. 
 
 So the only difference between the above and what you have in your files
 is that in the latter, if I try to print out each document separately, I
 will get Chapter 1 and sections 1.x  on each article-class document..
 what I'd like to see is each one as a stand alone article... I guess one
 way is to change the book class for each document to article class
 before printing or so.. any other way(s)?
 
No... I don't think so, but maybe someone else has an idea.

Btw, you might also get into problems because the book class doesn't have 
abstracts for each chapter, which you typically want for an article.. 

On the other hand, you will hopefully only submit the articles once, so 
you won't have to change them to article class very often.

/Christian

-- 
Christian Ridderström, +46-8-790 91 37   http://www.md.kth.se/~chr
Mechatronics lab, Dept. of Machine Designhttp://www.md.kth.se






Re: including sections real-time from other files

2002-11-26 Thread Dekel Tsur
On Mon, Nov 25, 2002 at 09:06:04PM -0500, Nirmal Govind wrote:
 what I'd like to see is each one as a stand alone article... I guess one
 way is to change the book class for each document to article class
 before printing or so.. any other way(s)?

You can have the included files in the article class, and only the master
file in the book class. However, when you make a DVI from the master file,
you might encounter some problems.

PS: this will work with lyx = 1.2.0.



Re: including sections real-time from other files

2002-11-26 Thread Christian Ridderström
On Tue, 26 Nov 2002, Dekel Tsur wrote:

 On Mon, Nov 25, 2002 at 09:06:04PM -0500, Nirmal Govind wrote:
  what I'd like to see is each one as a stand alone article... I guess one
  way is to change the book class for each document to article class
  before printing or so.. any other way(s)?
 
 You can have the included files in the article class, and only the master
 file in the book class. However, when you make a DVI from the master file,
 you might encounter some problems.
 
 PS: this will work with lyx = 1.2.0.
 
Yes, Dekel is right, I must have remembered incorrectly since I thought 
LyX would protest (maybe from an earlier verision). Anyway, you will run 
into some difficulties with the abstract and the title of the article.

I played with a workaround that you can find here:

http://www.md.kth.se/~chr/lyx/book-article-combo/

Basically I give what will appear as the title and abstract as arguments 
to different commands depending on if this is for the book or an separate 
article. Anyway, check out the beginning of the file preamble.tex and the 
preamble of the article (reviewIntroduction.lyx).

But you'll probably run into other problems as well, and some of them are 
going to be of the type: This chapter will show that... which in the 
article should read as This article will show that..., i.e. the language 
is different.

Good luck

/Christian


-- 
Christian Ridderström, +46-8-790 91 37   http://www.md.kth.se/~chr
Mechatronics lab, Dept. of Machine Designhttp://www.md.kth.se






Re: including sections real-time from other files

2002-11-26 Thread Christian Ridderström
On Mon, 25 Nov 2002, Nirmal Govind wrote:

  all I had to do was change the class of the article-class documents to
  book. Then I used include file? Anyway, I'm going to take my thesis,
 
 Thanks Christian for putting up those files... what I'm trying to do is
 to have my three documents double up as articles and as chapters in a
 book.. so that if I decided to print them out separately, they would
 look like articles and if I decided to print out the whole thing
 together then it would look like a book.. in more practical terms, the
 article-class documents are papers that can be published and when these
 papers are put together, they form a thesis.. 
 
 So the only difference between the above and what you have in your files
 is that in the latter, if I try to print out each document separately, I
 will get Chapter 1 and sections 1.x  on each article-class document..
 what I'd like to see is each one as a stand alone article... I guess one
 way is to change the book class for each document to article class
 before printing or so.. any other way(s)?
 
No... I don't think so, but maybe someone else has an idea.

Btw, you might also get into problems because the book class doesn't have 
abstracts for each chapter, which you typically want for an article.. 

On the other hand, you will hopefully only submit the articles once, so 
you won't have to change them to article class very often.

/Christian

-- 
Christian Ridderström, +46-8-790 91 37   http://www.md.kth.se/~chr
Mechatronics lab, Dept. of Machine Designhttp://www.md.kth.se






Re: including sections real-time from other files

2002-11-26 Thread Dekel Tsur
On Mon, Nov 25, 2002 at 09:06:04PM -0500, Nirmal Govind wrote:
 what I'd like to see is each one as a stand alone article... I guess one
 way is to change the book class for each document to article class
 before printing or so.. any other way(s)?

You can have the included files in the article class, and only the master
file in the book class. However, when you make a DVI from the master file,
you might encounter some problems.

PS: this will work with lyx = 1.2.0.



Re: including sections real-time from other files

2002-11-26 Thread Christian Ridderström
On Tue, 26 Nov 2002, Dekel Tsur wrote:

 On Mon, Nov 25, 2002 at 09:06:04PM -0500, Nirmal Govind wrote:
  what I'd like to see is each one as a stand alone article... I guess one
  way is to change the book class for each document to article class
  before printing or so.. any other way(s)?
 
 You can have the included files in the article class, and only the master
 file in the book class. However, when you make a DVI from the master file,
 you might encounter some problems.
 
 PS: this will work with lyx = 1.2.0.
 
Yes, Dekel is right, I must have remembered incorrectly since I thought 
LyX would protest (maybe from an earlier verision). Anyway, you will run 
into some difficulties with the abstract and the title of the article.

I played with a workaround that you can find here:

http://www.md.kth.se/~chr/lyx/book-article-combo/

Basically I give what will appear as the title and abstract as arguments 
to different commands depending on if this is for the book or an separate 
article. Anyway, check out the beginning of the file preamble.tex and the 
preamble of the article (reviewIntroduction.lyx).

But you'll probably run into other problems as well, and some of them are 
going to be of the type: This chapter will show that... which in the 
article should read as This article will show that..., i.e. the language 
is different.

Good luck

/Christian


-- 
Christian Ridderström, +46-8-790 91 37   http://www.md.kth.se/~chr
Mechatronics lab, Dept. of Machine Designhttp://www.md.kth.se






Re: including sections real-time from other files

2002-11-26 Thread Christian Ridderström
On Mon, 25 Nov 2002, Nirmal Govind wrote:

> > all I had to do was change the class of the article-class documents to
> > book. Then I used "include file"? Anyway, I'm going to take my thesis,
> 
> Thanks Christian for putting up those files... what I'm trying to do is
> to have my three documents double up as articles and as chapters in a
> book.. so that if I decided to print them out separately, they would
> look like articles and if I decided to print out the whole thing
> together then it would look like a book.. in more practical terms, the
> article-class documents are papers that can be published and when these
> papers are put together, they form a thesis.. 
> 
> So the only difference between the above and what you have in your files
> is that in the latter, if I try to print out each document separately, I
> will get "Chapter 1" and sections 1.x  on each article-class document..
> what I'd like to see is each one as a stand alone article... I guess one
> way is to change the book class for each document to article class
> before printing or so.. any other way(s)?
> 
No... I don't think so, but maybe someone else has an idea.

Btw, you might also get into problems because the book class doesn't have 
abstracts for each chapter, which you typically want for an article.. 

On the other hand, you will hopefully only submit the articles once, so 
you won't have to change them to article class very often.

/Christian

-- 
Christian Ridderström, +46-8-790 91 37   http://www.md.kth.se/~chr
Mechatronics lab, Dept. of Machine Designhttp://www.md.kth.se






Re: including sections real-time from other files

2002-11-26 Thread Dekel Tsur
On Mon, Nov 25, 2002 at 09:06:04PM -0500, Nirmal Govind wrote:
> what I'd like to see is each one as a stand alone article... I guess one
> way is to change the book class for each document to article class
> before printing or so.. any other way(s)?

You can have the included files in the article class, and only the master
file in the book class. However, when you make a DVI from the master file,
you might encounter some problems.

PS: this will work with lyx >= 1.2.0.



Re: including sections real-time from other files

2002-11-26 Thread Christian Ridderström
On Tue, 26 Nov 2002, Dekel Tsur wrote:

> On Mon, Nov 25, 2002 at 09:06:04PM -0500, Nirmal Govind wrote:
> > what I'd like to see is each one as a stand alone article... I guess one
> > way is to change the book class for each document to article class
> > before printing or so.. any other way(s)?
> 
> You can have the included files in the article class, and only the master
> file in the book class. However, when you make a DVI from the master file,
> you might encounter some problems.
> 
> PS: this will work with lyx >= 1.2.0.
> 
Yes, Dekel is right, I must have remembered incorrectly since I thought 
LyX would protest (maybe from an earlier verision). Anyway, you will run 
into some difficulties with the abstract and the title of the article.

I played with a workaround that you can find here:

http://www.md.kth.se/~chr/lyx/book-article-combo/

Basically I give what will appear as the title and abstract as arguments 
to different commands depending on if this is for the book or an separate 
article. Anyway, check out the beginning of the file preamble.tex and the 
preamble of the article (reviewIntroduction.lyx).

But you'll probably run into other problems as well, and some of them are 
going to be of the type: "This chapter will show that..." which in the 
article should read as "This article will show that...", i.e. the language 
is different.

Good luck

/Christian


-- 
Christian Ridderström, +46-8-790 91 37   http://www.md.kth.se/~chr
Mechatronics lab, Dept. of Machine Designhttp://www.md.kth.se






Re: including sections real-time from other files

2002-11-25 Thread Christian Ridderström
On Sun, 24 Nov 2002, Nirmal Govind wrote:

 Hi.. I have three documents which have been written in the
 article-class. I'm trying to compile all three of them into a book-class
 document so that each article-class document would be a separate chapter
 in the new document. I don't want to cut and paste the sections from the
 three documents since I would like to edit the three article-class
 documents separately and so was wondering if there's any way of
 including all the sections from the three documents in the book-class
 document... thus, when I edit any of the three documents, the book-class
 document automatically gets updated.. I'd like to include only the
 sections from the three docs and ignore the title, author etc.. any way
 to do this?
 
 I tried Insert-Include file and Insert File but the former gave lots of
 errors and the latter inserts the file (as is) and not a link to it so
 it won't update real-time..
 
 Thanks,
 nirmal
 
Hmm.. I don't think I see the problem. In my thesis I'm doing this and all 
I had to do was change the class of the article-class documents to book. 
Then I used include file? Anyway, I'm going to take my thesis, remove 
all the unneccessary stuff and put it as an example here:

http://www.md.kth.se/~chr/lyx/thesis-example

So you can look at it and also put it into a tar-ball here:

http://www.md.kth.se/~chr/lyx/thesis-example.tar.gz

/Christian

-- 
Christian Ridderström, +46-8-790 91 37   http://www.md.kth.se/~chr
Mechatronics lab, Dept. of Machine Designhttp://www.md.kth.se






Re: including sections real-time from other files

2002-11-25 Thread Koundinya
Christian,
The thesis is very impressive. It gives me many ideas to try 
and this some just in time when I'm writhing my thesis too.

Thank You,

Koundinya


- On Sun, 24 Nov 2002, Nirmal Govind wrote:
- 
-  Hi.. I have three documents which have been written in the
-  article-class. I'm trying to compile all three of them into a book-class
-  document so that each article-class document would be a separate chapter
-  in the new document. I don't want to cut and paste the sections from the
-  three documents since I would like to edit the three article-class
-  documents separately and so was wondering if there's any way of
-  including all the sections from the three documents in the book-class
-  document... thus, when I edit any of the three documents, the book-class
-  document automatically gets updated.. I'd like to include only the
-  sections from the three docs and ignore the title, author etc.. any way
-  to do this?
-  
-  I tried Insert-Include file and Insert File but the former gave lots of
-  errors and the latter inserts the file (as is) and not a link to it so
-  it won't update real-time..
-  
-  Thanks,
-  nirmal
-  
- Hmm.. I don't think I see the problem. In my thesis I'm doing this and all 
- I had to do was change the class of the article-class documents to book. 
- Then I used include file? Anyway, I'm going to take my thesis, remove 
- all the unneccessary stuff and put it as an example here:
- 
-  http://www.md.kth.se/~chr/lyx/thesis-example
- 
- So you can look at it and also put it into a tar-ball here:
- 
-  http://www.md.kth.se/~chr/lyx/thesis-example.tar.gz
- 
- /Christian
- 
- -- 
- Christian Ridderström, +46-8-790 91 37   http://www.md.kth.se/~chr
- Mechatronics lab, Dept. of Machine Designhttp://www.md.kth.se
- 
- 
- 





Re: including sections real-time from other files

2002-11-25 Thread Nirmal Govind
 all I had to do was change the class of the article-class documents to
 book. Then I used include file? Anyway, I'm going to take my thesis,

Thanks Christian for putting up those files... what I'm trying to do is
to have my three documents double up as articles and as chapters in a
book.. so that if I decided to print them out separately, they would
look like articles and if I decided to print out the whole thing
together then it would look like a book.. in more practical terms, the
article-class documents are papers that can be published and when these
papers are put together, they form a thesis.. 

So the only difference between the above and what you have in your files
is that in the latter, if I try to print out each document separately, I
will get Chapter 1 and sections 1.x  on each article-class document..
what I'd like to see is each one as a stand alone article... I guess one
way is to change the book class for each document to article class
before printing or so.. any other way(s)?

Thanks,
nirmal





Re: including sections real-time from other files

2002-11-25 Thread Christian Ridderström
On Sun, 24 Nov 2002, Nirmal Govind wrote:

 Hi.. I have three documents which have been written in the
 article-class. I'm trying to compile all three of them into a book-class
 document so that each article-class document would be a separate chapter
 in the new document. I don't want to cut and paste the sections from the
 three documents since I would like to edit the three article-class
 documents separately and so was wondering if there's any way of
 including all the sections from the three documents in the book-class
 document... thus, when I edit any of the three documents, the book-class
 document automatically gets updated.. I'd like to include only the
 sections from the three docs and ignore the title, author etc.. any way
 to do this?
 
 I tried Insert-Include file and Insert File but the former gave lots of
 errors and the latter inserts the file (as is) and not a link to it so
 it won't update real-time..
 
 Thanks,
 nirmal
 
Hmm.. I don't think I see the problem. In my thesis I'm doing this and all 
I had to do was change the class of the article-class documents to book. 
Then I used include file? Anyway, I'm going to take my thesis, remove 
all the unneccessary stuff and put it as an example here:

http://www.md.kth.se/~chr/lyx/thesis-example

So you can look at it and also put it into a tar-ball here:

http://www.md.kth.se/~chr/lyx/thesis-example.tar.gz

/Christian

-- 
Christian Ridderström, +46-8-790 91 37   http://www.md.kth.se/~chr
Mechatronics lab, Dept. of Machine Designhttp://www.md.kth.se






Re: including sections real-time from other files

2002-11-25 Thread Koundinya
Christian,
The thesis is very impressive. It gives me many ideas to try 
and this some just in time when I'm writhing my thesis too.

Thank You,

Koundinya


- On Sun, 24 Nov 2002, Nirmal Govind wrote:
- 
-  Hi.. I have three documents which have been written in the
-  article-class. I'm trying to compile all three of them into a book-class
-  document so that each article-class document would be a separate chapter
-  in the new document. I don't want to cut and paste the sections from the
-  three documents since I would like to edit the three article-class
-  documents separately and so was wondering if there's any way of
-  including all the sections from the three documents in the book-class
-  document... thus, when I edit any of the three documents, the book-class
-  document automatically gets updated.. I'd like to include only the
-  sections from the three docs and ignore the title, author etc.. any way
-  to do this?
-  
-  I tried Insert-Include file and Insert File but the former gave lots of
-  errors and the latter inserts the file (as is) and not a link to it so
-  it won't update real-time..
-  
-  Thanks,
-  nirmal
-  
- Hmm.. I don't think I see the problem. In my thesis I'm doing this and all 
- I had to do was change the class of the article-class documents to book. 
- Then I used include file? Anyway, I'm going to take my thesis, remove 
- all the unneccessary stuff and put it as an example here:
- 
-  http://www.md.kth.se/~chr/lyx/thesis-example
- 
- So you can look at it and also put it into a tar-ball here:
- 
-  http://www.md.kth.se/~chr/lyx/thesis-example.tar.gz
- 
- /Christian
- 
- -- 
- Christian Ridderström, +46-8-790 91 37   http://www.md.kth.se/~chr
- Mechatronics lab, Dept. of Machine Designhttp://www.md.kth.se
- 
- 
- 





Re: including sections real-time from other files

2002-11-25 Thread Nirmal Govind
 all I had to do was change the class of the article-class documents to
 book. Then I used include file? Anyway, I'm going to take my thesis,

Thanks Christian for putting up those files... what I'm trying to do is
to have my three documents double up as articles and as chapters in a
book.. so that if I decided to print them out separately, they would
look like articles and if I decided to print out the whole thing
together then it would look like a book.. in more practical terms, the
article-class documents are papers that can be published and when these
papers are put together, they form a thesis.. 

So the only difference between the above and what you have in your files
is that in the latter, if I try to print out each document separately, I
will get Chapter 1 and sections 1.x  on each article-class document..
what I'd like to see is each one as a stand alone article... I guess one
way is to change the book class for each document to article class
before printing or so.. any other way(s)?

Thanks,
nirmal





Re: including sections real-time from other files

2002-11-25 Thread Christian Ridderström
On Sun, 24 Nov 2002, Nirmal Govind wrote:

> Hi.. I have three documents which have been written in the
> article-class. I'm trying to compile all three of them into a book-class
> document so that each article-class document would be a separate chapter
> in the new document. I don't want to cut and paste the sections from the
> three documents since I would like to edit the three article-class
> documents separately and so was wondering if there's any way of
> "including" all the sections from the three documents in the book-class
> document... thus, when I edit any of the three documents, the book-class
> document automatically gets updated.. I'd like to include only the
> sections from the three docs and ignore the title, author etc.. any way
> to do this?
> 
> I tried Insert->Include file and Insert File but the former gave lots of
> errors and the latter inserts the file (as is) and not a link to it so
> it won't update real-time..
> 
> Thanks,
> nirmal
> 
Hmm.. I don't think I see the problem. In my thesis I'm doing this and all 
I had to do was change the class of the article-class documents to book. 
Then I used "include file"? Anyway, I'm going to take my thesis, remove 
all the unneccessary stuff and put it as an example here:

http://www.md.kth.se/~chr/lyx/thesis-example

So you can look at it and also put it into a tar-ball here:

http://www.md.kth.se/~chr/lyx/thesis-example.tar.gz

/Christian

-- 
Christian Ridderström, +46-8-790 91 37   http://www.md.kth.se/~chr
Mechatronics lab, Dept. of Machine Designhttp://www.md.kth.se






Re: including sections real-time from other files

2002-11-25 Thread Koundinya
Christian,
The thesis is very impressive. It gives me many ideas to try 
and this some just in time when I'm writhing my thesis too.

Thank You,

Koundinya


-> On Sun, 24 Nov 2002, Nirmal Govind wrote:
-> 
-> > Hi.. I have three documents which have been written in the
-> > article-class. I'm trying to compile all three of them into a book-class
-> > document so that each article-class document would be a separate chapter
-> > in the new document. I don't want to cut and paste the sections from the
-> > three documents since I would like to edit the three article-class
-> > documents separately and so was wondering if there's any way of
-> > "including" all the sections from the three documents in the book-class
-> > document... thus, when I edit any of the three documents, the book-class
-> > document automatically gets updated.. I'd like to include only the
-> > sections from the three docs and ignore the title, author etc.. any way
-> > to do this?
-> > 
-> > I tried Insert->Include file and Insert File but the former gave lots of
-> > errors and the latter inserts the file (as is) and not a link to it so
-> > it won't update real-time..
-> > 
-> > Thanks,
-> > nirmal
-> > 
-> Hmm.. I don't think I see the problem. In my thesis I'm doing this and all 
-> I had to do was change the class of the article-class documents to book. 
-> Then I used "include file"? Anyway, I'm going to take my thesis, remove 
-> all the unneccessary stuff and put it as an example here:
-> 
->  http://www.md.kth.se/~chr/lyx/thesis-example
-> 
-> So you can look at it and also put it into a tar-ball here:
-> 
->  http://www.md.kth.se/~chr/lyx/thesis-example.tar.gz
-> 
-> /Christian
-> 
-> -- 
-> Christian Ridderström, +46-8-790 91 37   http://www.md.kth.se/~chr
-> Mechatronics lab, Dept. of Machine Designhttp://www.md.kth.se
-> 
-> 
-> 





Re: including sections real-time from other files

2002-11-25 Thread Nirmal Govind
> all I had to do was change the class of the article-class documents to
> book. Then I used "include file"? Anyway, I'm going to take my thesis,

Thanks Christian for putting up those files... what I'm trying to do is
to have my three documents double up as articles and as chapters in a
book.. so that if I decided to print them out separately, they would
look like articles and if I decided to print out the whole thing
together then it would look like a book.. in more practical terms, the
article-class documents are papers that can be published and when these
papers are put together, they form a thesis.. 

So the only difference between the above and what you have in your files
is that in the latter, if I try to print out each document separately, I
will get "Chapter 1" and sections 1.x  on each article-class document..
what I'd like to see is each one as a stand alone article... I guess one
way is to change the book class for each document to article class
before printing or so.. any other way(s)?

Thanks,
nirmal