Include problem

2009-02-10 Thread jouke hylkema
Hello all,

I'm having a little problem with including child documents. Is there a
way include a child document without startin a new page ?
I have a rather small section that I use in several documents so I
wanted to make 1 child document and include it wherever I need it but
since it starts on a new page it kind off destroys the layout.

I hope this makes any sense.

Thanks in advance,

Jouke



Re: Include problem

2009-02-10 Thread Jürgen Spitzmüller
jouke hylkema wrote:
 I'm having a little problem with including child documents. Is there a
 way include a child document without startin a new page ?

Use input instead of include.

Jürgen


Re: Include problem

2009-02-10 Thread jouke hylkema
On Tue, 2009-02-10 at 09:27 +0100, Jürgen Spitzmüller wrote:
 jouke hylkema wrote:
  I'm having a little problem with including child documents. Is there a
  way include a child document without startin a new page ?
 
 Use input instead of include.
 
 Jürgen
 
What happens to the format of the child document when I use input ?
Include works fine, except for the new page, but when I switch to input
I get errors that seem to be related to the document class. When I
change the class LyX warns me that the child document does not have the
same class as the master ...

Jouke



Re: Include problem

2009-02-10 Thread Jürgen Spitzmüller
jouke hylkema wrote:
 What happens to the format of the child document when I use input ?
 Include works fine, except for the new page, but when I switch to input
 I get errors that seem to be related to the document class.

What errors?

Jürgen


Re: Include problem

2009-02-10 Thread jouke hylkema
On Tue, 2009-02-10 at 10:03 +0100, Jürgen Spitzmüller wrote:
 jouke hylkema wrote:
  What happens to the format of the child document when I use input ?
  Include works fine, except for the new page, but when I switch to input
  I get errors that seem to be related to the document class.
 
 What errors?
 
 Jürgen
 

Missing $ and missing } inserted.

Jouke

PS. I'll try to make a small example to reproduce the problem




Re: Include problem

2009-02-10 Thread jouke hylkema
On Tue, 2009-02-10 at 10:03 +0100, Jürgen Spitzmüller wrote:
 jouke hylkema wrote:
  What happens to the format of the child document when I use input ?
  Include works fine, except for the new page, but when I switch to input
  I get errors that seem to be related to the document class.
 
 What errors?
 
 Jürgen
 

OK ... my bad, there was a bug in one of the child documents. Sorry
about that.

Jouke



Include problem

2009-02-10 Thread jouke hylkema
Hello all,

I'm having a little problem with including child documents. Is there a
way include a child document without startin a new page ?
I have a rather small section that I use in several documents so I
wanted to make 1 child document and include it wherever I need it but
since it starts on a new page it kind off destroys the layout.

I hope this makes any sense.

Thanks in advance,

Jouke



Re: Include problem

2009-02-10 Thread Jürgen Spitzmüller
jouke hylkema wrote:
 I'm having a little problem with including child documents. Is there a
 way include a child document without startin a new page ?

Use input instead of include.

Jürgen


Re: Include problem

2009-02-10 Thread jouke hylkema
On Tue, 2009-02-10 at 09:27 +0100, Jürgen Spitzmüller wrote:
 jouke hylkema wrote:
  I'm having a little problem with including child documents. Is there a
  way include a child document without startin a new page ?
 
 Use input instead of include.
 
 Jürgen
 
What happens to the format of the child document when I use input ?
Include works fine, except for the new page, but when I switch to input
I get errors that seem to be related to the document class. When I
change the class LyX warns me that the child document does not have the
same class as the master ...

Jouke



Re: Include problem

2009-02-10 Thread Jürgen Spitzmüller
jouke hylkema wrote:
 What happens to the format of the child document when I use input ?
 Include works fine, except for the new page, but when I switch to input
 I get errors that seem to be related to the document class.

What errors?

Jürgen


Re: Include problem

2009-02-10 Thread jouke hylkema
On Tue, 2009-02-10 at 10:03 +0100, Jürgen Spitzmüller wrote:
 jouke hylkema wrote:
  What happens to the format of the child document when I use input ?
  Include works fine, except for the new page, but when I switch to input
  I get errors that seem to be related to the document class.
 
 What errors?
 
 Jürgen
 

Missing $ and missing } inserted.

Jouke

PS. I'll try to make a small example to reproduce the problem




Re: Include problem

2009-02-10 Thread jouke hylkema
On Tue, 2009-02-10 at 10:03 +0100, Jürgen Spitzmüller wrote:
 jouke hylkema wrote:
  What happens to the format of the child document when I use input ?
  Include works fine, except for the new page, but when I switch to input
  I get errors that seem to be related to the document class.
 
 What errors?
 
 Jürgen
 

OK ... my bad, there was a bug in one of the child documents. Sorry
about that.

Jouke



Include problem

2009-02-10 Thread jouke hylkema
Hello all,

I'm having a little problem with including child documents. Is there a
way include a child document without startin a new page ?
I have a rather small section that I use in several documents so I
wanted to make 1 child document and include it wherever I need it but
since it starts on a new page it kind off destroys the layout.

I hope this makes any sense.

Thanks in advance,

Jouke



Re: Include problem

2009-02-10 Thread Jürgen Spitzmüller
jouke hylkema wrote:
> I'm having a little problem with including child documents. Is there a
> way include a child document without startin a new page ?

Use "input" instead of "include".

Jürgen


Re: Include problem

2009-02-10 Thread jouke hylkema
On Tue, 2009-02-10 at 09:27 +0100, Jürgen Spitzmüller wrote:
> jouke hylkema wrote:
> > I'm having a little problem with including child documents. Is there a
> > way include a child document without startin a new page ?
> 
> Use "input" instead of "include".
> 
> Jürgen
> 
What happens to the format of the child document when I use input ?
Include works fine, except for the new page, but when I switch to input
I get errors that seem to be related to the document class. When I
change the class LyX warns me that the child document does not have the
same class as the master ...

Jouke



Re: Include problem

2009-02-10 Thread Jürgen Spitzmüller
jouke hylkema wrote:
> What happens to the format of the child document when I use input ?
> Include works fine, except for the new page, but when I switch to input
> I get errors that seem to be related to the document class.

What errors?

Jürgen


Re: Include problem

2009-02-10 Thread jouke hylkema
On Tue, 2009-02-10 at 10:03 +0100, Jürgen Spitzmüller wrote:
> jouke hylkema wrote:
> > What happens to the format of the child document when I use input ?
> > Include works fine, except for the new page, but when I switch to input
> > I get errors that seem to be related to the document class.
> 
> What errors?
> 
> Jürgen
> 

Missing $ and missing } inserted.

Jouke

PS. I'll try to make a small example to reproduce the problem




Re: Include problem

2009-02-10 Thread jouke hylkema
On Tue, 2009-02-10 at 10:03 +0100, Jürgen Spitzmüller wrote:
> jouke hylkema wrote:
> > What happens to the format of the child document when I use input ?
> > Include works fine, except for the new page, but when I switch to input
> > I get errors that seem to be related to the document class.
> 
> What errors?
> 
> Jürgen
> 

OK ... my bad, there was a bug in one of the child documents. Sorry
about that.

Jouke



noweb book chapter include problem. How about external material strategy?

2008-03-19 Thread Paul Johnson
I've asked before, but have new enthusiasm because I just learned
about the ExternalMaterial handling in lyx-1.5.4.

I succeed using NoWeb strategy in LyX to interact with the statistics
program R.  There has been some posting about that in here lately by
other people doing it too and I see Gregor has updated the Wiki:
http://wiki.lyx.org/LyX/LyxWithRThroughSweave

Now I'm writing a book and want to include some of those Noweb
articles as chapters.  I create the book master document and try to
include the lyx files, but when I view the book in lyx, the included
documents are not put through the Noweb processor.  They just appear
in the output as they are in the lyx file.  They don't get sent
through the Lyx- LaTeX (via noweb) step. I've tried many variations
on this theme.

Now I'm thinking that the LyX  Insert-File-Lyx Document was the
wrong approach from the start.  Instead, I think what I need is
Insert-file-external material where the external material is
customized for this type of document.  But I need help in making it
work.

Here's why I think it might work. I noticed a neat thing LyX does that
I did not know about before.

An Xfig drawing can be included in 2 ways into LyX.

1. Insert- graphics

Choose the fig file, then LyX will process the fig file and it will
show as a graphic.  The processing lyx does to the fig file translates
it to postscript, I think.  It just treats the fig file as a picture.

2. Insert-File-External Material.

This does something different.  It will decipher LaTeX markup in text
in the fig file. (I think it is doing the 2 parts export to EPS
format, if you know what i mean).   If you put LaTeX text in your
file, and you marked it with the special attribute, then LyX will
process that xfig file to convert the LaTeX markup and fit it into
the graphic.  So in the xfig file, you can put in text like $\alpha$
and in the output, you see the Greek alpha.  Note this is different
from the Insert-graphics approach, where the literal string
$\alpha$ appears.

Seeing this external handling made me wonder, why doesn't one of the
smart guys who knows LyX inside and out design a Noweb handler for
External Material.  The converter specified in LyX preferences to go
from he noweb format Sweave to LaTeX is

.R CMD Sweave $$i


So, If I want to include a lyx file, I need some way to tell Lyx it
needs that post processing, and that's  why the external material
thing seems just right.


If one of you would do it for me, it would be great.  More likely, you
will tell me what manual to read about writing external material
handlers in LyX.  That would be good too, but requiring more work :)

PJ

-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas


noweb book chapter include problem. How about external material strategy?

2008-03-19 Thread Paul Johnson
I've asked before, but have new enthusiasm because I just learned
about the ExternalMaterial handling in lyx-1.5.4.

I succeed using NoWeb strategy in LyX to interact with the statistics
program R.  There has been some posting about that in here lately by
other people doing it too and I see Gregor has updated the Wiki:
http://wiki.lyx.org/LyX/LyxWithRThroughSweave

Now I'm writing a book and want to include some of those Noweb
articles as chapters.  I create the book master document and try to
include the lyx files, but when I view the book in lyx, the included
documents are not put through the Noweb processor.  They just appear
in the output as they are in the lyx file.  They don't get sent
through the Lyx- LaTeX (via noweb) step. I've tried many variations
on this theme.

Now I'm thinking that the LyX  Insert-File-Lyx Document was the
wrong approach from the start.  Instead, I think what I need is
Insert-file-external material where the external material is
customized for this type of document.  But I need help in making it
work.

Here's why I think it might work. I noticed a neat thing LyX does that
I did not know about before.

An Xfig drawing can be included in 2 ways into LyX.

1. Insert- graphics

Choose the fig file, then LyX will process the fig file and it will
show as a graphic.  The processing lyx does to the fig file translates
it to postscript, I think.  It just treats the fig file as a picture.

2. Insert-File-External Material.

This does something different.  It will decipher LaTeX markup in text
in the fig file. (I think it is doing the 2 parts export to EPS
format, if you know what i mean).   If you put LaTeX text in your
file, and you marked it with the special attribute, then LyX will
process that xfig file to convert the LaTeX markup and fit it into
the graphic.  So in the xfig file, you can put in text like $\alpha$
and in the output, you see the Greek alpha.  Note this is different
from the Insert-graphics approach, where the literal string
$\alpha$ appears.

Seeing this external handling made me wonder, why doesn't one of the
smart guys who knows LyX inside and out design a Noweb handler for
External Material.  The converter specified in LyX preferences to go
from he noweb format Sweave to LaTeX is

.R CMD Sweave $$i


So, If I want to include a lyx file, I need some way to tell Lyx it
needs that post processing, and that's  why the external material
thing seems just right.


If one of you would do it for me, it would be great.  More likely, you
will tell me what manual to read about writing external material
handlers in LyX.  That would be good too, but requiring more work :)

PJ

-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas


noweb book chapter include problem. How about "external material" strategy?

2008-03-19 Thread Paul Johnson
I've asked before, but have new enthusiasm because I just learned
about the ExternalMaterial handling in lyx-1.5.4.

I succeed using NoWeb strategy in LyX to interact with the statistics
program R.  There has been some posting about that in here lately by
other people doing it too and I see Gregor has updated the Wiki:
http://wiki.lyx.org/LyX/LyxWithRThroughSweave

Now I'm writing a book and want to include some of those Noweb
articles as chapters.  I create the book master document and try to
include the lyx files, but when I view the book in lyx, the included
documents are not put through the Noweb processor.  They just appear
in the output as they are in the lyx file.  They don't get sent
through the Lyx-> LaTeX (via noweb) step. I've tried many variations
on this theme.

Now I'm thinking that the LyX  Insert->File->Lyx Document was the
wrong approach from the start.  Instead, I think what I need is
Insert->file->external material where the external material is
customized for this type of document.  But I need help in making it
work.

Here's why I think it might work. I noticed a neat thing LyX does that
I did not know about before.

An Xfig drawing can be included in 2 ways into LyX.

1. Insert-> graphics

Choose the fig file, then LyX will process the fig file and it will
show as a graphic.  The processing lyx does to the fig file translates
it to postscript, I think.  It just treats the fig file as a picture.

2. Insert->File->External Material.

This does something different.  It will decipher LaTeX markup in text
in the fig file. (I think it is doing the 2 parts export to EPS
format, if you know what i mean).   If you put LaTeX text in your
file, and you marked it with the "special" attribute, then LyX will
"process" that xfig file to convert the LaTeX markup and fit it into
the graphic.  So in the xfig file, you can put in text like $\alpha$
and in the output, you see the Greek alpha.  Note this is different
from the Insert->graphics approach, where the literal string
"$\alpha$" appears.

Seeing this external handling made me wonder, why doesn't one of the
smart guys who knows LyX inside and out design a "Noweb" handler for
External Material.  The converter specified in LyX preferences to go
from he noweb format "Sweave" to LaTeX is

.R CMD Sweave $$i


So, If I want to include a lyx file, I need some way to tell Lyx it
needs that post processing, and that's  why the external material
thing seems just right.


If one of you would do it for me, it would be great.  More likely, you
will tell me what manual to read about writing external material
handlers in LyX.  That would be good too, but requiring more work :)

PJ

-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas


Re: include problem

2004-04-11 Thread Nirmal Govind
...and that worked perfectly.   So...I also tried saving that file and
including it at the top of the body.lyx file, but again got several
errors regarding missing or improper use of the curly brackets.
Does your body.lyx file compile? If yes, then can you please post 
the errors that you get when you include front.lyx, thanks.lyx and 
body.lyx in a master file? It would be weird if a file that includes 
front.lyx and thanks.lyx compiles, body.lyx on its own compiles, but 
a file that includes all three does not compile..

nirmal



Re: include problem

2004-04-11 Thread Nirmal Govind
...and that worked perfectly.   So...I also tried saving that file and
including it at the top of the body.lyx file, but again got several
errors regarding missing or improper use of the curly brackets.
Does your body.lyx file compile? If yes, then can you please post 
the errors that you get when you include front.lyx, thanks.lyx and 
body.lyx in a master file? It would be weird if a file that includes 
front.lyx and thanks.lyx compiles, body.lyx on its own compiles, but 
a file that includes all three does not compile..

nirmal



Re: include problem

2004-04-11 Thread Nirmal Govind
...and that worked perfectly.   So...I also tried saving that file and
including it at the top of the body.lyx file, but again got several
errors regarding missing or improper use of the curly brackets.
Does your body.lyx file compile? If yes, then can you please post 
the errors that you get when you include front.lyx, thanks.lyx and 
body.lyx in a master file? It would be weird if a file that includes 
front.lyx and thanks.lyx compiles, body.lyx on its own compiles, but 
a file that includes all three does not compile..

nirmal



include problem

2004-04-10 Thread Andrew Morrison
I have three files that I'd like to concatenate within lyx.  Two of the
files were originally tex files and the third is a file written entirely
in lyx.

Somehow I was able to import and convert the tex files to lyx files.
They are named front.lyx and thanks.lyx.   The third file is called
body.lyx, and I would like front and thanks to go at the top of body.

I have tried using the GUI in lyx to include the files using the input
and include methods, both of which fail. I've tried inserting the lyx
file, which does not work.  I have also tried using an ERT box to input
the files, which also fails.

Finally, just to make sure I did not have problems with the front and
thanks files, I created a new lyx file and placed in it an ERT box that
contained:

\input{front}
\input{thanks} 

...and that worked perfectly.   So...I also tried saving that file and
including it at the top of the body.lyx file, but again got several
errors regarding missing or improper use of the curly brackets.

I read the recent message about trying to save the document as a
template, but I couldn't exactly figure out how to make that work in my
case.  Any help would be greatly appreciated.

Andrew




Re: include problem

2004-04-10 Thread Andre Poenitz
On Sat, Apr 10, 2004 at 11:42:50AM -0500, Andrew Morrison wrote:
 I have three files that I'd like to concatenate within lyx.  Two of the
 files were originally tex files and the third is a file written entirely
 in lyx.

Easiest way would be to to that in a texteditor of your choice. Simply
concatenate the things and delete the preamble part and the \the_end
line of two of the three files.

Andre'


Re: include problem

2004-04-10 Thread Andrew Morrison
On Sat, 2004-04-10 at 16:38, Andre Poenitz wrote:
 On Sat, Apr 10, 2004 at 11:42:50AM -0500, Andrew Morrison wrote:
  I have three files that I'd like to concatenate within lyx.  Two of the
  files were originally tex files and the third is a file written entirely
  in lyx.
 
 Easiest way would be to to that in a texteditor of your choice. Simply
 concatenate the things and delete the preamble part and the \the_end
 line of two of the three files.
 

Ahh!!!   Thank you so much!!   You were so right!

Andrew



Re: include problem

2004-04-10 Thread Marc Jeffrey Driftmeyer
How does this answer the question regarding LyX and it being unable to 
automate the process?

I can always write in straight LaTeX but one of the selling points in LyX is 
to not have to write solely in LaTeX with my content.

Would this require a shell script to strip and replace what is needed?

Sincerely,

Marc J. Driftmeyer

On Saturday 10 April 2004 02:38 pm, Andre Poenitz wrote:
 On Sat, Apr 10, 2004 at 11:42:50AM -0500, Andrew Morrison wrote:
  I have three files that I'd like to concatenate within lyx.  Two of the
  files were originally tex files and the third is a file written entirely
  in lyx.

 Easiest way would be to to that in a texteditor of your choice. Simply
 concatenate the things and delete the preamble part and the \the_end
 line of two of the three files.

 Andre'


include problem

2004-04-10 Thread Andrew Morrison
I have three files that I'd like to concatenate within lyx.  Two of the
files were originally tex files and the third is a file written entirely
in lyx.

Somehow I was able to import and convert the tex files to lyx files.
They are named front.lyx and thanks.lyx.   The third file is called
body.lyx, and I would like front and thanks to go at the top of body.

I have tried using the GUI in lyx to include the files using the input
and include methods, both of which fail. I've tried inserting the lyx
file, which does not work.  I have also tried using an ERT box to input
the files, which also fails.

Finally, just to make sure I did not have problems with the front and
thanks files, I created a new lyx file and placed in it an ERT box that
contained:

\input{front}
\input{thanks} 

...and that worked perfectly.   So...I also tried saving that file and
including it at the top of the body.lyx file, but again got several
errors regarding missing or improper use of the curly brackets.

I read the recent message about trying to save the document as a
template, but I couldn't exactly figure out how to make that work in my
case.  Any help would be greatly appreciated.

Andrew




Re: include problem

2004-04-10 Thread Andre Poenitz
On Sat, Apr 10, 2004 at 11:42:50AM -0500, Andrew Morrison wrote:
 I have three files that I'd like to concatenate within lyx.  Two of the
 files were originally tex files and the third is a file written entirely
 in lyx.

Easiest way would be to to that in a texteditor of your choice. Simply
concatenate the things and delete the preamble part and the \the_end
line of two of the three files.

Andre'


Re: include problem

2004-04-10 Thread Andrew Morrison
On Sat, 2004-04-10 at 16:38, Andre Poenitz wrote:
 On Sat, Apr 10, 2004 at 11:42:50AM -0500, Andrew Morrison wrote:
  I have three files that I'd like to concatenate within lyx.  Two of the
  files were originally tex files and the third is a file written entirely
  in lyx.
 
 Easiest way would be to to that in a texteditor of your choice. Simply
 concatenate the things and delete the preamble part and the \the_end
 line of two of the three files.
 

Ahh!!!   Thank you so much!!   You were so right!

Andrew



Re: include problem

2004-04-10 Thread Marc Jeffrey Driftmeyer
How does this answer the question regarding LyX and it being unable to 
automate the process?

I can always write in straight LaTeX but one of the selling points in LyX is 
to not have to write solely in LaTeX with my content.

Would this require a shell script to strip and replace what is needed?

Sincerely,

Marc J. Driftmeyer

On Saturday 10 April 2004 02:38 pm, Andre Poenitz wrote:
 On Sat, Apr 10, 2004 at 11:42:50AM -0500, Andrew Morrison wrote:
  I have three files that I'd like to concatenate within lyx.  Two of the
  files were originally tex files and the third is a file written entirely
  in lyx.

 Easiest way would be to to that in a texteditor of your choice. Simply
 concatenate the things and delete the preamble part and the \the_end
 line of two of the three files.

 Andre'


include problem

2004-04-10 Thread Andrew Morrison
I have three files that I'd like to concatenate within lyx.  Two of the
files were originally tex files and the third is a file written entirely
in lyx.

Somehow I was able to import and convert the tex files to lyx files.
They are named front.lyx and thanks.lyx.   The third file is called
body.lyx, and I would like front and thanks to go at the top of body.

I have tried using the GUI in lyx to include the files using the input
and include methods, both of which fail. I've tried inserting the lyx
file, which does not work.  I have also tried using an ERT box to input
the files, which also fails.

Finally, just to make sure I did not have problems with the front and
thanks files, I created a new lyx file and placed in it an ERT box that
contained:

\input{front}
\input{thanks} 

...and that worked perfectly.   So...I also tried saving that file and
including it at the top of the body.lyx file, but again got several
errors regarding missing or improper use of the curly brackets.

I read the recent message about trying to save the document as a
template, but I couldn't exactly figure out how to make that work in my
case.  Any help would be greatly appreciated.

Andrew




Re: include problem

2004-04-10 Thread Andre Poenitz
On Sat, Apr 10, 2004 at 11:42:50AM -0500, Andrew Morrison wrote:
> I have three files that I'd like to concatenate within lyx.  Two of the
> files were originally tex files and the third is a file written entirely
> in lyx.

Easiest way would be to to that in a texteditor of your choice. Simply
concatenate the things and delete the preamble part and the \the_end
line of two of the three files.

Andre'


Re: include problem

2004-04-10 Thread Andrew Morrison
On Sat, 2004-04-10 at 16:38, Andre Poenitz wrote:
> On Sat, Apr 10, 2004 at 11:42:50AM -0500, Andrew Morrison wrote:
> > I have three files that I'd like to concatenate within lyx.  Two of the
> > files were originally tex files and the third is a file written entirely
> > in lyx.
> 
> Easiest way would be to to that in a texteditor of your choice. Simply
> concatenate the things and delete the preamble part and the \the_end
> line of two of the three files.
> 

Ahh!!!   Thank you so much!!   You were so right!

Andrew



Re: include problem

2004-04-10 Thread Marc Jeffrey Driftmeyer
How does this answer the question regarding LyX and it being unable to 
automate the process?

I can always write in straight LaTeX but one of the selling points in LyX is 
to not have to write solely in LaTeX with my content.

Would this require a shell script to strip and replace what is needed?

Sincerely,

Marc J. Driftmeyer

On Saturday 10 April 2004 02:38 pm, Andre Poenitz wrote:
> On Sat, Apr 10, 2004 at 11:42:50AM -0500, Andrew Morrison wrote:
> > I have three files that I'd like to concatenate within lyx.  Two of the
> > files were originally tex files and the third is a file written entirely
> > in lyx.
>
> Easiest way would be to to that in a texteditor of your choice. Simply
> concatenate the things and delete the preamble part and the \the_end
> line of two of the three files.
>
> Andre'