Re: Working with multipart documents

2001-01-29 Thread Eric Seynaeve

Hey all,

I have followed this thread with interest. However, working with the 
comment style didn't work right for me. My solution is the following:
in the master.lyx file, I include following in the preample:
\newcommand{\onlyifalone}[1]{}
in all the subsequent chapter files, I include
\newcommand{\onlyifalone}[1]{#1}
in the preamble. When including the BiBTeX reference in each chapter 
within this \onlyifalone command, it seems to work fine.

Eric

On 25 Jan 2001, at 10:56, Nabil Hathout wrote:

 Michael Zapf writes:
   So I thought, Bibtex refs are better anyway, and switched to inserting
   bibtex refs. However, there is a similar problem: I don't want a
   references section in each chapter. But I don't see the Bibtex refs
   unless I include a Bibtex-created references section in this file. Of
   course, after inserting all references, I just delete this references
   section ... but it feels awfully wrong to do.
 
 Just insert a "Bibtex Reference" as a comment at the end of each chapter.
 
 --Nabil



e-Mail: [EMAIL PROTECTED]
PGP fingerprint:
17C6 528E 3018 F44A 596B  203B B344 9377 BD6D 3B64



Re: Working with multipart documents

2001-01-29 Thread Eric Seynaeve

Hey all,

I have followed this thread with interest. However, working with the 
comment style didn't work right for me. My solution is the following:
in the master.lyx file, I include following in the preample:
\newcommand{\onlyifalone}[1]{}
in all the subsequent chapter files, I include
\newcommand{\onlyifalone}[1]{#1}
in the preamble. When including the BiBTeX reference in each chapter 
within this \onlyifalone command, it seems to work fine.

Eric

On 25 Jan 2001, at 10:56, Nabil Hathout wrote:

 Michael Zapf writes:
   So I thought, Bibtex refs are better anyway, and switched to inserting
   bibtex refs. However, there is a similar problem: I don't want a
   references section in each chapter. But I don't see the Bibtex refs
   unless I include a Bibtex-created references section in this file. Of
   course, after inserting all references, I just delete this references
   section ... but it feels awfully wrong to do.
 
 Just insert a "Bibtex Reference" as a comment at the end of each chapter.
 
 --Nabil



e-Mail: [EMAIL PROTECTED]
PGP fingerprint:
17C6 528E 3018 F44A 596B  203B B344 9377 BD6D 3B64



Re: Working with multipart documents

2001-01-29 Thread Eric Seynaeve

Hey all,

I have followed this thread with interest. However, working with the 
comment style didn't work right for me. My solution is the following:
in the master.lyx file, I include following in the preample:
\newcommand{\onlyifalone}[1]{}
in all the subsequent chapter files, I include
\newcommand{\onlyifalone}[1]{#1}
in the preamble. When including the BiBTeX reference in each chapter 
within this \onlyifalone command, it seems to work fine.

Eric

On 25 Jan 2001, at 10:56, Nabil Hathout wrote:

> Michael Zapf writes:
>  > So I thought, Bibtex refs are better anyway, and switched to inserting
>  > bibtex refs. However, there is a similar problem: I don't want a
>  > references section in each chapter. But I don't see the Bibtex refs
>  > unless I include a Bibtex-created references section in this file. Of
>  > course, after inserting all references, I just delete this references
>  > section ... but it feels awfully wrong to do.
> 
> Just insert a "Bibtex Reference" as a comment at the end of each chapter.
> 
> --Nabil



e-Mail: [EMAIL PROTECTED]
PGP fingerprint:
17C6 528E 3018 F44A 596B  203B B344 9377 BD6D 3B64



Re: Working with multipart documents

2001-01-26 Thread Dekel Tsur

On Wed, Jan 24, 2001 at 09:21:05PM -0700, Michael Zapf wrote:
 And now for the cross references. Lets add a "... like in section x.y".
 This section is in another LyX file. How do I insert this reference?

Suppose that your files are master.lyx, chap1.lyx, chap2.lyx,
and you want to insert a label from chap2.lyx to chap1.lyx.
There are three methods:

1. Open master.lyx, open the insert reference dialog, and return to chap1.lyx.
Now, whenever you open the insert reference dialog in chap1.lyx, you will
get a list of all labels in all the files.

2. Open chap2.lyx, open the insert reference dialog, and without closing the
dialog, return to chap1.lyx, and then insert the reference.
This doesn't work in LyX 1.1.6.

3. In LyX 1.1.6, type M-x reference-insert ref|++||++|label
where label is the required label.



Re: Working with multipart documents

2001-01-26 Thread Michael Zapf

Dekel Tsur wrote:

 On Wed, Jan 24, 2001 at 09:21:05PM -0700, Michael Zapf wrote:
  And now for the cross references. Lets add a "... like in section x.y".
  This section is in another LyX file. How do I insert this reference?

 Suppose that your files are master.lyx, chap1.lyx, chap2.lyx,
 and you want to insert a label from chap2.lyx to chap1.lyx.
 There are three methods:

 1. Open master.lyx, open the insert reference dialog, and return to chap1.lyx.
 Now, whenever you open the insert reference dialog in chap1.lyx, you will
 get a list of all labels in all the files.

Yes, seems to be working alright. Hmm, what about adding a box to InsertReference
like "Take references from file(s)..."?

 3. In LyX 1.1.6, type M-x reference-insert ref|++||++|label where label is
 the required label.

I'd prefer option 1.

Thanks for your help. The users guide/extended guide should contain this info.

Michael
--
* Michael Zapf  ---  http://www.vsb.cs.uni-frankfurt.de/~zapf/
* Institut fuer Informatik, FB Biologie und Informatik
* (Institute for Comp.Science, Dept. of Comp.Science and Biology)
* Johann Wolfgang Goethe-Universitaet Frankfurt/Main





Re: Working with multipart documents

2001-01-26 Thread Jan Goebel

On Fri, 26 Jan 2001, Michael Zapf wrote:

  1. Open master.lyx, open the insert reference dialog, and return to chap1.lyx.
  Now, whenever you open the insert reference dialog in chap1.lyx, you will
  get a list of all labels in all the files.
 
 Yes, seems to be working alright. Hmm, what about adding a box to InsertReference
 like "Take references from file(s)..."?
 
  3. In LyX 1.1.6, type M-x reference-insert ref|++||++|label where label is
  the required label.
 
 I'd prefer option 1.
 
 Thanks for your help. The users guide/extended guide should contain this info.

There is a information in the ext. guide, but only to method 2.
There should be a info about the more comfortable master-files-method, too.

1.4.2 Cross-References Between Files

It is possible to set up cross-references between the different files. 
First, open all the files in question: let's call them A and B in a two 
file example, where B is included in A. Let's say you insert a label in A, 
then want to reference it in B. Switch to A, then select 
Insert-Cross-Reference. Now switch the document to B without closing 
the cross-reference popup. Insert the cross reference and you are done! 
When you preview file A, everything is properly included and labeled. 
If you accidentally close the popup, then reopen it while you are in B, 
you will only see B's labels. This whole procedure is perhaps a bit 
counterintuitive (it has even been called a bug), but it does work.



jan

-- 
+---
 Jan Goebel (mailto:[EMAIL PROTECTED])

 DIW Berlin 
 Longitudinal Data and Microanalysis
 Knigin-Luise-Str. 5
 D-14195 Berlin -- Germany --
 phone: 49 30 89789-377
+---



Re: Working with multipart documents

2001-01-26 Thread Dekel Tsur

On Fri, Jan 26, 2001 at 03:09:31PM +0100, Michael Zapf wrote:
  On Wed, Jan 24, 2001 at 09:21:05PM -0700, Michael Zapf wrote:
   And now for the cross references. Lets add a "... like in section x.y".
   This section is in another LyX file. How do I insert this reference?
 
  Suppose that your files are master.lyx, chap1.lyx, chap2.lyx,
  and you want to insert a label from chap2.lyx to chap1.lyx.
  There are three methods:
 
  1. Open master.lyx, open the insert reference dialog, and return to chap1.lyx.
  Now, whenever you open the insert reference dialog in chap1.lyx, you will
  get a list of all labels in all the files.
 
 Yes, seems to be working alright. Hmm, what about adding a box to InsertReference
 like "Take references from file(s)..."?

I am planning to add this.



Re: Working with multipart documents

2001-01-26 Thread mike.ressler

On Fri, 26 Jan 2001, Michael Zapf wrote:

 Dekel Tsur wrote:
  Suppose that your files are master.lyx, chap1.lyx, chap2.lyx,
  and you want to insert a label from chap2.lyx to chap1.lyx.
  There are three methods:
 
  1. Open master.lyx, open the insert reference dialog, and return to chap1.lyx.
  Now, whenever you open the insert reference dialog in chap1.lyx, you will
  get a list of all labels in all the files.

 I'd prefer option 1.

 Thanks for your help. The users guide/extended guide should contain this info.

Section 1.4.2 of Extended.

Mike

-- 
Mike Ressler
[EMAIL PROTECTED]
OK, I'm lame: I don't have my own website ...




Re: Working with multipart documents

2001-01-26 Thread Dekel Tsur

On Wed, Jan 24, 2001 at 09:21:05PM -0700, Michael Zapf wrote:
 And now for the cross references. Lets add a "... like in section x.y".
 This section is in another LyX file. How do I insert this reference?

Suppose that your files are master.lyx, chap1.lyx, chap2.lyx,
and you want to insert a label from chap2.lyx to chap1.lyx.
There are three methods:

1. Open master.lyx, open the insert reference dialog, and return to chap1.lyx.
Now, whenever you open the insert reference dialog in chap1.lyx, you will
get a list of all labels in all the files.

2. Open chap2.lyx, open the insert reference dialog, and without closing the
dialog, return to chap1.lyx, and then insert the reference.
This doesn't work in LyX 1.1.6.

3. In LyX 1.1.6, type M-x reference-insert ref|++||++|label
where label is the required label.



Re: Working with multipart documents

2001-01-26 Thread Michael Zapf

Dekel Tsur wrote:

 On Wed, Jan 24, 2001 at 09:21:05PM -0700, Michael Zapf wrote:
  And now for the cross references. Lets add a "... like in section x.y".
  This section is in another LyX file. How do I insert this reference?

 Suppose that your files are master.lyx, chap1.lyx, chap2.lyx,
 and you want to insert a label from chap2.lyx to chap1.lyx.
 There are three methods:

 1. Open master.lyx, open the insert reference dialog, and return to chap1.lyx.
 Now, whenever you open the insert reference dialog in chap1.lyx, you will
 get a list of all labels in all the files.

Yes, seems to be working alright. Hmm, what about adding a box to InsertReference
like "Take references from file(s)..."?

 3. In LyX 1.1.6, type M-x reference-insert ref|++||++|label where label is
 the required label.

I'd prefer option 1.

Thanks for your help. The users guide/extended guide should contain this info.

Michael
--
* Michael Zapf  ---  http://www.vsb.cs.uni-frankfurt.de/~zapf/
* Institut fuer Informatik, FB Biologie und Informatik
* (Institute for Comp.Science, Dept. of Comp.Science and Biology)
* Johann Wolfgang Goethe-Universitaet Frankfurt/Main





Re: Working with multipart documents

2001-01-26 Thread Jan Goebel

On Fri, 26 Jan 2001, Michael Zapf wrote:

  1. Open master.lyx, open the insert reference dialog, and return to chap1.lyx.
  Now, whenever you open the insert reference dialog in chap1.lyx, you will
  get a list of all labels in all the files.
 
 Yes, seems to be working alright. Hmm, what about adding a box to InsertReference
 like "Take references from file(s)..."?
 
  3. In LyX 1.1.6, type M-x reference-insert ref|++||++|label where label is
  the required label.
 
 I'd prefer option 1.
 
 Thanks for your help. The users guide/extended guide should contain this info.

There is a information in the ext. guide, but only to method 2.
There should be a info about the more comfortable master-files-method, too.

1.4.2 Cross-References Between Files

It is possible to set up cross-references between the different files. 
First, open all the files in question: let's call them A and B in a two 
file example, where B is included in A. Let's say you insert a label in A, 
then want to reference it in B. Switch to A, then select 
Insert-Cross-Reference. Now switch the document to B without closing 
the cross-reference popup. Insert the cross reference and you are done! 
When you preview file A, everything is properly included and labeled. 
If you accidentally close the popup, then reopen it while you are in B, 
you will only see B's labels. This whole procedure is perhaps a bit 
counterintuitive (it has even been called a bug), but it does work.



jan

-- 
+---
 Jan Goebel (mailto:[EMAIL PROTECTED])

 DIW Berlin 
 Longitudinal Data and Microanalysis
 Knigin-Luise-Str. 5
 D-14195 Berlin -- Germany --
 phone: 49 30 89789-377
+---



Re: Working with multipart documents

2001-01-26 Thread Dekel Tsur

On Fri, Jan 26, 2001 at 03:09:31PM +0100, Michael Zapf wrote:
  On Wed, Jan 24, 2001 at 09:21:05PM -0700, Michael Zapf wrote:
   And now for the cross references. Lets add a "... like in section x.y".
   This section is in another LyX file. How do I insert this reference?
 
  Suppose that your files are master.lyx, chap1.lyx, chap2.lyx,
  and you want to insert a label from chap2.lyx to chap1.lyx.
  There are three methods:
 
  1. Open master.lyx, open the insert reference dialog, and return to chap1.lyx.
  Now, whenever you open the insert reference dialog in chap1.lyx, you will
  get a list of all labels in all the files.
 
 Yes, seems to be working alright. Hmm, what about adding a box to InsertReference
 like "Take references from file(s)..."?

I am planning to add this.



Re: Working with multipart documents

2001-01-26 Thread mike.ressler

On Fri, 26 Jan 2001, Michael Zapf wrote:

 Dekel Tsur wrote:
  Suppose that your files are master.lyx, chap1.lyx, chap2.lyx,
  and you want to insert a label from chap2.lyx to chap1.lyx.
  There are three methods:
 
  1. Open master.lyx, open the insert reference dialog, and return to chap1.lyx.
  Now, whenever you open the insert reference dialog in chap1.lyx, you will
  get a list of all labels in all the files.

 I'd prefer option 1.

 Thanks for your help. The users guide/extended guide should contain this info.

Section 1.4.2 of Extended.

Mike

-- 
Mike Ressler
[EMAIL PROTECTED]
OK, I'm lame: I don't have my own website ...




Re: Working with multipart documents

2001-01-26 Thread Dekel Tsur

On Wed, Jan 24, 2001 at 09:21:05PM -0700, Michael Zapf wrote:
> And now for the cross references. Lets add a "... like in section x.y".
> This section is in another LyX file. How do I insert this reference?

Suppose that your files are master.lyx, chap1.lyx, chap2.lyx,
and you want to insert a label from chap2.lyx to chap1.lyx.
There are three methods:

1. Open master.lyx, open the insert reference dialog, and return to chap1.lyx.
Now, whenever you open the insert reference dialog in chap1.lyx, you will
get a list of all labels in all the files.

2. Open chap2.lyx, open the insert reference dialog, and without closing the
dialog, return to chap1.lyx, and then insert the reference.
This doesn't work in LyX 1.1.6.

3. In LyX 1.1.6, type M-x reference-insert ref|++||++|
where  is the required label.



Re: Working with multipart documents

2001-01-26 Thread Michael Zapf

Dekel Tsur wrote:

> On Wed, Jan 24, 2001 at 09:21:05PM -0700, Michael Zapf wrote:
> > And now for the cross references. Lets add a "... like in section x.y".
> > This section is in another LyX file. How do I insert this reference?
>
> Suppose that your files are master.lyx, chap1.lyx, chap2.lyx,
> and you want to insert a label from chap2.lyx to chap1.lyx.
> There are three methods:
>
> 1. Open master.lyx, open the insert reference dialog, and return to chap1.lyx.
> Now, whenever you open the insert reference dialog in chap1.lyx, you will
> get a list of all labels in all the files.

Yes, seems to be working alright. Hmm, what about adding a box to InsertReference
like "Take references from file(s)..."?

> 3. In LyX 1.1.6, type M-x reference-insert ref|++||++| where  is
> the required label.

I'd prefer option 1.

Thanks for your help. The users guide/extended guide should contain this info.

Michael
--
* Michael Zapf  ---  http://www.vsb.cs.uni-frankfurt.de/~zapf/
* Institut fuer Informatik, FB Biologie und Informatik
* (Institute for Comp.Science, Dept. of Comp.Science and Biology)
* Johann Wolfgang Goethe-Universitaet Frankfurt/Main





Re: Working with multipart documents

2001-01-26 Thread Jan Goebel

On Fri, 26 Jan 2001, Michael Zapf wrote:

> > 1. Open master.lyx, open the insert reference dialog, and return to chap1.lyx.
> > Now, whenever you open the insert reference dialog in chap1.lyx, you will
> > get a list of all labels in all the files.
> 
> Yes, seems to be working alright. Hmm, what about adding a box to InsertReference
> like "Take references from file(s)..."?
> 
> > 3. In LyX 1.1.6, type M-x reference-insert ref|++||++| where  is
> > the required label.
> 
> I'd prefer option 1.
> 
> Thanks for your help. The users guide/extended guide should contain this info.

There is a information in the ext. guide, but only to method 2.
There should be a info about the more comfortable master-files-method, too.

1.4.2 Cross-References Between Files

It is possible to set up cross-references between the different files. 
First, open all the files in question: let's call them A and B in a two 
file example, where B is included in A. Let's say you insert a label in A, 
then want to reference it in B. Switch to A, then select 
Insert->Cross-Reference. Now switch the document to B without closing 
the cross-reference popup. Insert the cross reference and you are done! 
When you preview file A, everything is properly included and labeled. 
If you accidentally close the popup, then reopen it while you are in B, 
you will only see B's labels. This whole procedure is perhaps a bit 
counterintuitive (it has even been called a bug), but it does work.



jan

-- 
+---
 Jan Goebel (mailto:[EMAIL PROTECTED])

 DIW Berlin 
 Longitudinal Data and Microanalysis
 Königin-Luise-Str. 5
 D-14195 Berlin -- Germany --
 phone: 49 30 89789-377
+---



Re: Working with multipart documents

2001-01-26 Thread Dekel Tsur

On Fri, Jan 26, 2001 at 03:09:31PM +0100, Michael Zapf wrote:
> > On Wed, Jan 24, 2001 at 09:21:05PM -0700, Michael Zapf wrote:
> > > And now for the cross references. Lets add a "... like in section x.y".
> > > This section is in another LyX file. How do I insert this reference?
> >
> > Suppose that your files are master.lyx, chap1.lyx, chap2.lyx,
> > and you want to insert a label from chap2.lyx to chap1.lyx.
> > There are three methods:
> >
> > 1. Open master.lyx, open the insert reference dialog, and return to chap1.lyx.
> > Now, whenever you open the insert reference dialog in chap1.lyx, you will
> > get a list of all labels in all the files.
> 
> Yes, seems to be working alright. Hmm, what about adding a box to InsertReference
> like "Take references from file(s)..."?

I am planning to add this.



Re: Working with multipart documents

2001-01-26 Thread mike.ressler

On Fri, 26 Jan 2001, Michael Zapf wrote:

> Dekel Tsur wrote:
> > Suppose that your files are master.lyx, chap1.lyx, chap2.lyx,
> > and you want to insert a label from chap2.lyx to chap1.lyx.
> > There are three methods:
> >
> > 1. Open master.lyx, open the insert reference dialog, and return to chap1.lyx.
> > Now, whenever you open the insert reference dialog in chap1.lyx, you will
> > get a list of all labels in all the files.
>
> I'd prefer option 1.
>
> Thanks for your help. The users guide/extended guide should contain this info.

Section 1.4.2 of Extended.

Mike

-- 
Mike Ressler
[EMAIL PROTECTED]
OK, I'm lame: I don't have my own website ...